@1claw/sdk 0.43.1 → 0.43.3
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/dist/generated/api-types.d.ts +280 -7
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/resources/automations.d.ts +5 -0
- package/dist/resources/automations.d.ts.map +1 -1
- package/dist/resources/automations.js +4 -0
- package/dist/resources/automations.js.map +1 -1
- package/dist/resources/runtimes.d.ts +22 -0
- package/dist/resources/runtimes.d.ts.map +1 -1
- package/dist/resources/runtimes.js +14 -0
- package/dist/resources/runtimes.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4767,6 +4767,74 @@ export interface paths {
|
|
|
4767
4767
|
patch?: never;
|
|
4768
4768
|
trace?: never;
|
|
4769
4769
|
};
|
|
4770
|
+
"/v1/automations/assist/draft": {
|
|
4771
|
+
parameters: {
|
|
4772
|
+
query?: never;
|
|
4773
|
+
header?: never;
|
|
4774
|
+
path?: never;
|
|
4775
|
+
cookie?: never;
|
|
4776
|
+
};
|
|
4777
|
+
get?: never;
|
|
4778
|
+
put?: never;
|
|
4779
|
+
/** Draft automation from natural language */
|
|
4780
|
+
post: operations["assistDraftAutomation"];
|
|
4781
|
+
delete?: never;
|
|
4782
|
+
options?: never;
|
|
4783
|
+
head?: never;
|
|
4784
|
+
patch?: never;
|
|
4785
|
+
trace?: never;
|
|
4786
|
+
};
|
|
4787
|
+
"/v1/automations/assist/session": {
|
|
4788
|
+
parameters: {
|
|
4789
|
+
query?: never;
|
|
4790
|
+
header?: never;
|
|
4791
|
+
path?: never;
|
|
4792
|
+
cookie?: never;
|
|
4793
|
+
};
|
|
4794
|
+
get?: never;
|
|
4795
|
+
put?: never;
|
|
4796
|
+
/** Mint short-lived Assist session token */
|
|
4797
|
+
post: operations["assistAutomationSession"];
|
|
4798
|
+
delete?: never;
|
|
4799
|
+
options?: never;
|
|
4800
|
+
head?: never;
|
|
4801
|
+
patch?: never;
|
|
4802
|
+
trace?: never;
|
|
4803
|
+
};
|
|
4804
|
+
"/v1/automations/webhook/{automationId}/{token}": {
|
|
4805
|
+
parameters: {
|
|
4806
|
+
query?: never;
|
|
4807
|
+
header?: never;
|
|
4808
|
+
path?: never;
|
|
4809
|
+
cookie?: never;
|
|
4810
|
+
};
|
|
4811
|
+
get?: never;
|
|
4812
|
+
put?: never;
|
|
4813
|
+
/** Public webhook trigger */
|
|
4814
|
+
post: operations["webhookTriggerAutomation"];
|
|
4815
|
+
delete?: never;
|
|
4816
|
+
options?: never;
|
|
4817
|
+
head?: never;
|
|
4818
|
+
patch?: never;
|
|
4819
|
+
trace?: never;
|
|
4820
|
+
};
|
|
4821
|
+
"/v1/automations/{automationId}/rotate-webhook-token": {
|
|
4822
|
+
parameters: {
|
|
4823
|
+
query?: never;
|
|
4824
|
+
header?: never;
|
|
4825
|
+
path?: never;
|
|
4826
|
+
cookie?: never;
|
|
4827
|
+
};
|
|
4828
|
+
get?: never;
|
|
4829
|
+
put?: never;
|
|
4830
|
+
/** Rotate webhook token */
|
|
4831
|
+
post: operations["rotateAutomationWebhookToken"];
|
|
4832
|
+
delete?: never;
|
|
4833
|
+
options?: never;
|
|
4834
|
+
head?: never;
|
|
4835
|
+
patch?: never;
|
|
4836
|
+
trace?: never;
|
|
4837
|
+
};
|
|
4770
4838
|
"/v1/runtimes": {
|
|
4771
4839
|
parameters: {
|
|
4772
4840
|
query?: never;
|
|
@@ -4919,6 +4987,30 @@ export interface paths {
|
|
|
4919
4987
|
patch?: never;
|
|
4920
4988
|
trace?: never;
|
|
4921
4989
|
};
|
|
4990
|
+
"/v1/runtimes/{runtimeId}/chat": {
|
|
4991
|
+
parameters: {
|
|
4992
|
+
query?: never;
|
|
4993
|
+
header?: never;
|
|
4994
|
+
path?: never;
|
|
4995
|
+
cookie?: never;
|
|
4996
|
+
};
|
|
4997
|
+
get?: never;
|
|
4998
|
+
put?: never;
|
|
4999
|
+
/**
|
|
5000
|
+
* Chat with a running runtime agent
|
|
5001
|
+
* @description Human-only. Proxies to the runtime container's OpenAI-compatible
|
|
5002
|
+
* `POST /v1/chat/completions` (hermes / openclaw / openclaude chat bridge).
|
|
5003
|
+
* Starts the runtime if stopped. Streams SSE when `Accept: text/event-stream`
|
|
5004
|
+
* or `stream: true`. Conversation history is ephemeral (pass `messages`).
|
|
5005
|
+
* Requires a public URL (shell access, Shroud sidecar, or HTTP hosting).
|
|
5006
|
+
*/
|
|
5007
|
+
post: operations["runtimeChat"];
|
|
5008
|
+
delete?: never;
|
|
5009
|
+
options?: never;
|
|
5010
|
+
head?: never;
|
|
5011
|
+
patch?: never;
|
|
5012
|
+
trace?: never;
|
|
5013
|
+
};
|
|
4922
5014
|
"/v1/agents/{agent_id}/memory": {
|
|
4923
5015
|
parameters: {
|
|
4924
5016
|
query?: never;
|
|
@@ -8419,6 +8511,31 @@ export interface components {
|
|
|
8419
8511
|
/** Format: date-time */
|
|
8420
8512
|
updated_at: string;
|
|
8421
8513
|
};
|
|
8514
|
+
AutomationCreatedResponse: components["schemas"]["AutomationResponse"] & {
|
|
8515
|
+
/** @description Full POST URL including token (one-time on create) */
|
|
8516
|
+
webhook_url?: string;
|
|
8517
|
+
/** @description whk_ token segment (one-time on create) */
|
|
8518
|
+
webhook_token?: string;
|
|
8519
|
+
};
|
|
8520
|
+
WebhookTokenRotatedResponse: {
|
|
8521
|
+
webhook_url: string;
|
|
8522
|
+
webhook_token: string;
|
|
8523
|
+
};
|
|
8524
|
+
AssistDraftResponse: {
|
|
8525
|
+
draft: {
|
|
8526
|
+
[key: string]: unknown;
|
|
8527
|
+
};
|
|
8528
|
+
reply: string;
|
|
8529
|
+
};
|
|
8530
|
+
AssistSessionResponse: {
|
|
8531
|
+
access_token: string;
|
|
8532
|
+
expires_in: number;
|
|
8533
|
+
scopes: string[];
|
|
8534
|
+
/** Format: uuid */
|
|
8535
|
+
runtime_id?: string | null;
|
|
8536
|
+
runtime_status?: string | null;
|
|
8537
|
+
cli_hint: string;
|
|
8538
|
+
};
|
|
8422
8539
|
AutomationListResponse: {
|
|
8423
8540
|
automations: components["schemas"]["AutomationResponse"][];
|
|
8424
8541
|
};
|
|
@@ -8547,6 +8664,22 @@ export interface components {
|
|
|
8547
8664
|
runtime_id: string;
|
|
8548
8665
|
max_session_minutes: number;
|
|
8549
8666
|
};
|
|
8667
|
+
/**
|
|
8668
|
+
* @description Chat with the agent inside a runtime. Provide `message` and/or
|
|
8669
|
+
* a full OpenAI-style `messages` array (ephemeral history).
|
|
8670
|
+
*/
|
|
8671
|
+
RuntimeChatRequest: {
|
|
8672
|
+
/** @description Latest user message */
|
|
8673
|
+
message?: string;
|
|
8674
|
+
/** @description OpenAI chat messages (optional history) */
|
|
8675
|
+
messages?: {
|
|
8676
|
+
[key: string]: unknown;
|
|
8677
|
+
}[];
|
|
8678
|
+
model?: string;
|
|
8679
|
+
provider?: string;
|
|
8680
|
+
/** @description Request SSE streaming (default true when Accept is text/event-stream) */
|
|
8681
|
+
stream?: boolean;
|
|
8682
|
+
};
|
|
8550
8683
|
MemoryEntry: {
|
|
8551
8684
|
/** Format: uuid */
|
|
8552
8685
|
id: string;
|
|
@@ -14864,13 +14997,13 @@ export interface operations {
|
|
|
14864
14997
|
};
|
|
14865
14998
|
};
|
|
14866
14999
|
responses: {
|
|
14867
|
-
/** @description Automation created */
|
|
15000
|
+
/** @description Automation created (includes one-time webhook credentials when trigger_type is webhook) */
|
|
14868
15001
|
201: {
|
|
14869
15002
|
headers: {
|
|
14870
15003
|
[name: string]: unknown;
|
|
14871
15004
|
};
|
|
14872
15005
|
content: {
|
|
14873
|
-
"application/json": components["schemas"]["
|
|
15006
|
+
"application/json": components["schemas"]["AutomationCreatedResponse"];
|
|
14874
15007
|
};
|
|
14875
15008
|
};
|
|
14876
15009
|
400: components["responses"]["BadRequest"];
|
|
@@ -15003,6 +15136,114 @@ export interface operations {
|
|
|
15003
15136
|
404: components["responses"]["NotFound"];
|
|
15004
15137
|
};
|
|
15005
15138
|
};
|
|
15139
|
+
assistDraftAutomation: {
|
|
15140
|
+
parameters: {
|
|
15141
|
+
query?: never;
|
|
15142
|
+
header?: never;
|
|
15143
|
+
path?: never;
|
|
15144
|
+
cookie?: never;
|
|
15145
|
+
};
|
|
15146
|
+
requestBody: {
|
|
15147
|
+
content: {
|
|
15148
|
+
"application/json": {
|
|
15149
|
+
message: string;
|
|
15150
|
+
/** Format: uuid */
|
|
15151
|
+
agent_id?: string;
|
|
15152
|
+
timezone?: string;
|
|
15153
|
+
};
|
|
15154
|
+
};
|
|
15155
|
+
};
|
|
15156
|
+
responses: {
|
|
15157
|
+
/** @description Reviewable automation draft */
|
|
15158
|
+
200: {
|
|
15159
|
+
headers: {
|
|
15160
|
+
[name: string]: unknown;
|
|
15161
|
+
};
|
|
15162
|
+
content: {
|
|
15163
|
+
"application/json": components["schemas"]["AssistDraftResponse"];
|
|
15164
|
+
};
|
|
15165
|
+
};
|
|
15166
|
+
401: components["responses"]["Unauthorized"];
|
|
15167
|
+
};
|
|
15168
|
+
};
|
|
15169
|
+
assistAutomationSession: {
|
|
15170
|
+
parameters: {
|
|
15171
|
+
query?: never;
|
|
15172
|
+
header?: never;
|
|
15173
|
+
path?: never;
|
|
15174
|
+
cookie?: never;
|
|
15175
|
+
};
|
|
15176
|
+
requestBody?: {
|
|
15177
|
+
content: {
|
|
15178
|
+
"application/json": {
|
|
15179
|
+
/** Format: uuid */
|
|
15180
|
+
runtime_id?: string;
|
|
15181
|
+
};
|
|
15182
|
+
};
|
|
15183
|
+
};
|
|
15184
|
+
responses: {
|
|
15185
|
+
/** @description Assist session token */
|
|
15186
|
+
200: {
|
|
15187
|
+
headers: {
|
|
15188
|
+
[name: string]: unknown;
|
|
15189
|
+
};
|
|
15190
|
+
content: {
|
|
15191
|
+
"application/json": components["schemas"]["AssistSessionResponse"];
|
|
15192
|
+
};
|
|
15193
|
+
};
|
|
15194
|
+
401: components["responses"]["Unauthorized"];
|
|
15195
|
+
};
|
|
15196
|
+
};
|
|
15197
|
+
webhookTriggerAutomation: {
|
|
15198
|
+
parameters: {
|
|
15199
|
+
query?: never;
|
|
15200
|
+
header?: never;
|
|
15201
|
+
path: {
|
|
15202
|
+
automationId: string;
|
|
15203
|
+
token: string;
|
|
15204
|
+
};
|
|
15205
|
+
cookie?: never;
|
|
15206
|
+
};
|
|
15207
|
+
requestBody?: never;
|
|
15208
|
+
responses: {
|
|
15209
|
+
/** @description Automation run queued */
|
|
15210
|
+
201: {
|
|
15211
|
+
headers: {
|
|
15212
|
+
[name: string]: unknown;
|
|
15213
|
+
};
|
|
15214
|
+
content: {
|
|
15215
|
+
"application/json": components["schemas"]["AutomationRunResponse"];
|
|
15216
|
+
};
|
|
15217
|
+
};
|
|
15218
|
+
401: components["responses"]["Unauthorized"];
|
|
15219
|
+
404: components["responses"]["NotFound"];
|
|
15220
|
+
};
|
|
15221
|
+
};
|
|
15222
|
+
rotateAutomationWebhookToken: {
|
|
15223
|
+
parameters: {
|
|
15224
|
+
query?: never;
|
|
15225
|
+
header?: never;
|
|
15226
|
+
path: {
|
|
15227
|
+
automationId: string;
|
|
15228
|
+
};
|
|
15229
|
+
cookie?: never;
|
|
15230
|
+
};
|
|
15231
|
+
requestBody?: never;
|
|
15232
|
+
responses: {
|
|
15233
|
+
/** @description New one-time webhook URL and token */
|
|
15234
|
+
200: {
|
|
15235
|
+
headers: {
|
|
15236
|
+
[name: string]: unknown;
|
|
15237
|
+
};
|
|
15238
|
+
content: {
|
|
15239
|
+
"application/json": components["schemas"]["WebhookTokenRotatedResponse"];
|
|
15240
|
+
};
|
|
15241
|
+
};
|
|
15242
|
+
400: components["responses"]["BadRequest"];
|
|
15243
|
+
401: components["responses"]["Unauthorized"];
|
|
15244
|
+
404: components["responses"]["NotFound"];
|
|
15245
|
+
};
|
|
15246
|
+
};
|
|
15006
15247
|
listRuntimes: {
|
|
15007
15248
|
parameters: {
|
|
15008
15249
|
query?: never;
|
|
@@ -15176,9 +15417,8 @@ export interface operations {
|
|
|
15176
15417
|
getRuntimeLogs: {
|
|
15177
15418
|
parameters: {
|
|
15178
15419
|
query?: {
|
|
15179
|
-
/** @description
|
|
15180
|
-
|
|
15181
|
-
limit?: number;
|
|
15420
|
+
/** @description Number of recent log lines to return */
|
|
15421
|
+
tail?: number;
|
|
15182
15422
|
};
|
|
15183
15423
|
header?: never;
|
|
15184
15424
|
path: {
|
|
@@ -15195,10 +15435,10 @@ export interface operations {
|
|
|
15195
15435
|
};
|
|
15196
15436
|
content: {
|
|
15197
15437
|
"application/json": {
|
|
15198
|
-
|
|
15438
|
+
entries: {
|
|
15199
15439
|
/** Format: date-time */
|
|
15200
15440
|
timestamp?: string;
|
|
15201
|
-
message
|
|
15441
|
+
message: string;
|
|
15202
15442
|
level?: string;
|
|
15203
15443
|
}[];
|
|
15204
15444
|
};
|
|
@@ -15288,6 +15528,39 @@ export interface operations {
|
|
|
15288
15528
|
404: components["responses"]["NotFound"];
|
|
15289
15529
|
};
|
|
15290
15530
|
};
|
|
15531
|
+
runtimeChat: {
|
|
15532
|
+
parameters: {
|
|
15533
|
+
query?: never;
|
|
15534
|
+
header?: never;
|
|
15535
|
+
path: {
|
|
15536
|
+
runtimeId: string;
|
|
15537
|
+
};
|
|
15538
|
+
cookie?: never;
|
|
15539
|
+
};
|
|
15540
|
+
requestBody: {
|
|
15541
|
+
content: {
|
|
15542
|
+
"application/json": components["schemas"]["RuntimeChatRequest"];
|
|
15543
|
+
};
|
|
15544
|
+
};
|
|
15545
|
+
responses: {
|
|
15546
|
+
/** @description Chat completion (JSON) or SSE stream */
|
|
15547
|
+
200: {
|
|
15548
|
+
headers: {
|
|
15549
|
+
[name: string]: unknown;
|
|
15550
|
+
};
|
|
15551
|
+
content: {
|
|
15552
|
+
"application/json": {
|
|
15553
|
+
[key: string]: unknown;
|
|
15554
|
+
};
|
|
15555
|
+
"text/event-stream": string;
|
|
15556
|
+
};
|
|
15557
|
+
};
|
|
15558
|
+
400: components["responses"]["BadRequest"];
|
|
15559
|
+
401: components["responses"]["Unauthorized"];
|
|
15560
|
+
403: components["responses"]["Forbidden"];
|
|
15561
|
+
404: components["responses"]["NotFound"];
|
|
15562
|
+
};
|
|
15563
|
+
};
|
|
15291
15564
|
listMemoryNamespaces: {
|
|
15292
15565
|
parameters: {
|
|
15293
15566
|
query?: never;
|