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).
OryksaAiResult
The answer of OryksaClient.ai: an AI task of your own app (read a photo, extract data, classify, write), counted as ORYKSA interactions.
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.
OryksaAudio
Audio returned by an ORYKSA endpoint (OryksaClient.requestAudio): the bytes and the response headers.
OryksaFile
A document from the customer (PDF, Word, text or CSV, up to about 8 MB). The AI reads it.
OryksaImage
A photo the customer picked in your app (for example with the image_picker package). The AI looks at it and answers about it, as in the ORYKSA website chat.
OryksaLinkPreview
Title and picture of a link of the business's own site (OryksaClient.linkPreview).
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.