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/events adds useDomainEvents and useLiveHomepage. This needs a backend that carries many subscriptions per connection: an older one keeps only the first and refuses the others with ALREADY_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 with UNAVAILABLE. A text that opens after its editor gave up is closed again.
  • Shared texts: useSharedText takes onUnavailable(problem), called when editing together stops for an owner and its body is edited on its own again.
  • Errors: SoliboApiError carries kind, reason and isDefect, so callers no longer read the Kotlin error on .cause. @solibo/solibo-query adds errorStatus, errorDetails, errorMessage, hasErrorRule, isDefinitiveRejection and defaultQueryRetry, a TanStack Query retry that never retries a definitive 4xx.
  • Sealed types: conversation participant results carry their wire discriminator as type, like residents. New guards isPersonResident, isOrganizationResident and is<Subtype>Participant for each participant subtype.
  • Pages and permissions: usePagedItems, useAllPages, DEFAULT_PAGE_SIZE and MAX_PAGE_SIZE in @solibo/solibo-react, fetchAllPages in @solibo/solibo-query; matchesAction with the backend’s * and -1 wildcards, useCompanyActions(companyId) and useHasAction(companyId, action).
  • Dates and URLs: toSoliboInstant, toSoliboLocalDate, instantToDate, resolveApiUrl (with apiBaseUrl on the raw API, also in Kotlin) and byteArrayToBlob; useByteArrayUrl in React.
  • Documents: useDocumentURL picks 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, withoutPendingInlineImages and hasPendingInlineImages read and clean inline-document markup without a DOM. useDeleteHomepageImage; homepage image changes also refresh the public homepage.
  • Conversations: removeConversations (drafts deleted, the rest trashed), deleteConversationFolder with removeContents, patchConversationCategory that keeps the settings a change leaves out, the contact template codec (encodeContactTemplate, decodeContactTemplate) and sendPublicConversationMessage for 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: updateResidentContact changes only email and phone and resolves a typed conflict when another person uses them.
  • Lookups: useCompanySummary/useCompanySummaries (also named useCompanyName/useCompanyNames) batch company names, classifications and sub types a hundred per request through indexCompanyNames, which needs only ListCompany; useCountryLookup, useCountry and usePreferredLanguageCountry map 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, and sdk.api.integratedDocuments in Kotlin), saved atomically by the backend’s integrated routes, with { resource, documents } results and retries by idempotency key. useUpdateInsuranceDocuments replaces an insurance’s agreement. The deletes of these owners drop the owner’s cached document list (and the signed URLs of documentIds when 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 documents in their create and update (createInvoicePlanWithDocuments, updateInvoicePlanWithDocuments, createAdHocLinesWithDocuments, updateAdHocGroupWithDocuments, as query factories and React hooks). The SDK encodes the files as the commands’ base64 attachments and maps removeDocumentIds to removeAttachments, 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 / useChangeSettlementType changes 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 / useCompanyUtilityUsage and sectionUtilityUsageQueryOptions / useSectionUtilityUsage wrap showCompanyUtilityUsage and showSectionUtilityUsage, with every parameter, under utilityUsageKeys.
  • Invoicing: plannedInvoicePreviewsQueryOptions / usePlannedInvoicePreviews list the planned invoice of each active plan for a month (indexInvoicingPlannedPreviews), refreshed with the company’s other invoice previews.
  • Board: setBoardMemberTermMutationOptions / useSetBoardMemberTerm set or clear the year a board role’s term ends (setBoardMemberTerm) and refresh the board member lists and the person.
  • Supplier invoices: createInvoiceCommentMutationOptions / useCreateInvoiceComment comment 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, and advanceUntilIdle returned before the refresh had finished. A subclass of HomeApi now overrides sessionDispatcher with 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 in localStorage (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) and utilityUsage.showSectionUtilityUsage(companyId, sectionId, from, to, interval, utility) with the Utility, UsageInterval and UsageUnit enums. HomeApi.utilityUsage in Kotlin, client.api.utilityUsage in 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 through sdk.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 and onRefreshFailure never 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 onRefreshFailure runs, 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: indexInvoicingPlans takes failedSince (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 / useInvoicePlans take failedSince, it is part of the query key, and createInvoicingPlanTransactionsMutationOptions now also invalidates the company’s plan lists.
  • New optional fields: InvoicePlanTransaction.invoiceCount and failedInvoiceCount, InvoiceTracking.failureReason and inputId, and InquiryParticipant.matchedResident (the resident behind a contact-form inquiry, for display). CreateOrganization.information is optional.
  • Delivery reports say why a message was not sent: new enum CommunicationNotSentReason (ADDRESS_REJECTED, REPORTED_AS_SPAM, UNSUBSCRIBED) as optional notSentReason on CommunicationChannelReport, MassCommunicationRecipientStatus and MessageDeliverability, with notSentLabel and notSentHelp on CommunicationChannelReport.
  • AuthorizationSupportRequestCommand takes optional name, mobile, description, companyId, companySlug and client (new enum LoginHelpClient: RESIDENT_APP, WEB_PORTAL, UNKNOWN).

  • Path parameters typed as enums: customerType (CustomerType, 21 operations), residentType (ResidentType, 9), documentType (DocumentType, 3), communicationType (CommunicationType), participantType (ParticipantType) and economicReportType (new EconomicReportType). Kotlin callers pass the enum, for example CustomerType.PERSON instead of "PERSON". The solibo-query wrappers that took these as string now take the enum or its name (CustomerType | CustomerType["name"]): a literal such as "PERSON" still compiles, a value typed string needs 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) and tripletexInvoiceId (PDF) are Long, and the third-party information dialog year is Int; thirdPartyInformationLetterByYearQueryOptions takes dialogYear: number (was string).
  • Push notification trackingId (createPushNotificationRead, reportPushNotificationReceived) is a String (was Long); the solibo-query mutations take trackingId: string.
  • Company customer ledger: from and to are optional on showInvoicingCompanyCustomerLedger and showInvoicingCompanyCustomerLedgerSummary, so in Kotlin to moved from the third parameter to the last. Pass from and to by name.
  • COMPANY_AS_PERSON is gone from PayerType and PaymentPayerType, and LEGACY_PAYER_TYPE from CustomerLedgerUnclaimableReason.
  • 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) (operation finalizeIntegratedConversationInternalMessage), with the same upload, finalize, retry and idempotency behaviour as createConversationMessage. 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 } (was void) from the X-Document-Id header, and each fulfilled result of multiUploadPublicDocumentToConversationMutationOptions / useMultiUploadPublicDocumentToConversation() carries it as its value (was undefined). documentId is null from a backend that does not send the header. Callers that ignored the result are unaffected. New helpers: uploadPublicConversationDocument(sdk, params) and publicUploadDocumentId(headers).
  • Open-page messages with pasted images: createPublicConversationMessageWithInlineImages(sdk, params), createPublicConversationMessageWithInlineImagesMutationOptions and useCreatePublicConversationMessageWithInlineImages() take { companySlug, conversationId, content, inlineImages: { [slot]: File }, cmd?, onUploadProgress? }, upload each image the content references by its inlineDocumentImageSlot marker, replace the marker with data-solibo-document-id="{id}", send the message and resolve to { content, documentIds }. inlineDocumentSlots(content) and replaceInlineDocumentSlots(content, documentIds) expose the marker handling. A failed image upload deletes the images already uploaded and throws PublicConversationInlineImageUploadError.
  • MockHomeApi answers open-page uploads with an X-Document-Id header.

