nitori_client 0.1.27
nitori_client: ^0.1.27 copied to clipboard
Dart client implementation for the Satori Protocol, providing the HTTP API caller and WebSocket gateway.
0.1.27 #
- FEAT:
NitoriBotnow holds aSatoriApiClient apiand issues its requests through it; the HTTP helpers (request,requestFullPathBytes,forwardFullPathBytes,download,downloadStream) live on the bot. - DEPRECATED:
NitoriBot.clientis a deprecated getter returning theNitoriClientthe bot was built from; construct bots with the api client instead.
0.1.26 #
- FEAT:
SatoriGatewayClientowns the WebSocket gateway lifecycle (connect, IDENTIFY, heartbeat, reconnect, event decode);SatoriGatewayEventandSatoriGatewayExceptionare the renamedGatewayEvent/GatewayException. - DEPRECATED:
Gateway,GatewayEventandGatewayExceptionremain as deprecated typedef aliases of theirSatori*counterparts.
0.1.25 #
- FEAT:
SatoriApiClientowns the HTTP API surface (requests, multipart upload, media download, proxy resolution andSatoriApiException), separate from the WebSocket gateway. - FEAT:
SatoriApiIdentitycarries thesatori-platform/satori-user-idpair a request is made on behalf of. - FEAT:
NitoriClient.apiexposes the underlyingSatoriApiClient; existingNitoriClientmethods delegate to it and behave unchanged. - REFACTOR: the bot API methods now run through
SatoriApiClientinstead ofNitoriClientinternals.
0.1.24 #
- FEAT:
NitoriBot.onButtonandoffButtonregister handlers bybutton.id; incominginteraction/buttonevents are dispatched to the owning bot. - FEAT:
NitoriClient.onButtonErrorreceives errors thrown by button handlers. - TEST:
interaction_test.dartcovers dispatch, unregistered ids, removal and non-interaction events.
0.1.23 #
- FEAT:
NitoriClient.proxyUrlandproxyUrlOrroute media URLs through the server proxy when they match an advertisedproxyUrlsprefix. - FEAT: upload methods accept
JsonBlob, forwarding its filename and content type in the multipart part. - FEAT:
NitoriClient.downloadStreamanddownloadfetch media bytes, optionally through the proxy. - REFACTOR: multipart request building is shared by the bot API and the generic
request. - TEST:
media_test.dartcovers proxy resolution,JsonBlobuploads and downloads.
0.1.22 #
- FEAT:
GatewayEvent.eventdecodes a gateway frame into the protocolEventmodel. - FEAT:
NitoriClient.eventStreamstreams typed events, excludinglogin-*frames. - TEST:
events_test.dartcovers decoding and login-frame filtering.
0.1.21 #
- FEAT:
createMessage,sendMessage,editMessageandsendPrivateMessageaccept aString, aNodeor anIterable<Node>as content; typed nodes are rendered to element markup before sending. - FEAT: added a dependency on
nitori_messagefor the element DSL. - CLEANUP: removed the
linkPreviewparameter fromsendMessageandsendPrivateMessage; it was never sent on the wire. - TEST: typed-content cases in
http_test.dart.
0.1.20 #
- FEAT:
NitoriClient/Gatewayacceptplatform/userIdforIDENTIFY.body.satori-platform/satori-user-id. - FEAT:
lastReceivedSngetter andresumeFrom(int)for application-layer resume idempotency. - FEAT: multi-login management —
getBot(),addBot(),removeBot(),botsByPlatform(). - CLEANUP: removed dead
payloadcode inrequest(), deduplicated body building via_internalBody(). - TEST: added
identity_test.dart,multi_login_test.dart,resume_test.dart.
0.1.18 #
- FEAT: add public
request()/requestFullPath()for arbitrary protocol paths with custom headers, iterator methods,updateCommands, and external READY/META callbacks.
0.1.17 #
0.1.16 #
0.1.15 #
0.1.12 - 2026-11-11 #
Fixed #
- Remove
dependency_overridesfrom published package (local dev only) - Update nitori_core dependency to ^0.1.11
0.1.11 - 2026-11-11 #
0.1.7 - 2026-11-11 #
Changed #
- Unified version bump across the monorepo
- SDK constraint upgraded to ^3.2.0