Changelog
Patch releases without an entry track backend contract updates: the clients and models are regenerated, and there are no SDK-level API changes. A contract update can bring new subtypes and enum values, and an older SDK can fail on a response that carries one it does not know, so upgrade regularly; see Compatibility. Contract changes and deprecations are listed on the developer portal’s API changes page.
1.58.0
Generated from the backend’s production contract (backend c29081288, main).
- Event bus: one connection carries many subscriptions, each with its own key and filter (event types, companies, entities), and
@solibo/solibo-react/eventsaddsuseDomainEventsanduseLiveHomepage. This needs a backend that carries many subscriptions per connection: an older one keeps only the first and refuses the others withALREADY_SUBSCRIBED, and it does not answer shared-text frames. - Event bus: a connection the server closes soon after it opened is reopened after a delay, one second at first and doubling up to 30 seconds, instead of at once.
- Shared texts: a text that has not arrived 15 seconds after connecting stops with
TIMEOUT, also when the connection never comes up or keeps dropping, and an open the server could not complete stops withUNAVAILABLE. A text that opens after its editor gave up is closed again. - Shared texts:
useSharedTexttakesonUnavailable(problem), called when editing together stops for an owner and its body is edited on its own again. - Errors:
SoliboApiErrorcarrieskind,reasonandisDefect, so callers no longer read the Kotlin error on.cause.@solibo/solibo-queryaddserrorStatus,errorDetails,errorMessage,hasErrorRule,isDefinitiveRejectionanddefaultQueryRetry, a TanStack Queryretrythat never retries a definitive 4xx. - Sealed types: conversation participant results carry their wire discriminator as
type, like residents. New guardsisPersonResident,isOrganizationResidentandis<Subtype>Participantfor each participant subtype. - Pages and permissions:
usePagedItems,useAllPages,DEFAULT_PAGE_SIZEandMAX_PAGE_SIZEin@solibo/solibo-react,fetchAllPagesin@solibo/solibo-query;matchesActionwith the backend’s*and-1wildcards,useCompanyActions(companyId)anduseHasAction(companyId, action). - Dates and URLs:
toSoliboInstant,toSoliboLocalDate,instantToDate,resolveApiUrl(withapiBaseUrlon the raw API, also in Kotlin) andbyteArrayToBlob;useByteArrayUrlin React. - Documents:
useDocumentURLpicks the company, public, homepage-post or public-conversation endpoint, keeps the signed URL 45 minutes and signs a stale one again when it is shown.inlineImageSources,withoutPendingInlineImagesandhasPendingInlineImagesread and clean inline-document markup without a DOM.useDeleteHomepageImage; homepage image changes also refresh the public homepage. - Conversations:
removeConversations(drafts deleted, the rest trashed),deleteConversationFolderwithremoveContents,patchConversationCategorythat keeps the settings a change leaves out, the contact template codec (encodeContactTemplate,decodeContactTemplate) andsendPublicConversationMessagefor messages with or without pasted images. A file uploaded to a conversation now refreshes the conversation, its lists and the unread count, a category change refreshes the public category lists, and the internal read mark refreshes the conversation lists. - Residents:
updateResidentContactchanges only email and phone and resolves a typed conflict when another person uses them. - Lookups:
useCompanySummary/useCompanySummaries(also nameduseCompanyName/useCompanyNames) batch company names, classifications and sub types a hundred per request throughindexCompanyNames, which needs onlyListCompany;useCountryLookup,useCountryandusePreferredLanguageCountrymap country ids to ISO codes. - Documents: settlements, settlement custom costs, expenses, insurances, loans, issues, meetings, routines, suppliers for a company and signed-in inquiries take their documents in their own create and update (
*WithDocumentsMutationOptions,use*WithDocuments, andsdk.api.integratedDocumentsin Kotlin), saved atomically by the backend’s integrated routes, with{ resource, documents }results and retries by idempotency key.useUpdateInsuranceDocumentsreplaces an insurance’s agreement. The deletes of these owners drop the owner’s cached document list (and the signed URLs ofdocumentIdswhen given), since the backend deletes the documents with their owner. This needs a backend with the integrated owner routes. - Invoicing: invoice plans and ad hoc invoice groups take the same
documentsin their create and update (createInvoicePlanWithDocuments,updateInvoicePlanWithDocuments,createAdHocLinesWithDocuments,updateAdHocGroupWithDocuments, as query factories and React hooks). The SDK encodes the files as the commands’ base64attachmentsand mapsremoveDocumentIdstoremoveAttachments, so callers never encode files. The ad hoc group delete drops the group’s cached documents. Attachments on an invoice plan update need a backend that takes them there. - Settlements:
changeSettlementType/useChangeSettlementTypechanges the type of a settlement’s invoices and of its custom costs in one call, and resolves{ status: 'partial' }with the costs that kept the old type. - Utility usage:
companyUtilityUsageQueryOptions/useCompanyUtilityUsageandsectionUtilityUsageQueryOptions/useSectionUtilityUsagewrapshowCompanyUtilityUsageandshowSectionUtilityUsage, with every parameter, underutilityUsageKeys. - Invoicing:
plannedInvoicePreviewsQueryOptions/usePlannedInvoicePreviewslist the planned invoice of each active plan for a month (indexInvoicingPlannedPreviews), refreshed with the company’s other invoice previews. - Board:
setBoardMemberTermMutationOptions/useSetBoardMemberTermset or clear the year a board role’s term ends (setBoardMemberTerm) and refresh the board member lists and the person. - Supplier invoices:
createInvoiceCommentMutationOptions/useCreateInvoiceCommentcomment on a supplier invoice (createInvoiceComment) and refresh the supplier invoice lists that carry the comments. - MockHomeApi answers the board term, supplier invoice comment, planned preview and utility usage routes.
1.57.1
- Token sessions: the dispatcher a session refresh runs on can be chosen. Since 1.56.0 the refresh runs on a scope of its own on
Dispatchers.Default, so that a request or a screen going away cannot cancel it. A test that drives the client on a test dispatcher had no way to follow it there: virtual time moved on without the refresh, the request timeout fired at once, andadvanceUntilIdlereturned before the refresh had finished. A subclass ofHomeApinow overridessessionDispatcherwith its test dispatcher. The default is unchanged, and nothing changes in JavaScript.
1.57.0
Generated from the backend’s production contract (backend 7e4d31a4b, main).
- Cookie sessions (
browser): tabs no longer refresh the session at the same time. The refresh token is replaced on every refresh, and when two tabs (or the SDK and the legacy web client in one tab) refreshed with the same token, the browser could be left holding a token the server refuses, which signed the person out at the next refresh. The refresh request is now sent while holding a Web Lock shared by the whole origin (solibo-session-refresh), and a timestamp inlocalStorage(soliboSessionRefreshedAt) tells a request that came back 401 that another tab has renewed the session since it was sent, so it is only sent again. Without Web Locks, or when the lock is not granted within ten seconds, the refresh is sent as before. Pages on another origin that share the cookies take their own turn, and nothing changes outside the browser. - Daily utility usage (tag
Utility usage, backend PR #431):utilityUsage.showCompanyUtilityUsage(companyId, from, to, interval, utility)andutilityUsage.showSectionUtilityUsage(companyId, sectionId, from, to, interval, utility)with theUtility,UsageIntervalandUsageUnitenums.HomeApi.utilityUsagein Kotlin,client.api.utilityUsagein JavaScript. No TanStack Query or React wrappers yet.
1.56.0
- Token sessions (
mobile): a refresh the server refused could hang for good. It happened when a request sent throughsdk.api.auth(registering a device for push, the security summary) was waiting for the same refresh, as an app does at launch. The session was then never ended andonRefreshFailurenever ran, so the app kept a session that could not be renewed, on every launch, until the person signed in again. The refresh now goes out through a client of its own and always returns. - A session refresh no longer belongs to the request that set it off. Requests that come back 401 at the same time share one refresh, and a request that is cancelled only stops waiting: the refresh finishes and stores the new tokens. Before, cancelling the request dropped a refresh the server had already applied, and the refresh token it had replaced was refused later. This covers cookie sessions (
browser) too. - A renewed refresh token is stored before the new access token, and both before a request uses the new access token. When the server refuses the refresh token, the session is removed from storage before
onRefreshFailureruns, and the handler runs even if the removal fails. A request the handler itself sends gets its own answer instead of waiting for the refresh it runs in.
1.55.0
Generated from backend 0c6882a2c (develop). The contract now types path parameters it used to declare as plain strings, and the SDK follows it.
- Invoice plans:
indexInvoicingPlanstakesfailedSince(epoch milliseconds) and then lists only the plans whose newest run since then has an invoice that failed and was not sent. In Kotlin it is the last parameter.invoicePlansQueryOptions/useInvoicePlanstakefailedSince, it is part of the query key, andcreateInvoicingPlanTransactionsMutationOptionsnow also invalidates the company’s plan lists. - New optional fields:
InvoicePlanTransaction.invoiceCountandfailedInvoiceCount,InvoiceTracking.failureReasonandinputId, andInquiryParticipant.matchedResident(the resident behind a contact-form inquiry, for display).CreateOrganization.informationis optional. - Delivery reports say why a message was not sent: new enum
CommunicationNotSentReason(ADDRESS_REJECTED,REPORTED_AS_SPAM,UNSUBSCRIBED) as optionalnotSentReasononCommunicationChannelReport,MassCommunicationRecipientStatusandMessageDeliverability, withnotSentLabelandnotSentHelponCommunicationChannelReport. -
AuthorizationSupportRequestCommandtakes optionalname,mobile,description,companyId,companySlugandclient(new enumLoginHelpClient:RESIDENT_APP,WEB_PORTAL,UNKNOWN). - Path parameters typed as enums:
customerType(CustomerType, 21 operations),residentType(ResidentType, 9),documentType(DocumentType, 3),communicationType(CommunicationType),participantType(ParticipantType) andeconomicReportType(newEconomicReportType). Kotlin callers pass the enum, for exampleCustomerType.PERSONinstead of"PERSON". The solibo-query wrappers that took these asstringnow take the enum or its name (CustomerType | CustomerType["name"]): a literal such as"PERSON"still compiles, a value typedstringneeds narrowing. Their query keys hold the name, so the enum and its name share one cache entry. - Numeric path parameters: the supplier invoice
invoiceId(approve, reject) andtripletexInvoiceId(PDF) areLong, and the third-party information dialogyearisInt;thirdPartyInformationLetterByYearQueryOptionstakesdialogYear: number(wasstring). - Push notification
trackingId(createPushNotificationRead,reportPushNotificationReceived) is aString(wasLong); the solibo-query mutations taketrackingId: string. - Company customer ledger:
fromandtoare optional onshowInvoicingCompanyCustomerLedgerandshowInvoicingCompanyCustomerLedgerSummary, so in Kotlintomoved from the third parameter to the last. Passfromandtoby name. COMPANY_AS_PERSONis gone fromPayerTypeandPaymentPayerType, andLEGACY_PAYER_TYPEfromCustomerLedgerUnclaimableReason.- New helper
toKeyName(value)(solibo-query) turns a Kotlin enum, or its name, into a query-key segment.
1.54.0
Generated from the backend’s production contract (backend 12e600c40, main), with everything the backend changed since 1.53.9 (backend 451b2e9be).
- Internal conversation messages with documents:
integratedDocuments.createConversationInternalMessage(companyId, conversationId, command: CreateInternalMessageCommand, attachments, inlineDocuments, idempotencyKey, onUploadProgress)(operationfinalizeIntegratedConversationInternalMessage), with the same upload, finalize, retry and idempotency behaviour ascreateConversationMessage. The documents it uploads are internal. TanStack Query:createConversationInternalMessageWithDocumentsMutationOptions(ConversationInternalMessageParams); React:useCreateConversationInternalMessageWithDocuments(). It refreshes the conversation detail (messages and internal messages) and document caches. - Open-page uploads return the created document’s id:
publicUploadDocumentToConversationMutationOptions/usePublicUploadDocumentToConversation()resolve to{ documentId: bigint | null }(wasvoid) from theX-Document-Idheader, and each fulfilled result ofmultiUploadPublicDocumentToConversationMutationOptions/useMultiUploadPublicDocumentToConversation()carries it as itsvalue(wasundefined).documentIdisnullfrom a backend that does not send the header. Callers that ignored the result are unaffected. New helpers:uploadPublicConversationDocument(sdk, params)andpublicUploadDocumentId(headers). - Open-page messages with pasted images:
createPublicConversationMessageWithInlineImages(sdk, params),createPublicConversationMessageWithInlineImagesMutationOptionsanduseCreatePublicConversationMessageWithInlineImages()take{ companySlug, conversationId, content, inlineImages: { [slot]: File }, cmd?, onUploadProgress? }, upload each image the content references by itsinlineDocumentImageSlotmarker, replace the marker withdata-solibo-document-id="{id}", send the message and resolve to{ content, documentIds }.inlineDocumentSlots(content)andreplaceInlineDocumentSlots(content, documentIds)expose the marker handling. A failed image upload deletes the images already uploaded and throwsPublicConversationInlineImageUploadError. - MockHomeApi answers open-page uploads with an
X-Document-Idheader.
Contract changes since 1.53.0:
- Payment allocation:
showCompanyPaymentSourceKidInvoice(GET …/paymentSources/{paymentSourceId}/kidInvoice) returns the invoice a payment’s KID names (PaymentSourceKidInvoiceResponse,invoicenull when the KID names none), with its payments and how and when it was closed (KidInvoiceClosing). TanStack Query:showCompanyPaymentSourceKidInvoiceQueryOptions, keyed underpaymentAllocationKeys, so the finance mutations refresh it; React:useCompanyPaymentSourceKidInvoice. MockHomeApi answers for its payment sources. - Onboarding:
importSectionsForOnboardingCompany(POST /companies/{companyId}/sections/import) imports sections, addresses, parking spaces and storage rooms.importSectionsForOnboardingCompanyMutationOptions/useImportSectionsForOnboardingCompany()take{ companyId, csv }, like the resident import, and refresh the company’s section, resident, parking space, storage room and address caches. - Bulk credit:
creditInvoices(POST /companies/{companyId}/economy/invoicing/invoices/credits) credits up to 200 invoices, each as the single-invoice credit would (CreditInvoicesCommandwithCreditInvoicesItems), and answers each invoice on its own, in request order (CreditInvoicesResult: aCreditRefusalor the credit’sInvoiceProcessingResult). Resending the same command answers the existing credits instead of issuing new ones.creditInvoicesMutationOptions/useCreditInvoices()take{ companyId, cmd }and refresh the same caches ascreateCreditNoteMutationOptionsfor every invoice and customer in the batch. MockHomeApi credits them all. indexCompanyPaymentSourceInvoiceCandidatestakeskid,invoiceNumber,amountandcustomer, andpayerType/payerIdare optional;showInvoicingCustomerLedgertakesopenOnly. The existing query options forward them and key on them.- New model fields:
Invoice.creditable,GenghisInvoice.creditable,automaticonMessageInConversationandPublicMessage,representAsBoardon conversation categories,ConversationSettings.reopenCompletedOnReply, andkid,kidMatch,payerandpayerNameonPaymentAllocationInvoiceCandidate. - Type changes (source-breaking):
ConversationInIssue.participantsis a list ofConversationParticipantInIssue(id, and optionalname,email,profileUrl,active; wasPerson). It arrives inside theIssueDetailsthat issue create, show, update, close and comment return. Code that readPersonfields from an issue conversation’s participants must switch to the new type; the wire field name is unchanged.PaymentAllocationWorkflowStatedropsPLANNEDand addsKID_INVOICE_NOT_FOUNDandMISSING_KID.
1.53.0
Generated from the backend’s production contract (backend ae09fa5c5, main), with everything the backend changed since 1.52.0 (backend b0d0c36bc).
- Tasks:
indexTasksandindexTasksUsertakeorderDirection(TaskOrderDirection:ASC,DESC).tasksQueryOptions/useTasksandtasksForUserQueryOptions/useTasksForUserforward it and key on it. The KotlinTaskApimethods take it aftercount, so positional 1.52 calls keep compiling. - Response type changes:
createCompanySupplierContactandupdateCompanySupplierContactreturnSupplierContact(wasPerson), andcreateCompanyInvoiceRecipientOfSectionreturns a list of ids (List<Long>, wasInvoiceRecipient). Code that readPersonorInvoiceRecipientfields from these results must switch to the new types. MockHomeApi answers with the new shapes.
1.52.0
Generated from the backend’s production contract (backend b0d0c36bc, main): two-step verification and passkeys, durable domain events on the event bus, and everything else the backend added since 1.51.1 (backend 92ac10d27).
Upgrading from 1.51: answerMfaChallenge answers only the authenticator-app challenge, verifyCreateTOTPMfa returns TotpVerification, loginByCode throws the server’s error instead of IllegalStateException, AuthChallenge.type and SecuritySummary.twoStepMode are nullable, seven generated operations drop a parameter they never used, and SettingsMigration keeps a secure value over a plain one. Nothing in production uses TOTP or MFA today, and nothing requires an app to adopt two-step verification. Each change is described below.
Contract changes besides two-step verification:
- Event bus: durable domain events.
EventBus.subscribe(subscriptionKey, eventTypes, resume, afterSequence, maxInFlight),ack(subscriptionKey, upTo, sequences)andunsubscribe(...)send the newSubscribe,AckandUnsubscribecommands; the bus sends every subscription again on reconnect, resuming after the acknowledged cursor. New frames:DomainEventPayload(withDomainEvent,EventActorRef,EventActorKind,EventEntityRef),SubscribedPayload,AckedPayload,ReplayCompletePayload,HeartbeatPayloadandEventBusErrorPayload(EventBusErrorCode), plusResumeMode. A connection that never subscribes gets the same frames as before. Event types (task.updated,device.registered,device.deregistered, …) are strings, so a type newer than the SDK still arrives. See Event bus. - Invoicing:
indexInvoicingForCompaniesOverdueTypes(GET /companies/economy/invoicing/overdueTypes, the overdue stages an overdue list can ask for) withinvoicingOverdueTypesQueryOptions/useInvoicingOverdueTypes. The company ledger refresh from Tripletex, already in the contract, getsshowInvoicingCompanyLedgerRefreshQueryOptions/useInvoicingCompanyLedgerRefreshandrefreshInvoicingCompanyLedgerMutationOptions/useRefreshInvoicingCompanyLedger. MockHomeApi answers all three. - List filters:
orderBy(MassCommunicationOrder) on the newsletter and SMS broadcast lists (company and portfolio),documentIdsonindexDocumentsUser,taskIds,deletedandincludeDeletedonindexTasksandindexTasksUser, andcategoryonlistCompanySupplier. The solibo-query options and React hooks forward them and key on them. createRoutineno longer takesyear(the backend stopped documenting it). A deprecated Kotlin overloadRoutinesApi.createRoutine(companyId, command, year, routineType)keeps 1.51 callers compiling and drops the year;createRoutineMutationOptionsstill acceptsyearand ignores it.- New model fields:
Expense.expenseTypeId;companyIdonParkingSpace,StorageRoomandRoutine;Routine.requiresSupplierandRoutine.startDate;ThirdPartyInformation.failures(ThirdPartyInformationStepFailurewith aThirdPartyInformationStep). All optional. -
createTOTPMfatakes an optionalIdempotency-Keyheader, as do the newcompletePasskeyRegistration,putTwoStepModeandrevokeAllSessions.verifyTOTPMfais now documented as anonymous (it answers a sign-in challenge).createMfaPreference,getMfaPreference,createMfaSelection,createMfaSelectionConfirmationandverifySMSMfaare deprecated in the contract. - Browser sign-out retries the origin revoke (
/auth/implicit/refresh/revoke) once after a transient failure (no answer, 408, 429, 5xx) before falling back to/api, where only the cookies are expired and the refresh token stays valid. - Behaviour change: a 429 on a sign-in or confirm route (everything under
/auth/implicitand/auth/mfaexcept session refresh and revoke, and the device challenge under/auth/devices/srp) is no longer retried. It is the backend’s attempt limit, and five retries of up to 60 s each kept a sign-in waiting for about five minutes. The SDK throwsRateLimitExceptionat once, with the server’sRetry-AfterinretryAfterSeconds(alsoSignInResult.retryAfterSecondswithSignInFailure.RATE_LIMITED). Session refresh and revoke (/auth/implicit/refresh…) are unchanged: they, like every other route, still wait forRetry-Afterand retry up to five times. - Passkeys:
Auth.signInWithPasskey(login, fcmDevice, webAuthn, mcp)returns aSignInResult; a login without a passkey (or an unknown one) isSignInFailure.NO_PASSKEY, a dismissed promptPASSKEY_CANCELLED.registerPasskey,listPasskeysanddeletePasskeymanage them. The prompt runs through aWebAuthnClient:BrowserWebAuthnClient(js; WebAuthn JSON helpers or its own base64url conversion),AndroidWebAuthnClient(Credential Manager, API 28+; addsandroidx.credentials1.6.0),CallbackWebAuthnClientfor Swift andPromiseWebAuthnClientfor JavaScript prompts. SecuritySummary.authenticatorAppConfiguredsays whether the authenticator app is set up, so a client can offerAUTHENTICATOR_APPwithout a failed attempt.registerPasskeyreturnsUNAVAILABLEwhen Solibo Home has passkeys switched off (PASSKEYS_UNAVAILABLE, classified asFEATURE_OFF) andREJECTEDwhen the server does not accept the new passkey (CREDENTIAL_REJECTED), next toREGISTERED,CANCELLEDandUNSUPPORTED(the device).- Two-step verification:
security(),setTwoStepMode(mode),rememberedDevices(),forgetRememberedDevice(deviceKey)andrevokeAllSessions().answerMfaChallengeanswersTOTF_MFAonly and throws for other challenge types.verifyCreateTOTPMfaneeds no session when signed in and returnsTotpVerification { verified }instead ofSoftwareTokenAssociation.verifySMSMfa,verifyEmailMfa,verifyEmailOtp,createMfaSelection,createMfaSelectionConfirmation,createMfaPreferenceandremoveMfaare deprecated. - Typed password results:
signInWithPasswordreturns aSignInResultthat tells a wrong password (CREDENTIAL_REJECTED) from a rate limit (RATE_LIMITED).initiateAuthkeeps returningnullfor every failure. - MCP sign-ins:
initiateAuth,loginByCode,answerMfaChallenge,verifyTOTPMfaand the new sign-in calls take an optionalMcpAuthorization(state, redirectUri)and send it asmcpState/mcpRedirectUri, so a password or passkey sign-in for an MCP client ends in its redirect. - Cookie mode (browsers) stores no device key and names no device: the auth cookies do. A backend with server-side device SRP answers the browser’s device challenges itself, so the SDK never sees one. Against an older backend the SDK still answers a
DEVICE_SRPchallenge with the device the backend names from the cookie and the legacycognitoDevicePass, and registers a device that backend issues, as 1.51 did;cognitoDevicePassstays in storage. Token mode is unchanged.setTwoStepModein cookie mode also forgets the signed-in person, because the server purges the auth cookies. - Token-mode
logout()sends the refresh token, client, device and user in theRevokeTokensCommandbody ofDELETE /auth/implicit/refresh/revokeinstead of the query string, which CloudFront and the load balancers keep in their access logs. The backend reads the body first; it will stop accepting the query parameters once old app builds are gone. - Cookie-mode
logout()revokes the refresh cookie at the origin’s/auth/implicit/refresh/revokeand, when that fails, under/api, then clears the session either way (HomeApiBase.revokeCookieSession()). determineLoginTypeaccepts any E.164 phone number (+358…,+1…,+298…) instead of exactly two country-code digits.CognitoAdvancedSecurityFingerprinter(userPoolId, clientId, region)(js) loads Cognito’s advanced-security script and sends its threat-protection data with every sign-in.regiondefaults to the pool id’s<region>_prefix, oreu-west-1when the id has none.- Opt-in secure storage:
AndroidSecureSettings(AES-GCM with an Android Keystore key),IosSecureSettings(Keychain) andSettingsMigration, which moves the SDK’s keys from plain settings once. The default settings are unchanged. - solibo-query/react:
signInWithPasskeyMutationOptions/useSignInWithPasskey,signInWithPasswordMutationOptions/useSignInWithPassword,registerPasskeyMutationOptions/useRegisterPasskey,passkeysQueryOptions/usePasskeys,deletePasskeyMutationOptions/useDeletePasskey,securityQueryOptions/useSecurity,setTwoStepModeMutationOptions/useSetTwoStepMode,rememberedDevicesQueryOptions/useRememberedDevices,forgetRememberedDeviceMutationOptions/useForgetRememberedDeviceandrevokeAllSessionsMutationOptions/useRevokeAllSessions.answerMfaChallengeMutationOptionstakesmcp;verifyCreateTOTPMfaMutationOptionsmakesdeviceNameoptional. MockHomeApi answers every new route. - Code sign-in followed by the authenticator app:
loginByCodeandverifyTOTPMfakeep theTOTF_MFAchallenge’s session (a code sign-in’scode-totp.session included, and the new one when the server asks again), soanswerMfaChallenge(code)needs no session in token mode.loginByCodeno longer turns a refused code intoIllegalStateException("Illegal login"): it throws the server’sSoliboSDKError(CREDENTIAL_REJECTED,PASSWORD_OR_PASSKEY_REQUIRED,RECENT_SIGN_IN_REQUIRED),RateLimitExceptionorRedirectException. NewsignInWithCode(login, code, fcmDevice, mcp)andanswerTwoStepChallenge(code, session, login, fcmDevice, mcp)return aSignInResult. FailureReason.PASSWORD_OR_PASSKEY_REQUIRED(classifiedUSER_INPUT) andSignInFailure.PASSWORD_OR_PASSKEY_REQUIRED: the code was right, but the person must sign in with a password or passkey.SignInResult.reasonholds the server’s reason.classifyFailurefalls back to path and status for a reason newer than its source.FailureReason.CLIENT_RETIRED(classifiedFEATURE_OFF) andSignInFailure.CLIENT_RETIRED: a sign-in named a retired MCP app client. The generator adds the value until the pinned contract has it.- A challenge type or two-step mode newer than the SDK build no longer fails the whole response:
AuthChallenge.typeandSecuritySummary.twoStepModeare optional and read an unknown value asnull. An unknown challenge is never a sign-in:UnsupportedChallengeException, whosechallengeNameis the type as the server sent it, orSignInFailure.UNSUPPORTED_CHALLENGEwith that exception aserror;SignInResult.signedInchecks the challenge itself. registerPasskeyreturnsRECENT_SIGN_IN_REQUIREDwhen adding a passkey needs a fresh sign-in.- Token mode names the remembered device on password (SRP and direct), email or SMS code and passkey sign-ins (
PasskeyStartCommand/PasskeyConfirmCommand.deviceKey) when that device last signed in with the same login (device.login,device.user), read before the sign-in forgets who was signed in. Cognito answers with the device challenge instead of the authenticator step and adds no device. Before,initiateAuth,signInWithPasswordandloginByCoderead the device after clearing the signed-in user, so they never named one. A device challenge answers for the person it names when nobody is signed in. A device the server refuses, or one the app no longer holds all of, is forgotten, and a password sign-in goes on without it. - Cookie mode keeps no Cognito session in
localStorage: an email or SMS code’s session is the server’s HttpOnly cookie (the SMS code works in cookie mode now), and a challenge’s session is kept in memory. CognitoAdvancedSecurityFingerprinterloads Amazon’s script on first use (load()or the first request that asks for its data), not when it is created.- Secure storage:
AndroidSecureSettingsandIosSecureSettingsreturnBufferedSettings; a write the store refuses (Keystore failure, Keychain before the first unlock) is held in memory and stored later instead of throwing. iOS items arekSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, and items an earlier build stored under the default accessibility are rewritten once; a read orhasKeybefore the first unlock throwsSecureStorageUnavailableException.IosSecureSettings.isReadable(service)says whether the SDK’s items can be read now (gate creating the SDK on it, not onUIApplication.protectedDataAvailable, which is false whenever the device is locked);IosSecureSettings.create(service)returns one settings object per service, with one protected-data observer for the process. A write the store refuses is held before it is logged, and a failing log output cannot lose it.SettingsMigrationnever throws, removes a plain key only once the secure store has it, writes its marker last and resumes;isMigrated(to)says whether it is done. - Behaviour change in
SettingsMigration: when the plain and the secure settings both hold a key, the secure value is kept and the plain copy removed (the secure one was moved by an earlier call or written since, so it is newer). Before, the plain value overwrote it. An app that restores plain values over secure ones must write them to the secure settings itself. - solibo-query/react:
signInWithCodeMutationOptions/useSignInWithCodeandanswerTwoStepChallengeMutationOptions/useAnswerTwoStepChallenge. - Seven operations lost a required query parameter that the backend documented by mistake (a parent resource’s Kotlin property) and never read:
forgetRememberedDevice(rememberedDevices), and six existing ones, which change their generated signatures:requestOffice365InternalDocumentPublish(internalDocuments),disconnectOffice365CustomerConnection(officeCustomerConnect),listOffice365ManagedDocumentCandidates(managedDocuments),listCompanyBankAccountTransactions(parent),homepageRssBySlug(slug) andshowCommunicationReport(reportChannel). Direct Kotlin and facade callers drop the argument. The solibo-query options and React hooks still accept it, ignore it and keep it in their cache keys, and no longer need it to enable a query. To limit a communication report to one channel, passmessageType(sent asreportType):reportChannelnever filtered anything.
1.51.0
- Deleting a conversation removes its detail query from the cache rather than invalidating it, so
useDeleteConversationdoes not refetch the conversation that was just deleted. - Releases are published to Solibo’s own Maven repository,
https://maven.solibo.no/releases, as well as Maven Central. Nothing changes for a build that usesmavenCentral(). - Snapshot builds (
-SNAPSHOTversions) are published tohttps://maven.solibo.no/snapshotsinstead of Maven Central’s snapshot repository. A build that depends on a snapshot adds that repository; the npm packages are unaffected.
1.50.0
- Payment sources and allocations: manual registration, source lists and history, invoice candidates, draft evaluation, preview, finalization, close, reversal, reallocation and reconciliation. The Kotlin client exposes
paymentAllocationfromsdk-api-invoicing; JavaScript operations live at@solibo/solibo-sdk/paymentAllocation/operations, with matching query factories and React hooks. - Customer ledgers, company ledger summaries, invoice summaries, claims and posting approvals now have query factories, React hooks and mock data. Customer ledger pagination follows its
nextPageTokenrather than the standard paging envelope. - Dated collection holds support listing, bulk and single updates, end-date changes, removal and reconciliation. A saved-but-pending 503 refreshes affected queries while remaining an error. Financial mutation options disable automatic retries and preserve caller-supplied idempotency keys.
- The backend’s retired
attachPaymentToInvoiceandrejectPaymentmutations, and their query/React helpers (registerPaymentToInvoiceMutationOptions,rejectPaymentMutationOptions,useRegisterPaymentToInvoice,useRejectPayment), are removed. Use the payment-source allocation or close commands instead; there is no automatic conversion of the old financial mutations. - Company customer queries accept
search. Existing optional Kotlin arguments keep their positions when the search parameter is added. - API error details retain
detailCodeand the returned durable command ascommandJson, keeping exact integer values available for reconciliation without introducing an invoicing dependency into the core client.
1.46.0
- In the browser, the client falls back to in-memory settings when
localStorageis unavailable or unusable (blocked storage, some private windows, sandboxed frames) instead of failing; such a session does not survive a reload.
1.45.0
- Document transforms:
DocumentTransform(rotation, optionalcrop) says how clients show an image without changing the original.UploadDocumentRequest.transformis sent as the upload’s base64url JSONtransformparameter for you, andencodeDocumentTransformencodes it for direct calls tocreateDocumentOperation/createDocumentBelongsToOperation.DocumentInput(Upload,Existing) takes atransformfor integrated mutations. solibo-query/react:updateDocumentMutationOptions/useUpdateDocument, andtransformon the upload, document reference and integrated document inputs, as plain objects (toDocumentTransform). - Download disposition:
DownloadDocumentRequest.dispositionand solibo-query’s image options (ImageTransformOptions.disposition) and third-party letter queries takeINLINEorATTACHMENT. - The new
dispositionandtransformoperation parameters come after the existing ones, so positional Kotlin calls keep their meaning.
1.43.0
- The npm packages ship without source maps: no
.mapfiles and nosourceMappingURLcomments. Bundlers that read the dependencies’ maps (webpack’ssource-map-loader) warned about every per-file module of@solibo/solibo-sdk, whose maps named Kotlin sources the package does not contain.@solibo/solibo-sdkshrinks from 49 to 39 MB unpacked. Build the SDK locally to debug it at the Kotlin level.
1.42.0
@solibo/solibo-sdkships one ES module per Kotlin file instead of one per Kotlin module, and declares them free of side effects, so a bundler keeps only the files a page imports. A page that only builds the core client loads about a quarter less SDK code; the frontend’s public homepage shell went from 0.98 to 0.83 MB gzipped. Entry points, exports and types are unchanged.- Every API domain except the core’s and
accountinghas one function per operation, from@solibo/solibo-sdk/<domain>/operations:indexInvoicingAccounts(client, params)does whatclient.api.invoicing.indexInvoicingAccounts(params)does and loads only that operation and the models it names. The resident helpers (createPersonResident,exportResidentsFileand the rest) are among them. The operations entry also carries the domain’s models without registering the domain.@solibo/solibo-queryand@solibo/solibo-reactuse them throughout, so apps that go through them no longer load a whole API for one call. - Document uploads, downloads and integrated document mutations work on clients from
@solibo/solibo-sdk/core:uploadDocument,downloadDocument,uploadClientForandcompleteSignedUploadfrom@solibo/solibo-sdk/documents/operations, andintegratedDocumentsOffrom@solibo/solibo-sdk/interop, take the raw API. In 1.40 and 1.41, solibo-query’s uploads, exports and integrated document mutations failed on such a client, because they readsdk.raw.api.documentsand its siblings, which only the root client has. @solibo/solibo-sdk/eventsgives clients from@solibo/solibo-sdk/coretheireventBus; the core entry no longer loads the event bus by itself. Clients from the package root are unchanged.- Kotlin:
HomeApiBase.eventBusandSoliboSDKBase.eventBusare extension properties (import no.solibo.oss.sdk.api.eventBus);HomeApiandSoliboSDKkeep them as members. The generated API methods delegate to one top-level function per operation (no.solibo.oss.sdk.api.gen.client.operations, hidden from Objective-C and Swift), andApiClienthas public request bridges for them (executeRequestand its JSON, form and multipart siblings).IntegratedDocumentMutationruns on one client for every operation it finalizes with;HomeApi.integratedDocumentsisintegratedDocumentsOf(api).
1.41.0
useHomepagePracticalInformationPost(factoryhomepagePracticalInformationPostQueryOptions) looks up one practical information post on the signed-in homepage by id, likeuseHomepageFeedPostdoes for news posts. Its key sits under the practical information list, so creating, updating or deleting practical info refreshes it.useRemindExpense(remindExpenseMutationOptions) reminds the board members who have not yet approved an expense by email and SMS, once per expense per day, and returns how many were reached.- From the contract:
Expense.processingHistory,staffManagedon conversation categories and their create and update commands, andSecureConversationCategory.editable.
1.40.0
- The Kotlin client is one Maven artifact per API area:
no.solibo.oss:sdk-core(the client,HomeApiBase, authentication, devices, the event bus, telemetry, the models shared across areas) andno.solibo.oss:sdk-api-<name>for each area (sdk-api-company,sdk-api-invoicing, …; seesdk/api/modules.json). A module adds its API as an extension property onHomeApiBase, for exampleapi.companiesafterimport no.solibo.oss.sdk.api.companies.no.solibo.oss:sdkdepends on all of them and itsHomeApi, now a subclass ofHomeApiBase, keeps every accessor as a member, so existing code, Kotlin packages and the npm packages are unchanged. New in the public API:HomeApiBase.service(the per-API registry) andApiArguments; the telemetry attribute keys (HttpSpanAttributes,ExceptionEventAttributes),httpSpanName,routeTemplate,classifyFailure,readFailureReason,parseApiErrors,SoliboSdkVersionandHomeApiBase.tokenTimestampare public.no.solibo.oss:home-apiremains as the aggregate of the generated modules.no.solibo.oss:sdknow compiles for Java 21 like the other artifacts. @solibo/solibo-sdkships one Kotlin/JS module per API domain and declares them free of side effects, so bundlers drop the domains a page does not use.@solibo/solibo-sdk/corebuilds a client overSoliboSDKBasewith only the domains imported from@solibo/solibo-sdk/<domain>(companies,invoicing, …); each of those also exports its domain’s models and enums.SoliboProviderfrom@solibo/solibo-reacttakes such a client asclient, and the client it builds fromconfignow comes from the core entry too: it carries the domains the bundle imported (every query, mutation and hook in@solibo/solibo-queryand@solibo/solibo-reactimports its own), so code that callsclient.api.<domain>directly imports@solibo/solibo-sdk/<domain>or passes a client from the rootcreateSoliboClient. The rootcreateSoliboClient,client.api.<domain>and every type are unchanged; the subpaths also resolve under TypeScript’s classicnodemodule resolution (typesVersions).SoliboClientis generic over its raw SDK (SoliboClient<SoliboSDK>by default), and the raw SDK exposes<domain>Api(api)functions (companiesApi(raw.api)) andSoliboCoreSDKJsBuilder,SoliboSDKBase.createDelegatedfor a client without the fullHomeApi.useOpenHomepageFeedPost/useOpenHomepagePracticalInformationPost(factoriesopenHomepageFeedPostQueryOptions/openHomepagePracticalInformationPostQueryOptions) look up one post of a public homepage by id, likeuseHomepageFeedPostdoes for the signed-in homepage. Public detail pages no longer have to page through the list. A post that is private, unpublished or of the other kind answers 404.useCompanyDraftStatus({ draftId })(companyDraftStatusQueryOptions) returns the latest import job of a company import draft and its ownership result, also after the draft is deleted.useFollowUps/followUpsQueryOptionsno longer needcompanyIds: without them the list covers every company you can act in, as the backend already did. An empty array still keeps the query idle. Callers that passedundefinedwhile their company ids loaded now fetch every company; pass[]to wait.- Every operation now has a query or mutation factory and a React hook, except those the SDK handles elsewhere: sign-in, MFA verification and token flows (
Auth), the MCP OAuth flow, integrated document finalization and upload tickets, and the app-store and unsubscribe links. New:- Lists across the housing communities you can access, filtered by
companyIds:useTasksForUser,useRoutinesForUser,useLoansForUser,useInsurancesForUser,useExpensesForUser,useSettlementsForUser,useDocumentsForUser,useNewslettersForUser,useBroadcastsForUser,useBoardMembersForUser,useEconomicReportsForUser,useCompaniesDetailed,useBulkUserActions, and the invoicing searchesuseInvoicingCustomersForCompanies,useInvoicingHistoryForCompanies,useInvoicePlansForCompanies,useInvoicePlanTransactionsForCompanies,useInvoiceSettingsForCompaniesanduseQueuedInvoicesForCompanies. The per-company mutations of those domains also refresh these lists. - Bulk mutations across companies:
useCreateMultipleTasks,useCreateMultipleIssues,useCreateMultipleMeetings,useCreateMultipleConversations,useCreateMultipleHomepagePosts,useCreateMultipleHomepagePracticalInfo,useCreateMultipleEmailNewsletters,useCreateMultipleSMSBroadcasts,usePublishMultipleEmailNewsletters,usePublishMultipleSMSBroadcastsanduseUpdateMultipleCompanyDetailed. Each refreshes its whole domain. - Conversations:
useFlagConversation,useUnflagConversation,useMarkConversationUnread,useMessageFullEmailContent,useConversationCategoryParticipantsPreviewanduseConversationContacts(the company’s contact book). - Others:
useDeleteIssue,useUpdateCompanyStatus,useFinalizeMeetingSigning(staff),useImportResidentsForOnboardingCompany(the CSV as a string),useMe,useMfaPreferenceanduseCreateAuthSupportRequest. Each has a...QueryOptionsor...MutationOptionsfactory with the same stem.
- Lists across the housing communities you can access, filtered by
- Mutations refresh the data they change in more places; about 50 gaps were found by checking each one against what the backend does. Notable ones:
- Conversations: read, unread, flag, trash, spam, move, delete, status and new-message mutations (single and batch) share one refresh of every list and count, including the folder tree’s unread counts. Moving a conversation untrashes it; deleting a folder moves its conversations to the root. Category changes refresh the inquiry categories and participant preview, and new participants refresh the contact book.
- Documents: uploads, renames, moves, trash, restore and deletes refresh the company’s document lists, search results and
useDocumentsForUser.deleteDocumentMutationOptionsnow takes thequeryClient. Renaming refreshed the parent’s listing instead of the owner’s, and uploading into a folder missed folder views that do not passisDirectory. - Invoicing: plan, line, allocation-key and ad hoc mutations refresh plan lists whatever their
active/type filters, plan line details, distributions and ad hoc lines. Losing or closing an invoice refreshes the invoice history and overdue lists, and activating invoicing refreshes the activation check, which it used to miss. - Residents: removing a person or organization from a company refreshes their parking and storage assignments, resident detail and person lists. Residency, merge and fraction changes refresh resident and section details. A numeric
companyIdnow matches resident detail queries. - Meetings and issues: closing, reopening, deleting or signing a meeting refreshes the cross-company meeting list, every issue view and follow-ups. Task changes refresh the routine that owns the task, and deleting a routine document refreshed the wrong key.
- Users: profile changes refresh
useMe, and the MFA preference mutations refreshuseMfaPreference(they take an optionalqueryClient). Reading a push notification refreshes the inbox. Third-party information letter queries can now be refreshed at all; their keys were not wrapped like every other query key.
- Deleting an economic report (
deleteEconomicReportMutationOptions/useDeleteEconomicReport) now refreshes the report list and the report. Its cache filters were not wrapped in an array like the query keys, so they matched nothing. - File downloads work again. The contract declares them as base64 JSON strings, but the backend sends the raw file, so every operation that returns a
Base64ByteArrayfailed to decode:showInvoicePdf(the supplier invoice PDF), the invoicing and meeting summons PDFs, the document ZIPs, and the parking, storage room, section asset and economy status exports. They now return the raw bytes, and still decode a base64 JSON string response. - Added
Auth.deregisterDevice(deviceKey, deviceKeyGroup, token)andHomeApi.devices.deregisterDevicefor removing one of the signed-in person’s devices and its push token. Use it for devices that signing out does not remove, such as a federated sign-in’s device registered by its app installation. Pass the push token the device registered with: the backend requires it, and the SDK leaves out empty strings. The generatedderegisterFCMDeviceForUser(andderegisterFCMDeviceMutationOptions/useDeregisterFCMDevice) sends the sameDeregisterDeviceCommandbody now that the backend declares it. DeregisterDeviceCommandis exported once, as the generated contract model. The SDK briefly carried its own class of the same name, which made the TypeScript declarations fail and left the JavaScript export undefined.- Added
useMarkInternalConversationRead,useMarkInternalConversationUnreadanduseRequestInternalConversationAdministratorInput(with...MutationOptionsfactories) for the internal (board-only) thread. The read marks are the caller’s own and leave the public read state alone. Asking for administrator input resolves withadministratorInputRequestedandqueuedAdministratorNotifications, which is0when a request was already pending. Each refreshes the conversation.MockHomeApianswers all three. deleteSectionMutationOptions,removeSectionStatusMutationOptions,deleteFractionsMutationOptionsanddeleteInvoiceRecipientMutationOptions(and their hooks) take an optionalcmd, sent as the DELETE body the backend now declares. The backend reads the body first and falls back to the query parameters, which the wrappers still send.cmdreaches fields the query cannot, such asatwhen deleting a section.- Added
deleteImportDraftMutationOptionsanduseDeleteImportDraftfor permanently deleting a company-import draft withdeleteImportDraft. On success, the wrappers refresh the draft lists and remove the deleted draft’s cached detail and validation. The company is kept; the backend refuses deletion while the draft is being imported. - Fixed JavaScript generation when development and production builds assign different suffixes to the
Instantserializer, which previously stopped package assembly. -
Bodyless JavaScript facade calls now return
undefinedas declared, instead of Kotlin’sUnitsingleton. Query factories usenullto cache successful empty results, as TanStack Query rejectsundefinedquery data. Failed responses still reject. -
Added
useHomepageSettingsanduseUpdateHomepageSettings, with the factorieshomepageSettingsQueryOptionsandupdateHomepageSettingsMutationOptions, for the backend’s newshowHomepageSettingsandupdateHomepageSettingsoperations. The board’s homepage settings areneighborhoodEnabled,neighborhoodAppEnabled, anddefaultPostCommentsEnabled; an update keeps every setting it leaves out, and refreshes both the settings and the homepage, which now carries them assettings. The open homepage operations (showOpenHomepage,showOpenHomepageByDomain) now returnOpenHomepage, which has no settings.MockHomeApikeeps the settings per company. -
Cookie sessions (
AuthMode.COOKIE,kind: 'browser') now renew themselves. A request that comes back 401 renews the session at the host’s/auth/implicit/refresh, where the browser keeps the refresh cookie, and is sent once more; requests that run out together share one renewal. Before, the 401 reached the caller as soon as the access cookie ran out, and the refresh went to/api/auth/implicit/refresh, where the browser never sends the refresh cookie. A refused renewal ends the session and callsonRefreshFailure, as with token sessions; any other failure keeps it and leaves the 401 to the caller.auth.refresh()in cookie mode now throws as it documents. Cookie sessions needclientId. - Added
useCreateCompanyAddress,useUpdateCompanyAddress, anduseDeleteCompanyAddress, with the factoriescreateCompanyAddressMutationOptions,updateCompanyAddressMutationOptions, anddeleteCompanyAddressMutationOptions, for the backend’s newcreateCompanyAddress,updateCompanyAddress, anddeleteCompanyAddressoperations. They refresh the company’s addresses (useCompanyAddresses), the company, its detailed view, and the company lists. An update replaces every field of the address, and the backend refuses to remove an address that a section is registered on.MockHomeApikeeps addresses per company. - Added
useDeleteInternalConversationMessageanduseRestoreInternalConversationMessage, with the factoriesdeleteInternalConversationMessageMutationOptionsandrestoreInternalConversationMessageMutationOptions, for the backend’sdeleteInternalConversationMessageandrestoreInternalConversationMessageoperations. They take{ companyId, conversationId, messageId }and refresh the conversation (including its message history) and the company’s conversation lists, asuseDeleteConversationMessageanduseRestoreConversationMessagedo for public messages. - A refresh token the server refuses now ends the session: the SDK clears the stored tokens and calls
onRefreshFailureinstead of retrying the same token on every 401. The server’s reason decides when it sends one (NO_SESSIONorCREDENTIAL_REJECTED); otherwise a 400, 404, or 422 does. Other statuses, server errors, and network failures keep the session. - With token auth,
auth.refresh()throws aSoliboSDKErrorwhen the server refuses the refresh token, after ending the session. A 401 from the refresh endpoint now throws too, where it used to return. - When Cognito issues a device key and registering the device fails, sign-in fails with
DeviceRegistrationExceptionand the tokens it had stored are cleared, so nobody is left signed in without a registered device. A push token that cannot be fetched no longer fails sign-in; the device is registered without one. - Added
usePublicDocumentURL(params), the cached query form of the public document URL, andusePublicConversationDocumentURL(params)with its factorypublicConversationDocumentURLQueryOptions(sdk, params)for public conversation documents. Components that show the same picture share one request, and the hooks stay idle until every id is set. The conversation variant always asks for the URL, because that endpoint redirects by default.usePublicGetDocumentURLremains for downloads; every call is a new request. showDocumentUrlsandshowPublicDocumentUrlsonapi.documentssign up to 100 document URLs in one request and return them as a paged list, each with itsexpiresAt; passautoPaginate: trueto get them all at once.documentURLsQueryOptions/useDocumentURLsandpublicDocumentURLsQueryOptions/usePublicDocumentURLswrap them, andMockHomeApianswers both.useGetDocumentURL,usePublicDocumentURL, andusePublicGetDocumentURLsend the lookups a screen makes together as one of those requests per company and image rendition, so a page of pictures costs one request instead of one each. Their cache keys are unchanged. A lookup made alone, or withfields, keeps the single-document endpoint, and a document the batch leaves out fails with a 404 as before.FailureReason.DEVICE_REJECTED, sent when device sign-in cannot verify the remembered device, is classified as aDEFECT, as the bare 404 it replaces was. Sign-in then fails withDeviceRejectedException: the SDK forgets the device, and the next email or SMS sign-in sendshasDeviceSecret: false, so it finishes without a device challenge and registers a fresh device.FailureReason.INVOICING_NOT_ACTIVE, sent by the company invoicing routes when invoicing is not activated, is classified as the newFailureKind.FEATURE_OFFrather than aDEFECT: the app should show that invoicing is off. Kotlin code with an exhaustivewhenoverFailureKindneeds a branch for it.- The client no longer retries mutations. A
POST,PUT, orDELETEthat fails with a 5xx or a network error is sent once, because the server may already have applied it: retrying could send a letter or an invoice twice, or replay a one-time code. Reads are retried as before, and so is a request with anIdempotency-Keyheader (invoice direct send) or a 429 response, which the server did not process. After a failed write, read the resource before you try again. - Added
pushNotificationTypesQueryOptions/usePushNotificationTypesfor the newapi.communication.indexPushNotificationTypes, which lists every push notification type with the payload fields it carries. Push inbox items have a typedpayload,nullwhen the server matches no type:NewOppslagPushPayload,NewPracticalInfoPushPayload,NewMessageInConversationPushPayload,NewNeighborhoodPostPushPayload, orNewCommunicationCommentPushPayload.MockHomeApianswers the inbox and the type list. - The optimistic updates of
useCreateIssueToMeetinganduseRemoveIssueFromMeeting(and their*MutationOptions) now reach the datauseMeetinganduseIssuesshow: the issue enters or leaves every cached copy of the meeting, and its status changes on every loaded page of the company’s issue lists. They used to write to cache keys no query reads, and adding an issue withwithoutOptimisticUpdate: falsefailed with aTypeErrorbefore the request was sent. WithoutbeforeIndex, the new issue shows last. If the request fails, the queries are refetched as before. - Breaking for
useSectionStatusreaders:sectionStatusQueryOptions/useSectionStatusreturn the section’s statuses keyed by section id and then by status state (SectionStatusesBySection), as the backend now sends them, sodata[state]becomesdata[sectionId][state].api.sections.showSectionStatusreturns the matching nestedMap. upcomingInvoicingQueryOptions/useUpcomingInvoicingtakecompanyIdsto limit the invoicing preview to some housing communities; leave it out to include every one you can access. Kotlin’sindexUpcomingInvoicingtakescompanyIdsas its last argument, so positional calls keep their meaning.- The optimistic update of
useCreateConversationMessage(andcreateConversationMessageMutationOptions) now reaches the datauseConversationshows: the message appears at once in every cached copy of the conversation, whatever itstranslateToCountryIdorfields, anduseConversationMessageHistoryis left alone. It used to look for a cache key no query reads. The message has the shape of a fetchedMessageInConversationfrom the current user (sentByCurrentUser: true, andsentByIdfromuseUser, or-1before the user has loaded), with a negative placeholderidandsentAtas an ISO 8601 string. What only the server knows, such astype,sentBy, anddocuments, isnulluntil the refetch replaces the message. If the request fails, the conversation is refetched as before. conversationQueryOptionsanduseConversation()no longer retry a conversation the server refuses with a 4xx other than 408, 425, or 429. The check compared the error itself to404rather than itsstatus, so a missing conversation was requested four times per refetch.Homepageno longer hasfeedorpracticalInformation, because the backend stopped sending them:showHomepage/useHomepagereturn the company and itsimage. Load the posts withuseHomepageFeedanduseHomepagePracticalInformation, oruseOpenHomepageFeedanduseOpenHomepagePracticalInformationfor an open homepage.- Requests are no longer cut off at 30 s; the host in front of the backend decides how long one may run. A request may now take 500 s and go 500 s without data (15 s before, on Android, iOS and the JVM); connecting may still take 5 s. Shorten them per client with
install(HttpTimeout)inhttpClientConfig. A read is no longer retried after a read timeout or a 504, because the server may still be working on it; failed connections and other 5xx responses are retried as before. - Conversation attachments can be kept in the internal (board-only) thread: pass
visibility: 'INTERNAL'touseUploadDocumentBelongsTo(),useMultiUploadDocument(), oruseCreateDocumentReference()(and their...MutationOptionsfactories). Without it the backend treats the upload asPUBLIC, so files added to an internal message showed up in the public conversation. - An integrated document mutation that the backend refuses during finalization (a 4xx other than 408, 425 or 429) now fails at once with
outcomeUnknown = falseand removes its uploads. ThroughHomeApi.integratedDocumentssuch a refusal used to be retried and then reported as an unknown outcome with the uploads kept, because the client’s response validator threwSoliboSDKErrorbefore the helper could read the status.IntegratedDocumentMutationExceptionnow hasstatusCode, the status of the refusal, and itscauseis theSoliboSDKErrorwith the backend’s error details. - Added wrappers for integration partner agreements, such as the Låvli link on the company page:
companyPartnerAgreementQueryOptions/useCompanyPartnerAgreement({ companyId, partner })answer whether a company has an active agreement with a partner. Solibo staff can list a company’s agreements withcompanyPartnerAgreementsQueryOptions/useCompanyPartnerAgreements, list a partner’s agreements withpartnerAgreementsQueryOptions/usePartnerAgreements, and start or end one withupdateCompanyPartnerAgreementMutationOptions/useUpdateCompanyPartnerAgreement, which refreshes the company’s and the partner’s agreements.MockHomeApikeeps agreements per company and partner. - Document search results carry
searchMatch: where the search words were found (TITLE,FOLDER,CONTENT) and up to two highlighted passages from the content. The backend now ranks search results instead of ordering them by date.MockHomeApireports file-name hits. - Added
followUpsQueryOptions/useFollowUps({ companyIds, includeAwaitingOthers })for the newapi.followUps.indexFollowUpsForCompanies: the supplier invoices and expenses awaiting the signed-in person’s approval and the meeting protocols awaiting their signature, across the given housing communities. Each item is aSupplierInvoiceFollowUp,ExpenseFollowUporMeetingProtocolFollowUp(typeon the wire). The backend returns nothing withoutcompanyIds, so the query waits for at least one. Approving, rejecting, creating or deleting an invoice or expense, and signing, closing or reopening a meeting, refresh it.MockHomeApianswers with one item of each type per company. SoliboErrorDetailhascode, read from error bodies that carry only a code. Opening an Office edit session answers 409 withDOCUMENT_SYNC_PENDINGwhile the file is being synchronized, orCUSTOMER_MICROSOFT_CONNECTION_REQUIRED; read it fromerror.errors[0].code(onSoliboApiError) orSoliboSDKError.errors.useUpdateAdministratorsForCompany(andupdateAdministratorsForCompanyMutationOptions,api.companies.updateAdministratorsForCompany) resolves withSoliboContacts, the body the backend has always sent. It was typedPerson[], which failed to decode.useCreateResidentanduseUpdateResident(and their factories,api.residents.createResidentandupdateResident) resolve with the sealedResident, aPersonResidentor anOrganizationResident, instead ofPerson; the backend now declares it and sends thetypediscriminator.useCreatePersonResident,useCreateOrganizationResident,useUpdatePersonResidentanduseUpdateOrganizationResidentkeep returningPersonandOrganization.MockHomeApianswers these routes with the same shapes.
1.20.2 (2026-09-25)
- The JavaScript packages (
@solibo/solibo-sdkand@solibo/home-api) shipws8.21.3 for GHSA-96hv-2xvq-fx4p.
1.20.0 (2026-09-24)
- JavaScript behaviour change for
client.rawcallers: the JavaScript package converts collections at its boundary everywhere, so callers only use JS values. Arrays,Maps, and plain objects go intoclient.raw.api.*methods, model constructors, and setters; arrays andMaps come back from getters,HttpResponse.body(),HttpResponse.headers, callbacks, and helpers such ascreateUploadHeaders. A model constructed from JS reads back as JS, and a model received from the SDK can be handed back unchanged. No API signature refers toKtListorKtMapany more;KtList.fromJsArray/KtMap.fromJsMapremain exported for backwards compatibility but are never required. *WithDocumentsMutationOptionsanduse*WithDocuments()no longer fail withattachments.iterator_... is not a function, andclient.api.accounting.*acceptscompanyIds,accountNumbers,projectIds,departmentIds, andsupplierIdsagain.
1.19.0
- No API changes since 1.18.0.
- Public documentation now links to the developer portal and documents the telemetry bridges.
1.18.0
- Published the Sentry artifact,
no.solibo.oss:sdk-sentry, for Android and iOS. - Exported the route templates used by telemetry to the JavaScript package.
1.17.1
- Wrapped the bank account lists and the meeting summons PDF.
- Added
spamConversationandspamMultipleConversations, and theirunspam*counterparts, so a caller can flag a conversation as spam. - Decoded the server’s refusal reason into the contract’s enum.
- Built the iOS Sentry framework as a static framework.
1.17.0
- Instrumented every API call in OpenTelemetry’s terms. Install a provider with
SoliboOpenTelemetry.install(openTelemetry); the SDK bundles only theapiandnoopartifacts. - Added the
sdk-sentryartifact, which enriches the host application’s Sentry with the SDK’s spans (installSoliboSentryTelemetry()). SoliboSDKErrornow carries the kind of failure and the server’s reason, so callers can switch on why the server refused.- Optional fields tolerate values they did not expect instead of failing the whole response.
1.16.18
- Updated Kotlin, Fabrikt, Ktor, the Android Gradle plugin, AWS and logging dependencies.
1.16.17
- Generation converts the backend’s OpenAPI 3.1 contract to 3.0 before code generation, matching the backend’s move to OpenAPI 3.1.1.
1.16.15
- Query key factories trim trailing
undefinedarguments, fixing invalidation of keys built with optional parameters.
1.16.14
- Every OpenAPI parameter is forwarded through the
solibo-queryandsolibo-reactwrappers; callers now control parameters the wrappers previously pinned.
1.16.9
- Fixed the serialization test contract.
1.16.4
- Added supplier comment edit and delete wrappers.
1.16.0
- Toolchain and contract compatibility updates.
1.15.13
- Shared enum compatibility fixes.
1.14.0
- Fixed direct-password and SRP login returning
NEW_PASSWORDas failed credentials instead of a pending challenge. - Preserved reset-code and MFA flows and the Boolean confirmation API. Log in again after confirmation, and call
Auth.clearSession()when cancelling the challenge UI.
1.13.0
- Added company and multi-company accounting reads for overviews, projects and entries through
HomeApi.accountingandSoliboClient.api.accounting. - Added five dedicated query factories and React hooks with scoped cache keys, cursor pagination and field selection.
- Preserved exact monetary strings and company coverage metadata, including in Kotlin response projections.
1.10.0
- Added generated SDK, query-option, and React-hook coverage for homepage comments and neighborhood communication.
- Added atomic document convenience helpers for neighborhood posts and homepage/neighborhood comments, including cover-image retention and document removal on post updates.
- Added a dedicated homepage feed-post query for refreshing comment and reaction state.
1.9.0
Layered JavaScript API
The npm packages now expose one abstraction layer each:
@solibo/solibo-sdkowns the JavaScript client, generated models, authentication, event bus, and raw Kotlin interop.@solibo/solibo-queryowns framework-independent TanStack Query option factories, query keys, pagination helpers, and mutation definitions.@solibo/solibo-reactownsSoliboProvider,useSdk(), and React hooks.
SoliboClient is the JavaScript-native SDK surface. Its generated API methods take one named-parameter object and return the decoded response body. The unchanged Kotlin-generated client is available through client.raw and the @solibo/solibo-sdk/interop entry point when response status, headers, redirects, downloads, or another low-level capability is required.
import { createSoliboClient } from '@solibo/solibo-sdk'
const client = createSoliboClient({
baseUrl: 'https://home.solibo.no',
auth: {
kind: 'browser',
userPoolId: '...',
clientId: '...',
},
})
const company = await client.api.companies.showCompany({ companyId })
// Explicit escape hatch: positional parameters and HttpResponse<T>.
const response = await client.raw.api.companies.showCompany(BigInt(companyId))
JavaScript migration list
| Before | Now |
|---|---|
sdk.api.companies.showCompany(BigInt(companyId)).then(r => r.body()) | client.api.companies.showCompany({ companyId }) |
Pass a raw SoliboSDK to a query factory | Pass fromRawSdk(rawSdk), or the client returned by createSoliboClient(...) |
Import SDK models from @solibo/solibo-query or @solibo/solibo-react | Import them from @solibo/solibo-sdk |
Import query factories or keys from @solibo/solibo-react | Import them from @solibo/solibo-query |
| Import hooks from a lower package | Import hooks from @solibo/solibo-react |
| Use a facade call when status or headers matter | Use client.raw, which preserves HttpResponse<T> and request-header controls |
Import low-level Kotlin bridge or upload helpers from @solibo/solibo-query | Use the SDK facade/raw DocumentsApi, or a query mutation factory for the complete flow |
Import toIntegratedDocumentInput or prepareIntegratedDocumentSources from @solibo/solibo-query | Pass document sources to a *WithDocumentsMutationOptions factory, or use client.raw.api.integratedDocuments for the low-level composite API |
The root @solibo/solibo-sdk entry point retains its previous raw KMP exports, so existing direct SDK imports and positional calls continue to compile. The explicit client.raw property makes the low-level boundary visible in new code.