WebbiSDK
The main entry point for the WebbiOS SDK. Provides unified access to all API modules.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebbiSDK(
options?):WebbiSDK
Initializes a new WebbiSDK instance.
Parameters
Section titled “Parameters”options?
Section titled “options?”Configuration options for the SDK.
Returns
Section titled “Returns”WebbiSDK
Properties
Section titled “Properties”adminUpdates
Section titled “adminUpdates”adminUpdates:
AdminUpdatesClient
Admin Updates module
ai:
AiModule
Artificial Intelligence module
apiKeys
Section titled “apiKeys”apiKeys:
ApiKeysModule
auditLogs
Section titled “auditLogs”auditLogs:
AuditLogsModule
auth:
AuthModule
Authentication module
backup
Section titled “backup”backup:
BackupModule
chatbot
Section titled “chatbot”chatbot:
ChatbotModule
AI Chatbot module
client
Section titled “client”client:
ApiClient
The core API client instance
cloudflare
Section titled “cloudflare”cloudflare:
CloudflareModule
crm:
CrmModule
cronJobs
Section titled “cronJobs”cronJobs:
CronJobsModule
dashboard
Section titled “dashboard”dashboard:
DashboardModule
Dashboard module
media:
MediaModule
menus:
MenusModule
Menus module
notifications
Section titled “notifications”notifications:
NotificationsModule
permissions
Section titled “permissions”permissions:
PermissionsModule
Permissions module
platform
Section titled “platform”platform:
PlatformModule
Platform module
products
Section titled “products”products:
ProductsModule
Products module
roles:
RolesModule
Roles module
settings
Section titled “settings”settings:
SettingsModule
Settings module
users:
UsersModule
webhooks
Section titled “webhooks”webhooks:
WebhooksModule
Methods
Section titled “Methods”onAuthError()
Section titled “onAuthError()”onAuthError(
callback):void
Sets a callback to be triggered when an authentication error occurs.
Parameters
Section titled “Parameters”callback
Section titled “callback”() => void
The function to call on auth error.
Returns
Section titled “Returns”void
onTokensRefreshed()
Section titled “onTokensRefreshed()”onTokensRefreshed(
callback):void
Registers a callback that will be triggered when the SDK automatically refreshes the token.
Parameters
Section titled “Parameters”callback
Section titled “callback”(accessToken, refreshToken) => void
The callback function.
Returns
Section titled “Returns”void
setRefreshToken()
Section titled “setRefreshToken()”setRefreshToken(
token):void
Sets or updates the Refresh token for automatic rotation.
Parameters
Section titled “Parameters”string
The Refresh token string.
Returns
Section titled “Returns”void
setToken()
Section titled “setToken()”setToken(
token):void
Updates the authentication token across the entire SDK.
Parameters
Section titled “Parameters”string
The new JWT access token.
Returns
Section titled “Returns”void