oryksa_server library

ORYKSA server helpers: ONLY for the subscriber's own backend (Dart servers such as shelf, dart_frog or serverpod). Never import this library in a Flutter app.

The app library (package:oryksa/oryksa.dart) serves the customers of the business only and does not include any of this.

Docs: https://developer.oryksa.com

Classes

Oryksa
Server client for Dart backends (shelf, dart_frog, serverpod...). Uses the SECRET API key (oryk_live_...). Never put the key inside a Flutter app: in the app use OryksaClient with a session token created here with createSession.
OryksaAgent
Public look of the AI employee (the same data the ORYKSA website chat shows).
OryksaAppContext
Where the customer is inside your app. Sent with each message so the AI knows the current screen (for example a product page) and answers about it.
OryksaMessage
One message of the conversation.
OryksaReply
Answer of send: replied with the text, or pending while the AI is still writing.

Functions

verifyWebhook(String rawBody, String? signatureHeader, String secret, {Duration tolerance = const Duration(minutes: 5)}) → Map<String, dynamic>
Verifies an ORYKSA webhook (for Dart backends). Pass the RAW body and the ORYKSA-Signature header. Returns the parsed event or throws OryksaException.

Exceptions / Errors

OryksaException
Error returned by the ORYKSA API.