@1claw/sdk 0.43.2 → 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 +73 -0
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/resources/runtimes.d.ts +13 -0
- package/dist/resources/runtimes.d.ts.map +1 -1
- package/dist/resources/runtimes.js +9 -0
- package/dist/resources/runtimes.js.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4987,6 +4987,30 @@ export interface paths {
|
|
|
4987
4987
|
patch?: never;
|
|
4988
4988
|
trace?: never;
|
|
4989
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
|
+
};
|
|
4990
5014
|
"/v1/agents/{agent_id}/memory": {
|
|
4991
5015
|
parameters: {
|
|
4992
5016
|
query?: never;
|
|
@@ -8640,6 +8664,22 @@ export interface components {
|
|
|
8640
8664
|
runtime_id: string;
|
|
8641
8665
|
max_session_minutes: number;
|
|
8642
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
|
+
};
|
|
8643
8683
|
MemoryEntry: {
|
|
8644
8684
|
/** Format: uuid */
|
|
8645
8685
|
id: string;
|
|
@@ -15488,6 +15528,39 @@ export interface operations {
|
|
|
15488
15528
|
404: components["responses"]["NotFound"];
|
|
15489
15529
|
};
|
|
15490
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
|
+
};
|
|
15491
15564
|
listMemoryNamespaces: {
|
|
15492
15565
|
parameters: {
|
|
15493
15566
|
query?: never;
|