@settlemint/dalp-sdk 3.0.0-main.27348849770 → 3.0.0-main.27349469348
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 +34 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,6 +88,40 @@ await platform.auth.signUp.email({
|
|
|
88
88
|
const sessionCookie = platform.cookieStore.header;
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
+
### Auth Namespaces
|
|
92
|
+
|
|
93
|
+
All namespaces below are fully typed on `DalpAuthClient` — every operation has auto-complete and a typed return value.
|
|
94
|
+
|
|
95
|
+
| Namespace | Operations | Description |
|
|
96
|
+
| -------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------ |
|
|
97
|
+
| `signIn` | `email` | Sign in with email and password |
|
|
98
|
+
| `signUp` | `email` | Register a new account |
|
|
99
|
+
| `getSession` | — | Fetch the current session |
|
|
100
|
+
| `listSessions` | — | List all active sessions |
|
|
101
|
+
| `revokeSession` | — | Revoke a specific session |
|
|
102
|
+
| `revokeOtherSessions` | — | Revoke all sessions except the current one |
|
|
103
|
+
| `apiKey` | `create`, `list`, `delete` | Manage API keys |
|
|
104
|
+
| `organization` | `create`, `list`, `setActive`, `inviteMember`, `acceptInvitation`, `listMembers`, `addMember`, `removeMember` | Manage organizations and membership |
|
|
105
|
+
| `admin` | `listUsers`, `createUser`, `removeUser`, `setRole` | Administrative user management |
|
|
106
|
+
| `device` | `code`, `token`, `approve`, `deny` | Device authorization flow |
|
|
107
|
+
| `twoFactor` | `enable`, `disable`, `verifyTotp`, `verifyBackupCode`, `generateBackupCodes` | Account-level TOTP two-factor authentication |
|
|
108
|
+
| `wallet.pincode` | `enable`, `disable`, `update`, `reset` | Wallet pincode protection |
|
|
109
|
+
| `wallet.twoFactor` | `enable`, `disable`, `verify` | Wallet two-factor verification |
|
|
110
|
+
| `wallet.secretCodes` | `generate`, `confirm` | Wallet secret (recovery) codes |
|
|
111
|
+
| `wallet.passkey` | `register`, `complete`, `disable`, `challenge`, `verify` | Wallet passkey — browser/WebAuthn only |
|
|
112
|
+
| `passkey` | — | Account-level passkey registration (browser/WebAuthn only) |
|
|
113
|
+
|
|
114
|
+
```typescript
|
|
115
|
+
// Enable account-level 2FA and verify a TOTP code
|
|
116
|
+
await auth.twoFactor.enable({ password: "..." });
|
|
117
|
+
await auth.twoFactor.verifyTotp({ code: "123456" });
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
// Enable wallet pincode protection
|
|
122
|
+
await auth.wallet.pincode.enable({ pincode: "1234", password: "..." });
|
|
123
|
+
```
|
|
124
|
+
|
|
91
125
|
## Configuration
|
|
92
126
|
|
|
93
127
|
```typescript
|
package/dist/index.js
CHANGED
|
@@ -91228,7 +91228,7 @@ function normalizeDalpBaseUrl(url) {
|
|
|
91228
91228
|
// package.json
|
|
91229
91229
|
var package_default = {
|
|
91230
91230
|
name: "@settlemint/dalp-sdk",
|
|
91231
|
-
version: "3.0.0-main.
|
|
91231
|
+
version: "3.0.0-main.27349469348",
|
|
91232
91232
|
private: false,
|
|
91233
91233
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
91234
91234
|
homepage: "https://settlemint.com",
|
package/package.json
CHANGED