@1claw/openapi-spec 0.43.0 → 0.43.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/openapi.json +568 -92
- package/openapi.yaml +379 -69
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "1Claw API",
|
|
5
|
-
"version": "2.
|
|
6
|
-
"description": "Secure secret management for AI agents. Provides vaults, secrets,\npolicy-based access control, agent identity, Intents API,\nsharing, billing, and audit logging. Automations, cloud runtimes
|
|
5
|
+
"version": "2.31.0",
|
|
6
|
+
"description": "Secure secret management for AI agents. Provides vaults, secrets,\npolicy-based access control, agent identity, Intents API,\nsharing, billing, and audit logging. Automations (workflow_spec,\nwebhook tokens, event triggers, Assist), cloud runtimes with\ninteractive shell sessions, agent memory, and discovery.\n\nAll endpoints require JWT Bearer authentication unless marked with\n`security: []`.\n",
|
|
7
7
|
"contact": {
|
|
8
8
|
"email": "ops@1claw.xyz"
|
|
9
9
|
}
|
|
@@ -10400,11 +10400,11 @@
|
|
|
10400
10400
|
},
|
|
10401
10401
|
"responses": {
|
|
10402
10402
|
"201": {
|
|
10403
|
-
"description": "Automation created",
|
|
10403
|
+
"description": "Automation created (includes one-time webhook credentials when trigger_type is webhook)",
|
|
10404
10404
|
"content": {
|
|
10405
10405
|
"application/json": {
|
|
10406
10406
|
"schema": {
|
|
10407
|
-
"$ref": "#/components/schemas/
|
|
10407
|
+
"$ref": "#/components/schemas/AutomationCreatedResponse"
|
|
10408
10408
|
}
|
|
10409
10409
|
}
|
|
10410
10410
|
}
|
|
@@ -10648,6 +10648,183 @@
|
|
|
10648
10648
|
}
|
|
10649
10649
|
}
|
|
10650
10650
|
},
|
|
10651
|
+
"/v1/automations/assist/draft": {
|
|
10652
|
+
"post": {
|
|
10653
|
+
"tags": [
|
|
10654
|
+
"Automations"
|
|
10655
|
+
],
|
|
10656
|
+
"summary": "Draft automation from natural language",
|
|
10657
|
+
"operationId": "assistDraftAutomation",
|
|
10658
|
+
"requestBody": {
|
|
10659
|
+
"required": true,
|
|
10660
|
+
"content": {
|
|
10661
|
+
"application/json": {
|
|
10662
|
+
"schema": {
|
|
10663
|
+
"type": "object",
|
|
10664
|
+
"required": [
|
|
10665
|
+
"message"
|
|
10666
|
+
],
|
|
10667
|
+
"properties": {
|
|
10668
|
+
"message": {
|
|
10669
|
+
"type": "string"
|
|
10670
|
+
},
|
|
10671
|
+
"agent_id": {
|
|
10672
|
+
"type": "string",
|
|
10673
|
+
"format": "uuid"
|
|
10674
|
+
},
|
|
10675
|
+
"timezone": {
|
|
10676
|
+
"type": "string"
|
|
10677
|
+
}
|
|
10678
|
+
}
|
|
10679
|
+
}
|
|
10680
|
+
}
|
|
10681
|
+
}
|
|
10682
|
+
},
|
|
10683
|
+
"responses": {
|
|
10684
|
+
"200": {
|
|
10685
|
+
"description": "Reviewable automation draft",
|
|
10686
|
+
"content": {
|
|
10687
|
+
"application/json": {
|
|
10688
|
+
"schema": {
|
|
10689
|
+
"$ref": "#/components/schemas/AssistDraftResponse"
|
|
10690
|
+
}
|
|
10691
|
+
}
|
|
10692
|
+
}
|
|
10693
|
+
},
|
|
10694
|
+
"401": {
|
|
10695
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10696
|
+
}
|
|
10697
|
+
}
|
|
10698
|
+
}
|
|
10699
|
+
},
|
|
10700
|
+
"/v1/automations/assist/session": {
|
|
10701
|
+
"post": {
|
|
10702
|
+
"tags": [
|
|
10703
|
+
"Automations"
|
|
10704
|
+
],
|
|
10705
|
+
"summary": "Mint short-lived Assist session token",
|
|
10706
|
+
"operationId": "assistAutomationSession",
|
|
10707
|
+
"requestBody": {
|
|
10708
|
+
"content": {
|
|
10709
|
+
"application/json": {
|
|
10710
|
+
"schema": {
|
|
10711
|
+
"type": "object",
|
|
10712
|
+
"properties": {
|
|
10713
|
+
"runtime_id": {
|
|
10714
|
+
"type": "string",
|
|
10715
|
+
"format": "uuid"
|
|
10716
|
+
}
|
|
10717
|
+
}
|
|
10718
|
+
}
|
|
10719
|
+
}
|
|
10720
|
+
}
|
|
10721
|
+
},
|
|
10722
|
+
"responses": {
|
|
10723
|
+
"200": {
|
|
10724
|
+
"description": "Assist session token",
|
|
10725
|
+
"content": {
|
|
10726
|
+
"application/json": {
|
|
10727
|
+
"schema": {
|
|
10728
|
+
"$ref": "#/components/schemas/AssistSessionResponse"
|
|
10729
|
+
}
|
|
10730
|
+
}
|
|
10731
|
+
}
|
|
10732
|
+
},
|
|
10733
|
+
"401": {
|
|
10734
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10735
|
+
}
|
|
10736
|
+
}
|
|
10737
|
+
}
|
|
10738
|
+
},
|
|
10739
|
+
"/v1/automations/webhook/{automationId}/{token}": {
|
|
10740
|
+
"post": {
|
|
10741
|
+
"tags": [
|
|
10742
|
+
"Automations"
|
|
10743
|
+
],
|
|
10744
|
+
"summary": "Public webhook trigger",
|
|
10745
|
+
"operationId": "webhookTriggerAutomation",
|
|
10746
|
+
"security": [],
|
|
10747
|
+
"parameters": [
|
|
10748
|
+
{
|
|
10749
|
+
"name": "automationId",
|
|
10750
|
+
"in": "path",
|
|
10751
|
+
"required": true,
|
|
10752
|
+
"schema": {
|
|
10753
|
+
"type": "string",
|
|
10754
|
+
"format": "uuid"
|
|
10755
|
+
}
|
|
10756
|
+
},
|
|
10757
|
+
{
|
|
10758
|
+
"name": "token",
|
|
10759
|
+
"in": "path",
|
|
10760
|
+
"required": true,
|
|
10761
|
+
"schema": {
|
|
10762
|
+
"type": "string",
|
|
10763
|
+
"description": "whk_ prefixed webhook token (SHA-256 verified server-side)"
|
|
10764
|
+
}
|
|
10765
|
+
}
|
|
10766
|
+
],
|
|
10767
|
+
"responses": {
|
|
10768
|
+
"201": {
|
|
10769
|
+
"description": "Automation run queued",
|
|
10770
|
+
"content": {
|
|
10771
|
+
"application/json": {
|
|
10772
|
+
"schema": {
|
|
10773
|
+
"$ref": "#/components/schemas/AutomationRunResponse"
|
|
10774
|
+
}
|
|
10775
|
+
}
|
|
10776
|
+
}
|
|
10777
|
+
},
|
|
10778
|
+
"401": {
|
|
10779
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10780
|
+
},
|
|
10781
|
+
"404": {
|
|
10782
|
+
"$ref": "#/components/responses/NotFound"
|
|
10783
|
+
}
|
|
10784
|
+
}
|
|
10785
|
+
}
|
|
10786
|
+
},
|
|
10787
|
+
"/v1/automations/{automationId}/rotate-webhook-token": {
|
|
10788
|
+
"post": {
|
|
10789
|
+
"tags": [
|
|
10790
|
+
"Automations"
|
|
10791
|
+
],
|
|
10792
|
+
"summary": "Rotate webhook token",
|
|
10793
|
+
"operationId": "rotateAutomationWebhookToken",
|
|
10794
|
+
"parameters": [
|
|
10795
|
+
{
|
|
10796
|
+
"name": "automationId",
|
|
10797
|
+
"in": "path",
|
|
10798
|
+
"required": true,
|
|
10799
|
+
"schema": {
|
|
10800
|
+
"type": "string",
|
|
10801
|
+
"format": "uuid"
|
|
10802
|
+
}
|
|
10803
|
+
}
|
|
10804
|
+
],
|
|
10805
|
+
"responses": {
|
|
10806
|
+
"200": {
|
|
10807
|
+
"description": "New one-time webhook URL and token",
|
|
10808
|
+
"content": {
|
|
10809
|
+
"application/json": {
|
|
10810
|
+
"schema": {
|
|
10811
|
+
"$ref": "#/components/schemas/WebhookTokenRotatedResponse"
|
|
10812
|
+
}
|
|
10813
|
+
}
|
|
10814
|
+
}
|
|
10815
|
+
},
|
|
10816
|
+
"400": {
|
|
10817
|
+
"$ref": "#/components/responses/BadRequest"
|
|
10818
|
+
},
|
|
10819
|
+
"401": {
|
|
10820
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10821
|
+
},
|
|
10822
|
+
"404": {
|
|
10823
|
+
"$ref": "#/components/responses/NotFound"
|
|
10824
|
+
}
|
|
10825
|
+
}
|
|
10826
|
+
}
|
|
10827
|
+
},
|
|
10651
10828
|
"/v1/runtimes": {
|
|
10652
10829
|
"post": {
|
|
10653
10830
|
"tags": [
|
|
@@ -10917,21 +11094,13 @@
|
|
|
10917
11094
|
}
|
|
10918
11095
|
},
|
|
10919
11096
|
{
|
|
10920
|
-
"name": "
|
|
10921
|
-
"in": "query",
|
|
10922
|
-
"schema": {
|
|
10923
|
-
"type": "string",
|
|
10924
|
-
"format": "date-time"
|
|
10925
|
-
},
|
|
10926
|
-
"description": "Only return logs after this timestamp"
|
|
10927
|
-
},
|
|
10928
|
-
{
|
|
10929
|
-
"name": "limit",
|
|
11097
|
+
"name": "tail",
|
|
10930
11098
|
"in": "query",
|
|
10931
11099
|
"schema": {
|
|
10932
11100
|
"type": "integer",
|
|
10933
11101
|
"default": 100
|
|
10934
|
-
}
|
|
11102
|
+
},
|
|
11103
|
+
"description": "Number of recent log lines to return"
|
|
10935
11104
|
}
|
|
10936
11105
|
],
|
|
10937
11106
|
"responses": {
|
|
@@ -10941,11 +11110,17 @@
|
|
|
10941
11110
|
"application/json": {
|
|
10942
11111
|
"schema": {
|
|
10943
11112
|
"type": "object",
|
|
11113
|
+
"required": [
|
|
11114
|
+
"entries"
|
|
11115
|
+
],
|
|
10944
11116
|
"properties": {
|
|
10945
|
-
"
|
|
11117
|
+
"entries": {
|
|
10946
11118
|
"type": "array",
|
|
10947
11119
|
"items": {
|
|
10948
11120
|
"type": "object",
|
|
11121
|
+
"required": [
|
|
11122
|
+
"message"
|
|
11123
|
+
],
|
|
10949
11124
|
"properties": {
|
|
10950
11125
|
"timestamp": {
|
|
10951
11126
|
"type": "string",
|
|
@@ -11008,6 +11183,104 @@
|
|
|
11008
11183
|
}
|
|
11009
11184
|
}
|
|
11010
11185
|
},
|
|
11186
|
+
"/v1/runtimes/{runtimeId}/shell/session": {
|
|
11187
|
+
"post": {
|
|
11188
|
+
"tags": [
|
|
11189
|
+
"Runtimes"
|
|
11190
|
+
],
|
|
11191
|
+
"summary": "Create interactive shell session",
|
|
11192
|
+
"description": "Human-only. Creates a short-lived WebSocket session token for the\nruntime's PTY terminal. Requires step-up auth via `password`,\n`totp_code`, `passkey_credential`, or `reauth_token` (from\n`POST /v1/auth/reauth` with purpose `runtime_shell`).\nRuntime must have `shell_access_enabled` and be running.\nEnabling shell on a running runtime may require stop/start, or\nthe server may auto-reconcile the sidecar on connect.\n",
|
|
11193
|
+
"operationId": "createShellSession",
|
|
11194
|
+
"parameters": [
|
|
11195
|
+
{
|
|
11196
|
+
"name": "runtimeId",
|
|
11197
|
+
"in": "path",
|
|
11198
|
+
"required": true,
|
|
11199
|
+
"schema": {
|
|
11200
|
+
"type": "string",
|
|
11201
|
+
"format": "uuid"
|
|
11202
|
+
}
|
|
11203
|
+
}
|
|
11204
|
+
],
|
|
11205
|
+
"requestBody": {
|
|
11206
|
+
"required": true,
|
|
11207
|
+
"content": {
|
|
11208
|
+
"application/json": {
|
|
11209
|
+
"schema": {
|
|
11210
|
+
"$ref": "#/components/schemas/ShellSessionRequest"
|
|
11211
|
+
}
|
|
11212
|
+
}
|
|
11213
|
+
}
|
|
11214
|
+
},
|
|
11215
|
+
"responses": {
|
|
11216
|
+
"200": {
|
|
11217
|
+
"description": "Shell session created",
|
|
11218
|
+
"content": {
|
|
11219
|
+
"application/json": {
|
|
11220
|
+
"schema": {
|
|
11221
|
+
"$ref": "#/components/schemas/ShellSessionResponse"
|
|
11222
|
+
}
|
|
11223
|
+
}
|
|
11224
|
+
}
|
|
11225
|
+
},
|
|
11226
|
+
"400": {
|
|
11227
|
+
"$ref": "#/components/responses/BadRequest"
|
|
11228
|
+
},
|
|
11229
|
+
"401": {
|
|
11230
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
11231
|
+
},
|
|
11232
|
+
"403": {
|
|
11233
|
+
"$ref": "#/components/responses/Forbidden"
|
|
11234
|
+
},
|
|
11235
|
+
"404": {
|
|
11236
|
+
"$ref": "#/components/responses/NotFound"
|
|
11237
|
+
}
|
|
11238
|
+
}
|
|
11239
|
+
}
|
|
11240
|
+
},
|
|
11241
|
+
"/v1/runtimes/{runtimeId}/shell/passkey/begin": {
|
|
11242
|
+
"post": {
|
|
11243
|
+
"tags": [
|
|
11244
|
+
"Runtimes"
|
|
11245
|
+
],
|
|
11246
|
+
"summary": "Begin shell passkey assertion",
|
|
11247
|
+
"description": "Human-only. Starts a WebAuthn assertion ceremony for shell\nstep-up auth (social/Google users without a password).\n",
|
|
11248
|
+
"operationId": "beginShellPasskey",
|
|
11249
|
+
"parameters": [
|
|
11250
|
+
{
|
|
11251
|
+
"name": "runtimeId",
|
|
11252
|
+
"in": "path",
|
|
11253
|
+
"required": true,
|
|
11254
|
+
"schema": {
|
|
11255
|
+
"type": "string",
|
|
11256
|
+
"format": "uuid"
|
|
11257
|
+
}
|
|
11258
|
+
}
|
|
11259
|
+
],
|
|
11260
|
+
"responses": {
|
|
11261
|
+
"200": {
|
|
11262
|
+
"description": "Passkey challenge for shell session",
|
|
11263
|
+
"content": {
|
|
11264
|
+
"application/json": {
|
|
11265
|
+
"schema": {
|
|
11266
|
+
"type": "object",
|
|
11267
|
+
"additionalProperties": true
|
|
11268
|
+
}
|
|
11269
|
+
}
|
|
11270
|
+
}
|
|
11271
|
+
},
|
|
11272
|
+
"401": {
|
|
11273
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
11274
|
+
},
|
|
11275
|
+
"403": {
|
|
11276
|
+
"$ref": "#/components/responses/Forbidden"
|
|
11277
|
+
},
|
|
11278
|
+
"404": {
|
|
11279
|
+
"$ref": "#/components/responses/NotFound"
|
|
11280
|
+
}
|
|
11281
|
+
}
|
|
11282
|
+
}
|
|
11283
|
+
},
|
|
11011
11284
|
"/v1/agents/{agent_id}/memory": {
|
|
11012
11285
|
"get": {
|
|
11013
11286
|
"tags": [
|
|
@@ -19949,42 +20222,61 @@
|
|
|
19949
20222
|
"CreateAutomationRequest": {
|
|
19950
20223
|
"type": "object",
|
|
19951
20224
|
"required": [
|
|
19952
|
-
"name"
|
|
20225
|
+
"name",
|
|
20226
|
+
"agent_id",
|
|
20227
|
+
"trigger_type",
|
|
20228
|
+
"workflow_spec"
|
|
19953
20229
|
],
|
|
20230
|
+
"description": "Create an automation. `workflow_spec` is required and must be either\na JSON array of steps or `{ \"steps\": [...] }`. Dashboard `schedule`\ntrigger_type is accepted and normalized to `cron`. For cron triggers,\n`cron_expr` is required.\n",
|
|
19954
20231
|
"properties": {
|
|
19955
20232
|
"name": {
|
|
19956
20233
|
"type": "string"
|
|
19957
20234
|
},
|
|
19958
|
-
"description": {
|
|
19959
|
-
"type": "string"
|
|
19960
|
-
},
|
|
19961
20235
|
"agent_id": {
|
|
19962
20236
|
"type": "string",
|
|
19963
20237
|
"format": "uuid"
|
|
19964
20238
|
},
|
|
19965
20239
|
"trigger_type": {
|
|
19966
20240
|
"type": "string",
|
|
20241
|
+
"description": "cron | event | webhook | manual (alias schedule → cron)",
|
|
19967
20242
|
"enum": [
|
|
19968
|
-
"
|
|
19969
|
-
"webhook",
|
|
20243
|
+
"cron",
|
|
19970
20244
|
"event",
|
|
19971
|
-
"
|
|
20245
|
+
"webhook",
|
|
20246
|
+
"manual",
|
|
20247
|
+
"schedule"
|
|
19972
20248
|
]
|
|
19973
20249
|
},
|
|
19974
|
-
"
|
|
19975
|
-
"type": "
|
|
19976
|
-
"
|
|
20250
|
+
"cron_expr": {
|
|
20251
|
+
"type": "string",
|
|
20252
|
+
"description": "Required when trigger_type is cron (or schedule)",
|
|
20253
|
+
"example": "0 */6 * * *"
|
|
19977
20254
|
},
|
|
19978
|
-
"
|
|
19979
|
-
"type": "string"
|
|
20255
|
+
"timezone": {
|
|
20256
|
+
"type": "string",
|
|
20257
|
+
"default": "UTC",
|
|
20258
|
+
"example": "UTC"
|
|
19980
20259
|
},
|
|
19981
|
-
"
|
|
20260
|
+
"event_filter": {
|
|
19982
20261
|
"type": "object",
|
|
19983
|
-
"additionalProperties": true
|
|
20262
|
+
"additionalProperties": true,
|
|
20263
|
+
"nullable": true
|
|
19984
20264
|
},
|
|
19985
|
-
"
|
|
19986
|
-
"
|
|
19987
|
-
"
|
|
20265
|
+
"workflow_spec": {
|
|
20266
|
+
"description": "Workflow steps. Accepts a bare array `[...]` or\n`{ \"steps\": [...] }` (dashboard / preset shape).\n",
|
|
20267
|
+
"oneOf": [
|
|
20268
|
+
{
|
|
20269
|
+
"type": "array",
|
|
20270
|
+
"items": {
|
|
20271
|
+
"type": "object",
|
|
20272
|
+
"additionalProperties": true
|
|
20273
|
+
}
|
|
20274
|
+
},
|
|
20275
|
+
{
|
|
20276
|
+
"type": "object",
|
|
20277
|
+
"additionalProperties": true
|
|
20278
|
+
}
|
|
20279
|
+
]
|
|
19988
20280
|
}
|
|
19989
20281
|
}
|
|
19990
20282
|
},
|
|
@@ -19994,32 +20286,32 @@
|
|
|
19994
20286
|
"name": {
|
|
19995
20287
|
"type": "string"
|
|
19996
20288
|
},
|
|
19997
|
-
"
|
|
19998
|
-
"type": "string"
|
|
19999
|
-
},
|
|
20000
|
-
"agent_id": {
|
|
20001
|
-
"type": "string",
|
|
20002
|
-
"format": "uuid"
|
|
20003
|
-
},
|
|
20004
|
-
"trigger_type": {
|
|
20289
|
+
"cron_expr": {
|
|
20005
20290
|
"type": "string",
|
|
20006
|
-
"
|
|
20007
|
-
"schedule",
|
|
20008
|
-
"webhook",
|
|
20009
|
-
"event",
|
|
20010
|
-
"manual"
|
|
20011
|
-
]
|
|
20012
|
-
},
|
|
20013
|
-
"trigger_config": {
|
|
20014
|
-
"type": "object",
|
|
20015
|
-
"additionalProperties": true
|
|
20291
|
+
"nullable": true
|
|
20016
20292
|
},
|
|
20017
|
-
"
|
|
20293
|
+
"timezone": {
|
|
20018
20294
|
"type": "string"
|
|
20019
20295
|
},
|
|
20020
|
-
"
|
|
20296
|
+
"event_filter": {
|
|
20021
20297
|
"type": "object",
|
|
20022
|
-
"additionalProperties": true
|
|
20298
|
+
"additionalProperties": true,
|
|
20299
|
+
"nullable": true
|
|
20300
|
+
},
|
|
20301
|
+
"workflow_spec": {
|
|
20302
|
+
"oneOf": [
|
|
20303
|
+
{
|
|
20304
|
+
"type": "array",
|
|
20305
|
+
"items": {
|
|
20306
|
+
"type": "object",
|
|
20307
|
+
"additionalProperties": true
|
|
20308
|
+
}
|
|
20309
|
+
},
|
|
20310
|
+
{
|
|
20311
|
+
"type": "object",
|
|
20312
|
+
"additionalProperties": true
|
|
20313
|
+
}
|
|
20314
|
+
]
|
|
20023
20315
|
},
|
|
20024
20316
|
"is_active": {
|
|
20025
20317
|
"type": "boolean"
|
|
@@ -20030,8 +20322,11 @@
|
|
|
20030
20322
|
"type": "object",
|
|
20031
20323
|
"required": [
|
|
20032
20324
|
"id",
|
|
20325
|
+
"agent_id",
|
|
20033
20326
|
"name",
|
|
20034
20327
|
"trigger_type",
|
|
20328
|
+
"timezone",
|
|
20329
|
+
"workflow_spec",
|
|
20035
20330
|
"is_active",
|
|
20036
20331
|
"created_at",
|
|
20037
20332
|
"updated_at"
|
|
@@ -20041,58 +20336,58 @@
|
|
|
20041
20336
|
"type": "string",
|
|
20042
20337
|
"format": "uuid"
|
|
20043
20338
|
},
|
|
20044
|
-
"name": {
|
|
20045
|
-
"type": "string"
|
|
20046
|
-
},
|
|
20047
|
-
"description": {
|
|
20048
|
-
"type": "string",
|
|
20049
|
-
"nullable": true
|
|
20050
|
-
},
|
|
20051
20339
|
"agent_id": {
|
|
20052
20340
|
"type": "string",
|
|
20053
|
-
"format": "uuid"
|
|
20054
|
-
|
|
20341
|
+
"format": "uuid"
|
|
20342
|
+
},
|
|
20343
|
+
"name": {
|
|
20344
|
+
"type": "string"
|
|
20055
20345
|
},
|
|
20056
20346
|
"trigger_type": {
|
|
20057
20347
|
"type": "string",
|
|
20058
20348
|
"enum": [
|
|
20059
|
-
"
|
|
20060
|
-
"webhook",
|
|
20349
|
+
"cron",
|
|
20061
20350
|
"event",
|
|
20351
|
+
"webhook",
|
|
20062
20352
|
"manual"
|
|
20063
20353
|
]
|
|
20064
20354
|
},
|
|
20065
|
-
"
|
|
20066
|
-
"type": "object",
|
|
20067
|
-
"additionalProperties": true,
|
|
20068
|
-
"nullable": true
|
|
20069
|
-
},
|
|
20070
|
-
"action_type": {
|
|
20355
|
+
"cron_expr": {
|
|
20071
20356
|
"type": "string",
|
|
20072
20357
|
"nullable": true
|
|
20073
20358
|
},
|
|
20074
|
-
"
|
|
20359
|
+
"timezone": {
|
|
20360
|
+
"type": "string"
|
|
20361
|
+
},
|
|
20362
|
+
"event_filter": {
|
|
20075
20363
|
"type": "object",
|
|
20076
20364
|
"additionalProperties": true,
|
|
20077
20365
|
"nullable": true
|
|
20078
20366
|
},
|
|
20367
|
+
"workflow_spec": {
|
|
20368
|
+
"oneOf": [
|
|
20369
|
+
{
|
|
20370
|
+
"type": "array",
|
|
20371
|
+
"items": {
|
|
20372
|
+
"type": "object",
|
|
20373
|
+
"additionalProperties": true
|
|
20374
|
+
}
|
|
20375
|
+
},
|
|
20376
|
+
{
|
|
20377
|
+
"type": "object",
|
|
20378
|
+
"additionalProperties": true
|
|
20379
|
+
}
|
|
20380
|
+
]
|
|
20381
|
+
},
|
|
20079
20382
|
"is_active": {
|
|
20080
20383
|
"type": "boolean"
|
|
20081
20384
|
},
|
|
20082
|
-
"
|
|
20083
|
-
"type": "string",
|
|
20084
|
-
"nullable": true
|
|
20085
|
-
},
|
|
20086
|
-
"schedule_expression": {
|
|
20087
|
-
"type": "string",
|
|
20088
|
-
"nullable": true
|
|
20089
|
-
},
|
|
20090
|
-
"next_run_at": {
|
|
20385
|
+
"last_run_at": {
|
|
20091
20386
|
"type": "string",
|
|
20092
20387
|
"format": "date-time",
|
|
20093
20388
|
"nullable": true
|
|
20094
20389
|
},
|
|
20095
|
-
"
|
|
20390
|
+
"next_run_at": {
|
|
20096
20391
|
"type": "string",
|
|
20097
20392
|
"format": "date-time",
|
|
20098
20393
|
"nullable": true
|
|
@@ -20107,6 +20402,92 @@
|
|
|
20107
20402
|
}
|
|
20108
20403
|
}
|
|
20109
20404
|
},
|
|
20405
|
+
"AutomationCreatedResponse": {
|
|
20406
|
+
"allOf": [
|
|
20407
|
+
{
|
|
20408
|
+
"$ref": "#/components/schemas/AutomationResponse"
|
|
20409
|
+
},
|
|
20410
|
+
{
|
|
20411
|
+
"type": "object",
|
|
20412
|
+
"properties": {
|
|
20413
|
+
"webhook_url": {
|
|
20414
|
+
"type": "string",
|
|
20415
|
+
"description": "Full POST URL including token (one-time on create)"
|
|
20416
|
+
},
|
|
20417
|
+
"webhook_token": {
|
|
20418
|
+
"type": "string",
|
|
20419
|
+
"description": "whk_ token segment (one-time on create)"
|
|
20420
|
+
}
|
|
20421
|
+
}
|
|
20422
|
+
}
|
|
20423
|
+
]
|
|
20424
|
+
},
|
|
20425
|
+
"WebhookTokenRotatedResponse": {
|
|
20426
|
+
"type": "object",
|
|
20427
|
+
"required": [
|
|
20428
|
+
"webhook_url",
|
|
20429
|
+
"webhook_token"
|
|
20430
|
+
],
|
|
20431
|
+
"properties": {
|
|
20432
|
+
"webhook_url": {
|
|
20433
|
+
"type": "string"
|
|
20434
|
+
},
|
|
20435
|
+
"webhook_token": {
|
|
20436
|
+
"type": "string"
|
|
20437
|
+
}
|
|
20438
|
+
}
|
|
20439
|
+
},
|
|
20440
|
+
"AssistDraftResponse": {
|
|
20441
|
+
"type": "object",
|
|
20442
|
+
"required": [
|
|
20443
|
+
"draft",
|
|
20444
|
+
"reply"
|
|
20445
|
+
],
|
|
20446
|
+
"properties": {
|
|
20447
|
+
"draft": {
|
|
20448
|
+
"type": "object",
|
|
20449
|
+
"additionalProperties": true
|
|
20450
|
+
},
|
|
20451
|
+
"reply": {
|
|
20452
|
+
"type": "string"
|
|
20453
|
+
}
|
|
20454
|
+
}
|
|
20455
|
+
},
|
|
20456
|
+
"AssistSessionResponse": {
|
|
20457
|
+
"type": "object",
|
|
20458
|
+
"required": [
|
|
20459
|
+
"access_token",
|
|
20460
|
+
"expires_in",
|
|
20461
|
+
"scopes",
|
|
20462
|
+
"cli_hint"
|
|
20463
|
+
],
|
|
20464
|
+
"properties": {
|
|
20465
|
+
"access_token": {
|
|
20466
|
+
"type": "string"
|
|
20467
|
+
},
|
|
20468
|
+
"expires_in": {
|
|
20469
|
+
"type": "integer"
|
|
20470
|
+
},
|
|
20471
|
+
"scopes": {
|
|
20472
|
+
"type": "array",
|
|
20473
|
+
"items": {
|
|
20474
|
+
"type": "string"
|
|
20475
|
+
}
|
|
20476
|
+
},
|
|
20477
|
+
"runtime_id": {
|
|
20478
|
+
"type": "string",
|
|
20479
|
+
"format": "uuid",
|
|
20480
|
+
"nullable": true
|
|
20481
|
+
},
|
|
20482
|
+
"runtime_status": {
|
|
20483
|
+
"type": "string",
|
|
20484
|
+
"nullable": true
|
|
20485
|
+
},
|
|
20486
|
+
"cli_hint": {
|
|
20487
|
+
"type": "string"
|
|
20488
|
+
}
|
|
20489
|
+
}
|
|
20490
|
+
},
|
|
20110
20491
|
"AutomationListResponse": {
|
|
20111
20492
|
"type": "object",
|
|
20112
20493
|
"required": [
|
|
@@ -20126,8 +20507,11 @@
|
|
|
20126
20507
|
"required": [
|
|
20127
20508
|
"id",
|
|
20128
20509
|
"automation_id",
|
|
20510
|
+
"agent_id",
|
|
20129
20511
|
"status",
|
|
20130
|
-
"started_at"
|
|
20512
|
+
"started_at",
|
|
20513
|
+
"tokens_used",
|
|
20514
|
+
"cost_cents"
|
|
20131
20515
|
],
|
|
20132
20516
|
"properties": {
|
|
20133
20517
|
"id": {
|
|
@@ -20138,32 +20522,45 @@
|
|
|
20138
20522
|
"type": "string",
|
|
20139
20523
|
"format": "uuid"
|
|
20140
20524
|
},
|
|
20525
|
+
"agent_id": {
|
|
20526
|
+
"type": "string",
|
|
20527
|
+
"format": "uuid"
|
|
20528
|
+
},
|
|
20141
20529
|
"status": {
|
|
20142
20530
|
"type": "string",
|
|
20143
20531
|
"enum": [
|
|
20144
20532
|
"pending",
|
|
20145
20533
|
"running",
|
|
20146
20534
|
"completed",
|
|
20147
|
-
"failed"
|
|
20535
|
+
"failed",
|
|
20536
|
+
"denied"
|
|
20148
20537
|
]
|
|
20149
20538
|
},
|
|
20539
|
+
"step_results": {
|
|
20540
|
+
"nullable": true
|
|
20541
|
+
},
|
|
20542
|
+
"error": {
|
|
20543
|
+
"type": "string",
|
|
20544
|
+
"nullable": true
|
|
20545
|
+
},
|
|
20546
|
+
"trigger_source": {
|
|
20547
|
+
"type": "string",
|
|
20548
|
+
"nullable": true
|
|
20549
|
+
},
|
|
20150
20550
|
"started_at": {
|
|
20151
20551
|
"type": "string",
|
|
20152
20552
|
"format": "date-time"
|
|
20153
20553
|
},
|
|
20154
|
-
"
|
|
20554
|
+
"finished_at": {
|
|
20155
20555
|
"type": "string",
|
|
20156
20556
|
"format": "date-time",
|
|
20157
20557
|
"nullable": true
|
|
20158
20558
|
},
|
|
20159
|
-
"
|
|
20160
|
-
"type": "
|
|
20161
|
-
"additionalProperties": true,
|
|
20162
|
-
"nullable": true
|
|
20559
|
+
"tokens_used": {
|
|
20560
|
+
"type": "integer"
|
|
20163
20561
|
},
|
|
20164
|
-
"
|
|
20165
|
-
"type": "
|
|
20166
|
-
"nullable": true
|
|
20562
|
+
"cost_cents": {
|
|
20563
|
+
"type": "integer"
|
|
20167
20564
|
}
|
|
20168
20565
|
}
|
|
20169
20566
|
},
|
|
@@ -20230,6 +20627,17 @@
|
|
|
20230
20627
|
"jwt",
|
|
20231
20628
|
"public"
|
|
20232
20629
|
]
|
|
20630
|
+
},
|
|
20631
|
+
"shell_access_enabled": {
|
|
20632
|
+
"type": "boolean",
|
|
20633
|
+
"default": false
|
|
20634
|
+
},
|
|
20635
|
+
"shell_auth_policy": {
|
|
20636
|
+
"type": "string",
|
|
20637
|
+
"description": "Step-up auth policy for shell (e.g. password, passkey, totp)"
|
|
20638
|
+
},
|
|
20639
|
+
"shell_max_session_minutes": {
|
|
20640
|
+
"type": "integer"
|
|
20233
20641
|
}
|
|
20234
20642
|
}
|
|
20235
20643
|
},
|
|
@@ -20273,6 +20681,15 @@
|
|
|
20273
20681
|
"jwt",
|
|
20274
20682
|
"public"
|
|
20275
20683
|
]
|
|
20684
|
+
},
|
|
20685
|
+
"shell_access_enabled": {
|
|
20686
|
+
"type": "boolean"
|
|
20687
|
+
},
|
|
20688
|
+
"shell_auth_policy": {
|
|
20689
|
+
"type": "string"
|
|
20690
|
+
},
|
|
20691
|
+
"shell_max_session_minutes": {
|
|
20692
|
+
"type": "integer"
|
|
20276
20693
|
}
|
|
20277
20694
|
}
|
|
20278
20695
|
},
|
|
@@ -20361,6 +20778,15 @@
|
|
|
20361
20778
|
],
|
|
20362
20779
|
"nullable": true
|
|
20363
20780
|
},
|
|
20781
|
+
"shell_access_enabled": {
|
|
20782
|
+
"type": "boolean"
|
|
20783
|
+
},
|
|
20784
|
+
"shell_auth_policy": {
|
|
20785
|
+
"type": "string"
|
|
20786
|
+
},
|
|
20787
|
+
"shell_max_session_minutes": {
|
|
20788
|
+
"type": "integer"
|
|
20789
|
+
},
|
|
20364
20790
|
"monthly_hours_used": {
|
|
20365
20791
|
"type": "number",
|
|
20366
20792
|
"nullable": true
|
|
@@ -20408,6 +20834,56 @@
|
|
|
20408
20834
|
}
|
|
20409
20835
|
}
|
|
20410
20836
|
},
|
|
20837
|
+
"ShellSessionRequest": {
|
|
20838
|
+
"type": "object",
|
|
20839
|
+
"description": "Step-up credentials for an interactive shell session.\nProvide one of password, totp_code, passkey_credential, or reauth_token.\n",
|
|
20840
|
+
"properties": {
|
|
20841
|
+
"password": {
|
|
20842
|
+
"type": "string"
|
|
20843
|
+
},
|
|
20844
|
+
"totp_code": {
|
|
20845
|
+
"type": "string"
|
|
20846
|
+
},
|
|
20847
|
+
"passkey_credential": {
|
|
20848
|
+
"type": "object",
|
|
20849
|
+
"additionalProperties": true
|
|
20850
|
+
},
|
|
20851
|
+
"reauth_token": {
|
|
20852
|
+
"type": "string",
|
|
20853
|
+
"description": "Single-use `rat_` token from POST /v1/auth/reauth (purpose runtime_shell)"
|
|
20854
|
+
}
|
|
20855
|
+
}
|
|
20856
|
+
},
|
|
20857
|
+
"ShellSessionResponse": {
|
|
20858
|
+
"type": "object",
|
|
20859
|
+
"required": [
|
|
20860
|
+
"session_token",
|
|
20861
|
+
"ws_url",
|
|
20862
|
+
"expires_in",
|
|
20863
|
+
"runtime_id",
|
|
20864
|
+
"max_session_minutes"
|
|
20865
|
+
],
|
|
20866
|
+
"properties": {
|
|
20867
|
+
"session_token": {
|
|
20868
|
+
"type": "string"
|
|
20869
|
+
},
|
|
20870
|
+
"ws_url": {
|
|
20871
|
+
"type": "string",
|
|
20872
|
+
"description": "WebSocket URL for the PTY terminal"
|
|
20873
|
+
},
|
|
20874
|
+
"expires_in": {
|
|
20875
|
+
"type": "integer",
|
|
20876
|
+
"format": "int64"
|
|
20877
|
+
},
|
|
20878
|
+
"runtime_id": {
|
|
20879
|
+
"type": "string",
|
|
20880
|
+
"format": "uuid"
|
|
20881
|
+
},
|
|
20882
|
+
"max_session_minutes": {
|
|
20883
|
+
"type": "integer"
|
|
20884
|
+
}
|
|
20885
|
+
}
|
|
20886
|
+
},
|
|
20411
20887
|
"MemoryEntry": {
|
|
20412
20888
|
"type": "object",
|
|
20413
20889
|
"required": [
|