Contract changes since 1.53.0:

  • Payment allocation: showCompanyPaymentSourceKidInvoice (GET …/paymentSources/{paymentSourceId}/kidInvoice) returns the invoice a payment’s KID names (PaymentSourceKidInvoiceResponse, invoice null when the KID names none), with its payments and how and when it was closed (KidInvoiceClosing). TanStack Query: showCompanyPaymentSourceKidInvoiceQueryOptions, keyed under paymentAllocationKeys, 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 (CreditInvoicesCommand with CreditInvoicesItems), and answers each invoice on its own, in request order (CreditInvoicesResult: a CreditRefusal or the credit’s InvoiceProcessingResult). Resending the same command answers the existing credits instead of issuing new ones. creditInvoicesMutationOptions / useCreditInvoices() take { companyId, cmd } and refresh the same caches as createCreditNoteMutationOptions for every invoice and customer in the batch. MockHomeApi credits them all.
  • indexCompanyPaymentSourceInvoiceCandidates takes kid, invoiceNumber, amount and customer, and payerType/payerId are optional; showInvoicingCustomerLedger takes openOnly. The existing query options forward them and key on them.
  • New model fields: Invoice.creditable, GenghisInvoice.creditable, automatic on MessageInConversation and PublicMessage, representAsBoard on conversation categories, ConversationSettings.reopenCompletedOnReply, and kid, kidMatch, payer and payerName on PaymentAllocationInvoiceCandidate.
  • Type changes (source-breaking): ConversationInIssue.participants is a list of ConversationParticipantInIssue (id, and optional name, email, profileUrl, active; was Person). It arrives inside the IssueDetails that issue create, show, update, close and comment return. Code that read Person fields from an issue conversation’s participants must switch to the new type; the wire field name is unchanged. PaymentAllocationWorkflowState drops PLANNED and adds KID_INVOICE_NOT_FOUND and MISSING_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: indexTasks and indexTasksUser take orderDirection (TaskOrderDirection: ASC, DESC). tasksQueryOptions / useTasks and tasksForUserQueryOptions / useTasksForUser forward it and key on it. The Kotlin TaskApi methods take it after count, so positional 1.52 calls keep compiling.
  • Response type changes: createCompanySupplierContact and updateCompanySupplierContact return SupplierContact (was Person), and createCompanyInvoiceRecipientOfSection returns a list of ids (List<Long>, was InvoiceRecipient). Code that read Person or InvoiceRecipient fields 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) and unsubscribe(...) send the new Subscribe, Ack and Unsubscribe commands; the bus sends every subscription again on reconnect, resuming after the acknowledged cursor. New frames: DomainEventPayload (with DomainEvent, EventActorRef, EventActorKind, EventEntityRef), SubscribedPayload, AckedPayload, ReplayCompletePayload, HeartbeatPayload and EventBusErrorPayload (EventBusErrorCode), plus ResumeMode. 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) with invoicingOverdueTypesQueryOptions / useInvoicingOverdueTypes. The company ledger refresh from Tripletex, already in the contract, gets showInvoicingCompanyLedgerRefreshQueryOptions / useInvoicingCompanyLedgerRefresh and refreshInvoicingCompanyLedgerMutationOptions / useRefreshInvoicingCompanyLedger. MockHomeApi answers all three.
  • List filters: orderBy (MassCommunicationOrder) on the newsletter and SMS broadcast lists (company and portfolio), documentIds on indexDocumentsUser, taskIds, deleted and includeDeleted on indexTasks and indexTasksUser, and category on listCompanySupplier. The solibo-query options and React hooks forward them and key on them.
  • createRoutine no longer takes year (the backend stopped documenting it). A deprecated Kotlin overload RoutinesApi.createRoutine(companyId, command, year, routineType) keeps 1.51 callers compiling and drops the year; createRoutineMutationOptions still accepts year and ignores it.
  • New model fields: Expense.expenseTypeId; companyId on ParkingSpace, StorageRoom and Routine; Routine.requiresSupplier and Routine.startDate; ThirdPartyInformation.failures (ThirdPartyInformationStepFailure with a ThirdPartyInformationStep). All optional.
  • createTOTPMfa takes an optional Idempotency-Key header, as do the new completePasskeyRegistration, putTwoStepMode and revokeAllSessions. verifyTOTPMfa is now documented as anonymous (it answers a sign-in challenge). createMfaPreference, getMfaPreference, createMfaSelection, createMfaSelectionConfirmation and verifySMSMfa are 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/implicit and /auth/mfa except 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 throws RateLimitException at once, with the server’s Retry-After in retryAfterSeconds (also SignInResult.retryAfterSeconds with SignInFailure.RATE_LIMITED). Session refresh and revoke (/auth/implicit/refresh…) are unchanged: they, like every other route, still wait for Retry-After and retry up to five times.
  • Passkeys: Auth.signInWithPasskey(login, fcmDevice, webAuthn, mcp) returns a SignInResult; a login without a passkey (or an unknown one) is SignInFailure.NO_PASSKEY, a dismissed prompt PASSKEY_CANCELLED. registerPasskey, listPasskeys and deletePasskey manage them. The prompt runs through a WebAuthnClient: BrowserWebAuthnClient (js; WebAuthn JSON helpers or its own base64url conversion), AndroidWebAuthnClient (Credential Manager, API 28+; adds androidx.credentials 1.6.0), CallbackWebAuthnClient for Swift and PromiseWebAuthnClient for JavaScript prompts.
  • SecuritySummary.authenticatorAppConfigured says whether the authenticator app is set up, so a client can offer AUTHENTICATOR_APP without a failed attempt. registerPasskey returns UNAVAILABLE when Solibo Home has passkeys switched off (PASSKEYS_UNAVAILABLE, classified as FEATURE_OFF) and REJECTED when the server does not accept the new passkey (CREDENTIAL_REJECTED), next to REGISTERED, CANCELLED and UNSUPPORTED (the device).
  • Two-step verification: security(), setTwoStepMode(mode), rememberedDevices(), forgetRememberedDevice(deviceKey) and revokeAllSessions(). answerMfaChallenge answers TOTF_MFA only and throws for other challenge types. verifyCreateTOTPMfa needs no session when signed in and returns TotpVerification { verified } instead of SoftwareTokenAssociation. verifySMSMfa, verifyEmailMfa, verifyEmailOtp, createMfaSelection, createMfaSelectionConfirmation, createMfaPreference and removeMfa are deprecated.
  • Typed password results: signInWithPassword returns a SignInResult that tells a wrong password (CREDENTIAL_REJECTED) from a rate limit (RATE_LIMITED). initiateAuth keeps returning null for every failure.
  • MCP sign-ins: initiateAuth, loginByCode, answerMfaChallenge, verifyTOTPMfa and the new sign-in calls take an optional McpAuthorization(state, redirectUri) and send it as mcpState/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_SRP challenge with the device the backend names from the cookie and the legacy cognitoDevicePass, and registers a device that backend issues, as 1.51 did; cognitoDevicePass stays in storage. Token mode is unchanged. setTwoStepMode in 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 the RevokeTokensCommand body of DELETE /auth/implicit/refresh/revoke instead 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/revoke and, when that fails, under /api, then clears the session either way (HomeApiBase.revokeCookieSession()).
  • determineLoginType accepts 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. region defaults to the pool id’s <region>_ prefix, or eu-west-1 when the id has none.
  • Opt-in secure storage: AndroidSecureSettings (AES-GCM with an Android Keystore key), IosSecureSettings (Keychain) and SettingsMigration, 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/useForgetRememberedDevice and revokeAllSessionsMutationOptions/useRevokeAllSessions. answerMfaChallengeMutationOptions takes mcp; verifyCreateTOTPMfaMutationOptions makes deviceName optional. MockHomeApi answers every new route.
  • Code sign-in followed by the authenticator app: loginByCode and verifyTOTPMfa keep the TOTF_MFA challenge’s session (a code sign-in’s code-totp. session included, and the new one when the server asks again), so answerMfaChallenge(code) needs no session in token mode. loginByCode no longer turns a refused code into IllegalStateException("Illegal login"): it throws the server’s SoliboSDKError (CREDENTIAL_REJECTED, PASSWORD_OR_PASSKEY_REQUIRED, RECENT_SIGN_IN_REQUIRED), RateLimitException or RedirectException. New signInWithCode(login, code, fcmDevice, mcp) and answerTwoStepChallenge(code, session, login, fcmDevice, mcp) return a SignInResult.
  • FailureReason.PASSWORD_OR_PASSKEY_REQUIRED (classified USER_INPUT) and SignInFailure.PASSWORD_OR_PASSKEY_REQUIRED: the code was right, but the person must sign in with a password or passkey. SignInResult.reason holds the server’s reason. classifyFailure falls back to path and status for a reason newer than its source.
  • FailureReason.CLIENT_RETIRED (classified FEATURE_OFF) and SignInFailure.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.type and SecuritySummary.twoStepMode are optional and read an unknown value as null. An unknown challenge is never a sign-in: UnsupportedChallengeException, whose challengeName is the type as the server sent it, or SignInFailure.UNSUPPORTED_CHALLENGE with that exception as error; SignInResult.signedIn checks the challenge itself.
  • registerPasskey returns RECENT_SIGN_IN_REQUIRED when 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, signInWithPassword and loginByCode read 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.
  • CognitoAdvancedSecurityFingerprinter loads Amazon’s script on first use (load() or the first request that asks for its data), not when it is created.
  • Secure storage: AndroidSecureSettings and IosSecureSettings return BufferedSettings; a write the store refuses (Keystore failure, Keychain before the first unlock) is held in memory and stored later instead of throwing. iOS items are kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, and items an earlier build stored under the default accessibility are rewritten once; a read or hasKey before the first unlock throws SecureStorageUnavailableException. IosSecureSettings.isReadable(service) says whether the SDK’s items can be read now (gate creating the SDK on it, not on UIApplication.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. SettingsMigration never 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/useSignInWithCode and answerTwoStepChallengeMutationOptions/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) and showCommunicationReport (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, pass messageType (sent as reportType): reportChannel never filtered anything.

1.51.0

  • Deleting a conversation removes its detail query from the cache rather than invalidating it, so useDeleteConversation does 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 uses mavenCentral().
  • Snapshot builds (-SNAPSHOT versions) are published to https://maven.solibo.no/snapshots instead 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 paymentAllocation from sdk-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 nextPageToken rather 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 attachPaymentToInvoice and rejectPayment mutations, 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 detailCode and the returned durable command as commandJson, 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 localStorage is 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, optional crop) says how clients show an image without changing the original. UploadDocumentRequest.transform is sent as the upload’s base64url JSON transform parameter for you, and encodeDocumentTransform encodes it for direct calls to createDocumentOperation/createDocumentBelongsToOperation. DocumentInput (Upload, Existing) takes a transform for integrated mutations. solibo-query/react: updateDocumentMutationOptions/useUpdateDocument, and transform on the upload, document reference and integrated document inputs, as plain objects (toDocumentTransform).
  • Download disposition: DownloadDocumentRequest.disposition and solibo-query’s image options (ImageTransformOptions.disposition) and third-party letter queries take INLINE or ATTACHMENT.
  • The new disposition and transform operation parameters come after the existing ones, so positional Kotlin calls keep their meaning.

1.43.0

  • The npm packages ship without source maps: no .map files and no sourceMappingURL comments. Bundlers that read the dependencies’ maps (webpack’s source-map-loader) warned about every per-file module of @solibo/solibo-sdk, whose maps named Kotlin sources the package does not contain. @solibo/solibo-sdk shrinks from 49 to 39 MB unpacked. Build the SDK locally to debug it at the Kotlin level.

1.42.0

  • @solibo/solibo-sdk ships 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 accounting has one function per operation, from @solibo/solibo-sdk/<domain>/operations: indexInvoicingAccounts(client, params) does what client.api.invoicing.indexInvoicingAccounts(params) does and loads only that operation and the models it names. The resident helpers (createPersonResident, exportResidentsFile and the rest) are among them. The operations entry also carries the domain’s models without registering the domain. @solibo/solibo-query and @solibo/solibo-react use 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, uploadClientFor and completeSignedUpload from @solibo/solibo-sdk/documents/operations, and integratedDocumentsOf from @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 read sdk.raw.api.documents and its siblings, which only the root client has.
  • @solibo/solibo-sdk/events gives clients from @solibo/solibo-sdk/core their eventBus; the core entry no longer loads the event bus by itself. Clients from the package root are unchanged.
  • Kotlin: HomeApiBase.eventBus and SoliboSDKBase.eventBus are extension properties (import no.solibo.oss.sdk.api.eventBus); HomeApi and SoliboSDK keep 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), and ApiClient has public request bridges for them (executeRequest and its JSON, form and multipart siblings). IntegratedDocumentMutation runs on one client for every operation it finalizes with; HomeApi.integratedDocuments is integratedDocumentsOf(api).

