@orchestree/settings
v1.2.0
Published
Settings module — Account management, billing, security preferences, appearance
Maintainers
Readme
@orchestree/settings
Account and security settings management for Orchestree. Manage user preferences, billing, security, and account settings.
Installation
npm install @orchestree/settingsQuick Start
const { SettingsClient } = require('@orchestree/settings');
const client = new SettingsClient({
apiKey: 'your-api-key',
});
// Get settings
const settings = await client.getSettings();
// Update settings
await client.updateSettings({
timezone: 'America/New_York',
theme: 'dark',
});
// Get billing info
const billing = await client.getBilling();
// Enable 2FA
await client.enable2FA('authenticator');
// Get security log
const logs = await client.getSecurityLog({ limit: 50 });API Reference
SettingsClient
getSettings()
Get account settings.
const settings = await client.getSettings();updateSettings(updates)
Update account settings.
await client.updateSettings({
timezone: 'Europe/London',
language: 'en',
});getBilling()
Get billing information.
const billing = await client.getBilling();updateBilling(billingInfo)
Update billing information.
await client.updateBilling({
paymentMethod: 'card-123',
});getSecurityLog(filters)
Get security log entries.
const logs = await client.getSecurityLog({
days: 30,
action: 'login',
});enable2FA(method)
Enable two-factor authentication.
await client.enable2FA('authenticator');changePassword(oldPassword, newPassword)
Change account password.
await client.changePassword('oldPass123', 'newPass456');License
MIT
