NewAria SDK
@revenexx/aria-sdk v0.4.0
Added
getHeadersadds host headers to every request, read per request and on the 401 retry, for example a request id for tracing. The SDK's ownContent-Type,Authorization,X-Tenant-IdandAccept-Languagewin over a host header of the same name in any letter case.fetchreplaces the globalfetchthe client sends with. It is called unbound, sowindow.fetchcan be passed as is.feature_disabledis listed among the known server codes: Aria answers it with403when AI is switched off for the tenant.
Changed
- An error body of the form
{ "error": { "code", "message" } }now fillsserverCodeandserverMessagelike the flat{ "error", "message" }envelope. Before, both stayednullfor it.