Tenants API

Get tenant information and manage tenant settings.

getCurrent(): Promise<Tenant>
Get current tenant information
const tenant = await client.tenants.getCurrent()
console.log(`Plan: ${tenant.plan_name}`)
console.log(`Events limit: ${tenant.plan_limits?.monthly_events_limit}`)
updateSettings(settings): Promise<TenantSettings>
Update tenant settings
const settings = await client.tenants.updateSettings({
  pipeline_config: {
    retention_days: 60,
    compression: true
  },
  notification_preferences: {
    email_enabled: true,
    webhook_enabled: false
  }
})