@1claw/openapi-spec 0.43.3 → 0.43.4
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 +115 -3
- package/openapi.yaml +80 -2
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "1Claw API",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.32.0",
|
|
6
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"
|
|
@@ -10825,6 +10825,80 @@
|
|
|
10825
10825
|
}
|
|
10826
10826
|
}
|
|
10827
10827
|
},
|
|
10828
|
+
"/v1/automations/{automationId}/runs/{runId}/cancel": {
|
|
10829
|
+
"post": {
|
|
10830
|
+
"tags": [
|
|
10831
|
+
"Automations"
|
|
10832
|
+
],
|
|
10833
|
+
"summary": "Cancel a running automation run",
|
|
10834
|
+
"operationId": "cancelAutomationRun",
|
|
10835
|
+
"description": "Cancel a run that is currently in `running` or `awaiting_approval` status.\nReturns the updated run with status `cancelled`.\n",
|
|
10836
|
+
"parameters": [
|
|
10837
|
+
{
|
|
10838
|
+
"name": "automationId",
|
|
10839
|
+
"in": "path",
|
|
10840
|
+
"required": true,
|
|
10841
|
+
"schema": {
|
|
10842
|
+
"type": "string",
|
|
10843
|
+
"format": "uuid"
|
|
10844
|
+
}
|
|
10845
|
+
},
|
|
10846
|
+
{
|
|
10847
|
+
"name": "runId",
|
|
10848
|
+
"in": "path",
|
|
10849
|
+
"required": true,
|
|
10850
|
+
"schema": {
|
|
10851
|
+
"type": "string",
|
|
10852
|
+
"format": "uuid"
|
|
10853
|
+
}
|
|
10854
|
+
}
|
|
10855
|
+
],
|
|
10856
|
+
"responses": {
|
|
10857
|
+
"200": {
|
|
10858
|
+
"description": "Run cancelled",
|
|
10859
|
+
"content": {
|
|
10860
|
+
"application/json": {
|
|
10861
|
+
"schema": {
|
|
10862
|
+
"$ref": "#/components/schemas/AutomationRunResponse"
|
|
10863
|
+
}
|
|
10864
|
+
}
|
|
10865
|
+
}
|
|
10866
|
+
},
|
|
10867
|
+
"400": {
|
|
10868
|
+
"$ref": "#/components/responses/BadRequest"
|
|
10869
|
+
},
|
|
10870
|
+
"401": {
|
|
10871
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
10872
|
+
},
|
|
10873
|
+
"404": {
|
|
10874
|
+
"$ref": "#/components/responses/NotFound"
|
|
10875
|
+
}
|
|
10876
|
+
}
|
|
10877
|
+
}
|
|
10878
|
+
},
|
|
10879
|
+
"/v1/automations/presets": {
|
|
10880
|
+
"get": {
|
|
10881
|
+
"tags": [
|
|
10882
|
+
"Automations"
|
|
10883
|
+
],
|
|
10884
|
+
"summary": "List automation presets",
|
|
10885
|
+
"operationId": "listAutomationPresets",
|
|
10886
|
+
"security": [],
|
|
10887
|
+
"description": "Public preset gallery of ready-to-use automation templates.",
|
|
10888
|
+
"responses": {
|
|
10889
|
+
"200": {
|
|
10890
|
+
"description": "Automation preset list",
|
|
10891
|
+
"content": {
|
|
10892
|
+
"application/json": {
|
|
10893
|
+
"schema": {
|
|
10894
|
+
"$ref": "#/components/schemas/AutomationPresetsResponse"
|
|
10895
|
+
}
|
|
10896
|
+
}
|
|
10897
|
+
}
|
|
10898
|
+
}
|
|
10899
|
+
}
|
|
10900
|
+
}
|
|
10901
|
+
},
|
|
10828
10902
|
"/v1/runtimes": {
|
|
10829
10903
|
"post": {
|
|
10830
10904
|
"tags": [
|
|
@@ -20324,7 +20398,7 @@
|
|
|
20324
20398
|
"nullable": true
|
|
20325
20399
|
},
|
|
20326
20400
|
"workflow_spec": {
|
|
20327
|
-
"description": "Workflow steps. Accepts a bare array `[...]` or\n`{ \"steps\": [...] }` (dashboard / preset shape).\n",
|
|
20401
|
+
"description": "Workflow steps. Accepts a bare array `[...]` or\n`{ \"steps\": [...] }` (dashboard / preset shape).\nSupported step types: get_secret, put_secret, http_request,\nrotate_secret, notify_human, ai_generate, memory_get,\nmemory_put, memory_search, notify, approval_request,\ncondition, execute_binding.\n",
|
|
20328
20402
|
"oneOf": [
|
|
20329
20403
|
{
|
|
20330
20404
|
"type": "array",
|
|
@@ -20594,7 +20668,9 @@
|
|
|
20594
20668
|
"running",
|
|
20595
20669
|
"completed",
|
|
20596
20670
|
"failed",
|
|
20597
|
-
"denied"
|
|
20671
|
+
"denied",
|
|
20672
|
+
"cancelled",
|
|
20673
|
+
"awaiting_approval"
|
|
20598
20674
|
]
|
|
20599
20675
|
},
|
|
20600
20676
|
"step_results": {
|
|
@@ -20639,6 +20715,42 @@
|
|
|
20639
20715
|
}
|
|
20640
20716
|
}
|
|
20641
20717
|
},
|
|
20718
|
+
"AutomationPresetsResponse": {
|
|
20719
|
+
"type": "object",
|
|
20720
|
+
"required": [
|
|
20721
|
+
"presets"
|
|
20722
|
+
],
|
|
20723
|
+
"properties": {
|
|
20724
|
+
"presets": {
|
|
20725
|
+
"type": "array",
|
|
20726
|
+
"items": {
|
|
20727
|
+
"type": "object",
|
|
20728
|
+
"properties": {
|
|
20729
|
+
"id": {
|
|
20730
|
+
"type": "string"
|
|
20731
|
+
},
|
|
20732
|
+
"name": {
|
|
20733
|
+
"type": "string"
|
|
20734
|
+
},
|
|
20735
|
+
"description": {
|
|
20736
|
+
"type": "string"
|
|
20737
|
+
},
|
|
20738
|
+
"trigger_type": {
|
|
20739
|
+
"type": "string"
|
|
20740
|
+
},
|
|
20741
|
+
"cron_expr": {
|
|
20742
|
+
"type": "string",
|
|
20743
|
+
"nullable": true
|
|
20744
|
+
},
|
|
20745
|
+
"workflow_spec": {
|
|
20746
|
+
"type": "object",
|
|
20747
|
+
"additionalProperties": true
|
|
20748
|
+
}
|
|
20749
|
+
}
|
|
20750
|
+
}
|
|
20751
|
+
}
|
|
20752
|
+
}
|
|
20753
|
+
},
|
|
20642
20754
|
"CreateRuntimeRequest": {
|
|
20643
20755
|
"type": "object",
|
|
20644
20756
|
"required": [
|
package/openapi.yaml
CHANGED
|
@@ -2,7 +2,7 @@ openapi: 3.1.0
|
|
|
2
2
|
|
|
3
3
|
info:
|
|
4
4
|
title: 1Claw API
|
|
5
|
-
version: 2.
|
|
5
|
+
version: 2.32.0
|
|
6
6
|
description: |
|
|
7
7
|
Secure secret management for AI agents. Provides vaults, secrets,
|
|
8
8
|
policy-based access control, agent identity, Intents API,
|
|
@@ -6892,6 +6892,56 @@ paths:
|
|
|
6892
6892
|
"404":
|
|
6893
6893
|
$ref: "#/components/responses/NotFound"
|
|
6894
6894
|
|
|
6895
|
+
/v1/automations/{automationId}/runs/{runId}/cancel:
|
|
6896
|
+
post:
|
|
6897
|
+
tags: [Automations]
|
|
6898
|
+
summary: Cancel a running automation run
|
|
6899
|
+
operationId: cancelAutomationRun
|
|
6900
|
+
description: |
|
|
6901
|
+
Cancel a run that is currently in `running` or `awaiting_approval` status.
|
|
6902
|
+
Returns the updated run with status `cancelled`.
|
|
6903
|
+
parameters:
|
|
6904
|
+
- name: automationId
|
|
6905
|
+
in: path
|
|
6906
|
+
required: true
|
|
6907
|
+
schema:
|
|
6908
|
+
type: string
|
|
6909
|
+
format: uuid
|
|
6910
|
+
- name: runId
|
|
6911
|
+
in: path
|
|
6912
|
+
required: true
|
|
6913
|
+
schema:
|
|
6914
|
+
type: string
|
|
6915
|
+
format: uuid
|
|
6916
|
+
responses:
|
|
6917
|
+
"200":
|
|
6918
|
+
description: Run cancelled
|
|
6919
|
+
content:
|
|
6920
|
+
application/json:
|
|
6921
|
+
schema:
|
|
6922
|
+
$ref: "#/components/schemas/AutomationRunResponse"
|
|
6923
|
+
"400":
|
|
6924
|
+
$ref: "#/components/responses/BadRequest"
|
|
6925
|
+
"401":
|
|
6926
|
+
$ref: "#/components/responses/Unauthorized"
|
|
6927
|
+
"404":
|
|
6928
|
+
$ref: "#/components/responses/NotFound"
|
|
6929
|
+
|
|
6930
|
+
/v1/automations/presets:
|
|
6931
|
+
get:
|
|
6932
|
+
tags: [Automations]
|
|
6933
|
+
summary: List automation presets
|
|
6934
|
+
operationId: listAutomationPresets
|
|
6935
|
+
security: []
|
|
6936
|
+
description: Public preset gallery of ready-to-use automation templates.
|
|
6937
|
+
responses:
|
|
6938
|
+
"200":
|
|
6939
|
+
description: Automation preset list
|
|
6940
|
+
content:
|
|
6941
|
+
application/json:
|
|
6942
|
+
schema:
|
|
6943
|
+
$ref: "#/components/schemas/AutomationPresetsResponse"
|
|
6944
|
+
|
|
6895
6945
|
# ---------------------------------------------------------------------------
|
|
6896
6946
|
# Runtimes
|
|
6897
6947
|
# ---------------------------------------------------------------------------
|
|
@@ -13381,6 +13431,10 @@ components:
|
|
|
13381
13431
|
description: |
|
|
13382
13432
|
Workflow steps. Accepts a bare array `[...]` or
|
|
13383
13433
|
`{ "steps": [...] }` (dashboard / preset shape).
|
|
13434
|
+
Supported step types: get_secret, put_secret, http_request,
|
|
13435
|
+
rotate_secret, notify_human, ai_generate, memory_get,
|
|
13436
|
+
memory_put, memory_search, notify, approval_request,
|
|
13437
|
+
condition, execute_binding.
|
|
13384
13438
|
oneOf:
|
|
13385
13439
|
- type: array
|
|
13386
13440
|
items:
|
|
@@ -13540,7 +13594,7 @@ components:
|
|
|
13540
13594
|
format: uuid
|
|
13541
13595
|
status:
|
|
13542
13596
|
type: string
|
|
13543
|
-
enum: [pending, running, completed, failed, denied]
|
|
13597
|
+
enum: [pending, running, completed, failed, denied, cancelled, awaiting_approval]
|
|
13544
13598
|
step_results:
|
|
13545
13599
|
nullable: true
|
|
13546
13600
|
error:
|
|
@@ -13570,6 +13624,30 @@ components:
|
|
|
13570
13624
|
items:
|
|
13571
13625
|
$ref: "#/components/schemas/AutomationRunResponse"
|
|
13572
13626
|
|
|
13627
|
+
AutomationPresetsResponse:
|
|
13628
|
+
type: object
|
|
13629
|
+
required: [presets]
|
|
13630
|
+
properties:
|
|
13631
|
+
presets:
|
|
13632
|
+
type: array
|
|
13633
|
+
items:
|
|
13634
|
+
type: object
|
|
13635
|
+
properties:
|
|
13636
|
+
id:
|
|
13637
|
+
type: string
|
|
13638
|
+
name:
|
|
13639
|
+
type: string
|
|
13640
|
+
description:
|
|
13641
|
+
type: string
|
|
13642
|
+
trigger_type:
|
|
13643
|
+
type: string
|
|
13644
|
+
cron_expr:
|
|
13645
|
+
type: string
|
|
13646
|
+
nullable: true
|
|
13647
|
+
workflow_spec:
|
|
13648
|
+
type: object
|
|
13649
|
+
additionalProperties: true
|
|
13650
|
+
|
|
13573
13651
|
# --- Runtimes ---
|
|
13574
13652
|
|
|
13575
13653
|
CreateRuntimeRequest:
|