@1claw/sdk 0.43.2 → 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.
@@ -1,36 +1,36 @@
1
- import { HttpClient } from "./http";
2
- import { VaultResource } from "../resources/vault";
3
- import { SecretsResource } from "../resources/secrets";
4
- import { AccessResource } from "../resources/access";
5
- import { AgentsResource } from "../resources/agents";
6
- import { SharingResource } from "../resources/sharing";
7
- import { ApprovalsResource } from "../resources/approvals";
8
- import { BillingResource } from "../resources/billing";
9
- import { AuditResource } from "../resources/audit";
10
- import { OrgResource } from "../resources/org";
11
- import { AuthResource } from "../resources/auth";
12
- import { ApiKeysResource } from "../resources/api-keys";
13
- import { ChainsResource } from "../resources/chains";
14
- import { X402Resource } from "../resources/x402";
15
- import { TreasuryResource } from "../resources/treasury";
16
- import { SigningKeysResource } from "../resources/signing-keys";
17
- import { TreasuryWalletsResource } from "../resources/treasury-wallets";
18
- import { PlatformResource } from "../resources/platform";
19
- import { DevicesResource } from "../resources/devices";
20
- import { PasskeysResource } from "../resources/passkeys";
21
- import { DepositDestinationsResource } from "../resources/deposit-destinations";
22
- import { InternalAccountsResource } from "../resources/internal-accounts";
23
- import { FiatResource } from "../resources/fiat";
24
- import { RiskResource } from "../resources/risk";
25
- import { TokensResource } from "../resources/tokens";
26
- import { BindingsResource } from "../resources/bindings";
27
- import { CardsResource } from "../resources/cards";
28
- import { MemoryResource } from "../resources/memory";
29
- import { AutomationsResource } from "../resources/automations";
30
- import { RuntimesResource } from "../resources/runtimes";
31
- import { DiscoveryResource } from "../resources/discovery";
32
- import { ChatResource } from "../resources/chat";
33
- import { ChannelsResource } from "../resources/channels";
1
+ import { HttpClient } from "./http.js";
2
+ import { VaultResource } from "../resources/vault.js";
3
+ import { SecretsResource } from "../resources/secrets.js";
4
+ import { AccessResource } from "../resources/access.js";
5
+ import { AgentsResource } from "../resources/agents.js";
6
+ import { SharingResource } from "../resources/sharing.js";
7
+ import { ApprovalsResource } from "../resources/approvals.js";
8
+ import { BillingResource } from "../resources/billing.js";
9
+ import { AuditResource } from "../resources/audit.js";
10
+ import { OrgResource } from "../resources/org.js";
11
+ import { AuthResource } from "../resources/auth.js";
12
+ import { ApiKeysResource } from "../resources/api-keys.js";
13
+ import { ChainsResource } from "../resources/chains.js";
14
+ import { X402Resource } from "../resources/x402.js";
15
+ import { TreasuryResource } from "../resources/treasury.js";
16
+ import { SigningKeysResource } from "../resources/signing-keys.js";
17
+ import { TreasuryWalletsResource } from "../resources/treasury-wallets.js";
18
+ import { PlatformResource } from "../resources/platform.js";
19
+ import { DevicesResource } from "../resources/devices.js";
20
+ import { PasskeysResource } from "../resources/passkeys.js";
21
+ import { DepositDestinationsResource } from "../resources/deposit-destinations.js";
22
+ import { InternalAccountsResource } from "../resources/internal-accounts.js";
23
+ import { FiatResource } from "../resources/fiat.js";
24
+ import { RiskResource } from "../resources/risk.js";
25
+ import { TokensResource } from "../resources/tokens.js";
26
+ import { BindingsResource } from "../resources/bindings.js";
27
+ import { CardsResource } from "../resources/cards.js";
28
+ import { MemoryResource } from "../resources/memory.js";
29
+ import { AutomationsResource } from "../resources/automations.js";
30
+ import { RuntimesResource } from "../resources/runtimes.js";
31
+ import { DiscoveryResource } from "../resources/discovery.js";
32
+ import { ChatResource } from "../resources/chat.js";
33
+ import { ChannelsResource } from "../resources/channels.js";
34
34
  /**
35
35
  * The main 1Claw SDK client. All API resources are exposed as
36
36
  * namespaced properties for discoverability and tree-shaking.
package/dist/core/http.js CHANGED
@@ -1,5 +1,5 @@
1
- import { errorFromResponse, PaymentRequiredError } from "./errors";
2
- import { DPoPManager } from "../auth/dpop";
1
+ import { errorFromResponse, PaymentRequiredError } from "./errors.js";
2
+ import { DPoPManager } from "../auth/dpop.js";
3
3
  /**
4
4
  * Internal HTTP transport used by every resource module.
5
5
  * Handles authentication headers, 402 auto-pay, and error mapping.
@@ -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;