@1claw/sdk 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/dist/core/client.js +33 -33
- package/dist/core/http.js +2 -2
- package/dist/index.js +34 -34
- package/dist/mcp/index.js +2 -2
- package/dist/resources/x402.js +1 -1
- package/package.json +2 -2
package/dist/core/client.js
CHANGED
|
@@ -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.
|
package/dist/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
// Client
|
|
2
|
-
export { OneclawClient, createClient } from "./core/client";
|
|
2
|
+
export { OneclawClient, createClient } from "./core/client.js";
|
|
3
3
|
// Core internals (for advanced usage)
|
|
4
|
-
export { HttpClient } from "./core/http";
|
|
4
|
+
export { HttpClient } from "./core/http.js";
|
|
5
5
|
// Resource modules
|
|
6
|
-
export { VaultResource } from "./resources/vault";
|
|
7
|
-
export { SecretsResource } from "./resources/secrets";
|
|
8
|
-
export { AccessResource } from "./resources/access";
|
|
9
|
-
export { AgentsResource } from "./resources/agents";
|
|
10
|
-
export { SharingResource } from "./resources/sharing";
|
|
11
|
-
export { ApprovalsResource } from "./resources/approvals";
|
|
12
|
-
export { BillingResource } from "./resources/billing";
|
|
13
|
-
export { AuditResource } from "./resources/audit";
|
|
14
|
-
export { OrgResource } from "./resources/org";
|
|
15
|
-
export { AuthResource } from "./resources/auth";
|
|
16
|
-
export { ApiKeysResource } from "./resources/api-keys";
|
|
17
|
-
export { ChainsResource } from "./resources/chains";
|
|
18
|
-
export { X402Resource } from "./resources/x402";
|
|
19
|
-
export { TreasuryResource } from "./resources/treasury";
|
|
20
|
-
export { SigningKeysResource } from "./resources/signing-keys";
|
|
21
|
-
export { PlatformResource, ScopedPlatformClient } from "./resources/platform";
|
|
22
|
-
export { TreasuryWalletsResource } from "./resources/treasury-wallets";
|
|
23
|
-
export { DevicesResource } from "./resources/devices";
|
|
24
|
-
export { PasskeysResource } from "./resources/passkeys";
|
|
25
|
-
export { RiskResource } from "./resources/risk";
|
|
26
|
-
export { TokensResource } from "./resources/tokens";
|
|
27
|
-
export { BindingsResource } from "./resources/bindings";
|
|
28
|
-
export { CardsResource } from "./resources/cards";
|
|
29
|
-
export { MemoryResource } from "./resources/memory";
|
|
30
|
-
export { AutomationsResource } from "./resources/automations";
|
|
31
|
-
export { RuntimesResource } from "./resources/runtimes";
|
|
32
|
-
export { DiscoveryResource } from "./resources/discovery";
|
|
33
|
-
export { ChatResource } from "./resources/chat";
|
|
34
|
-
export { ChannelsResource } from "./resources/channels";
|
|
6
|
+
export { VaultResource } from "./resources/vault.js";
|
|
7
|
+
export { SecretsResource } from "./resources/secrets.js";
|
|
8
|
+
export { AccessResource } from "./resources/access.js";
|
|
9
|
+
export { AgentsResource } from "./resources/agents.js";
|
|
10
|
+
export { SharingResource } from "./resources/sharing.js";
|
|
11
|
+
export { ApprovalsResource } from "./resources/approvals.js";
|
|
12
|
+
export { BillingResource } from "./resources/billing.js";
|
|
13
|
+
export { AuditResource } from "./resources/audit.js";
|
|
14
|
+
export { OrgResource } from "./resources/org.js";
|
|
15
|
+
export { AuthResource } from "./resources/auth.js";
|
|
16
|
+
export { ApiKeysResource } from "./resources/api-keys.js";
|
|
17
|
+
export { ChainsResource } from "./resources/chains.js";
|
|
18
|
+
export { X402Resource } from "./resources/x402.js";
|
|
19
|
+
export { TreasuryResource } from "./resources/treasury.js";
|
|
20
|
+
export { SigningKeysResource } from "./resources/signing-keys.js";
|
|
21
|
+
export { PlatformResource, ScopedPlatformClient } from "./resources/platform.js";
|
|
22
|
+
export { TreasuryWalletsResource } from "./resources/treasury-wallets.js";
|
|
23
|
+
export { DevicesResource } from "./resources/devices.js";
|
|
24
|
+
export { PasskeysResource } from "./resources/passkeys.js";
|
|
25
|
+
export { RiskResource } from "./resources/risk.js";
|
|
26
|
+
export { TokensResource } from "./resources/tokens.js";
|
|
27
|
+
export { BindingsResource } from "./resources/bindings.js";
|
|
28
|
+
export { CardsResource } from "./resources/cards.js";
|
|
29
|
+
export { MemoryResource } from "./resources/memory.js";
|
|
30
|
+
export { AutomationsResource } from "./resources/automations.js";
|
|
31
|
+
export { RuntimesResource } from "./resources/runtimes.js";
|
|
32
|
+
export { DiscoveryResource } from "./resources/discovery.js";
|
|
33
|
+
export { ChatResource } from "./resources/chat.js";
|
|
34
|
+
export { ChannelsResource } from "./resources/channels.js";
|
|
35
35
|
// DPoP (Demonstration of Proof-of-Possession)
|
|
36
|
-
export { DPoPManager } from "./auth/dpop";
|
|
36
|
+
export { DPoPManager } from "./auth/dpop.js";
|
|
37
37
|
// CMEK (Customer-Managed Encryption Keys)
|
|
38
|
-
export { generateCmekKey, cmekFingerprint, cmekEncrypt, cmekDecrypt, toBase64, fromBase64, } from "./cmek";
|
|
38
|
+
export { generateCmekKey, cmekFingerprint, cmekEncrypt, cmekDecrypt, toBase64, fromBase64, } from "./cmek.js";
|
|
39
39
|
// Errors
|
|
40
|
-
export { OneclawError, AuthError, ResourceLimitExceededError, PaymentRequiredError, ApprovalRequiredError, NotFoundError, RateLimitError, ValidationError, ServerError, } from "./core/errors";
|
|
40
|
+
export { OneclawError, AuthError, ResourceLimitExceededError, PaymentRequiredError, ApprovalRequiredError, NotFoundError, RateLimitError, ValidationError, ServerError, } from "./core/errors.js";
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { McpHandler } from "./handler";
|
|
2
|
-
export { getMcpToolDefinitions, ALL_TOOLS, TOOL_GET_SECRET, TOOL_SET_SECRET, TOOL_LIST_SECRET_KEYS, TOOL_DELETE_SECRET, TOOL_LIST_VAULTS, TOOL_CREATE_VAULT, TOOL_REQUEST_APPROVAL, TOOL_CHECK_APPROVAL, TOOL_PAY_AND_FETCH, TOOL_SHARE_SECRET, } from "./tools";
|
|
1
|
+
export { McpHandler } from "./handler.js";
|
|
2
|
+
export { getMcpToolDefinitions, ALL_TOOLS, TOOL_GET_SECRET, TOOL_SET_SECRET, TOOL_LIST_SECRET_KEYS, TOOL_DELETE_SECRET, TOOL_LIST_VAULTS, TOOL_CREATE_VAULT, TOOL_REQUEST_APPROVAL, TOOL_CHECK_APPROVAL, TOOL_PAY_AND_FETCH, TOOL_SHARE_SECRET, } from "./tools.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/resources/x402.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1claw/sdk",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.4",
|
|
4
4
|
"description": "TypeScript SDK for 1Claw Vault — secret management for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"generate": "openapi-typescript ../openapi-spec/openapi.yaml -o src/generated/api-types.ts",
|
|
24
|
-
"build": "tsc",
|
|
24
|
+
"build": "tsc && node scripts/fix-esm-imports.mjs",
|
|
25
25
|
"clean": "rm -rf dist",
|
|
26
26
|
"test": "vitest",
|
|
27
27
|
"prepublishOnly": "npm run generate && npm run clean && npm run build"
|