1.41.0

  • useHomepagePracticalInformationPost (factory homepagePracticalInformationPostQueryOptions) looks up one practical information post on the signed-in homepage by id, like useHomepageFeedPost does 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, staffManaged on conversation categories and their create and update commands, and SecureConversationCategory.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) and no.solibo.oss:sdk-api-<name> for each area (sdk-api-company, sdk-api-invoicing, …; see sdk/api/modules.json). A module adds its API as an extension property on HomeApiBase, for example api.companies after import no.solibo.oss.sdk.api.companies. no.solibo.oss:sdk depends on all of them and its HomeApi, now a subclass of HomeApiBase, 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) and ApiArguments; the telemetry attribute keys (HttpSpanAttributes, ExceptionEventAttributes), httpSpanName, routeTemplate, classifyFailure, readFailureReason, parseApiErrors, SoliboSdkVersion and HomeApiBase.tokenTimestamp are public. no.solibo.oss:home-api remains as the aggregate of the generated modules. no.solibo.oss:sdk now compiles for Java 21 like the other artifacts.
  • @solibo/solibo-sdk ships 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/core builds a client over SoliboSDKBase with only the domains imported from @solibo/solibo-sdk/<domain> (companies, invoicing, …); each of those also exports its domain’s models and enums. SoliboProvider from @solibo/solibo-react takes such a client as client, and the client it builds from config now comes from the core entry too: it carries the domains the bundle imported (every query, mutation and hook in @solibo/solibo-query and @solibo/solibo-react imports its own), so code that calls client.api.<domain> directly imports @solibo/solibo-sdk/<domain> or passes a client from the root createSoliboClient. The root createSoliboClient, client.api.<domain> and every type are unchanged; the subpaths also resolve under TypeScript’s classic node module resolution (typesVersions). SoliboClient is generic over its raw SDK (SoliboClient<SoliboSDK> by default), and the raw SDK exposes <domain>Api(api) functions (companiesApi(raw.api)) and SoliboCoreSDKJsBuilder, SoliboSDKBase.createDelegated for a client without the full HomeApi.
  • useOpenHomepageFeedPost / useOpenHomepagePracticalInformationPost (factories openHomepageFeedPostQueryOptions / openHomepagePracticalInformationPostQueryOptions) look up one post of a public homepage by id, like useHomepageFeedPost does 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 / followUpsQueryOptions no longer need companyIds: 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 passed undefined while 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 searches useInvoicingCustomersForCompanies, useInvoicingHistoryForCompanies, useInvoicePlansForCompanies, useInvoicePlanTransactionsForCompanies, useInvoiceSettingsForCompanies and useQueuedInvoicesForCompanies. The per-company mutations of those domains also refresh these lists.
    • Bulk mutations across companies: useCreateMultipleTasks, useCreateMultipleIssues, useCreateMultipleMeetings, useCreateMultipleConversations, useCreateMultipleHomepagePosts, useCreateMultipleHomepagePracticalInfo, useCreateMultipleEmailNewsletters, useCreateMultipleSMSBroadcasts, usePublishMultipleEmailNewsletters, usePublishMultipleSMSBroadcasts and useUpdateMultipleCompanyDetailed. Each refreshes its whole domain.
    • Conversations: useFlagConversation, useUnflagConversation, useMarkConversationUnread, useMessageFullEmailContent, useConversationCategoryParticipantsPreview and useConversationContacts (the company’s contact book).
    • Others: useDeleteIssue, useUpdateCompanyStatus, useFinalizeMeetingSigning (staff), useImportResidentsForOnboardingCompany (the CSV as a string), useMe, useMfaPreference and useCreateAuthSupportRequest. Each has a ...QueryOptions or ...MutationOptions factory with the same stem.
  • 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. deleteDocumentMutationOptions now takes the queryClient. Renaming refreshed the parent’s listing instead of the owner’s, and uploading into a folder missed folder views that do not pass isDirectory.
    • 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 companyId now 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 refresh useMfaPreference (they take an optional queryClient). 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 Base64ByteArray failed 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) and HomeApi.devices.deregisterDevice for 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 generated deregisterFCMDeviceForUser (and deregisterFCMDeviceMutationOptions / useDeregisterFCMDevice) sends the same DeregisterDeviceCommand body now that the backend declares it.
  • DeregisterDeviceCommand is 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, useMarkInternalConversationUnread and useRequestInternalConversationAdministratorInput (with ...MutationOptions factories) 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 with administratorInputRequested and queuedAdministratorNotifications, which is 0 when a request was already pending. Each refreshes the conversation. MockHomeApi answers all three.
  • deleteSectionMutationOptions, removeSectionStatusMutationOptions, deleteFractionsMutationOptions and deleteInvoiceRecipientMutationOptions (and their hooks) take an optional cmd, 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. cmd reaches fields the query cannot, such as at when deleting a section.
  • Added deleteImportDraftMutationOptions and useDeleteImportDraft for permanently deleting a company-import draft with deleteImportDraft. 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 Instant serializer, which previously stopped package assembly.
  • Bodyless JavaScript facade calls now return undefined as declared, instead of Kotlin’s Unit singleton. Query factories use null to cache successful empty results, as TanStack Query rejects undefined query data. Failed responses still reject.

  • Added useHomepageSettings and useUpdateHomepageSettings, with the factories homepageSettingsQueryOptions and updateHomepageSettingsMutationOptions, for the backend’s new showHomepageSettings and updateHomepageSettings operations. The board’s homepage settings are neighborhoodEnabled, neighborhoodAppEnabled, and defaultPostCommentsEnabled; an update keeps every setting it leaves out, and refreshes both the settings and the homepage, which now carries them as settings. The open homepage operations (showOpenHomepage, showOpenHomepageByDomain) now return OpenHomepage, which has no settings. MockHomeApi keeps 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 calls onRefreshFailure, 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 need clientId.

  • Added useCreateCompanyAddress, useUpdateCompanyAddress, and useDeleteCompanyAddress, with the factories createCompanyAddressMutationOptions, updateCompanyAddressMutationOptions, and deleteCompanyAddressMutationOptions, for the backend’s new createCompanyAddress, updateCompanyAddress, and deleteCompanyAddress operations. 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. MockHomeApi keeps addresses per company.
  • Added useDeleteInternalConversationMessage and useRestoreInternalConversationMessage, with the factories deleteInternalConversationMessageMutationOptions and restoreInternalConversationMessageMutationOptions, for the backend’s deleteInternalConversationMessage and restoreInternalConversationMessage operations. They take { companyId, conversationId, messageId } and refresh the conversation (including its message history) and the company’s conversation lists, as useDeleteConversationMessage and useRestoreConversationMessage do for public messages.
  • A refresh token the server refuses now ends the session: the SDK clears the stored tokens and calls onRefreshFailure instead of retrying the same token on every 401. The server’s reason decides when it sends one (NO_SESSION or CREDENTIAL_REJECTED); otherwise a 400, 404, or 422 does. Other statuses, server errors, and network failures keep the session.
  • With token auth, auth.refresh() throws a SoliboSDKError when 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 DeviceRegistrationException and 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, and usePublicConversationDocumentURL(params) with its factory publicConversationDocumentURLQueryOptions(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. usePublicGetDocumentURL remains for downloads; every call is a new request.
  • showDocumentUrls and showPublicDocumentUrls on api.documents sign up to 100 document URLs in one request and return them as a paged list, each with its expiresAt; pass autoPaginate: true to get them all at once. documentURLsQueryOptions / useDocumentURLs and publicDocumentURLsQueryOptions / usePublicDocumentURLs wrap them, and MockHomeApi answers both.
  • useGetDocumentURL, usePublicDocumentURL, and usePublicGetDocumentURL send 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 with fields, 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 a DEFECT, as the bare 404 it replaces was. Sign-in then fails with DeviceRejectedException: the SDK forgets the device, and the next email or SMS sign-in sends hasDeviceSecret: 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 new FailureKind.FEATURE_OFF rather than a DEFECT: the app should show that invoicing is off. Kotlin code with an exhaustive when over FailureKind needs a branch for it.
  • The client no longer retries mutations. A POST, PUT, or DELETE that 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 an Idempotency-Key header (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 / usePushNotificationTypes for the new api.communication.indexPushNotificationTypes, which lists every push notification type with the payload fields it carries. Push inbox items have a typed payload, null when the server matches no type: NewOppslagPushPayload, NewPracticalInfoPushPayload, NewMessageInConversationPushPayload, NewNeighborhoodPostPushPayload, or NewCommunicationCommentPushPayload. MockHomeApi answers the inbox and the type list.
  • The optimistic updates of useCreateIssueToMeeting and useRemoveIssueFromMeeting (and their *MutationOptions) now reach the data useMeeting and useIssues show: 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 with withoutOptimisticUpdate: false failed with a TypeError before the request was sent. Without beforeIndex, the new issue shows last. If the request fails, the queries are refetched as before.
  • Breaking for useSectionStatus readers: sectionStatusQueryOptions / useSectionStatus return the section’s statuses keyed by section id and then by status state (SectionStatusesBySection), as the backend now sends them, so data[state] becomes data[sectionId][state]. api.sections.showSectionStatus returns the matching nested Map.
  • upcomingInvoicingQueryOptions / useUpcomingInvoicing take companyIds to limit the invoicing preview to some housing communities; leave it out to include every one you can access. Kotlin’s indexUpcomingInvoicing takes companyIds as its last argument, so positional calls keep their meaning.
  • The optimistic update of useCreateConversationMessage (and createConversationMessageMutationOptions) now reaches the data useConversation shows: the message appears at once in every cached copy of the conversation, whatever its translateToCountryId or fields, and useConversationMessageHistory is left alone. It used to look for a cache key no query reads. The message has the shape of a fetched MessageInConversation from the current user (sentByCurrentUser: true, and sentById from useUser, or -1 before the user has loaded), with a negative placeholder id and sentAt as an ISO 8601 string. What only the server knows, such as type, sentBy, and documents, is null until the refetch replaces the message. If the request fails, the conversation is refetched as before.
  • conversationQueryOptions and useConversation() no longer retry a conversation the server refuses with a 4xx other than 408, 425, or 429. The check compared the error itself to 404 rather than its status, so a missing conversation was requested four times per refetch.
  • Homepage no longer has feed or practicalInformation, because the backend stopped sending them: showHomepage / useHomepage return the company and its image. Load the posts with useHomepageFeed and useHomepagePracticalInformation, or useOpenHomepageFeed and useOpenHomepagePracticalInformation for 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) in httpClientConfig. 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' to useUploadDocumentBelongsTo(), useMultiUploadDocument(), or useCreateDocumentReference() (and their ...MutationOptions factories). Without it the backend treats the upload as PUBLIC, 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 = false and removes its uploads. Through HomeApi.integratedDocuments such a refusal used to be retried and then reported as an unknown outcome with the uploads kept, because the client’s response validator threw SoliboSDKError before the helper could read the status. IntegratedDocumentMutationException now has statusCode, the status of the refusal, and its cause is the SoliboSDKError with 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 with companyPartnerAgreementsQueryOptions / useCompanyPartnerAgreements, list a partner’s agreements with partnerAgreementsQueryOptions / usePartnerAgreements, and start or end one with updateCompanyPartnerAgreementMutationOptions / useUpdateCompanyPartnerAgreement, which refreshes the company’s and the partner’s agreements. MockHomeApi keeps 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. MockHomeApi reports file-name hits.
  • Added followUpsQueryOptions / useFollowUps({ companyIds, includeAwaitingOthers }) for the new api.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 a SupplierInvoiceFollowUp, ExpenseFollowUp or MeetingProtocolFollowUp (type on the wire). The backend returns nothing without companyIds, 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. MockHomeApi answers with one item of each type per company.
  • SoliboErrorDetail has code, read from error bodies that carry only a code. Opening an Office edit session answers 409 with DOCUMENT_SYNC_PENDING while the file is being synchronized, or CUSTOMER_MICROSOFT_CONNECTION_REQUIRED; read it from error.errors[0].code (on SoliboApiError) or SoliboSDKError.errors.
  • useUpdateAdministratorsForCompany (and updateAdministratorsForCompanyMutationOptions, api.companies.updateAdministratorsForCompany) resolves with SoliboContacts, the body the backend has always sent. It was typed Person[], which failed to decode.
  • useCreateResident and useUpdateResident (and their factories, api.residents.createResident and updateResident) resolve with the sealed Resident, a PersonResident or an OrganizationResident, instead of Person; the backend now declares it and sends the type discriminator. useCreatePersonResident, useCreateOrganizationResident, useUpdatePersonResident and useUpdateOrganizationResident keep returning Person and Organization. MockHomeApi answers these routes with the same shapes.

1.20.2 (2026-09-25)

  • The JavaScript packages (@solibo/solibo-sdk and @solibo/home-api) ship ws 8.21.3 for GHSA-96hv-2xvq-fx4p.

1.20.0 (2026-09-24)

  • JavaScript behaviour change for client.raw callers: the JavaScript package converts collections at its boundary everywhere, so callers only use JS values. Arrays, Maps, and plain objects go into client.raw.api.* methods, model constructors, and setters; arrays and Maps come back from getters, HttpResponse.body(), HttpResponse.headers, callbacks, and helpers such as createUploadHeaders. 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 to KtList or KtMap any more; KtList.fromJsArray / KtMap.fromJsMap remain exported for backwards compatibility but are never required.
  • *WithDocumentsMutationOptions and use*WithDocuments() no longer fail with attachments.iterator_... is not a function, and client.api.accounting.* accepts companyIds, accountNumbers, projectIds, departmentIds, and supplierIds again.

1.19.0

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 spamConversation and spamMultipleConversations, and their unspam* 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 the api and noop artifacts.
  • Added the sdk-sentry artifact, which enriches the host application’s Sentry with the SDK’s spans (installSoliboSentryTelemetry()).
  • SoliboSDKError now 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 undefined arguments, fixing invalidation of keys built with optional parameters.

1.16.14

  • Every OpenAPI parameter is forwarded through the solibo-query and solibo-react wrappers; 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_PASSWORD as 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.accounting and SoliboClient.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-sdk owns the JavaScript client, generated models, authentication, event bus, and raw Kotlin interop.
  • @solibo/solibo-query owns framework-independent TanStack Query option factories, query keys, pagination helpers, and mutation definitions.
  • @solibo/solibo-react owns SoliboProvider, 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.


Solibo AS