@1claw/sdk 0.59.0 → 0.59.2
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 +2 -2
- package/dist/generated/api-types.d.ts +238 -7
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/resources/org.d.ts +7 -0
- package/dist/resources/org.d.ts.map +1 -1
- package/dist/resources/org.js +11 -0
- package/dist/resources/org.js.map +1 -1
- package/dist/resources/platform.d.ts +21 -0
- package/dist/resources/platform.d.ts.map +1 -1
- package/dist/resources/platform.js +10 -0
- package/dist/resources/platform.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @1claw/sdk (v0.59.
|
|
1
|
+
# @1claw/sdk (v0.59.2)
|
|
2
2
|
|
|
3
3
|
TypeScript/JavaScript client for the 1Claw Vault API.
|
|
4
4
|
|
|
@@ -96,7 +96,7 @@ await client.auth.verifyEmailChange({ code: "123456" });
|
|
|
96
96
|
| `client.approvals` | `request`, `list`, `approve`, `deny`, `check`, `subscribe` |
|
|
97
97
|
| `client.billing` | `usage`, `history`, `llmTokenBilling`, `subscribeLlmTokenBilling`, `disableLlmTokenBilling` (LLM token billing / Stripe AI Gateway) |
|
|
98
98
|
| `client.audit` | `query` |
|
|
99
|
-
| `client.org` | `listMembers`, `getAgentKeysVault`, `updateMemberRole`, `removeMember`
|
|
99
|
+
| `client.org` | `listMembers`, `getAgentKeysVault`, `getOnboardingStatus`, `provisionOnboarding`, `updateMemberRole`, `removeMember` |
|
|
100
100
|
| `client.auth` | `login`, `signup`, `agentToken`, `apiKeyToken`, `google`, `socialLogin`, `sendEmailOtp`, `verifyEmailOtp`, `exchangeOAuthCode`, `revokeToken`, `revokeConsent`, `getUserInfo`, `changePassword`, `setPassword`, `changeEmail`, `verifyEmailChange`, `forgotPassword`, `resetPassword`, `exportData`, `exchangeFederatedToken`, `logout`, `getMe`, `updateMe`, `deleteMe` |
|
|
101
101
|
| `client.apiKeys` | `create`, `list`, `revoke` |
|
|
102
102
|
| `client.treasury` | `create`, `list`, `get`, `update`, `delete`, `addSigner`, `removeSigner`, `requestAccess`, `listAccessRequests`, `approveAccess`, `denyAccess`, `propose`, `listProposals`, `getProposal`, `signProposal`, `executeProposal` |
|
|
@@ -2360,6 +2360,46 @@ export interface paths {
|
|
|
2360
2360
|
patch?: never;
|
|
2361
2361
|
trace?: never;
|
|
2362
2362
|
};
|
|
2363
|
+
"/v1/org/onboarding/status": {
|
|
2364
|
+
parameters: {
|
|
2365
|
+
query?: never;
|
|
2366
|
+
header?: never;
|
|
2367
|
+
path?: never;
|
|
2368
|
+
cookie?: never;
|
|
2369
|
+
};
|
|
2370
|
+
/**
|
|
2371
|
+
* Onboarding funnel status
|
|
2372
|
+
* @description Returns welcome-bundle and MCP connection progress for the connect wizard.
|
|
2373
|
+
*/
|
|
2374
|
+
get: operations["getOnboardingStatus"];
|
|
2375
|
+
put?: never;
|
|
2376
|
+
post?: never;
|
|
2377
|
+
delete?: never;
|
|
2378
|
+
options?: never;
|
|
2379
|
+
head?: never;
|
|
2380
|
+
patch?: never;
|
|
2381
|
+
trace?: never;
|
|
2382
|
+
};
|
|
2383
|
+
"/v1/onboarding/provision": {
|
|
2384
|
+
parameters: {
|
|
2385
|
+
query?: never;
|
|
2386
|
+
header?: never;
|
|
2387
|
+
path?: never;
|
|
2388
|
+
cookie?: never;
|
|
2389
|
+
};
|
|
2390
|
+
get?: never;
|
|
2391
|
+
put?: never;
|
|
2392
|
+
/**
|
|
2393
|
+
* Provision MCP onboarding bundle
|
|
2394
|
+
* @description Creates welcome vault + sample secret, MCP agent, and default ** policy. Returns one-time API key and stdio MCP config.
|
|
2395
|
+
*/
|
|
2396
|
+
post: operations["provisionOnboarding"];
|
|
2397
|
+
delete?: never;
|
|
2398
|
+
options?: never;
|
|
2399
|
+
head?: never;
|
|
2400
|
+
patch?: never;
|
|
2401
|
+
trace?: never;
|
|
2402
|
+
};
|
|
2363
2403
|
"/v1/org/status": {
|
|
2364
2404
|
parameters: {
|
|
2365
2405
|
query?: never;
|
|
@@ -5261,6 +5301,28 @@ export interface paths {
|
|
|
5261
5301
|
patch?: never;
|
|
5262
5302
|
trace?: never;
|
|
5263
5303
|
};
|
|
5304
|
+
"/v1/platform/connections/{connectionId}/signing-keys": {
|
|
5305
|
+
parameters: {
|
|
5306
|
+
query?: never;
|
|
5307
|
+
header?: never;
|
|
5308
|
+
path?: never;
|
|
5309
|
+
cookie?: never;
|
|
5310
|
+
};
|
|
5311
|
+
/**
|
|
5312
|
+
* List signing keys for a connection agent
|
|
5313
|
+
* @description Returns public signing-key metadata (chain, address, public_key, curve) for
|
|
5314
|
+
* agent(s) provisioned on the connection. Never includes private keys.
|
|
5315
|
+
* When multiple agents exist, pass `agent_id` query param. plt_ auth only.
|
|
5316
|
+
*/
|
|
5317
|
+
get: operations["listConnectionSigningKeys"];
|
|
5318
|
+
put?: never;
|
|
5319
|
+
post?: never;
|
|
5320
|
+
delete?: never;
|
|
5321
|
+
options?: never;
|
|
5322
|
+
head?: never;
|
|
5323
|
+
patch?: never;
|
|
5324
|
+
trace?: never;
|
|
5325
|
+
};
|
|
5264
5326
|
"/v1/platform/connections/{connectionId}/signing-keys/{chain}": {
|
|
5265
5327
|
parameters: {
|
|
5266
5328
|
query?: never;
|
|
@@ -5268,7 +5330,12 @@ export interface paths {
|
|
|
5268
5330
|
path?: never;
|
|
5269
5331
|
cookie?: never;
|
|
5270
5332
|
};
|
|
5271
|
-
|
|
5333
|
+
/**
|
|
5334
|
+
* Get a signing key for a connection agent by chain
|
|
5335
|
+
* @description Returns public signing-key metadata for one chain on a connection agent.
|
|
5336
|
+
* Never includes private keys. plt_ auth only.
|
|
5337
|
+
*/
|
|
5338
|
+
get: operations["getConnectionSigningKey"];
|
|
5272
5339
|
put?: never;
|
|
5273
5340
|
post?: never;
|
|
5274
5341
|
/**
|
|
@@ -9624,6 +9691,25 @@ export interface components {
|
|
|
9624
9691
|
SigningKeyListResponse: {
|
|
9625
9692
|
keys?: components["schemas"]["SigningKeyResponse"][];
|
|
9626
9693
|
};
|
|
9694
|
+
ConnectionSigningKeyPublic: {
|
|
9695
|
+
chain?: string;
|
|
9696
|
+
address?: string;
|
|
9697
|
+
public_key?: string;
|
|
9698
|
+
curve?: string;
|
|
9699
|
+
};
|
|
9700
|
+
ConnectionSigningKeyListResponse: {
|
|
9701
|
+
/** Format: uuid */
|
|
9702
|
+
agent_id?: string;
|
|
9703
|
+
keys?: components["schemas"]["ConnectionSigningKeyPublic"][];
|
|
9704
|
+
};
|
|
9705
|
+
ConnectionSigningKeyDetailResponse: {
|
|
9706
|
+
/** Format: uuid */
|
|
9707
|
+
agent_id?: string;
|
|
9708
|
+
chain?: string;
|
|
9709
|
+
address?: string;
|
|
9710
|
+
public_key?: string;
|
|
9711
|
+
curve?: string;
|
|
9712
|
+
};
|
|
9627
9713
|
LeaseBankrKeyRequest: {
|
|
9628
9714
|
/** @description Bankr wallet ID (wlt_...). Uses org default if omitted. */
|
|
9629
9715
|
wallet_id?: string;
|
|
@@ -9984,6 +10070,29 @@ export interface components {
|
|
|
9984
10070
|
message?: string;
|
|
9985
10071
|
email?: string;
|
|
9986
10072
|
};
|
|
10073
|
+
OnboardingStatus: {
|
|
10074
|
+
has_vault: boolean;
|
|
10075
|
+
has_agent: boolean;
|
|
10076
|
+
has_policy: boolean;
|
|
10077
|
+
has_sample_secret: boolean;
|
|
10078
|
+
first_secret_read: boolean;
|
|
10079
|
+
welcome_bundle_complete: boolean;
|
|
10080
|
+
/** Format: uuid */
|
|
10081
|
+
default_vault_id?: string | null;
|
|
10082
|
+
};
|
|
10083
|
+
OnboardingProvisionRequest: {
|
|
10084
|
+
agent_name?: string;
|
|
10085
|
+
client?: string;
|
|
10086
|
+
};
|
|
10087
|
+
OnboardingProvisionResponse: {
|
|
10088
|
+
/** Format: uuid */
|
|
10089
|
+
agent_id: string;
|
|
10090
|
+
api_key: string;
|
|
10091
|
+
/** Format: uuid */
|
|
10092
|
+
vault_id: string;
|
|
10093
|
+
mcp_stdio_config: Record<string, never>;
|
|
10094
|
+
verify_prompt: string;
|
|
10095
|
+
};
|
|
9987
10096
|
AgentKeysVaultResponse: {
|
|
9988
10097
|
/** Format: uuid */
|
|
9989
10098
|
vault_id?: string;
|
|
@@ -10780,6 +10889,8 @@ export interface components {
|
|
|
10780
10889
|
* @description Optional expiration time for the platform API key. Set to null to clear.
|
|
10781
10890
|
*/
|
|
10782
10891
|
api_key_expires_at?: string | null;
|
|
10892
|
+
/** @description Hostname allowed in SIWE messages for wallet sign-in (EIP-4361). */
|
|
10893
|
+
siwe_domain?: string | null;
|
|
10783
10894
|
};
|
|
10784
10895
|
PlatformAppDeleteResponse: {
|
|
10785
10896
|
deleted: boolean;
|
|
@@ -10832,6 +10943,8 @@ export interface components {
|
|
|
10832
10943
|
* @description When the platform API key was last rotated.
|
|
10833
10944
|
*/
|
|
10834
10945
|
api_key_rotated_at?: string | null;
|
|
10946
|
+
/** @description Hostname allowed in SIWE messages for wallet sign-in (EIP-4361). */
|
|
10947
|
+
siwe_domain?: string | null;
|
|
10835
10948
|
/** Format: date-time */
|
|
10836
10949
|
created_at?: string;
|
|
10837
10950
|
/** Format: date-time */
|
|
@@ -10846,12 +10959,21 @@ export interface components {
|
|
|
10846
10959
|
description?: string;
|
|
10847
10960
|
/**
|
|
10848
10961
|
* @description Template specification defining vault, agents, policies, and signing keys to bootstrap.
|
|
10849
|
-
* Top-level fields: `vault` (object with name, description), `agents` (array of agent specs
|
|
10850
|
-
* with
|
|
10851
|
-
*
|
|
10852
|
-
*
|
|
10853
|
-
*
|
|
10854
|
-
*
|
|
10962
|
+
* Top-level fields: `vault` (object with name, description), `agents` (array of agent specs),
|
|
10963
|
+
* `policies` (array with vault_ref, principal_ref, paths, permissions, conditions), and
|
|
10964
|
+
* `signing_keys` (array of `{ chain }` objects — supported chains: ethereum, bitcoin, solana,
|
|
10965
|
+
* xrp, cardano, tron). When `signing_keys` is present, HSM-backed signing keys are
|
|
10966
|
+
* auto-provisioned for the bootstrapped agent.
|
|
10967
|
+
*
|
|
10968
|
+
* Each agent entry accepts Intents API and Execution Intents flags under any of these aliases
|
|
10969
|
+
* (direct API field name, boolean shorthand, or `{ enabled: true }` object):
|
|
10970
|
+
* - Intents API → `intents_api_enabled`, `intents: true`, or `intents: { enabled: true }`
|
|
10971
|
+
* (maps to `agents.intents_api_enabled`)
|
|
10972
|
+
* - Execution Intents → `execution_intents_enabled`, `execution: true`, or
|
|
10973
|
+
* `execution: { enabled: true }` (maps to `agents.execution_intents_enabled`)
|
|
10974
|
+
*
|
|
10975
|
+
* Other agent fields: `name`, `description`, `shroud_enabled`, `shroud_config`, `system_prompt`,
|
|
10976
|
+
* `environment`, `signing_keys`, `provision_eoa`, `memory`, `runtime`, `default_llm_provider`.
|
|
10855
10977
|
*/
|
|
10856
10978
|
spec: Record<string, never>;
|
|
10857
10979
|
};
|
|
@@ -17623,6 +17745,50 @@ export interface operations {
|
|
|
17623
17745
|
};
|
|
17624
17746
|
};
|
|
17625
17747
|
};
|
|
17748
|
+
getOnboardingStatus: {
|
|
17749
|
+
parameters: {
|
|
17750
|
+
query?: never;
|
|
17751
|
+
header?: never;
|
|
17752
|
+
path?: never;
|
|
17753
|
+
cookie?: never;
|
|
17754
|
+
};
|
|
17755
|
+
requestBody?: never;
|
|
17756
|
+
responses: {
|
|
17757
|
+
/** @description Onboarding status */
|
|
17758
|
+
200: {
|
|
17759
|
+
headers: {
|
|
17760
|
+
[name: string]: unknown;
|
|
17761
|
+
};
|
|
17762
|
+
content: {
|
|
17763
|
+
"application/json": components["schemas"]["OnboardingStatus"];
|
|
17764
|
+
};
|
|
17765
|
+
};
|
|
17766
|
+
};
|
|
17767
|
+
};
|
|
17768
|
+
provisionOnboarding: {
|
|
17769
|
+
parameters: {
|
|
17770
|
+
query?: never;
|
|
17771
|
+
header?: never;
|
|
17772
|
+
path?: never;
|
|
17773
|
+
cookie?: never;
|
|
17774
|
+
};
|
|
17775
|
+
requestBody?: {
|
|
17776
|
+
content: {
|
|
17777
|
+
"application/json": components["schemas"]["OnboardingProvisionRequest"];
|
|
17778
|
+
};
|
|
17779
|
+
};
|
|
17780
|
+
responses: {
|
|
17781
|
+
/** @description Provisioned resources */
|
|
17782
|
+
200: {
|
|
17783
|
+
headers: {
|
|
17784
|
+
[name: string]: unknown;
|
|
17785
|
+
};
|
|
17786
|
+
content: {
|
|
17787
|
+
"application/json": components["schemas"]["OnboardingProvisionResponse"];
|
|
17788
|
+
};
|
|
17789
|
+
};
|
|
17790
|
+
};
|
|
17791
|
+
};
|
|
17626
17792
|
getOrgStatus: {
|
|
17627
17793
|
parameters: {
|
|
17628
17794
|
query?: never;
|
|
@@ -20222,6 +20388,71 @@ export interface operations {
|
|
|
20222
20388
|
};
|
|
20223
20389
|
};
|
|
20224
20390
|
};
|
|
20391
|
+
listConnectionSigningKeys: {
|
|
20392
|
+
parameters: {
|
|
20393
|
+
query?: {
|
|
20394
|
+
agent_id?: string;
|
|
20395
|
+
};
|
|
20396
|
+
header?: never;
|
|
20397
|
+
path: {
|
|
20398
|
+
connectionId: string;
|
|
20399
|
+
};
|
|
20400
|
+
cookie?: never;
|
|
20401
|
+
};
|
|
20402
|
+
requestBody?: never;
|
|
20403
|
+
responses: {
|
|
20404
|
+
/** @description Signing keys for the connection agent */
|
|
20405
|
+
200: {
|
|
20406
|
+
headers: {
|
|
20407
|
+
[name: string]: unknown;
|
|
20408
|
+
};
|
|
20409
|
+
content: {
|
|
20410
|
+
"application/json": components["schemas"]["ConnectionSigningKeyListResponse"];
|
|
20411
|
+
};
|
|
20412
|
+
};
|
|
20413
|
+
/** @description Multiple agents — agent_id required */
|
|
20414
|
+
400: {
|
|
20415
|
+
headers: {
|
|
20416
|
+
[name: string]: unknown;
|
|
20417
|
+
};
|
|
20418
|
+
content?: never;
|
|
20419
|
+
};
|
|
20420
|
+
404: components["responses"]["NotFound"];
|
|
20421
|
+
};
|
|
20422
|
+
};
|
|
20423
|
+
getConnectionSigningKey: {
|
|
20424
|
+
parameters: {
|
|
20425
|
+
query?: {
|
|
20426
|
+
agent_id?: string;
|
|
20427
|
+
};
|
|
20428
|
+
header?: never;
|
|
20429
|
+
path: {
|
|
20430
|
+
connectionId: string;
|
|
20431
|
+
chain: string;
|
|
20432
|
+
};
|
|
20433
|
+
cookie?: never;
|
|
20434
|
+
};
|
|
20435
|
+
requestBody?: never;
|
|
20436
|
+
responses: {
|
|
20437
|
+
/** @description Signing key metadata */
|
|
20438
|
+
200: {
|
|
20439
|
+
headers: {
|
|
20440
|
+
[name: string]: unknown;
|
|
20441
|
+
};
|
|
20442
|
+
content: {
|
|
20443
|
+
"application/json": components["schemas"]["ConnectionSigningKeyDetailResponse"];
|
|
20444
|
+
};
|
|
20445
|
+
};
|
|
20446
|
+
/** @description Multiple agents — agent_id required */
|
|
20447
|
+
400: {
|
|
20448
|
+
headers: {
|
|
20449
|
+
[name: string]: unknown;
|
|
20450
|
+
};
|
|
20451
|
+
content?: never;
|
|
20452
|
+
};
|
|
20453
|
+
404: components["responses"]["NotFound"];
|
|
20454
|
+
};
|
|
20455
|
+
};
|
|
20225
20456
|
deactivateConnectionSigningKey: {
|
|
20226
20457
|
parameters: {
|
|
20227
20458
|
query?: {
|