@1claw/openapi-spec 0.58.0 → 0.59.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/openapi.json CHANGED
@@ -9985,6 +9985,54 @@
9985
9985
  }
9986
9986
  },
9987
9987
  "/v1/platform/apps/{appId}/templates/{template_id}": {
9988
+ "get": {
9989
+ "tags": [
9990
+ "Platform"
9991
+ ],
9992
+ "summary": "Get a bootstrap template",
9993
+ "description": "Returns the full template spec for a platform app. plt_ or user JWT.",
9994
+ "operationId": "getPlatformTemplate",
9995
+ "security": [
9996
+ {
9997
+ "BearerAuth": []
9998
+ }
9999
+ ],
10000
+ "parameters": [
10001
+ {
10002
+ "in": "path",
10003
+ "name": "appId",
10004
+ "required": true,
10005
+ "schema": {
10006
+ "type": "string",
10007
+ "format": "uuid"
10008
+ }
10009
+ },
10010
+ {
10011
+ "in": "path",
10012
+ "name": "template_id",
10013
+ "required": true,
10014
+ "schema": {
10015
+ "type": "string",
10016
+ "format": "uuid"
10017
+ }
10018
+ }
10019
+ ],
10020
+ "responses": {
10021
+ "200": {
10022
+ "description": "Template details",
10023
+ "content": {
10024
+ "application/json": {
10025
+ "schema": {
10026
+ "$ref": "#/components/schemas/PlatformTemplateResponse"
10027
+ }
10028
+ }
10029
+ }
10030
+ },
10031
+ "404": {
10032
+ "$ref": "#/components/responses/NotFound"
10033
+ }
10034
+ }
10035
+ },
9988
10036
  "patch": {
9989
10037
  "tags": [
9990
10038
  "Platform"
@@ -10283,9 +10331,17 @@
10283
10331
  "content": {
10284
10332
  "application/json": {
10285
10333
  "schema": {
10286
- "type": "array",
10287
- "items": {
10288
- "$ref": "#/components/schemas/PlatformConnectedUserResponse"
10334
+ "type": "object",
10335
+ "required": [
10336
+ "users"
10337
+ ],
10338
+ "properties": {
10339
+ "users": {
10340
+ "type": "array",
10341
+ "items": {
10342
+ "$ref": "#/components/schemas/PlatformConnectedUserResponse"
10343
+ }
10344
+ }
10289
10345
  }
10290
10346
  }
10291
10347
  }
@@ -11302,7 +11358,7 @@
11302
11358
  "Platform"
11303
11359
  ],
11304
11360
  "summary": "Set per-user spend policy override",
11305
- "description": "Override the app-wide spend policy for a specific connected user. This\npolicy takes precedence over the app default. Remove by deleting the\nconnection-level policy.\n",
11361
+ "description": "Replace the per-user spend policy for a connected user (deactivates the\nprevious active row, then inserts). Requires plt_ platform auth.\nOptional `Idempotency-Key` header must cover the full request body — reusing\nthe same key with different parameters returns 409.\n",
11306
11362
  "operationId": "setUserSpendPolicy",
11307
11363
  "security": [
11308
11364
  {
@@ -11564,6 +11620,518 @@
11564
11620
  }
11565
11621
  }
11566
11622
  },
11623
+ "/v1/platform/connections/{connectionId}/pending-approvals/{approvalId}": {
11624
+ "get": {
11625
+ "tags": [
11626
+ "Platform"
11627
+ ],
11628
+ "summary": "Get a connection-scoped pending approval (with payload_hash)",
11629
+ "operationId": "getConnectionPendingApproval",
11630
+ "security": [
11631
+ {
11632
+ "BearerAuth": []
11633
+ }
11634
+ ],
11635
+ "parameters": [
11636
+ {
11637
+ "in": "path",
11638
+ "name": "connectionId",
11639
+ "required": true,
11640
+ "schema": {
11641
+ "type": "string",
11642
+ "format": "uuid"
11643
+ }
11644
+ },
11645
+ {
11646
+ "in": "path",
11647
+ "name": "approvalId",
11648
+ "required": true,
11649
+ "schema": {
11650
+ "type": "string",
11651
+ "format": "uuid"
11652
+ }
11653
+ }
11654
+ ],
11655
+ "responses": {
11656
+ "200": {
11657
+ "description": "Pending approval detail including action_payload and payload_hash",
11658
+ "content": {
11659
+ "application/json": {
11660
+ "schema": {
11661
+ "$ref": "#/components/schemas/PendingApprovalResponse"
11662
+ }
11663
+ }
11664
+ }
11665
+ },
11666
+ "404": {
11667
+ "$ref": "#/components/responses/NotFound"
11668
+ }
11669
+ }
11670
+ }
11671
+ },
11672
+ "/v1/platform/connections/{connectionId}/pending-approvals/{approvalId}/decide": {
11673
+ "post": {
11674
+ "tags": [
11675
+ "Platform"
11676
+ ],
11677
+ "summary": "Decide a pending approval for a connection user",
11678
+ "description": "Platform apps vote on behalf of the connected user after verifying intent\nout-of-band (e.g. wallet mandate). Requires `payload_hash` matching the\npending row. Accepts `decision`: `approve` or `reject` (aliases `approved` /\n`rejected`). plt_ auth only; scoped to agents on the connection.\n",
11679
+ "operationId": "decideConnectionPendingApproval",
11680
+ "security": [
11681
+ {
11682
+ "BearerAuth": []
11683
+ }
11684
+ ],
11685
+ "parameters": [
11686
+ {
11687
+ "in": "path",
11688
+ "name": "connectionId",
11689
+ "required": true,
11690
+ "schema": {
11691
+ "type": "string",
11692
+ "format": "uuid"
11693
+ }
11694
+ },
11695
+ {
11696
+ "in": "path",
11697
+ "name": "approvalId",
11698
+ "required": true,
11699
+ "schema": {
11700
+ "type": "string",
11701
+ "format": "uuid"
11702
+ }
11703
+ }
11704
+ ],
11705
+ "requestBody": {
11706
+ "required": true,
11707
+ "content": {
11708
+ "application/json": {
11709
+ "schema": {
11710
+ "$ref": "#/components/schemas/ApprovePendingApprovalRequest"
11711
+ }
11712
+ }
11713
+ }
11714
+ },
11715
+ "responses": {
11716
+ "200": {
11717
+ "description": "Updated pending approval",
11718
+ "content": {
11719
+ "application/json": {
11720
+ "schema": {
11721
+ "$ref": "#/components/schemas/PendingApprovalResponse"
11722
+ }
11723
+ }
11724
+ }
11725
+ },
11726
+ "400": {
11727
+ "$ref": "#/components/responses/BadRequest"
11728
+ },
11729
+ "403": {
11730
+ "$ref": "#/components/responses/Forbidden"
11731
+ },
11732
+ "404": {
11733
+ "$ref": "#/components/responses/NotFound"
11734
+ },
11735
+ "409": {
11736
+ "description": "Already voted"
11737
+ }
11738
+ }
11739
+ }
11740
+ },
11741
+ "/v1/platform/connections/{connectionId}/approvals/{approvalId}/decide": {
11742
+ "post": {
11743
+ "tags": [
11744
+ "Platform"
11745
+ ],
11746
+ "summary": "Decide a mobile/agent approval for a connection user",
11747
+ "description": "Platform apps decide agent approval requests on behalf of the connected user.\nAccepts `decision`: `approved` or `rejected` (aliases `approve` / `reject`).\nplt_ auth only.\n",
11748
+ "operationId": "decideConnectionApproval",
11749
+ "security": [
11750
+ {
11751
+ "BearerAuth": []
11752
+ }
11753
+ ],
11754
+ "parameters": [
11755
+ {
11756
+ "in": "path",
11757
+ "name": "connectionId",
11758
+ "required": true,
11759
+ "schema": {
11760
+ "type": "string",
11761
+ "format": "uuid"
11762
+ }
11763
+ },
11764
+ {
11765
+ "in": "path",
11766
+ "name": "approvalId",
11767
+ "required": true,
11768
+ "schema": {
11769
+ "type": "string",
11770
+ "format": "uuid"
11771
+ }
11772
+ }
11773
+ ],
11774
+ "requestBody": {
11775
+ "required": true,
11776
+ "content": {
11777
+ "application/json": {
11778
+ "schema": {
11779
+ "type": "object",
11780
+ "required": [
11781
+ "decision"
11782
+ ],
11783
+ "properties": {
11784
+ "decision": {
11785
+ "type": "string",
11786
+ "enum": [
11787
+ "approved",
11788
+ "rejected",
11789
+ "approve",
11790
+ "reject"
11791
+ ]
11792
+ },
11793
+ "reason": {
11794
+ "type": "string"
11795
+ }
11796
+ }
11797
+ }
11798
+ }
11799
+ }
11800
+ },
11801
+ "responses": {
11802
+ "200": {
11803
+ "description": "Decided approval",
11804
+ "content": {
11805
+ "application/json": {
11806
+ "schema": {
11807
+ "$ref": "#/components/schemas/ApprovalResponse"
11808
+ }
11809
+ }
11810
+ }
11811
+ },
11812
+ "403": {
11813
+ "$ref": "#/components/responses/Forbidden"
11814
+ },
11815
+ "404": {
11816
+ "$ref": "#/components/responses/NotFound"
11817
+ },
11818
+ "409": {
11819
+ "description": "Already decided"
11820
+ }
11821
+ }
11822
+ }
11823
+ },
11824
+ "/v1/platform/connections/{connectionId}/signing-keys/{chain}": {
11825
+ "delete": {
11826
+ "tags": [
11827
+ "Platform"
11828
+ ],
11829
+ "summary": "Deactivate a signing key for a connection agent",
11830
+ "description": "Deactivates the signing key for an agent provisioned on the connection.\nWhen multiple agents exist, pass `agent_id` query param. plt_ auth only.\n",
11831
+ "operationId": "deactivateConnectionSigningKey",
11832
+ "security": [
11833
+ {
11834
+ "BearerAuth": []
11835
+ }
11836
+ ],
11837
+ "parameters": [
11838
+ {
11839
+ "in": "path",
11840
+ "name": "connectionId",
11841
+ "required": true,
11842
+ "schema": {
11843
+ "type": "string",
11844
+ "format": "uuid"
11845
+ }
11846
+ },
11847
+ {
11848
+ "in": "path",
11849
+ "name": "chain",
11850
+ "required": true,
11851
+ "schema": {
11852
+ "type": "string"
11853
+ }
11854
+ },
11855
+ {
11856
+ "in": "query",
11857
+ "name": "agent_id",
11858
+ "required": false,
11859
+ "schema": {
11860
+ "type": "string",
11861
+ "format": "uuid"
11862
+ }
11863
+ }
11864
+ ],
11865
+ "responses": {
11866
+ "204": {
11867
+ "description": "Key deactivated"
11868
+ },
11869
+ "400": {
11870
+ "description": "Multiple agents — agent_id required"
11871
+ },
11872
+ "404": {
11873
+ "$ref": "#/components/responses/NotFound"
11874
+ }
11875
+ }
11876
+ }
11877
+ },
11878
+ "/v1/platform/connections/{connectionId}/runtimes": {
11879
+ "post": {
11880
+ "tags": [
11881
+ "Platform"
11882
+ ],
11883
+ "summary": "Create a runtime for a connection agent",
11884
+ "description": "Creates a Cloud Runtime in the end-user's org for an agent on this connection.\nUse instead of `POST /v1/runtimes` with a plt_ key (which resolves to the platform org).\nApp must verify user intent out-of-band (e.g. wallet mandate) before calling.\n",
11885
+ "operationId": "createConnectionRuntime",
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
+ "requestBody": {
11903
+ "required": true,
11904
+ "content": {
11905
+ "application/json": {
11906
+ "schema": {
11907
+ "$ref": "#/components/schemas/CreateConnectionRuntimeRequest"
11908
+ }
11909
+ }
11910
+ }
11911
+ },
11912
+ "responses": {
11913
+ "201": {
11914
+ "description": "Runtime created",
11915
+ "content": {
11916
+ "application/json": {
11917
+ "schema": {
11918
+ "$ref": "#/components/schemas/RuntimeResponse"
11919
+ }
11920
+ }
11921
+ }
11922
+ },
11923
+ "403": {
11924
+ "$ref": "#/components/responses/Forbidden"
11925
+ },
11926
+ "404": {
11927
+ "$ref": "#/components/responses/NotFound"
11928
+ }
11929
+ }
11930
+ }
11931
+ },
11932
+ "/v1/platform/connections/{connectionId}/runtimes/{runtimeId}": {
11933
+ "get": {
11934
+ "tags": [
11935
+ "Platform"
11936
+ ],
11937
+ "summary": "Get a connection runtime (plt_ scoped)",
11938
+ "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",
11939
+ "operationId": "getConnectionRuntime",
11940
+ "security": [
11941
+ {
11942
+ "BearerAuth": []
11943
+ }
11944
+ ],
11945
+ "parameters": [
11946
+ {
11947
+ "in": "path",
11948
+ "name": "connectionId",
11949
+ "required": true,
11950
+ "schema": {
11951
+ "type": "string",
11952
+ "format": "uuid"
11953
+ }
11954
+ },
11955
+ {
11956
+ "in": "path",
11957
+ "name": "runtimeId",
11958
+ "required": true,
11959
+ "schema": {
11960
+ "type": "string",
11961
+ "format": "uuid"
11962
+ }
11963
+ }
11964
+ ],
11965
+ "responses": {
11966
+ "200": {
11967
+ "description": "Runtime details",
11968
+ "content": {
11969
+ "application/json": {
11970
+ "schema": {
11971
+ "$ref": "#/components/schemas/RuntimeResponse"
11972
+ }
11973
+ }
11974
+ }
11975
+ },
11976
+ "404": {
11977
+ "$ref": "#/components/responses/NotFound"
11978
+ }
11979
+ }
11980
+ }
11981
+ },
11982
+ "/v1/platform/connections/{connectionId}/passkeys/enroll/begin": {
11983
+ "post": {
11984
+ "tags": [
11985
+ "Platform"
11986
+ ],
11987
+ "summary": "Begin passkey enrollment for a connected user",
11988
+ "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",
11989
+ "operationId": "connectionPasskeyEnrollBegin",
11990
+ "security": [
11991
+ {
11992
+ "BearerAuth": []
11993
+ }
11994
+ ],
11995
+ "parameters": [
11996
+ {
11997
+ "in": "path",
11998
+ "name": "connectionId",
11999
+ "required": true,
12000
+ "schema": {
12001
+ "type": "string",
12002
+ "format": "uuid"
12003
+ }
12004
+ }
12005
+ ],
12006
+ "responses": {
12007
+ "200": {
12008
+ "description": "WebAuthn registration ceremony options",
12009
+ "content": {
12010
+ "application/json": {
12011
+ "schema": {
12012
+ "$ref": "#/components/schemas/PasskeyRegisterBeginResponse"
12013
+ }
12014
+ }
12015
+ }
12016
+ },
12017
+ "404": {
12018
+ "$ref": "#/components/responses/NotFound"
12019
+ }
12020
+ }
12021
+ }
12022
+ },
12023
+ "/v1/platform/connections/{connectionId}/passkeys/enroll/complete": {
12024
+ "post": {
12025
+ "tags": [
12026
+ "Platform"
12027
+ ],
12028
+ "summary": "Complete passkey enrollment for a connected user",
12029
+ "operationId": "connectionPasskeyEnrollComplete",
12030
+ "security": [
12031
+ {
12032
+ "BearerAuth": []
12033
+ }
12034
+ ],
12035
+ "parameters": [
12036
+ {
12037
+ "in": "path",
12038
+ "name": "connectionId",
12039
+ "required": true,
12040
+ "schema": {
12041
+ "type": "string",
12042
+ "format": "uuid"
12043
+ }
12044
+ }
12045
+ ],
12046
+ "requestBody": {
12047
+ "required": true,
12048
+ "content": {
12049
+ "application/json": {
12050
+ "schema": {
12051
+ "$ref": "#/components/schemas/PasskeyRegisterCompleteRequest"
12052
+ }
12053
+ }
12054
+ }
12055
+ },
12056
+ "responses": {
12057
+ "201": {
12058
+ "description": "Passkey registered",
12059
+ "content": {
12060
+ "application/json": {
12061
+ "schema": {
12062
+ "$ref": "#/components/schemas/PasskeyRegisterCompleteResponse"
12063
+ }
12064
+ }
12065
+ }
12066
+ },
12067
+ "400": {
12068
+ "$ref": "#/components/responses/BadRequest"
12069
+ },
12070
+ "404": {
12071
+ "$ref": "#/components/responses/NotFound"
12072
+ }
12073
+ }
12074
+ }
12075
+ },
12076
+ "/v1/platform/connections/{connectionId}/agents/{agentId}/chat": {
12077
+ "post": {
12078
+ "tags": [
12079
+ "Platform"
12080
+ ],
12081
+ "summary": "Chat with a connection agent (plt_ scoped)",
12082
+ "description": "Send a chat message to an agent provisioned on this connection, acting as the\nconnected end-user. Use instead of `POST /v1/agents/{id}/chat` with a plt_ key.\n",
12083
+ "operationId": "connectionAgentChat",
12084
+ "security": [
12085
+ {
12086
+ "BearerAuth": []
12087
+ }
12088
+ ],
12089
+ "parameters": [
12090
+ {
12091
+ "in": "path",
12092
+ "name": "connectionId",
12093
+ "required": true,
12094
+ "schema": {
12095
+ "type": "string",
12096
+ "format": "uuid"
12097
+ }
12098
+ },
12099
+ {
12100
+ "in": "path",
12101
+ "name": "agentId",
12102
+ "required": true,
12103
+ "schema": {
12104
+ "type": "string",
12105
+ "format": "uuid"
12106
+ }
12107
+ }
12108
+ ],
12109
+ "requestBody": {
12110
+ "required": true,
12111
+ "content": {
12112
+ "application/json": {
12113
+ "schema": {
12114
+ "$ref": "#/components/schemas/SendChatMessageRequest"
12115
+ }
12116
+ }
12117
+ }
12118
+ },
12119
+ "responses": {
12120
+ "200": {
12121
+ "description": "Message sent (JSON or SSE stream)"
12122
+ },
12123
+ "402": {
12124
+ "description": "Payment required (LLM billing / inference allowance)"
12125
+ },
12126
+ "403": {
12127
+ "$ref": "#/components/responses/Forbidden"
12128
+ },
12129
+ "404": {
12130
+ "$ref": "#/components/responses/NotFound"
12131
+ }
12132
+ }
12133
+ }
12134
+ },
11567
12135
  "/v1/approvals": {
11568
12136
  "get": {
11569
12137
  "tags": [
@@ -14121,6 +14689,61 @@
14121
14689
  }
14122
14690
  }
14123
14691
  },
14692
+ "/v1/agents/{agent_id}/automations": {
14693
+ "post": {
14694
+ "tags": [
14695
+ "Automations"
14696
+ ],
14697
+ "summary": "Create agent automation (agent-only)",
14698
+ "operationId": "createAgentAutomation",
14699
+ "description": "Agent-scoped create for simple manual or webhook automations from chat/runtime tools.\nAllowed step types: log, notify, memory_get, memory_put, wait (max 10).\nCron, swap, http, and transaction steps require human dashboard setup.\nRequires agent JWT; agent_id in path must match the caller.\n",
14700
+ "parameters": [
14701
+ {
14702
+ "name": "agent_id",
14703
+ "in": "path",
14704
+ "required": true,
14705
+ "schema": {
14706
+ "type": "string",
14707
+ "format": "uuid"
14708
+ }
14709
+ }
14710
+ ],
14711
+ "requestBody": {
14712
+ "required": true,
14713
+ "content": {
14714
+ "application/json": {
14715
+ "schema": {
14716
+ "$ref": "#/components/schemas/AgentCreateAutomationRequest"
14717
+ }
14718
+ }
14719
+ }
14720
+ },
14721
+ "responses": {
14722
+ "201": {
14723
+ "description": "Automation created (includes one-time webhook credentials when trigger_type is webhook)",
14724
+ "content": {
14725
+ "application/json": {
14726
+ "schema": {
14727
+ "$ref": "#/components/schemas/AutomationCreatedResponse"
14728
+ }
14729
+ }
14730
+ }
14731
+ },
14732
+ "400": {
14733
+ "$ref": "#/components/responses/BadRequest"
14734
+ },
14735
+ "401": {
14736
+ "$ref": "#/components/responses/Unauthorized"
14737
+ },
14738
+ "403": {
14739
+ "$ref": "#/components/responses/Forbidden"
14740
+ },
14741
+ "404": {
14742
+ "$ref": "#/components/responses/NotFound"
14743
+ }
14744
+ }
14745
+ }
14746
+ },
14124
14747
  "/v1/runtimes": {
14125
14748
  "post": {
14126
14749
  "tags": [
@@ -20077,6 +20700,10 @@
20077
20700
  "shroud_config": {
20078
20701
  "$ref": "#/components/schemas/ShroudConfig"
20079
20702
  },
20703
+ "system_prompt": {
20704
+ "type": "string",
20705
+ "description": "Default system prompt for agent chat when requests do not override it."
20706
+ },
20080
20707
  "execution_intents_enabled": {
20081
20708
  "type": "boolean",
20082
20709
  "default": false,
@@ -20343,6 +20970,11 @@
20343
20970
  "shroud_config": {
20344
20971
  "$ref": "#/components/schemas/ShroudConfig"
20345
20972
  },
20973
+ "system_prompt": {
20974
+ "type": "string",
20975
+ "nullable": true,
20976
+ "description": "Default system prompt for agent chat (null clears)."
20977
+ },
20346
20978
  "execution_intents_enabled": {
20347
20979
  "type": "boolean",
20348
20980
  "description": "Enable/disable Execution Intents for this agent"
@@ -20686,6 +21318,10 @@
20686
21318
  "shroud_config": {
20687
21319
  "$ref": "#/components/schemas/ShroudConfig"
20688
21320
  },
21321
+ "system_prompt": {
21322
+ "type": "string",
21323
+ "description": "Default system prompt for agent chat when requests do not override it."
21324
+ },
20689
21325
  "execution_intents_enabled": {
20690
21326
  "type": "boolean",
20691
21327
  "description": "Whether Execution Intents (bindings and execute endpoint) are enabled for this agent"
@@ -26788,6 +27424,11 @@
26788
27424
  "entitlement_status": {
26789
27425
  "type": "string"
26790
27426
  },
27427
+ "provisioned_tier": {
27428
+ "type": "string",
27429
+ "nullable": true,
27430
+ "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"
27431
+ },
26791
27432
  "wallet_address": {
26792
27433
  "type": "string",
26793
27434
  "nullable": true
@@ -26806,6 +27447,20 @@
26806
27447
  "format": "uuid"
26807
27448
  }
26808
27449
  },
27450
+ "runtime_ids": {
27451
+ "type": "array",
27452
+ "items": {
27453
+ "type": "string",
27454
+ "format": "uuid"
27455
+ }
27456
+ },
27457
+ "automation_ids": {
27458
+ "type": "array",
27459
+ "items": {
27460
+ "type": "string",
27461
+ "format": "uuid"
27462
+ }
27463
+ },
26809
27464
  "claimed_at": {
26810
27465
  "type": "string",
26811
27466
  "format": "date-time",
@@ -27182,6 +27837,84 @@
27182
27837
  }
27183
27838
  }
27184
27839
  },
27840
+ "PasskeyRegisterBeginResponse": {
27841
+ "type": "object",
27842
+ "properties": {
27843
+ "challenge": {
27844
+ "type": "string"
27845
+ },
27846
+ "rp_id": {
27847
+ "type": "string"
27848
+ },
27849
+ "rp_name": {
27850
+ "type": "string"
27851
+ },
27852
+ "user_id": {
27853
+ "type": "string"
27854
+ },
27855
+ "user_name": {
27856
+ "type": "string"
27857
+ },
27858
+ "user_display_name": {
27859
+ "type": "string"
27860
+ },
27861
+ "attestation": {
27862
+ "type": "string"
27863
+ },
27864
+ "authenticator_selection": {
27865
+ "type": "object"
27866
+ },
27867
+ "pub_key_cred_params": {
27868
+ "type": "array",
27869
+ "items": {
27870
+ "type": "object"
27871
+ }
27872
+ }
27873
+ }
27874
+ },
27875
+ "PasskeyRegisterCompleteRequest": {
27876
+ "type": "object",
27877
+ "required": [
27878
+ "credential_id",
27879
+ "attestation_object",
27880
+ "client_data_json"
27881
+ ],
27882
+ "properties": {
27883
+ "credential_id": {
27884
+ "type": "string"
27885
+ },
27886
+ "attestation_object": {
27887
+ "type": "string"
27888
+ },
27889
+ "client_data_json": {
27890
+ "type": "string"
27891
+ },
27892
+ "transports": {
27893
+ "type": "array",
27894
+ "items": {
27895
+ "type": "string"
27896
+ }
27897
+ },
27898
+ "name": {
27899
+ "type": "string"
27900
+ }
27901
+ }
27902
+ },
27903
+ "PasskeyRegisterCompleteResponse": {
27904
+ "type": "object",
27905
+ "properties": {
27906
+ "passkey_id": {
27907
+ "type": "string",
27908
+ "format": "uuid"
27909
+ },
27910
+ "credential_id": {
27911
+ "type": "string"
27912
+ },
27913
+ "name": {
27914
+ "type": "string"
27915
+ }
27916
+ }
27917
+ },
27185
27918
  "PasskeyTxAssertBeginRequest": {
27186
27919
  "type": "object",
27187
27920
  "required": [
@@ -28137,6 +28870,48 @@
28137
28870
  }
28138
28871
  }
28139
28872
  },
28873
+ "AgentCreateAutomationRequest": {
28874
+ "type": "object",
28875
+ "required": [
28876
+ "name",
28877
+ "workflow_spec"
28878
+ ],
28879
+ "description": "Agent-scoped automation create. Defaults to manual trigger.\nworkflow_spec must use only agent-allowed step types (log, notify, memory_get, memory_put, wait).\n",
28880
+ "properties": {
28881
+ "name": {
28882
+ "type": "string",
28883
+ "maxLength": 128
28884
+ },
28885
+ "trigger_type": {
28886
+ "type": "string",
28887
+ "enum": [
28888
+ "manual",
28889
+ "webhook"
28890
+ ],
28891
+ "default": "manual"
28892
+ },
28893
+ "workflow_spec": {
28894
+ "oneOf": [
28895
+ {
28896
+ "type": "array",
28897
+ "items": {
28898
+ "type": "object",
28899
+ "additionalProperties": true
28900
+ }
28901
+ },
28902
+ {
28903
+ "type": "object",
28904
+ "additionalProperties": true
28905
+ }
28906
+ ]
28907
+ },
28908
+ "auto_trigger": {
28909
+ "type": "boolean",
28910
+ "default": false,
28911
+ "description": "When true (manual trigger only), start a run immediately after creation"
28912
+ }
28913
+ }
28914
+ },
28140
28915
  "UpdateAutomationRequest": {
28141
28916
  "type": "object",
28142
28917
  "properties": {
@@ -28269,6 +29044,14 @@
28269
29044
  "nullable": true,
28270
29045
  "description": "Resolved agent display name (enriched list field)"
28271
29046
  },
29047
+ "created_by_type": {
29048
+ "type": "string",
29049
+ "enum": [
29050
+ "user",
29051
+ "agent"
29052
+ ],
29053
+ "description": "Whether the automation was created by a human or agent (chat-native create)"
29054
+ },
28272
29055
  "created_at": {
28273
29056
  "type": "string",
28274
29057
  "format": "date-time"
@@ -28498,6 +29281,48 @@
28498
29281
  }
28499
29282
  }
28500
29283
  },
29284
+ "CreateConnectionRuntimeRequest": {
29285
+ "type": "object",
29286
+ "required": [
29287
+ "name"
29288
+ ],
29289
+ "properties": {
29290
+ "name": {
29291
+ "type": "string"
29292
+ },
29293
+ "agent_id": {
29294
+ "type": "string",
29295
+ "format": "uuid",
29296
+ "description": "Required when multiple agents on the connection; defaults to sole agent"
29297
+ },
29298
+ "template": {
29299
+ "type": "string"
29300
+ },
29301
+ "preset": {
29302
+ "type": "string",
29303
+ "default": "medium"
29304
+ },
29305
+ "env_public": {
29306
+ "type": "object",
29307
+ "additionalProperties": true
29308
+ },
29309
+ "idle_timeout_secs": {
29310
+ "type": "integer"
29311
+ },
29312
+ "expose_http": {
29313
+ "type": "boolean"
29314
+ },
29315
+ "slug": {
29316
+ "type": "string"
29317
+ },
29318
+ "inbound_auth": {
29319
+ "type": "string"
29320
+ },
29321
+ "startup_command": {
29322
+ "type": "string"
29323
+ }
29324
+ }
29325
+ },
28501
29326
  "CreateRuntimeRequest": {
28502
29327
  "type": "object",
28503
29328
  "required": [
@@ -29184,12 +30009,10 @@
29184
30009
  },
29185
30010
  "SendChatMessageRequest": {
29186
30011
  "type": "object",
29187
- "required": [
29188
- "message"
29189
- ],
29190
30012
  "properties": {
29191
30013
  "message": {
29192
- "type": "string"
30014
+ "type": "string",
30015
+ "description": "User message text. Optional when `messages` includes a user turn."
29193
30016
  },
29194
30017
  "conversation_id": {
29195
30018
  "type": "string",
@@ -29205,6 +30028,40 @@
29205
30028
  "type": "string"
29206
30029
  },
29207
30030
  "system_prompt": {
30031
+ "type": "string",
30032
+ "description": "Stored on new conversations when `conversation_id` is omitted."
30033
+ },
30034
+ "system": {
30035
+ "type": "string",
30036
+ "description": "Per-request system prompt alias (same precedence as `system_prompt_override`)."
30037
+ },
30038
+ "system_prompt_override": {
30039
+ "type": "string",
30040
+ "description": "Per-request override; highest precedence except inline `messages` system role."
30041
+ },
30042
+ "messages": {
30043
+ "type": "array",
30044
+ "description": "Optional OpenAI-shaped history. When set, used for LLM context instead of DB history.",
30045
+ "items": {
30046
+ "type": "object",
30047
+ "required": [
30048
+ "role",
30049
+ "content"
30050
+ ],
30051
+ "properties": {
30052
+ "role": {
30053
+ "type": "string"
30054
+ },
30055
+ "content": {
30056
+ "type": "string"
30057
+ }
30058
+ }
30059
+ }
30060
+ },
30061
+ "llm_api_key_vault_id": {
30062
+ "type": "string"
30063
+ },
30064
+ "llm_api_key_path": {
29208
30065
  "type": "string"
29209
30066
  }
29210
30067
  }
@@ -31272,7 +32129,9 @@
31272
32129
  "type": "string",
31273
32130
  "enum": [
31274
32131
  "approve",
31275
- "reject"
32132
+ "reject",
32133
+ "approved",
32134
+ "rejected"
31276
32135
  ]
31277
32136
  },
31278
32137
  "payload_hash": {