@1claw/sdk 0.25.0 → 0.26.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 +8 -1
- package/dist/generated/api-types.d.ts +1049 -62
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/mcp/handler.d.ts.map +1 -1
- package/dist/mcp/handler.js +8 -4
- package/dist/mcp/handler.js.map +1 -1
- package/dist/resources/approvals.d.ts +2 -2
- package/dist/resources/approvals.js +3 -3
- package/dist/resources/approvals.js.map +1 -1
- package/dist/resources/auth.d.ts +29 -0
- package/dist/resources/auth.d.ts.map +1 -1
- package/dist/resources/auth.js +21 -0
- package/dist/resources/auth.js.map +1 -1
- package/dist/types.d.ts +5 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,13 @@ await client.auth.google({ id_token: "..." });
|
|
|
70
70
|
// Password reset (public; no Bearer token — use a client without stored JWT)
|
|
71
71
|
await client.auth.forgotPassword({ email: "user@example.com" });
|
|
72
72
|
await client.auth.resetPassword({ token: "...", new_password: "..." });
|
|
73
|
+
|
|
74
|
+
// Set password (platform OIDC users who don't have one)
|
|
75
|
+
await client.auth.setPassword({ password: "...", password_confirm: "..." });
|
|
76
|
+
|
|
77
|
+
// Change email (sends verification code to new address)
|
|
78
|
+
await client.auth.changeEmail({ new_email: "new@example.com" });
|
|
79
|
+
await client.auth.verifyEmailChange({ code: "123456" });
|
|
73
80
|
```
|
|
74
81
|
|
|
75
82
|
## API Resources
|
|
@@ -86,7 +93,7 @@ await client.auth.resetPassword({ token: "...", new_password: "..." });
|
|
|
86
93
|
| `client.billing` | `usage`, `history`, `llmTokenBilling`, `subscribeLlmTokenBilling`, `disableLlmTokenBilling` (LLM token billing / Stripe AI Gateway) |
|
|
87
94
|
| `client.audit` | `query` |
|
|
88
95
|
| `client.org` | `listMembers`, `getAgentKeysVault`, `updateMemberRole`, `removeMember` |
|
|
89
|
-
| `client.auth` | `login`, `signup`, `agentToken`, `apiKeyToken`, `google`, `changePassword`, `forgotPassword`, `resetPassword`, `exportData`, `exchangeFederatedToken`, `logout`, `getMe`, `updateMe`, `deleteMe` |
|
|
96
|
+
| `client.auth` | `login`, `signup`, `agentToken`, `apiKeyToken`, `google`, `changePassword`, `setPassword`, `changeEmail`, `verifyEmailChange`, `forgotPassword`, `resetPassword`, `exportData`, `exchangeFederatedToken`, `logout`, `getMe`, `updateMe`, `deleteMe` |
|
|
90
97
|
| `client.apiKeys` | `create`, `list`, `revoke` |
|
|
91
98
|
| `client.treasury` | `create`, `list`, `get`, `update`, `delete`, `addSigner`, `removeSigner`, `requestAccess`, `listAccessRequests`, `approveAccess`, `denyAccess` |
|
|
92
99
|
| `client.treasuryWallets` | `generateWallets`, `listWallets`, `getWallet`, `exportWallet`, `rotateWallet`, `deactivateWallet` |
|