@1claw/sdk 0.23.0 → 0.24.0
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/README.md +1 -1
- package/dist/generated/api-types.d.ts +80 -3
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/resources/signing-keys.d.ts +3 -1
- package/dist/resources/signing-keys.d.ts.map +1 -1
- package/dist/resources/signing-keys.js +4 -0
- package/dist/resources/signing-keys.js.map +1 -1
- package/dist/resources/treasury-wallets.d.ts +6 -1
- package/dist/resources/treasury-wallets.d.ts.map +1 -1
- package/dist/resources/treasury-wallets.js +7 -2
- package/dist/resources/treasury-wallets.js.map +1 -1
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ await client.auth.resetPassword({ token: "...", new_password: "..." });
|
|
|
90
90
|
| `client.apiKeys` | `create`, `list`, `revoke` |
|
|
91
91
|
| `client.treasury` | `create`, `list`, `get`, `update`, `delete`, `addSigner`, `removeSigner`, `requestAccess`, `listAccessRequests`, `approveAccess`, `denyAccess` |
|
|
92
92
|
| `client.treasuryWallets` | `generateWallets`, `listWallets`, `getWallet`, `exportWallet`, `rotateWallet`, `deactivateWallet` |
|
|
93
|
-
| `client.signingKeys` | `create`, `list`, `rotate`, `deactivate`
|
|
93
|
+
| `client.signingKeys` | `create`, `list`, `rotate`, `deactivate`, `export` |
|
|
94
94
|
| `client.platform` | `createApp`, `listApps`, `getApp`, `updateApp`, `deleteApp`, `createTemplate`, `listTemplates`, `upsertUser`, `bootstrapUser`, `listConnectedApps` |
|
|
95
95
|
| `client.x402` | `getPaymentRequirement`, `pay`, `verifyReceipt`, `withPayment` |
|
|
96
96
|
|
|
@@ -1119,6 +1119,28 @@ export interface paths {
|
|
|
1119
1119
|
patch?: never;
|
|
1120
1120
|
trace?: never;
|
|
1121
1121
|
};
|
|
1122
|
+
"/v1/agents/{agent_id}/signing-keys/{chain}/export": {
|
|
1123
|
+
parameters: {
|
|
1124
|
+
query?: never;
|
|
1125
|
+
header?: never;
|
|
1126
|
+
path?: never;
|
|
1127
|
+
cookie?: never;
|
|
1128
|
+
};
|
|
1129
|
+
get?: never;
|
|
1130
|
+
put?: never;
|
|
1131
|
+
/**
|
|
1132
|
+
* Export a signing key (private key included)
|
|
1133
|
+
* @description Export the private key for an agent's signing key. Requires re-authentication
|
|
1134
|
+
* via the X-Auth-Confirm header containing the user's account password.
|
|
1135
|
+
* Human users only — agents cannot export keys.
|
|
1136
|
+
*/
|
|
1137
|
+
post: operations["exportSigningKey"];
|
|
1138
|
+
delete?: never;
|
|
1139
|
+
options?: never;
|
|
1140
|
+
head?: never;
|
|
1141
|
+
patch?: never;
|
|
1142
|
+
trace?: never;
|
|
1143
|
+
};
|
|
1122
1144
|
"/v1/agents/{agent_id}/sign": {
|
|
1123
1145
|
parameters: {
|
|
1124
1146
|
query?: never;
|
|
@@ -1856,7 +1878,8 @@ export interface paths {
|
|
|
1856
1878
|
/**
|
|
1857
1879
|
* Export the private key for a treasury wallet
|
|
1858
1880
|
* @description Returns the raw private key hex for the user's active wallet on
|
|
1859
|
-
* the given chain.
|
|
1881
|
+
* the given chain. Requires re-authentication via the `X-Auth-Confirm`
|
|
1882
|
+
* header (account password). Audit-logged as `treasury_wallet.export`.
|
|
1860
1883
|
* Human users only.
|
|
1861
1884
|
*/
|
|
1862
1885
|
post: operations["exportTreasuryWallet"];
|
|
@@ -4491,6 +4514,8 @@ export interface components {
|
|
|
4491
4514
|
oidc_jwks_url?: string;
|
|
4492
4515
|
/** Format: uri */
|
|
4493
4516
|
oidc_issuer?: string;
|
|
4517
|
+
/** @description Expected audience claim for OIDC token validation */
|
|
4518
|
+
oidc_audience?: string;
|
|
4494
4519
|
redirect_uris?: string[];
|
|
4495
4520
|
/**
|
|
4496
4521
|
* @default platform_pays
|
|
@@ -4510,6 +4535,8 @@ export interface components {
|
|
|
4510
4535
|
logo_url?: string;
|
|
4511
4536
|
oidc_jwks_url?: string;
|
|
4512
4537
|
oidc_issuer?: string;
|
|
4538
|
+
/** @description Expected audience claim for OIDC token validation */
|
|
4539
|
+
oidc_audience?: string;
|
|
4513
4540
|
redirect_uris?: string[];
|
|
4514
4541
|
webhook_url?: string;
|
|
4515
4542
|
/** @enum {string} */
|
|
@@ -4529,6 +4556,8 @@ export interface components {
|
|
|
4529
4556
|
api_key_prefix?: string;
|
|
4530
4557
|
oidc_jwks_url?: string | null;
|
|
4531
4558
|
oidc_issuer?: string | null;
|
|
4559
|
+
/** @description Expected audience claim for OIDC token validation */
|
|
4560
|
+
oidc_audience?: string | null;
|
|
4532
4561
|
redirect_uris?: string[];
|
|
4533
4562
|
webhook_url?: string | null;
|
|
4534
4563
|
is_active?: boolean;
|
|
@@ -4548,7 +4577,15 @@ export interface components {
|
|
|
4548
4577
|
CreateTemplateRequest: {
|
|
4549
4578
|
name: string;
|
|
4550
4579
|
description?: string;
|
|
4551
|
-
/**
|
|
4580
|
+
/**
|
|
4581
|
+
* @description Template specification defining vault, agents, policies, and signing keys to bootstrap.
|
|
4582
|
+
* Top-level fields: `vault` (object with name, description), `agents` (array of agent specs
|
|
4583
|
+
* with name, description, shroud_enabled, intents, shroud_config), `policies` (array with
|
|
4584
|
+
* vault_ref, principal_ref, paths, permissions, conditions), and `signing_keys` (array of
|
|
4585
|
+
* `{ chain }` objects — supported chains: ethereum, bitcoin, solana, xrp, cardano, tron).
|
|
4586
|
+
* When `signing_keys` is present, HSM-backed signing keys are auto-provisioned for the
|
|
4587
|
+
* bootstrapped agent.
|
|
4588
|
+
*/
|
|
4552
4589
|
spec: Record<string, never>;
|
|
4553
4590
|
};
|
|
4554
4591
|
PlatformTemplateResponse: {
|
|
@@ -6598,6 +6635,43 @@ export interface operations {
|
|
|
6598
6635
|
404: components["responses"]["NotFound"];
|
|
6599
6636
|
};
|
|
6600
6637
|
};
|
|
6638
|
+
exportSigningKey: {
|
|
6639
|
+
parameters: {
|
|
6640
|
+
query?: never;
|
|
6641
|
+
header: {
|
|
6642
|
+
/** @description Account password for re-authentication */
|
|
6643
|
+
"X-Auth-Confirm": string;
|
|
6644
|
+
};
|
|
6645
|
+
path: {
|
|
6646
|
+
agent_id: components["parameters"]["AgentId"];
|
|
6647
|
+
chain: string;
|
|
6648
|
+
};
|
|
6649
|
+
cookie?: never;
|
|
6650
|
+
};
|
|
6651
|
+
requestBody?: never;
|
|
6652
|
+
responses: {
|
|
6653
|
+
/** @description Signing key exported successfully */
|
|
6654
|
+
200: {
|
|
6655
|
+
headers: {
|
|
6656
|
+
[name: string]: unknown;
|
|
6657
|
+
};
|
|
6658
|
+
content: {
|
|
6659
|
+
"application/json": {
|
|
6660
|
+
chain: string;
|
|
6661
|
+
curve: string;
|
|
6662
|
+
public_key: string;
|
|
6663
|
+
address?: string;
|
|
6664
|
+
private_key: string;
|
|
6665
|
+
key_version: number;
|
|
6666
|
+
/** Format: uuid */
|
|
6667
|
+
agent_id: string;
|
|
6668
|
+
};
|
|
6669
|
+
};
|
|
6670
|
+
};
|
|
6671
|
+
403: components["responses"]["Forbidden"];
|
|
6672
|
+
404: components["responses"]["NotFound"];
|
|
6673
|
+
};
|
|
6674
|
+
};
|
|
6601
6675
|
signIntent: {
|
|
6602
6676
|
parameters: {
|
|
6603
6677
|
query?: never;
|
|
@@ -7756,7 +7830,10 @@ export interface operations {
|
|
|
7756
7830
|
exportTreasuryWallet: {
|
|
7757
7831
|
parameters: {
|
|
7758
7832
|
query?: never;
|
|
7759
|
-
header
|
|
7833
|
+
header: {
|
|
7834
|
+
/** @description Account password for re-authentication */
|
|
7835
|
+
"X-Auth-Confirm": string;
|
|
7836
|
+
};
|
|
7760
7837
|
path: {
|
|
7761
7838
|
chain: string;
|
|
7762
7839
|
};
|