NotificationSearchResult
The result of searchNotifications, normalized per solver kind. It is a discriminated union on kind — narrow on it (or pass a literal solverId to searchNotifications) to reach the variant’s fields.
type NotificationSearchResult = EnigmaNotificationSearchResult | RasaNotificationSearchResult;NotificationSearchResultByKind maps each kind to its variant ({ enigma: EnigmaNotificationSearchResult; rasa: RasaNotificationSearchResult }); indexing it by the caller’s solverId is how the searchNotifications return narrows.
EnigmaNotificationSearchResult
A page from an enigma solver — the standalone notification service’s stored documents.
kind"enigma"Discriminant: this page came from an enigma solver.
totalnumberTotal documents matching the filter, ignoring pagination (enigma service only).
countnumberNumber of rows returned in this page.
rowsNotificationDocument[]The matched documents for the requested start / size window.
RasaNotificationSearchResult
A page from a rasa solver — the solver’s own position-state records (POST /position-state/{start}/{size}), which are the rasa protocol’s notification history. There is no total field.
kind"rasa"Discriminant: this page came from a rasa solver.
countnumberTotal matching rows on the solver, for paging.
rowsPositionStateResponseSchema[]The matched position-state rows for the requested window (quote_id, counterparty_address, filled_amount_open /
filled_amount_close, avg_price_open / avg_price_close, last_seen_action, action_status, timing fields, …).
NotificationDocument
A stored notification document as returned by the enigma search endpoint. Only the well-known top-level fields are typed; an index signature ([key: string]: unknown) keeps app-specific fields reachable. For trading notifications the data payload is the position wire frame (RawPositionNotification).
idstringoptionalapp_namestringoptionalPublishing app / channel identity, e.g. "Arbitrum_Solver-Low-Cap_Production".
addressstringoptionalSubAccount address the notification belongs to.
primary_identifiernumberoptionalsecondary_identifierstring | number | nulloptionaltypestringoptionalreport | alert.
create_timenumberoptionalmodify_timenumberoptionalApp-specific payload; the position wire frame for trading notifications.
Related
- searchNotifications — returns this union.
- NotificationSearchFilter — the enigma-only advanced filter.