StillDeep gRPC API reference
Every service, RPC, message and enumeration of the stilldeep.v1 POS API: sales, catalog, members, shifts, payments, plus call metadata and errors.
- Generated: 2026-11-25T02:48:41-05:00
- Source:
src/public/StillDeep.Intelligence.Contracts/protos/(62 files) - Endpoint:
localhost:50051(HTTP/2, packagestilldeep.v1)
Call metadata
x-shift-id: ID of the open shift, fromShiftService.OpenShiftorShiftService.GetCurrentShift. Send it on every call after sign-in. Required by refunds, discounts, payment refusals, reservation cancellation, pause / resume / close shift, inventory writes and receipts: missing,UNAUTHENTICATED; not a UUID,INVALID_ARGUMENT; not the open or paused shift of this register, or permission missing,PERMISSION_DENIED.SalesService.CreateCartneeds an open shift on the register (no_open_shift,shift_paused).- Refusals:
google.rpc.Statuswith a stable code; show a message from the code, never retry blindly.
Contents
- ageverification
- appointment
- billing
- card
- catalog
- chat
- common
- config
- customer_account
- customer_card
- customer_file
- customer_member
- device
- dining_bar
- dining_kitchen
- dining_tables
- dining
- events
- extensions
- history_recovery
- history_refund_breakdown
- history_refund
- host_link
- host_refusals
- host_settings
- inventory_count
- inventory_desk
- language
- member
- printing
- receipt
- rental_renewal
- rental_tiers
- rental_upgrade
- rental
- report
- sale_checkout
- sale_choices
- sale_discounts
- sale_gestures
- sale_quote
- sale_tile_price
- sales
- scan
- scheduling
- session_clock
- session
- shift
- stay_admission
- stay_sale
- stay
- sync
- ticketing
- transport_board
- transport_journey
- transport_operations
- transport_sale_tickets
- transport_sale
- transport_timetable
- transport_trip
- transport
- user
ageverification
Source file: src/public/StillDeep.Intelligence.Contracts/protos/ageverification.proto
AgeVerificationService: legal age verification for restricted products (alcohol, tobacco, cannabis in applicable jurisdictions).
The service relies on:
- Member.custom_fields (e.g. "date_of_birth") for an identified customer.
- Manual DOB entry by the cashier for an anonymous customer.
- External extension (driver's license ID scanner) that injects a DOB via SourceKind.PLUGIN_SCANNER.
The service does not store the DOB for anonymous customers, only the result (passed/failed) with an anonymous hash for audit.
Services
AgeVerificationService
AgeVerificationService: legal age verification. Error codes: INVALID_ARGUMENT (no DOB source set or invalid format), FAILED_PRECONDITION (verification passed=false), NOT_FOUND (product_id), PERMISSION_DENIED (invalid manager_auth_token). The server logs every verification in system_audit_log with an anonymized hash for legal compliance.
| RPC | Request | Response | Streaming |
|---|---|---|---|
VerifyAge |
VerifyAgeRequest |
VerifyAgeResponse |
- |
GetMinAgeForProduct |
GetMinAgeForProductRequest |
GetMinAgeForProductResponse |
- |
ConfirmAge |
DiningConfirmAgeRequest |
CartResponse |
- |
Messages
AgeVerificationResultDiningConfirmAgeRequestGetMinAgeForProductRequestGetMinAgeForProductResponseVerifyAgeRequestVerifyAgeResponse
Enums
VerificationSourceKind
appointment
Source file: src/public/StillDeep.Intelligence.Contracts/protos/appointment.proto
AppointmentService: service appointments (grooming, nail trimming, care).
An appointment occupies a qualified employee for the service duration plus its buffer. Availability combines scheduled shifts (user_schedule), skill groups and the appointments already booked. Payment goes through SalesService.AddItem(service_appointment_id).
Services
AppointmentService
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListAppointments |
ListAppointmentsRequest |
ListAppointmentsResponse |
- |
GetAvailability |
GetAvailabilityRequest |
GetAvailabilityResponse |
- |
CreateAppointment |
CreateAppointmentRequest |
AppointmentResponse |
- |
UpdateAppointment |
UpdateAppointmentRequest |
AppointmentResponse |
- |
Messages
AppointmentAppointmentResponseAvailableSlotCreateAppointmentRequestGetAvailabilityRequestGetAvailabilityResponseListAppointmentsRequestListAppointmentsResponseStaffDayTimeRangeUpdateAppointmentRequest
Enums
AppointmentStatus
billing
Source file: src/public/StillDeep.Intelligence.Contracts/protos/billing.proto
BillingService: what a checkout needs beyond one payment on one cart: tips quoted by rate, a tip left alone, the selected method put back, unpaid invoices quoted and paid with the sale in progress, and the spending account of a customer. Every amount is computed by the engine; a screen shows it as it is.
Refusals are FAILED_PRECONDITION with the stable code in the x-failure-code trailer, NOT_FOUND for an unknown cart, method or invoice (code *_not_found when the engine gives one), UNAVAILABLE (server_unreachable) when a read needs the server and it does not answer. A call that changes a cart also refuses post_duplicate (the register is barred: the same identity runs on another machine) and cart_other_shift (the register opened another shift than the one the cart started under), in the order of the register: post_duplicate, shift_not_open, shift_paused, cart_other_shift; shift_closed replaces shift_not_open and cart_other_shift when the server closed the cart's shift.
Services
BillingService
| RPC | Request | Response | Streaming |
|---|---|---|---|
QuoteTips |
BillingQuoteTipsRequest |
BillingQuoteTipsResponse |
- |
AddTip |
BillingAddTipRequest |
CartResponse |
- |
RestorePaymentMethod |
BillingRestorePaymentMethodRequest |
CartResponse |
- |
QuoteSettlement |
BillingQuoteSettlementRequest |
BillingQuoteSettlementResponse |
- |
PaySettlement |
BillingPaySettlementRequest |
BillingPaySettlementResponse |
- |
GetAccount |
BillingGetAccountRequest |
BillingAccount |
- |
ChargeToAccount |
BillingChargeToAccountRequest |
BillingChargeToAccountResponse |
- |
SetAccountLimit |
BillingSetAccountLimitRequest |
BillingAccount |
- |
Messages
BillingAccountBillingAddTipRequestBillingChargeToAccountRequestBillingChargeToAccountResponseBillingGetAccountRequestBillingPaySettlementRequestBillingPaySettlementResponseBillingQuoteSettlementRequestBillingQuoteSettlementResponseBillingQuoteTipsRequestBillingQuoteTipsResponseBillingRestorePaymentMethodRequestBillingSetAccountLimitRequestBillingSettlementInvoiceBillingTipQuote
card
Source file: src/public/StillDeep.Intelligence.Contracts/protos/card.proto
CardService: physical / virtual cards (gift card, loyalty card, discount card, employee card, membership card).
A card can be attached to 0 or 1 member. Balance / operations / passes are handled by the Cards extension. This service only exposes read / lookup for POSClient and SalesService.AttachCard. Using a card on a cart, selling one and topping one up: CustomerCardService (customer_card.proto).
Services
CardService
CardService: read access to physical / virtual cards. Called by: POSClient (card scan / entry), SalesService.AttachCard internally, MemberService (list a member's cards). No mutation here: issuance, top-up and blocking go through the Admin + the Cards extension. Error codes: NOT_FOUND, INVALID_ARGUMENT, FAILED_PRECONDITION (card LOST/REVOKED/EXPIRED depending on usage context), UNAVAILABLE card_offline.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetCard |
GetCardRequest |
Card |
- |
ListCards |
ListCardsRequest |
ListCardsResponse |
- |
Messages
CardCustomerCardBenefitGetCardRequestListCardsRequestListCardsResponse
Enums
CardKindCardStatus
catalog
Source file: src/public/StillDeep.Intelligence.Contracts/protos/catalog.proto
CatalogService: products, categories, taxes.
Read-only from POSClient. Catalog changes go through the Admin, not this service. Data is synchronized from ServerDB to the register's local SQLite (bootstrap data + delta sync).
Services
CatalogService
CatalogService: read-only catalog of products / categories / taxes. Called by: POSClient (product search, autocomplete, barcode scan), and indirectly by SalesService.AddItem (internal resolution). Never writes: changes go through the Admin, which writes to ServerDB (PostgreSQL) and sync propagates to the registers via Communication.Lib (bootstrap + delta). Typical errors: NOT_FOUND if product / category / tax does not exist; INVALID_ARGUMENT if the request is empty or parameters are inconsistent.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetProductBySku |
GetProductRequest |
Product |
- |
GetProductByBarcode |
GetProductByBarcodeRequest |
Product |
- |
GetItem |
GetItemRequest |
Product |
- |
GetItems |
GetItemsRequest |
GetItemsResponse |
- |
SearchProducts |
SearchProductsRequest |
SearchProductsResponse |
- |
Autocomplete |
AutocompleteRequest |
AutocompleteResponse |
- |
ListCategories |
ListCategoriesRequest |
ListCategoriesResponse |
- |
GetActiveTaxes |
GetTaxesRequest |
GetTaxesResponse |
- |
ListPriceTierLists |
ListPriceTierListsRequest |
ListPriceTierListsResponse |
- |
ListPriceTierEntries |
ListPriceTierEntriesRequest |
ListPriceTierEntriesResponse |
- |
GetMedia |
GetMediaRequest |
MediaResponse |
- |
Messages
AutocompleteHitAutocompleteRequestAutocompleteResponseCategoryGetItemRequestGetItemsRequestGetItemsResponseGetMediaRequestGetProductByBarcodeRequestGetProductRequestGetTaxesRequestGetTaxesResponseListCategoriesRequestListCategoriesResponseListPriceTierEntriesRequestListPriceTierEntriesResponseListPriceTierListsRequestListPriceTierListsResponseMediaResponsePriceOptionPriceTierEntryPriceTierEntryWindowPriceTierListProductProductCustomFieldValueSearchProductsRequestSearchProductsResponseTax
Enums
PricingKind
chat
Source file: src/public/StillDeep.Intelligence.Contracts/protos/chat.proto
ChatService: chat of the employee who holds the open shift of this register, with colleagues (Admin, Report, other registers) and with the AI assistant.
The register signs the employee in when the shift opens and out when it closes: a screen never signs in itself. Who may write to whom is decided by the server (chat enabled on the register, permission chat.pos, target roles, access to the assistant).
Every call needs the x-shift-id header of the shift open (or paused) on this register and the permission chat.pos of its employee.
Services
ChatService
ChatService. Errors, with the reason in the x-failure-code trailer and a message in the language of the call: FAILED_PRECONDITION (chat_not_online, chat_shift_not_open, chat_post_disabled, shift_paused, ai_module_inactive), PERMISSION_DENIED (chat_permission_missing, chat_target_forbidden, chat_ai_forbidden), INVALID_ARGUMENT (chat_invalid_message), UNAVAILABLE (chat_ai_unavailable, chat_send_failed, server_unreachable). Without x-shift-id: UNAUTHENTICATED; another shift or no chat.pos: PERMISSION_DENIED.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetChatState |
ChatGetStateRequest |
ChatState |
- |
ListContacts |
ChatListContactsRequest |
ChatListContactsResponse |
- |
GetConversation |
ChatGetConversationRequest |
ChatGetConversationResponse |
- |
SendMessage |
ChatSendMessageRequest |
ChatMessage |
- |
AskAi |
ChatAskAiRequest |
ChatAskAiResponse |
- |
CancelAi |
ChatCancelAiRequest |
ActionResponse |
- |
EndAiConversation |
ChatEndAiConversationRequest |
ActionResponse |
- |
AskAiForVisitor |
ChatAskAiForVisitorRequest |
ChatAiReply |
- |
Watch |
ChatWatchRequest |
ChatEvent |
server |
Messages
ChatAiCartChangedEventChatAiCountLineChatAiCountProposedEventChatAiFileChatAiFileLimitsChatAiProgressedEventChatAiRepliedEventChatAiReplyChatAiTurnChatAskAiForVisitorRequestChatAskAiRequestChatAskAiResponseChatCancelAiRequestChatContactChatContactPresenceChangedEventChatEndAiConversationRequestChatEventChatGetConversationRequestChatGetConversationResponseChatGetStateRequestChatListContactsRequestChatListContactsResponseChatMessageChatMessageArrivedEventChatMessageChangedEventChatPresenceChatPresenceChangedEventChatSendMessageRequestChatStateChatWatchRequest
common
Source file: src/public/StillDeep.Intelligence.Contracts/protos/common.proto
Fundamental types shared by all StillDeep services.
These messages are imported by all the other .proto files. They define the numeric conventions (no double / float, decimal everywhere) and the envelope building blocks: Money, Identifier, Pagination, ErrorDetail, PluginExtensions, etc.
Amounts in int64 cents (never double/float). Versioning: namespace stilldeep.v1.*; v2 will be a separate namespace. Convention: snake_case for fields, PascalCase for messages.
Messages
ActionResponseCustomFieldValueErrorDetailIdentifierMoneyPageInfoPaginationPercentagePluginExtensionsQuantity
config
Source file: src/public/StillDeep.Intelligence.Contracts/protos/config.proto
ConfigService: runtime configuration of the register + diagnostics.
Lets the cashier / manager:
- read the current config (assigned printer, shift_timeout_minutes, branding).
- change user preferences (persisted language, theme).
- fetch recent logs for debugging (limited to 1h).
- trigger a clean restart of the POSClient (after an extension update).
Changing the business-wide config (e.g. tax_rates, business_hours) goes through the Admin, not this service.
Services
ConfigService
ConfigService: runtime configuration + diagnostics. Error codes: NOT_FOUND, PERMISSION_DENIED, FAILED_PRECONDITION (restart with open carts), UNAVAILABLE with x-failure-code "local_settings_unavailable" (GetLocalSettings on a host that does not hold the settings of a register), UNAVAILABLE with x-failure-code "countries_unavailable" (ListCountries while the server cannot be reached).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetPostConfig |
GetPostConfigRequest |
PostConfig |
- |
GetUserPreferences |
GetUserPreferencesRequest |
UserPreferences |
- |
UpdateUserPreferences |
UpdateUserPreferencesRequest |
UserPreferences |
- |
GetClientLogs |
GetClientLogsRequest |
GetClientLogsResponse |
- |
RestartClient |
RestartClientRequest |
RestartClientResponse |
- |
GetLocalSettings |
HostGetLocalSettingsRequest |
HostLocalSettings |
- |
ListCountries |
ListCountriesRequest |
ListCountriesResponse |
- |
Messages
CountryCountryRegionGetClientLogsRequestGetClientLogsResponseGetPostConfigRequestGetUserPreferencesRequestListCountriesRequestListCountriesResponseLogEntryPaymentMethodInfoPostConfigRestartClientRequestRestartClientResponseStoreInfoStoreLegalIdentifierUpdateUserPreferencesRequestUserHotkeyUserPreferences
Enums
LogLevel
customer_account
Source file: src/public/StillDeep.Intelligence.Contracts/protos/customer_account.proto
CustomerAccountService: online customer accounts of the public web site (register of kind web_storefront): sign-up and email confirmation, forgotten password, sign in (password, passkey, authenticator app), sign out, the account of a signed-in customer (address, invoices, documents) and the Contact form.
The server checks everything: passwords are judged and hashed there (a hash never leaves it), passkeys and codes are verified there, failures and emails are counted by email and visitor network, and the session token it returns is the only key to the account. This service carries the calls; it keeps no session and logs no token, password or code. Online only: UNAVAILABLE server_unreachable when the server is away.
Services
CustomerAccountService
CustomerAccountService: customer accounts of the public web site. Refusals carry their stable code in the x-failure-code trailer. A request that cannot be addressed (token, link set, ceremony or id missing) is INVALID_ARGUMENT and never leaves, except an empty link token (token_invalid), an empty authenticator code (totp_invalid) and BeginPasskey ADD without session (session_expired): they never leave either, but come back as FAILED_PRECONDITION with the code and text the server gives, so a page acts the same way (ask for a new link, sign in again, wrong code). Since nothing leaves, an empty code answers totp_invalid even when the session or the pending sign-in has ended (e.g. code "" on an expired pending_token: totp_invalid, then session_expired on the next code typed), and an empty code is never counted as a wrong code. What a visitor typed (names, email, password, address, message) is judged by the server, whose code comes back as FAILED_PRECONDITION (NOT_FOUND for a *_not_found code). Every call may also answer post_not_storefront (this register is not the web storefront) and UNAVAILABLE server_unreachable.
| RPC | Request | Response | Streaming |
|---|---|---|---|
SignIn |
CustomerSignInRequest |
CustomerAccountSession |
- |
CompleteSignIn |
CustomerCompleteSignInRequest |
CustomerAccountSession |
- |
SignOut |
CustomerSignOutRequest |
CustomerSignOutResponse |
- |
GetAccount |
CustomerAccountRequest |
CustomerAccount |
- |
GetBillingAccount |
CustomerBillingAccountRequest |
BillingAccount |
- |
Register |
CustomerRegisterRequest |
CustomerRegisterResponse |
- |
ConfirmEmail |
CustomerConfirmEmailRequest |
CustomerAccountSession |
- |
RequestPasswordReset |
CustomerPasswordResetLinkRequest |
CustomerPasswordResetLinkResponse |
- |
ResetPassword |
CustomerResetPasswordRequest |
CustomerAccountSession |
- |
GetSecurityPolicy |
CustomerSecurityPolicyRequest |
CustomerSecurityPolicy |
- |
CheckPassword |
CustomerCheckPasswordRequest |
CustomerPasswordVerdict |
- |
BeginPasskey |
CustomerBeginPasskeyRequest |
CustomerPasskeyOptions |
- |
SignInWithPasskey |
CustomerPasskeySignInRequest |
CustomerAccountSession |
- |
AddPasskey |
CustomerAddPasskeyRequest |
CustomerPasskey |
- |
RemovePasskey |
CustomerRemovePasskeyRequest |
CustomerRemovePasskeyResponse |
- |
BeginTotp |
CustomerBeginTotpRequest |
CustomerTotpEnrollment |
- |
ConfirmTotp |
CustomerConfirmTotpRequest |
CustomerTotpConfirmation |
- |
DisableTotp |
CustomerDisableTotpRequest |
CustomerDisableTotpResponse |
- |
SaveAddress |
CustomerSaveAddressRequest |
MemberAddress |
- |
SendContactMessage |
CustomerContactMessageRequest |
CustomerContactMessageResponse |
- |
GetTransaction |
CustomerTransactionRequest |
Transaction |
- |
ListDocuments |
CustomerDocumentsRequest |
ListDocumentsResponse |
- |
SaveDocument |
CustomerSaveDocumentRequest |
Document |
- |
DeclareSitePages |
CustomerSitePagesRequest |
CustomerSitePagesResponse |
- |
Messages
CustomerAccountCustomerAccountLinksCustomerAccountRequestCustomerAccountSessionCustomerAddPasskeyRequestCustomerBeginPasskeyRequestCustomerBeginTotpRequestCustomerBillingAccountRequestCustomerCheckPasswordRequestCustomerCompleteSignInRequestCustomerConfirmEmailRequestCustomerConfirmTotpRequestCustomerContactMessageRequestCustomerContactMessageResponseCustomerDisableTotpRequestCustomerDisableTotpResponseCustomerDocumentsRequestCustomerPasskeyCustomerPasskeyCredentialCustomerPasskeyOptionsCustomerPasskeySignInRequestCustomerPasswordResetLinkRequestCustomerPasswordResetLinkResponseCustomerPasswordVerdictCustomerPurchaseCustomerRegisterRequestCustomerRegisterResponseCustomerRemovePasskeyRequestCustomerRemovePasskeyResponseCustomerResetPasswordRequestCustomerSaveAddressRequestCustomerSaveDocumentRequestCustomerSecurityPolicyCustomerSecurityPolicyRequestCustomerSignInRequestCustomerSignOutRequestCustomerSignOutResponseCustomerSitePagesCustomerSitePagesRequestCustomerSitePagesResponseCustomerTotpConfirmationCustomerTotpEnrollmentCustomerTransactionRequest
Enums
CustomerPasskeyCeremony
customer_card
Source file: src/public/StillDeep.Intelligence.Contracts/protos/customer_card.proto
CustomerCardService: store cards at the counter (money card, token book, season pass, time card): the cards on sale with their tiers, using a card on a cart (it pays, or it covers entries), selling a card and topping one up, sharing a money card with the family of its holder, giving its balance back.
Reading a card stays in CardService (card.proto). Every amount is computed by the engine; the server reads each card, balance, benefit and tier again when the sale arrives. A card is read online only: without the server, a call refuses UNAVAILABLE card_offline where it would read a card, the code of the register. SellCard also works offline once ListCardOffers was read: the card is created when the sale is delivered.
Services
CustomerCardService
CustomerCardService: store cards at the counter. Refusals carry their stable code in the x-failure-code trailer; a screen words them in its own language. UseCard, SellCard and ReloadCard need the cart of the open shift of the register (shift_not_open, shift_closed, shift_paused), like SalesService.AddItem. SetCardSharing and CashOutCard need the x-shift-id header: the employee of the open shift holds the right (UNAUTHENTICATED without it, PERMISSION_DENIED otherwise).
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListCardOffers |
CustomerCardOffersRequest |
CustomerCardOffersResponse |
- |
UseCard |
CustomerCardUseRequest |
CustomerCardUseResponse |
- |
SellCard |
CustomerCardSaleRequest |
CartResponse |
- |
ReloadCard |
CustomerCardReloadRequest |
CartResponse |
- |
SetCardSharing |
CustomerCardSharingRequest |
Card |
- |
CashOutCard |
CustomerCardCashOutRequest |
CustomerCardCashOutResponse |
- |
BlockCard |
CustomerCardBlockRequest |
Card |
- |
TransferCardBalance |
CustomerCardTransferRequest |
Card |
- |
StartTimeCard |
CustomerTimeCardRequest |
Card |
- |
PauseTimeCard |
CustomerTimeCardRequest |
Card |
- |
PreviewCardPrice |
CustomerCardPriceRequest |
CustomerCardPrice |
- |
Messages
CustomerCardBlockRequestCustomerCardCashOutRequestCustomerCardCashOutResponseCustomerCardOfferCustomerCardOffersRequestCustomerCardOffersResponseCustomerCardPriceCustomerCardPriceRequestCustomerCardReloadRequestCustomerCardSaleRequestCustomerCardSharingRequestCustomerCardTierCustomerCardTransferRequestCustomerCardUseRequestCustomerCardUseResponseCustomerTimeCardRequest
customer_file
Source file: src/public/StillDeep.Intelligence.Contracts/protos/customer_file.proto
CustomerFileService: files kept in the record of a customer (contract, photo, form, vaccination record).
The files live on the server: online only. The server lists and reads them for an employee of the register who may search customers (member.search); the employee of the shift adds or changes one with member.update; only the Admin deletes one.
Services
CustomerFileService
CustomerFileService: files of the record of a customer.
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListFiles |
CustomerFilesRequest |
CustomerFilesResponse |
- |
GetFile |
CustomerFileRequest |
CustomerFile |
- |
AddFile |
CustomerFileAddRequest |
CustomerFile |
- |
ChangeFile |
CustomerFileChangeRequest |
CustomerFile |
- |
AwaitFileDescription |
CustomerFileAwaitRequest |
CustomerFile |
- |
ReadFile |
CustomerFileRequest |
CustomerFileChunk |
server |
Messages
CustomerFileCustomerFileAddRequestCustomerFileAwaitRequestCustomerFileChangeRequestCustomerFileChunkCustomerFileLimitsCustomerFileRequestCustomerFilesRequestCustomerFilesResponse
customer_member
Source file: src/public/StillDeep.Intelligence.Contracts/protos/customer_member.proto
Messages of MemberService (member.proto) for the email of a customer at the counter: verification code, proof of the email, link to a new password. The server sends the mail; the register never sees a code or a link.
Messages
CustomerEmailCodeRequestCustomerMailRequestCustomerMailSent
device
Source file: src/public/StillDeep.Intelligence.Contracts/protos/device.proto
DeviceService: state / control of POS peripherals.
Concrete implementations via driver extensions (Epson ESC/POS, Moneris P2PE, etc.). This service exposes a uniform control on the UI side.
Services
DeviceService
Partly served: only OpenCashDrawer; the other calls answer UNIMPLEMENTED.
DeviceService: control / reading of POS peripherals. Called by: POSClient (status for UI iconography, manual drawer opening, peripheral tests during configuration), SalesService (auto print at Finalize via ReceiptService -> DeviceService). Implementations: routed to the driver extensions via the IDeviceChain chain in Intelligence.Lib. Each DeviceType has its own driver. Error codes: NOT_FOUND (device_id), FAILED_PRECONDITION (device not READY), UNAVAILABLE (driver extension missing), PERMISSION_DENIED. Dependencies: EventService (publishes DeviceStatusChangedEvent, DrawerOpenedEvent, ReceiptPrintedEvent).
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListDevices |
ListDevicesRequest |
ListDevicesResponse |
- |
GetDeviceStatus |
GetDeviceStatusRequest |
GetDeviceStatusResponse |
- |
OpenCashDrawer |
OpenCashDrawerRequest |
ActionResponse |
- |
PrintReceipt |
PrintReceiptRequest |
ActionResponse |
- |
TestDevice |
TestDeviceRequest |
TestResponse |
- |
Messages
DeviceGetDeviceStatusRequestGetDeviceStatusResponseListDevicesRequestListDevicesResponseOpenCashDrawerRequestPrintReceiptRequestTestDeviceRequestTestResponse
Enums
DeviceStatusDeviceType
dining_bar
Source file: src/public/StillDeep.Intelligence.Contracts/protos/dining_bar.proto
DiningBarService: bar tabs. A tab is a cart opened under a customer's name or a seat at the counter and held like a table check: every register that sells sees it, the server keeps it for the longest lifetime it gives a held cart, several are open at once. It is closed by paying the cart taken back (SalesService.GetSavedCart brings back Cart.bar_tab, priced again at the catalog, with its age proof).
The server judges each call: the register needs an open shift whose employee holds the right sales.save_cart. Without it the list comes back empty and HoldBarTab is refused (shift_required, permission_denied). A refusal carries its stable code in the x-failure-code trailer.
Services
DiningBarService
DiningBarService. Refusal codes (x-failure-code): INVALID_ARGUMENT: unreadable cart_id. NOT_FOUND: unknown cart. FAILED_PRECONDITION: bar_tab_invalid (no name and no seat, name over 60 characters, seat out of 1 to 999, or the cart is the check of a table), bar_tab_required (HoldBarTab on a cart that is not a tab), bar_seat_taken (the seat already has an open tab), payment_in_progress (a payment is entered: pay the tab, do not hold it), bar_round_invalid (ServeRound: no tab, over 100, or a tab named twice), bar_round_refused (ServeRound: the item was not added to a tab, an extension asked a question or cancelled), text_too_long, shift_required, permission_denied, no_open_shift, shift_paused; ServeRound and SwitchBarTab also answer the refusals of SalesService.GetSavedCart and, for ServeRound, of SalesService.AddItem.
| RPC | Request | Response | Streaming |
|---|---|---|---|
OpenBarTab |
DiningOpenBarTabRequest |
CartResponse |
- |
ListBarTabs |
DiningListBarTabsRequest |
DiningListBarTabsResponse |
- |
HoldBarTab |
DiningHoldBarTabRequest |
DiningHoldBarTabResponse |
- |
SwitchBarTab |
DiningSwitchBarTabRequest |
DiningSwitchBarTabResponse |
- |
ServeRound |
DiningServeRoundRequest |
DiningServeRoundResponse |
- |
Messages
DiningHoldBarTabRequestDiningHoldBarTabResponseDiningListBarTabsRequestDiningListBarTabsResponseDiningOpenBarTabRequestDiningServeRoundRequestDiningServeRoundResponseDiningSwitchBarTabRequestDiningSwitchBarTabResponse
dining_kitchen
Source file: src/public/StillDeep.Intelligence.Contracts/protos/dining_kitchen.proto
DiningKitchenService: what the kitchen knows of the lines of a check, set before they are sent; sending a table check to its stations, firing its next courses, voiding a line already sent.
The course of a line groups the kitchen tickets: when a check is sent, one ticket goes per station and per course, the lowest course is fired and the next ones wait until the waiter fires them. A line sent to the kitchen no longer changes (kitchen_line_sent): it is voided with a reason. The state is kept on the cart (CartLine.kitchen, Cart.launched_course, Cart.kitchen_tab_id) and follows it when held and taken back. Nothing reaches the server until the check is sent; the server unreachable, nothing is sent and nothing changes (kitchen_offline).
The orders of the stations are read and moved along by the kitchen displays and the dining room (ListOrders, ChangeOrder); a counter shows its customer order board and hands each order over (GetOrderBoard, HandOverOrder). The server judges the register: a kitchen display needs no shift and sees only its stations. Read again at a regular interval: EventService.Subscribe (kitchen_orders_changed) only hints that orders changed, relayed within a second of the server's notice.
A refusal carries its stable code in the x-failure-code trailer.
Services
DiningKitchenService
DiningKitchenService. Refusal codes (x-failure-code): INVALID_ARGUMENT: an id that is not a UUID. NOT_FOUND: unknown cart; not_found (the line is not a root line of the cart); kitchen_order_not_found (no such order for this register; HandOverOrder: no counter order for the sale). FAILED_PRECONDITION: course_invalid (outside 0 to 9; 1 to 9 for FireCourse), seat_invalid (outside 0 to 99), allergens_invalid (more than 10, or one longer than 40 characters), kitchen_line_sent (the line already left for the kitchen), table_required (only a table check is sent or fired before payment), kitchen_nothing_to_send, kitchen_nothing_sent (FireCourse before a first send), kitchen_line_not_sent (VoidSentLine on a line not sent: remove it instead), kitchen_reason_required, kitchen_order_invalid (refused by the server), kitchen_limit_invalid (closed orders outside 0 to 200), kitchen_action_invalid (no action, or one that does not apply to the order now: START or READY on a closed order, RECALL on an open one), shift_required (ChangeOrder from a register that is neither a kitchen display nor on an open shift). PERMISSION_DENIED: VoidSentLine without the right kitchen.void_sent (permission_denied when the server refuses it). UNAVAILABLE: kitchen_offline (the server cannot be reached: nothing went to the kitchen, nothing changed, nothing read).
| RPC | Request | Response | Streaming |
|---|---|---|---|
SetLineCourse |
DiningSetLineCourseRequest |
CartResponse |
- |
SetLineSeat |
DiningSetLineSeatRequest |
CartResponse |
- |
SetLineAllergens |
DiningSetLineAllergensRequest |
CartResponse |
- |
SendCheck |
DiningSendCheckRequest |
DiningKitchenSendResponse |
- |
FireCourse |
DiningFireCourseRequest |
DiningKitchenSendResponse |
- |
VoidSentLine |
DiningVoidSentLineRequest |
CartResponse |
- |
ListOrders |
DiningListKitchenOrdersRequest |
DiningKitchenOrdersResponse |
- |
ChangeOrder |
DiningChangeKitchenOrderRequest |
DiningKitchenOrderResponse |
- |
GetOrderBoard |
DiningGetOrderBoardRequest |
DiningOrderBoard |
- |
HandOverOrder |
DiningHandOverOrderRequest |
DiningKitchenOrdersResponse |
- |
Messages
DiningChangeKitchenOrderRequestDiningFireCourseRequestDiningGetOrderBoardRequestDiningHandOverOrderRequestDiningKitchenOrderDiningKitchenOrderLineDiningKitchenOrderResponseDiningKitchenOrdersResponseDiningKitchenSendResponseDiningListKitchenOrdersRequestDiningOrderBoardDiningOrderBoardEntryDiningSendCheckRequestDiningSetLineAllergensRequestDiningSetLineCourseRequestDiningSetLineSeatRequestDiningVoidSentLineRequest
Enums
DiningKitchenOrderActionDiningKitchenOrderKindDiningKitchenOrderSourceDiningKitchenOrderStatus
dining_tables
Source file: src/public/StillDeep.Intelligence.Contracts/protos/dining_tables.proto
DiningTableService: floor plan of a restaurant, table checks, covers, and the gestures on a table (status, move, merge, waiter).
A table is a location (product kind "emplacement", location kind "table"). A table check is a cart held at its table: every register that sells sees it, and the server keeps it for the longest lifetime it gives a held cart, whatever lifetime was asked.
The server judges each call: the register needs an open shift whose employee holds the right sales.save_cart. Without it the floor plan and the checks come back empty, and HoldAtTable and the gestures on a table are refused (shift_required, permission_denied). A refusal carries its stable code in the x-failure-code trailer.
A gesture on a table (SetTableStatus, MoveTable, MergeTables, ChangeTableServer) is applied by the server only, in one transaction, and written to its audit log (table.status, table.move, table.merge, table.server) under the employee of the shift. Server unreachable: UNAVAILABLE server_unreachable, and nothing changed.
Services
DiningTableService
DiningTableService: floor plan, table checks, covers, gestures on a table. Refusal codes (x-failure-code): INVALID_ARGUMENT: an id that is not an integer or a UUID. NOT_FOUND: unknown cart; table_not_found (also the destination of a move or a merge that is the same table or not a table), table_server_not_found. FAILED_PRECONDITION: table_covers_required (a table needs at least 1 cover), covers_invalid (outside 1 to 999), table_paid_sale (a payment is on the cart: a paid sale is not held at a table), bar_tab_invalid (the cart is a bar tab), reservation_not_holdable, text_too_long (label), shift_required, permission_denied (the shift lacks sales.save_cart), shift_not_open, shift_closed, shift_paused, cart_other_post, cart_already_finalized, cart_already_recorded; table_status_invalid, table_has_tabs (a check is still held at a table set free), table_occupied (move to a table in use), table_merge_free (merge into a table not in use), table_free (a free table has no waiter). PlanBills, SplitBills, MoveLinesToTable: FAILED_PRECONDITION bill_unknown_line, bill_line_twice, bill_line_unassigned, bill_part_invalid (no part or more than 99, bill or weight not positive, a bill twice for a line), bill_number_gap, bill_cart_discount (a cart discount or a tax rebate must be settled first), bill_not_priced, table_required (SplitBills on a cart that is not a table check), bill_share_line (only a whole item without option nor discount is paid in shares), table_lines_invalid (no line, every line, or a line that is not a root line of the cart), payment_in_progress, refused_by_extension and cancelled_by_extension (an extension keeps a line: nothing is held), lines_move_refused (an extension could not carry what it holds for a line, such as an animal's reservation, to its new bill: the bills already held are withdrawn, the lines stay), and the refusals of a hold at a table (the bills already held are withdrawn); NOT_FOUND table_not_found. UNAVAILABLE: server_unreachable (a gesture on a table needs the server; nothing changed).
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListTables |
DiningListTablesRequest |
DiningListTablesResponse |
- |
ListTableChecks |
DiningListTableChecksRequest |
DiningListTableChecksResponse |
- |
HoldAtTable |
DiningHoldAtTableRequest |
DiningHoldAtTableResponse |
- |
SetCovers |
DiningSetCoversRequest |
CartResponse |
- |
SetTableStatus |
DiningSetTableStatusRequest |
DiningTableResponse |
- |
MoveTable |
DiningMoveTableRequest |
DiningTableResponse |
- |
MergeTables |
DiningMergeTablesRequest |
DiningTableResponse |
- |
ChangeTableServer |
DiningChangeTableServerRequest |
DiningTableResponse |
- |
PlanBills |
DiningPlanBillsRequest |
DiningPlanBillsResponse |
- |
SplitBills |
DiningSplitBillsRequest |
DiningSplitBillsResponse |
- |
MoveLinesToTable |
DiningMoveLinesToTableRequest |
DiningMoveLinesToTableResponse |
- |
Messages
DiningBillAssignmentDiningBillPartDiningChangeTableServerRequestDiningHoldAtTableRequestDiningHoldAtTableResponseDiningListTableChecksRequestDiningListTableChecksResponseDiningListTablesRequestDiningListTablesResponseDiningMergeTablesRequestDiningMoveLinesToTableRequestDiningMoveLinesToTableResponseDiningMoveTableRequestDiningPlanBillsRequestDiningPlanBillsResponseDiningPlannedBillDiningPlannedBillLineDiningSetCoversRequestDiningSetTableStatusRequestDiningSplitBillsRequestDiningSplitBillsResponseDiningTableDiningTableResponse
Enums
DiningTableStatus
dining
Source file: src/public/StillDeep.Intelligence.Contracts/protos/dining.proto
Dining types carried by a cart and by a held cart: the table a held cart is the check of, what the kitchen knows of a cart line. No service here: sales.proto imports this file, and the dining services (dining_tables.proto, dining_kitchen.proto) import both.
Messages
DiningAgeProofDiningBarTabDiningBillShareDiningLineKitchenDiningSeating
Enums
DiningAgeSource
events
Source file: src/public/StillDeep.Intelligence.Contracts/protos/events.proto
EventService: real-time streaming for POSClient.
Lets several simultaneous UIs (register, customer display, kitchen display, second screen) see the same cart live. The UI subscribes via Subscribe -> Event stream; the server pushes every relevant mutation.
Note: the extensions' internal bus (in-process AssemblyLoadContext) is a separate C# abstraction (IPluginEventBus); see StillDeep.Intelligence.Plugins.Abstractions. This gRPC service only serves remote or multi-register UI CLIENTS.
Services
EventService
EventService: real-time stream for multi-UI synchronization. Called by: main POSClient (register), customer display, kitchen display, admin second screen, out-of-process extensions. Usage patterns: * Customer display: Subscribe(kinds=[CART, PAYMENT], cart_id_filter=<active>) -> shows items + total live. * Kitchen display: Subscribe(kinds=[CART], post_id_filter=<restaurant>) -> filters client-side the Carts with product_kind="restaurant_item". * External scanner: Publish(ScanReceivedEvent); the system routes to the consumer that had emitted ScanRequestedEvent. Error codes: INVALID_ARGUMENT (empty subscriber_id), UNAUTHENTICATED.
| RPC | Request | Response | Streaming |
|---|---|---|---|
Subscribe |
SubscribeRequest |
Event |
server |
SetSubscriberLocale |
SetSubscriberLocaleRequest |
SetSubscriberLocaleResponse |
- |
Publish |
PublishEventRequest |
ActionResponse |
- |
Heartbeat |
HeartbeatRequest |
HeartbeatResponse |
bidi |
Messages
BalanceUpdatedEventCartCardAttachedEventCartItemAddedEventCartItemRemovedEventCartLocationAttachedEventCartMemberAttachedEventCartUpdatedEventDeviceStatusChangedEventDiningKitchenOrdersChangedEventDrawerOpenedEventEventHeartbeatRequestHeartbeatResponseNoticeEventOfflineCopyRefreshedEventPaymentCompletedEventPaymentInitiatedEventPaymentMethodChangedEventPrintingDuplicateOfferedEventPublishEventRequestReceiptPrintedEventRefundIssuedEventRegisterClockChangedEventRegisterLinkChangedEventRegisterStartupChangedEventReservationSavedEventSaleAbandonedEventSaleLinesBehindCatalogEventScanReceivedEventScanRequestedEventSetSubscriberLocaleRequestSetSubscriberLocaleResponseShiftClosedEventShiftOpenedEventShiftPausedEventShiftResumedEventSubscribeRequestTransactionFinalizedEvent
Enums
ChatRegisterLinkStateChatRegisterStartupStateEventKindFilter
extensions
Source file: src/public/StillDeep.Intelligence.Contracts/protos/extensions.proto
Extension documents and sections of the generic screens.
A document is an extension record without a table (a pet, a breed, a product's setting): values as a JSON object validated by the schema of its type. A register reads all types; it writes only what the type opens to it (post_access) and, if the type requires it, with the permission of the employee of the open shift (post_permission).
Services
DocumentService
DocumentService: extension documents at a register. Writes run as the employee of the register's open shift. Errors: NOT_FOUND, PERMISSION_DENIED (type closed to registers, permission missing), FAILED_PRECONDITION (invalid values, no open shift, still referenced), with the reason code in the x-failure-code trailer.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetDocument |
GetDocumentRequest |
DocumentResponse |
- |
ListDocuments |
ListDocumentsRequest |
ListDocumentsResponse |
- |
SaveDocument |
SaveDocumentRequest |
DocumentResponse |
- |
ChangeDocument |
ChangeDocumentRequest |
DocumentResponse |
- |
UiExtensionService
UiExtensionService: sections declared by the extensions loaded on this register.
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListUiExtensions |
ListUiExtensionsRequest |
ListUiExtensionsResponse |
- |
ExtensionService
ExtensionService: extensions loaded on this register and the operations they offer to screens. Errors, with the reason in the x-failure-code trailer: NOT_FOUND (extension_unavailable: neither a loaded extension nor the server offers the operation), INVALID_ARGUMENT (input_too_large, input_invalid: not a JSON object, or customer_token too long), DEADLINE_EXCEEDED (extension_timeout), UNAVAILABLE (unavailable: the server of the extension cannot be reached), FAILED_PRECONDITION (extension_failed, or the code the extension's server refused with, e.g. "signature.forbidden", "request_replayed").
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListExtensions |
ExtensionListRequest |
ExtensionListResponse |
- |
CallExtension |
ExtensionCallRequest |
ExtensionCallResponse |
- |
Messages
ChangeDocumentRequestDocumentDocumentResponseExtensionCallRequestExtensionCallResponseExtensionInfoExtensionListRequestExtensionListResponseGetDocumentRequestListDocumentsRequestListDocumentsResponseListUiExtensionsRequestListUiExtensionsResponseSaveDocumentRequestUiSection
Enums
DocumentActionDocumentPostAccessUiSectionKind
history_recovery
Source file: src/public/StillDeep.Intelligence.Contracts/protos/history_recovery.proto
HistoryRecoveryService: what a register tells a screen about a sale, a reservation or a refund whose answer was lost after sending, about paid sales it kept across a restart, and about paid sales a register could not finish and handed over to the others (a kiosk to the ticket desk). Read on demand: a screen does not depend on a pushed notice.
Services
HistoryRecoveryService
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetDocumentOutcome |
HistoryDocumentOutcomeRequest |
HistoryDocumentOutcome |
- |
ListKeptPaidSales |
HistoryKeptSalesRequest |
HistoryKeptSalesResponse |
- |
HandOverPaidSale |
HistoryHandOverRequest |
HistoryHandOverResponse |
- |
ListHandedOverSales |
HistoryHandedOverRequest |
HistoryHandedOverResponse |
- |
Messages
HistoryDocumentOutcomeHistoryDocumentOutcomeRequestHistoryHandedOverRequestHistoryHandedOverResponseHistoryHandOverRequestHistoryHandOverResponseHistoryKeptSaleHistoryKeptSalesRequestHistoryKeptSalesResponse
Enums
HistoryDocumentState
history_refund_breakdown
Source file: src/public/StillDeep.Intelligence.Contracts/protos/history_refund_breakdown.proto
What a refund gives back, by method. Shared by SalesService.RefundTransaction (TransactionResponse.refund), HistoryRefundService.PreviewRefund and HistoryRecoveryService.GetDocumentOutcome.
Messages
HistoryRefundBreakdownHistoryRefundTender
history_refund
Source file: src/public/StillDeep.Intelligence.Contracts/protos/history_refund.proto
HistoryRefundService: what a refund screen needs before SalesService.RefundTransaction: whether the open shift may refund a sale, by which methods, and what a refund would give back. Nothing here records a refund.
Services
HistoryRefundService
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetRefundOptions |
HistoryRefundOptionsRequest |
HistoryRefundOptions |
- |
BeginRefund |
HistoryBeginRefundRequest |
HistoryBeginRefundResponse |
- |
PreviewRefund |
RefundTransactionRequest |
HistoryRefundPreview |
- |
SettlePendingRefund |
HistorySettlePendingRefundRequest |
HistorySettlePendingRefundResponse |
- |
Messages
HistoryBeginRefundRequestHistoryBeginRefundResponseHistoryRefundMethodHistoryRefundOptionsHistoryRefundOptionsRequestHistoryRefundPreviewHistorySettlePendingRefundRequestHistorySettlePendingRefundResponse
host_link
Source file: src/public/StillDeep.Intelligence.Contracts/protos/host_link.proto
Host link: what the register says of its link with the business server, of its startup and of its offline copy. Carried by SyncStatus (sync.proto) and read by a screen instead of the state of the register host.
Messages
HostOfflineCopyHostOfflineKeysHostOfflineKeysChangedEventHostRetryStartupRequestHostStartup
Enums
HostLinkStateHostOfflineKeysStateHostStartupState
host_refusals
Source file: src/public/StillDeep.Intelligence.Contracts/protos/host_refusals.proto
Host refusal texts: the display text of the stable refusal and notice codes.
A refusal carries a stable code (trailer x-failure-code, a *_code field of a response, or NoticeEvent.code). This service gives the text of a code when no call just failed: a code read from a response field, a notice kept from before, a startup problem.
Language: the Status message of a refused call is said in the language of the call. In English it is the English text of the exact French message when the code has several (example: not_found "Ce panier n'existe plus." reads "This cart no longer exists."), otherwise the English text of the code. A read refused by ScanService keeps the text ScanService wrote in the language of the call. The same table serves every screen: a screen needs no text table of its own. When the register wrote the Status message that way (FAILED_PRECONDITION or NOT_FOUND), the trailer x-message-locale carries the locale of that message, e.g. "en-CA". A screen whose table is in that language shows the Status message rather than the text of the code, which is less precise. Example: permission_missing "Votre rôle ne permet pas de rembourser." reads "Your role does not allow refunds." with x-message-locale "en-CA", where the code alone reads "Your role does not allow this action.". Without the trailer, the text of the code comes first, then the Status message.
Opening hours: a post_closed refusal (a cart born or loaded outside the opening hours of the register) also carries the trailer x-reopens-at when the next opening is known: ISO 8601 with the offset of the zone of the register, both the exact time and the wall time a screen shows. Example: "2026-11-11T08:00:00-05:00" = Wednesday at 08:00 in Quebec (13:00 UTC). The Status message of that refusal already says the time; in English it reads "This post is closed: it opens again Wednesday, November 11 at 08:00."
Amounts: a text may name amounts in braces, filled from the trailers of the refusal that carries the code: {name} takes the trailer x-name-cents (whole cents, currency of the cart), shown as money in the language of the text. Example: tip_out_of_range "The tip goes from {min} to {max}." with x-min-cents "100" and x-max-cents "5000" reads "The tip goes from $1.00 to $50.00.". When a trailer is missing (an item without a maximum, a code read without a call), show the Status message of the call instead: it already says the amounts in its language.
General texts: a refusal whose code has no text and whose Status message is empty (a bare gRPC status) shows the text of call_unanswered when the status is UNAVAILABLE or DEADLINE_EXCEEDED, otherwise the text of call_refused; a screen never shows an empty text. Example: UNAVAILABLE with no detail in en-CA reads "The register did not answer: nothing says the action was done. Check before trying again."
Services
HostRefusalTextService
HostRefusalTextService: texts of the stable codes, the same table the register shows. Called by: every screen, once at startup and again when version changes. No shift and no right needed: the sign-in screen reads it too. Error codes: INVALID_ARGUMENT with x-failure-code "locale_invalid" (locale that is not a BCP 47 tag, e.g. "en CA") or "codes_invalid" (more than 500 codes, or a code longer than 64 characters).
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListRefusalTexts |
HostListRefusalTextsRequest |
HostListRefusalTextsResponse |
- |
Messages
HostListRefusalTextsRequestHostListRefusalTextsResponseHostRefusalText
host_settings
Source file: src/public/StillDeep.Intelligence.Contracts/protos/host_settings.proto
Host settings: what the register knows without its server (its identity, its local choices, what is loaded on it). Read by ConfigService.GetLocalSettings (config.proto).
Messages
HostGetLocalSettingsRequestHostLoadedExtensionHostLocalSettings
inventory_count
Source file: src/public/StillDeep.Intelligence.Contracts/protos/inventory_count.proto
InventoryCountService: the stock count of the register's warehouse, taken by several registers at once.
One count is open per warehouse. Every register with an open shift counts into it. A count goes to the server at once and is never queued offline: every register must see it. Finishing the count turns each variance (counted - expected) into a stock adjustment; this cannot be undone.
Headers: x-shift-id on every call that writes (StartCount, RecordCount, ScanCount, UndoCount, ApplyProposal, FinishCount, CancelCount). Without it: UNAUTHENTICATED. A shift that is not the open shift of the register, or whose employee lacks inventory.count (and inventory.adjust for FinishCount with zero_uncounted): PERMISSION_DENIED. The server then reads the shift again (open, not paused, same rights) and answers with a failure code.
Failure codes (trailer x-failure-code; status FAILED_PRECONDITION unless noted): count_module_inactive the stock count module is not licensed on this register: every call but GetAvailability, WatchCount included. A write without x-shift-id, or with a shift refused, gets UNAUTHENTICATED or PERMISSION_DENIED first: the shift headers are read before the module. GetAvailability tells it beforehand. server_unreachable UNAVAILABLE: no link to the store's server, nothing is queued shift_required, shift_paused, permission_denied count_name_invalid, count_start_conflict, count_not_found (NOT_FOUND), count_not_open count_product_unknown, count_product_untracked, count_quantity_invalid, count_quantity_whole, count_negative count_code_invalid, count_code_not_found (NOT_FOUND) scan_empty, scan_too_long, scan_invalid INVALID_ARGUMENT: ScanCount with an unreadable code, nothing was asked to the server count_entry_unknown, count_entry_undone, count_notes_invalid ai_count_invalid a proposal of the assistant that is neither an ADD nor a SET, or of more than 200 lines ai_count_reaccepted_too_often ApplyProposal: a line accepted, undone and accepted again more than 100 times count_refused the server refused without a code of its own
Services
InventoryCountService
InventoryCountService: stock count of the register's warehouse. Called by: a count screen on a register (scanner, camera, typed quantities), several at once. Reads (GetAvailability, GetCount, ListCounts, GetCountReview, WatchCount) need no shift. Every call but GetAvailability fails with count_module_inactive when the module is not licensed on the register (after the shift headers of a write are checked), and with server_unreachable offline.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetAvailability |
InventoryGetAvailabilityRequest |
InventoryCountAvailability |
- |
GetCount |
InventoryGetCountRequest |
InventoryCountState |
- |
ListCounts |
InventoryListCountsRequest |
InventoryListCountsResponse |
- |
StartCount |
InventoryStartCountRequest |
InventoryCountState |
- |
RecordCount |
InventoryRecordCountRequest |
InventoryCountRecorded |
- |
ScanCount |
InventoryScanCountRequest |
InventoryCountRecorded |
- |
UndoCount |
InventoryUndoCountRequest |
InventoryCountRecorded |
- |
GetCountReview |
InventoryGetCountReviewRequest |
InventoryCountReview |
- |
FinishCount |
InventoryFinishCountRequest |
InventoryCountFinished |
- |
CancelCount |
InventoryCancelCountRequest |
InventoryCountSummary |
- |
ApplyProposal |
InventoryApplyProposalRequest |
InventoryApplyProposalResponse |
- |
WatchCount |
InventoryWatchCountRequest |
InventoryCountChange |
server |
SearchProducts |
InventorySearchProductsRequest |
InventorySearchProductsResponse |
- |
Messages
InventoryApplyProposalRequestInventoryApplyProposalResponseInventoryCancelCountRequestInventoryCountInventoryCountAvailabilityInventoryCountChangeInventoryCountCounterInventoryCountEntryInventoryCountFinishedInventoryCountLineInventoryCountProposalInventoryCountRecordedInventoryCountReviewInventoryCountShareInventoryCountStateInventoryCountSummaryInventoryFinishCountRequestInventoryGetAvailabilityRequestInventoryGetCountRequestInventoryGetCountReviewRequestInventoryListCountsRequestInventoryListCountsResponseInventoryProposedCountInventoryRecordCountRequestInventoryRefusedCountInventoryScanCountRequestInventorySearchProductsRequestInventorySearchProductsResponseInventoryStartCountRequestInventoryStockChangedEventInventoryUncountedProductInventoryUndoCountRequestInventoryWatchCountRequest
Enums
InventoryCountEntryKindInventoryCountStatus
inventory_desk
Source file: src/public/StillDeep.Intelligence.Contracts/protos/inventory_desk.proto
InventoryDeskService: the back-office desk of a register: stock per warehouse, suppliers and purchase orders.
The server keeps every rule: it reads the register's open shift again (open, not paused) and the permission of the call, validates each line and computes every total. A screen never computes a total.
Headers: x-shift-id on every write. Without it: UNAUTHENTICATED. A shift that is not the open shift of the register, or whose employee lacks the right of the call (purchasing.manage or inventory.count to create a draft order; purchasing.manage to send or cancel an order, inventory.receive to receive, inventory.transfer to transfer): PERMISSION_DENIED. GetDesk needs no header: the server reads the register's open shift, whose employee must hold inventory.count, inventory.receive or purchasing.manage.
Failure codes (trailer x-failure-code; status FAILED_PRECONDITION unless noted): count_module_inactive the stock count module, which also opens this desk, is not licensed on this register; InventoryCountService.GetAvailability tells it beforehand (module_open false) server_unreachable UNAVAILABLE: no link to the store's server, nothing is queued shift_required, shift_paused, permission_denied inventory_command_invalid, inventory_note_too_long, inventory_supplier_unknown, inventory_warehouse_unknown, inventory_lines_count, inventory_quantity_invalid, inventory_quantity_integer, inventory_unit_cost_invalid, inventory_product_untracked, inventory_total_too_large, inventory_order_unknown, inventory_order_not_draft, inventory_order_empty, inventory_order_received, inventory_order_not_sent, inventory_line_repeated, inventory_line_unknown, inventory_quantity_exceeded, inventory_cost_fixed, inventory_cost_too_large, inventory_lot_too_long, inventory_transfer_same_warehouse, inventory_stock_short inventory_desk_refused the server refused without a code of its own
Services
InventoryDeskService
InventoryDeskService. Called by: a back-office screen on a register (parts counter, owner's view). Closed with count_module_inactive when the stock count module is not licensed on the register, like the register's own desk: a register licensed for sales only (no inventory_count) sees neither purchase orders nor transfers. Stock levels of a product stay readable through CatalogService (Product.stock_on_hand).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetDesk |
InventoryGetDeskRequest |
InventoryDesk |
- |
CreatePurchaseOrder |
InventoryCreatePurchaseOrderRequest |
InventoryPurchaseOrderRef |
- |
SendPurchaseOrder |
InventoryPurchaseOrderActionRequest |
InventoryPurchaseOrderRef |
- |
CancelPurchaseOrder |
InventoryPurchaseOrderActionRequest |
InventoryPurchaseOrderRef |
- |
ReceivePurchaseOrder |
InventoryReceivePurchaseOrderRequest |
InventoryPurchaseOrderRef |
- |
TransferWarehouseStock |
InventoryTransferWarehouseStockRequest |
InventoryWarehouseTransferRef |
- |
Messages
InventoryCreatePurchaseOrderRequestInventoryDeskInventoryDeskChoiceInventoryGetDeskRequestInventoryOrderLineInputInventoryPurchaseOrderInventoryPurchaseOrderActionRequestInventoryPurchaseOrderLineInventoryPurchaseOrderRefInventoryReceiptLineInputInventoryReceivePurchaseOrderRequestInventoryTransferWarehouseStockRequestInventoryWarehouseStockInventoryWarehouseTransferRef
Enums
InventoryPurchaseOrderStatus
language
Source file: src/public/StillDeep.Intelligence.Contracts/protos/language.proto
LanguageService: display language selection and resolution.
Lets the cashier / kiosk / customer:
- List active languages (system_language is_active=true).
- Resolve the effective language for a context (register, employee, customer).
- Force a language on a cart_id (volatile override).
- Clear the volatile override.
The override is held in memory in Intelligence.Service (lost on restart), by design. To change the language of a register or employee durably, use the Admin.
Services
LanguageService
Error codes: * NOT_FOUND: requested locale missing or inactive in system_language. * INVALID_ARGUMENT: malformed cart_id.
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListLanguages |
ListLanguagesRequest |
ListLanguagesResponse |
- |
GetEffectiveLocale |
GetEffectiveLocaleRequest |
GetEffectiveLocaleResponse |
- |
SetCartLocaleOverride |
SetCartLocaleOverrideRequest |
SetCartLocaleOverrideResponse |
- |
ClearCartLocaleOverride |
ClearCartLocaleOverrideRequest |
ClearCartLocaleOverrideResponse |
- |
Messages
ClearCartLocaleOverrideRequestClearCartLocaleOverrideResponseGetEffectiveLocaleRequestGetEffectiveLocaleResponseLanguageListLanguagesRequestListLanguagesResponseSetCartLocaleOverrideRequestSetCartLocaleOverrideResponse
member
Source file: src/public/StillDeep.Intelligence.Contracts/protos/member.proto
MemberService: search / read / create / update of members (customers enrolled in the program).
Note: wallets / passes / loyalty programs live in the Cards extension. GetWalletBalance returns plugin_loaded=false when it is absent. To scan / attach a card to the cart, use SalesService.AttachCard.
Services
MemberService
MemberService: management of members (enrolled customers). Called by: POSClient (search / quick creation / cart association), the Admin (full CRUD). Error codes: NOT_FOUND, INVALID_ARGUMENT, ALREADY_EXISTS, PERMISSION_DENIED (status BARRED without manager role), FAILED_PRECONDITION. Dependencies: Cards extension for GetWalletBalance.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetMemberByNumber |
GetMemberRequest |
Member |
- |
SearchMembers |
SearchMembersRequest |
SearchMembersResponse |
- |
CreateMember |
CreateMemberRequest |
Member |
- |
UpdateMember |
UpdateMemberRequest |
Member |
- |
ValidateMembership |
ValidateMembershipRequest |
ValidateMembershipResponse |
- |
GetWalletBalance |
GetWalletBalanceRequest |
GetWalletBalanceResponse |
- |
AssignCard |
AssignCardRequest |
MemberCard |
- |
SendVerification |
CustomerMailRequest |
CustomerMailSent |
- |
ConfirmEmailCode |
CustomerEmailCodeRequest |
Member |
- |
SendPasswordLink |
CustomerMailRequest |
CustomerMailSent |
- |
Messages
AssignCardRequestCommunicationPreferencesCreateMemberRequestGetMemberRequestGetWalletBalanceRequestGetWalletBalanceResponseMemberMemberAddressMemberCardMembershipMemberStatsSearchMembersRequestSearchMembersResponseUpdateMemberRequestValidateMembershipRequestValidateMembershipResponseWalletBalance
Enums
CommunicationChannelMemberStatus
printing
Source file: src/public/StillDeep.Intelligence.Contracts/protos/printing.proto
PrintingService: what a register prints and what came out of its printer.
The register renders and prints: a screen never builds a receipt. A register served without devices of its own (gRPC host alone) prints nothing: GetPrintSettings says so, and a call that needs a printer answers UNIMPLEMENTED. Refusals are FAILED_PRECONDITION with a stable code in the x-failure-code trailer.
Services
PrintingService
PrintingService: printing of a register. Called by: POSClient (settings at sign-in, bill before payment, state of the prints of a sale, printer configuration screen, signed document), web desktop (print previews). Errors: FAILED_PRECONDITION with x-failure-code, NOT_FOUND, INVALID_ARGUMENT (unreadable id), UNAUTHENTICATED / PERMISSION_DENIED (SavePrintBinding and PrintTestPage without the open shift or post.devices), UNIMPLEMENTED (PrintBill, the printer calls and the previews on a register served without devices).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetPrintSettings |
PrintingSettingsRequest |
PrintingSettings |
- |
ListPrintStations |
PrintingStationsRequest |
PrintingStationsResponse |
- |
SavePrintBinding |
PrintingSaveBindingRequest |
PrintingSaveBindingResponse |
- |
PrintTestPage |
PrintingTestPageRequest |
PrintingTestPageResponse |
- |
PrintBill |
PrintingBillRequest |
PrintingBillResponse |
- |
GetSalePrints |
PrintingSalePrintsRequest |
PrintingSalePrints |
- |
PrintDocumentImage |
PrintingDocumentImageRequest |
PrintingDocumentImageResponse |
- |
WatchPrintPreviews |
PrintingPreviewsRequest |
PrintingPreviewPage |
server |
Messages
PrintingBillRequestPrintingBillResponsePrintingBindingPrintingDocumentImageRequestPrintingDocumentImageResponsePrintingPreviewPagePrintingPreviewsRequestPrintingSalePrintsPrintingSalePrintsRequestPrintingSaveBindingRequestPrintingSaveBindingResponsePrintingSettingsPrintingSettingsRequestPrintingStationPrintingStationsRequestPrintingStationsResponsePrintingTestPageRequestPrintingTestPageResponse
Enums
PrintingReceiptMomentPrintingState
receipt
Source file: src/public/StillDeep.Intelligence.Contracts/protos/receipt.proto
ReceiptService: deliver / reprint / resend a receipt.
All rendering (PDF / ESC-POS / HTML email) is done on the POSIntelligenceSvc side. POSClient only asks: for transaction X, format Y, channel Z. Intelligence takes care of:
- rendering the content (i18n, detailed taxes, branding)
- sending to the peripheral (printer via DeviceService)
- posting to an email/SMS queue for deferred channels
This separation lets open-source POSClients (Web, Mobile, Kiosk fork) avoid reimplementing templating + printer drivers.
Services
ReceiptService
ReceiptService: receipt emission and search. Called by: POSClient (after Finalize if not auto-emitted, reprint screen, after-the-fact email), Kiosk (gift receipt). Implementation: an email goes through the server queue; a printed copy goes out of the printer of the register that serves the call (linked directly, with its devices). Error codes: NOT_FOUND (transaction, kept receipt), INVALID_ARGUMENT (unreadable id), FAILED_PRECONDITION with a stable code in the x-failure-code trailer (email_invalid, sale_email_none, receipt_no_tickets, shift_not_open, receipt_original_not_printed, receipt_gift_unavailable, refusal of the register such as receipt_printing_disabled), UNIMPLEMENTED (printing asked of a server without devices, or a channel and format never served: SMS, QR_DOWNLOAD, A4_PDF...), UNAVAILABLE with server_unreachable (an email needs the server). Dependencies: Transaction (SalesService), Member (CommunicationPreferences), Device (printing), EventService (publishes ReceiptPrintedEvent).
| RPC | Request | Response | Streaming |
|---|---|---|---|
EmitReceipt |
EmitReceiptRequest |
ReceiptRenderResult |
- |
ResendReceiptEmails |
ResendReceiptEmailsRequest |
ActionResponse |
- |
FindReceipts |
FindReceiptsRequest |
FindReceiptsResponse |
- |
Messages
EmitReceiptRequestFindReceiptsRequestFindReceiptsResponseReceiptRenderResultReceiptSummaryResendReceiptEmailsRequest
Enums
ReceiptChannelReceiptFormat
rental_renewal
Source file: src/public/StillDeep.Intelligence.Contracts/protos/rental_renewal.proto
Messages of RentalService for sold rentals waiting to start and automatic renewal.
A rental sold with a length but no dates waits as "pending" until ActivateRental starts it. A running rental of a customer may renew by itself at its due date, paid by one of their money cards or charged to their account.
Messages
ActivateRentalRequestListPendingRentalsRequestListPendingRentalsResponsePendingRentalRenewDueRentalsRequestRenewDueRentalsResponseRentalRenewalRefusalSetRentalRenewalRequest
rental_tiers
Source file: src/public/StillDeep.Intelligence.Contracts/protos/rental_tiers.proto
Messages of the rental grid of an item: its tiers (Product.rental_tiers), compared as a visitor compares them, and the price of several items taken together for one same length, a bundle (RentalService.CompareRentalTiers).
Display only: a sale always reads the tier again from the catalog (SalesService.AddItem with rental_tier_id).
Messages
CompareRentalTiersRequestRentalBundleRentalBundlePartRentalItemTiersRentalTierRentalTierComparisonRentalTierOffer
rental_upgrade
Source file: src/public/StillDeep.Intelligence.Contracts/protos/rental_upgrade.proto
Messages of RentalService for the upgrade of a rented line to another tier or another rental item.
An upgrade gives back the credit of the old rental by the rule of its item (Rental.upgrade_refund: "full" = all the line still kept, "unused" = its unused share, "none" = nothing), as a refund of its sale (SalesService.RefundTransaction with RefundLineSelection.kind "upgrade"), and sells the new tier in an open cart, starting now for its full length. Online only.
Messages
PlanRentalUpgradeRequestRentalUpgradePlanUpgradeRentalRequestUpgradeRentalResponse
rental
Source file: src/public/StillDeep.Intelligence.Contracts/protos/rental.proto
RentalService: item rental contracts (checkout, due date, return, deposit).
A rental sold at the counter opens at finalization (SalesService.AddItem with rental_due_at). CreateRental opens a contract outside a sale (future booking, loan). PlanRentalUpgrade and UpgradeRental move a rented line to another tier (messages in rental_upgrade.proto). CompareRentalTiers compares the tiers of rental grids and prices bundles (messages in rental_tiers.proto).
Services
RentalService
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListRentals |
ListRentalsRequest |
ListRentalsResponse |
- |
CreateRental |
CreateRentalRequest |
RentalResponse |
- |
ReturnRental |
ReturnRentalRequest |
RentalResponse |
- |
ListPendingRentals |
ListPendingRentalsRequest |
ListPendingRentalsResponse |
- |
ActivateRental |
ActivateRentalRequest |
RentalResponse |
- |
SetRentalRenewal |
SetRentalRenewalRequest |
RentalResponse |
- |
RenewDueRentals |
RenewDueRentalsRequest |
RenewDueRentalsResponse |
- |
PlanRentalUpgrade |
PlanRentalUpgradeRequest |
RentalUpgradePlan |
- |
UpgradeRental |
UpgradeRentalRequest |
UpgradeRentalResponse |
- |
CompareRentalTiers |
CompareRentalTiersRequest |
RentalTierComparison |
- |
Messages
CreateRentalRequestListRentalsRequestListRentalsResponseRentalRentalResponseReturnRentalRequest
Enums
RentalScope
report
Source file: src/public/StillDeep.Intelligence.Contracts/protos/report.proto
ReportService: operational in-POS reports.
For advanced analytical reports (BI, complex dashboards), use ServerReport, which reads the database directly. This service only exposes the real-time data the cashier / manager needs during a shift.
No mutation: read-only. Permissions:
report.shift_summary/report.top_products/report.cashier_productivity(manager).
Services
ReportService
ReportService: real-time reports for the cashier / manager. Error codes: NOT_FOUND, PERMISSION_DENIED.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetShiftSummary |
GetShiftSummaryRequest |
ShiftSummary |
- |
GetTopProducts |
GetTopProductsRequest |
GetTopProductsResponse |
- |
GetSalesByMethod |
GetSalesByMethodRequest |
GetSalesByMethodResponse |
- |
GetTipSummary |
GetTipSummaryRequest |
TipSummary |
- |
GetCashierProductivity |
GetCashierProductivityRequest |
GetCashierProductivityResponse |
- |
Messages
CashierProductivityEntryCashierTipEntryGetCashierProductivityRequestGetCashierProductivityResponseGetSalesByMethodRequestGetSalesByMethodResponseGetShiftSummaryRequestGetTipSummaryRequestGetTopProductsRequestGetTopProductsResponsePaymentMethodSummaryProductSalesEntryShiftSummaryShiftSummaryDrawerOpeningTipSummary
sale_checkout
Source file: src/public/StillDeep.Intelligence.Contracts/protos/sale_checkout.proto
Checkout check of a web storefront: before a payment opens, the server asks the extensions that declare it whether the customer may buy these items (StillDeep.Server.Plugins.Abstractions.CheckoutChecks). The server asks them again when it records a sale that collected nothing (a $0 order), whatever the screen did; a paid sale is never refused afterwards.
Request and answer of SalesService.CheckCheckout.
Messages
CheckoutCheckRequestCheckoutCheckResponse
sale_choices
Source file: src/public/StillDeep.Intelligence.Contracts/protos/sale_choices.proto
What an item asks of the screen before AddItem: its choice groups (sauce, size, extras), the options picked at the sale, and the details the cashier enters (weight, free price, rental).
A screen draws Product.choice_groups, then names the picks in AddItemRequest.choices. The engine reads the groups again from the catalog (offline copy included) and prices each option itself: nothing a screen says about an option is trusted.
Messages
SaleChoiceGroupSaleChoiceOptionSaleChosenOption
Enums
SaleItemDetail
sale_discounts
Source file: src/public/StillDeep.Intelligence.Contracts/protos/sale_discounts.proto
Discounts of a sale outside the catalog list: what a discount typed at the counter would take off, computed by the engine before ApplyDiscount.
Request and answer of SalesService.PreviewDiscount. Nothing a screen says is trusted: the engine reads the base again from the cart and ApplyDiscount applies the same rule.
Messages
SalePreviewDiscountRequestSalePreviewDiscountResponse
sale_gestures
Source file: src/public/StillDeep.Intelligence.Contracts/protos/sale_gestures.proto
Gestures on a sale outside payment: take-out or dine-in, and whether the employee of the open shift may sell an item.
Requests and answers of SalesService.SetServiceMode and SalesService.CheckSellable. Each rule is applied by the engine: nothing a screen says is trusted.
Messages
SaleReceiptEmailRequestSaleSellableRequestSaleSellableResponseSaleServiceModeRequest
sale_quote
Source file: src/public/StillDeep.Intelligence.Contracts/protos/sale_quote.proto
Quote of catalog items without a cart: the price of each line, the invoice taxes by code and the totals, computed by the engine with the rules a sale applies.
Request and answer of SalesService.QuoteLines. Nothing is created nor held, and nothing a screen says about a price is trusted: the engine reads each item again from the catalog.
Messages
SaleQuoteCodeSaleQuotedLineSaleQuoteDroppedSaleQuoteItemSaleQuoteRequestSaleQuoteResponseSaleQuoteTax
sale_tile_price
Source file: src/public/StillDeep.Intelligence.Contracts/protos/sale_tile_price.proto
Price of an item as its tile shows it: one price, a range, a free price or none, per unit of sale.
Decided by the engine from the catalog (Product.tile_price), the rule the register's own tiles follow: a screen writes the words in its language and never decides the kind nor the bounds itself.
Messages
SaleTilePrice
Enums
SaleTilePriceKind
sales
Source file: src/public/StillDeep.Intelligence.Contracts/protos/sales.proto
SalesService: cart, payment, finalization.
Main service exposed by POSIntelligenceSvc, consumed by all POSClients (Windows Reference, web, kiosk, mobile). It is the core of the sales flow: cart creation -> add / remove lines -> discounts -> payment -> finalization -> receipt.
Idempotency: a request whose idempotency_key field says so (ProcessPayment, FinalizeTransaction, RefundTransaction, CancelReservation) answers a resend under the same key with the first answer and no second effect; the field says how long the key is kept (e.g. one hour in memory for a payment). A key its field does not document is not read: a resend repeats the action, so read the cart again first.
Services
SalesService
SalesService: main POS service. All cart, payment and finalization operations go through here. Called by: POSClient (Windows Reference, web, kiosk, mobile) over gRPC on localhost (HTTP/2 pipe). No call outside the customer's LAN. Common preconditions: an OPEN shift must exist on the register for the cashier_user_id. Otherwise PERMISSION_DENIED. Per-RPC permissions are checked via interceptor (see ShiftService.CheckPermission for UI pre-check). Main error codes: INVALID_ARGUMENT: inconsistent parameters (e.g. product_id and sku both empty). NOT_FOUND: cart / product / member / transaction does not exist. FAILED_PRECONDITION: incompatible cart status (e.g. Finalize on a VOIDED cart). A sale call on an existing cart checks, in the order of the register: post_duplicate (barred register), shift_not_open (no open shift), shift_paused, cart_other_shift (the register opened another shift than the cart's); shift_closed replaces shift_not_open and cart_other_shift when the server closed the cart's shift. PERMISSION_DENIED: no open shift, or insufficient role for discount/refund. UNAUTHENTICATED: manager_auth_token invalid or expired. ALREADY_EXISTS: re-send detected by idempotency_key, idempotent return. Barred register: when the server refused this register because the same identity is online on another machine (SyncStatus.barred), no cart is born until it restarts. Every call that creates or loads a cart (CreateCart, GetSavedCart including a paid sale kept at the register, ResumeReservation, RefundTransaction, HistoryRefundService.BeginRefund, a card balance return) answers FAILED_PRECONDITION with x-failure-code "post_duplicate", ahead of the opening-hours and shift refusals of the cart. Example: CreateCart on register 1 while its twin sells on another machine -> FAILED_PRECONDITION, x-failure-code "post_duplicate", no cart. Usage patterns (excerpts): * Standard cash sale: CreateCart -> AddItem* -> ProcessPayment(cash) -> FinalizeTransaction. * Split payment: CreateCart -> AddItem* -> ProcessPayment(card_p2pe partial) -> ProcessPayment(cash for rest) -> FinalizeTransaction. * Card refusal with fallback: ProcessPayment(card) -> refusal -> ResolvePaymentRefusal (FALLBACK_TO_CASH) -> ProcessPayment(cash) -> FinalizeTransaction. * Pause / resume: SaveCart -> [customer busy with another cart] -> GetSavedCart -> ... * Reservation: AddItem* -> AssociateMember (or a rented location) -> ProcessPayment (deposit, optional) -> ReserveCart; later ResumeReservation -> AddItem (fees) -> ProcessPayment -> ReserveCart or FinalizeTransaction; or PreviewReservationCancellation -> CancelReservation(expected_refund). Dependencies: CatalogService (product resolution in AddItem), MemberService (AssociateMember), CardService (AttachCard), DeviceService (printing via FinalizeTransaction), EventService (cart event publication).
| RPC | Request | Response | Streaming |
|---|---|---|---|
CreateCart |
CreateCartRequest |
CartResponse |
- |
GetCart |
GetCartRequest |
CartResponse |
- |
AddItem |
AddItemRequest |
CartResponse |
- |
AddTransportLeg |
AddTransportLegRequest |
CartResponse |
- |
AddStay |
StayAddRequest |
CartResponse |
- |
ExtendStay |
StayExtendRequest |
CartResponse |
- |
AddTickets |
TicketingAddTicketsRequest |
CartResponse |
- |
RemoveLine |
RemoveLineRequest |
CartResponse |
- |
UpdateQuantity |
UpdateQuantityRequest |
CartResponse |
- |
UpdateLineNote |
UpdateLineNoteRequest |
CartResponse |
- |
RepriceLine |
SaleRepriceLineRequest |
CartResponse |
- |
ListDiscounts |
ListDiscountsRequest |
ListDiscountsResponse |
- |
ApplyDiscount |
ApplyDiscountRequest |
CartResponse |
- |
RemoveDiscount |
RemoveDiscountRequest |
CartResponse |
- |
SetTaxRebate |
SetTaxRebateRequest |
CartResponse |
- |
AssociateMember |
AssociateMemberRequest |
CartResponse |
- |
AttachCard |
AttachCardRequest |
CartResponse |
- |
DetachCard |
DetachCardRequest |
CartResponse |
- |
AttachLocation |
AttachLocationRequest |
CartResponse |
- |
DetachLocation |
DetachLocationRequest |
CartResponse |
- |
BeginPayment |
BeginPaymentRequest |
CartResponse |
- |
ResolveInteraction |
ResolveInteractionRequest |
CartResponse |
- |
SetLineMember |
SetLineMemberRequest |
CartResponse |
- |
SetSubject |
SetSubjectRequest |
CartResponse |
- |
SetExtensions |
SetExtensionsRequest |
CartResponse |
- |
SetServiceMode |
SaleServiceModeRequest |
CartResponse |
- |
SetReceiptEmail |
SaleReceiptEmailRequest |
CartResponse |
- |
PreviewDiscount |
SalePreviewDiscountRequest |
SalePreviewDiscountResponse |
- |
CheckSellable |
SaleSellableRequest |
SaleSellableResponse |
- |
DropQuestion |
GetCartRequest |
CartResponse |
- |
ListOpenCarts |
SaleOpenCartsRequest |
SaleOpenCartsResponse |
- |
QuoteLines |
SaleQuoteRequest |
SaleQuoteResponse |
- |
CheckCheckout |
CheckoutCheckRequest |
CheckoutCheckResponse |
- |
SelectPaymentMethod |
SelectPaymentMethodRequest |
CartResponse |
- |
CancelPayment |
GetCartRequest |
CartResponse |
- |
ProcessPayment |
ProcessPaymentRequest |
PaymentResponse |
- |
PreviewTender |
PreviewTenderRequest |
PreviewTenderResponse |
- |
ResolvePaymentRefusal |
ResolvePaymentRefusalRequest |
PaymentResponse |
- |
ClearPayments |
GetCartRequest |
CartResponse |
- |
FinalizeTransaction |
FinalizeRequest |
TransactionResponse |
- |
CancelCart |
GetCartRequest |
ActionResponse |
- |
CancelSale |
GetCartRequest |
SaleCancelResponse |
- |
SendToKitchen |
SendToKitchenRequest |
ActionResponse |
- |
SaveCart |
SaveCartRequest |
SaveCartResponse |
- |
ListSavedCarts |
ListSavedCartsRequest |
ListSavedCartsResponse |
- |
GetSavedCart |
GetSavedCartRequest |
CartResponse |
- |
DeleteSavedCart |
DeleteSavedCartRequest |
ActionResponse |
- |
SearchTransactions |
SearchTransactionsRequest |
SearchTransactionsResponse |
- |
GetTransaction |
GetTransactionRequest |
TransactionResponse |
- |
RefundTransaction |
RefundTransactionRequest |
TransactionResponse |
- |
ReserveCart |
ReserveCartRequest |
ReserveCartResponse |
- |
ListReservations |
ListReservationsRequest |
ListReservationsResponse |
- |
ResumeReservation |
ResumeReservationRequest |
CartResponse |
- |
ReleaseReservation |
ReleaseReservationRequest |
ActionResponse |
- |
PreviewReservationCancellation |
CancelReservationRequest |
ReservationCancellationResponse |
- |
CancelReservation |
CancelReservationRequest |
ReservationCancellationResponse |
- |
Messages
AddItemRequestAddTransportLegRequestAddTransportLegSeatAppliedDiscountAppliedTaxApplyDiscountRequestAssociateMemberRequestAttachCardRequestAttachLocationRequestBeginPaymentRequestCancelReservationRequestCartCartLineCartReservationCartResponseCartTaxTotalCreateCartRequestDeleteSavedCartRequestDetachCardRequestDetachLocationRequestDiscountCatalogEntryFinalizeRequestGetCartRequestGetSavedCartRequestGetTransactionRequestHistoryRefundCreditHistoryTaxTotalInteractionInteractionChoiceListDiscountsRequestListDiscountsResponseListReservationsRequestListReservationsResponseListSavedCartsRequestListSavedCartsResponseNoticePaymentPaymentRefusalGuidePaymentResponsePreviewTenderRequestPreviewTenderResponseProcessPaymentRequestRefundLineSelectionRefundSeatRefundTransactionRequestReleaseReservationRequestRemoveDiscountRequestRemoveLineRequestReservationReservationCancellationResponseReservationKeptLineReservationRefundReserveCartRequestReserveCartResponseResolveInteractionRequestResolvePaymentRefusalRequestResumeReservationRequestSaleCancelResponseSaleOpenCartSaleOpenCartsRequestSaleOpenCartsResponseSaleRepriceLineRequestSaveCartRequestSaveCartResponseSavedCartSearchTransactionsRequestSearchTransactionsResponseSelectPaymentMethodRequestSendToKitchenRequestSetExtensionsRequestSetLineMemberRequestSetSubjectRequestSetTaxRebateRequestTransactionTransactionLineTransactionResponseTransactionSummaryUpdateLineNoteRequestUpdateQuantityRequest
Enums
CartStatusDiscountKindDiscountSourceDiscountTimingInteractionKindInteractionTargetKindNoticeLevelPaymentStatusRefusalActionTenderPreviewKind
scan
Source file: src/public/StillDeep.Intelligence.Contracts/protos/scan.proto
ScanService: what a code read at the register designates, and the screens that expect reads.
Every read enters by the same door, whatever its origin (keyboard-wedge scanner, serial reader, camera, RFID or biometric extension, code typed by the cashier). The register cleans the code, recognises its kind from its shape, finds what it designates and applies what the current screen expects. Reads are handled one at a time, in their order of arrival, whoever presents them.
Shapes recognised without asking the server:
- sale document: RE / RF / RV / BI + register + sequence, with line and entry ("RE5000100", "BI5000100-2-1");
- card: FC + digits ("FC5000123");
- employee: EP + 32 hexadecimal digits;
- customer: member UUID ("019a0000-0000-7000-8000-0000000f0001");
- sealed company code: receipt, ticket, badge or coupon. Its kind comes from the signed content, never from the printed number. A host without the company keys refuses it (scan_keys_missing), except a coupon while the server answers: the server opens its seal ("WX3..." alone read as the coupon RB5000042, 5% off). Anything else (product barcode, SKU, scale label, pre-printed card) takes the default type of the screen.
A code that designates nothing is not an error: ScanResult.found = false. Refusals carry a stable code in the x-failure-code trailer (INVALID_ARGUMENT for an unreadable code, FAILED_PRECONDITION otherwise): scan_empty, scan_too_long, scan_invalid unreadable code; nothing was asked to the server scan_type_unknown nothing says what the code is and the screen gave no default scan_type_mismatch not the shape of the expected kind scan_type_refused kind not admitted by the current screen scan_not_sealed, scan_seal_invalid, scan_seal_mismatch, scan_keys_missing scan_offline the screen requires the server to confirm and it did not answer scan_inactive no active window of the register expects a read scan_stale the code no longer designates what the screen was shown scan_expect_closed the screen that expected the read closed its Expect call before the read was handled (a RAW window included); nothing was done and no other screen receives it quantity_invalid announced quantity outside 1 to 999 whole units coupon_not_sealed, coupon_unknown, coupon_unusable, coupon_needs_supervisor, coupon_needs_customer, coupon_already_applied, coupon_empty_cart, coupon_kind_unsupported, coupon_not_here (post filter of its discount), coupon_not_applicable (no item its discount admits) coupon refused by the sale (ApplyToCart) input_device_invalid list of readers that breaks ScanReaderRules
Services
ScanService
ScanService: reads and readers of the register. Called by: POSClient (sale, sign-in, shift, customers, invoices screens), extensions that present a read (RFID, camera). Error codes: INVALID_ARGUMENT (unreadable code, invalid profile), FAILED_PRECONDITION with x-failure-code (see the top of the file), UNAVAILABLE (server_unreachable) only where the server must answer.
| RPC | Request | Response | Streaming |
|---|---|---|---|
ParseCode |
ScanParseCodeRequest |
ScanParsedCode |
- |
Resolve |
ScanResolveRequest |
ScanResult |
- |
Submit |
ScanSubmitRequest |
ScanResult |
- |
ApplyToCart |
ScanApplyRequest |
ScanResult |
- |
Expect |
ScanExpectRequest |
ScanFeed |
server |
SetNextQuantity |
ScanSetNextQuantityRequest |
ScanInputState |
- |
GetInputState |
ScanGetInputStateRequest |
ScanInputState |
- |
ListReaders |
ScanListReadersRequest |
ScanListReadersResponse |
- |
SaveReaders |
ScanSaveReadersRequest |
ScanListReadersResponse |
- |
Messages
ScanApplyRequestScanCardScanConditionScanCustomerScanDiscountScanDocumentScanEmployeeScanExpectRequestScanFeedScanGetInputStateRequestScanInputStateScanListReadersRequestScanListReadersResponseScanParseCodeRequestScanParsedCodeScanProductScanProfileScanRawScanReaderScanReaderRulesScanReaderStatusScanReceiptScanRefusedScanResolveRequestScanResultScanSaveReadersRequestScanSetNextQuantityRequestScanSubmitRequest
Enums
ScanExpectModeScanProfilePresetScanReaderKindScanReaderProblemScanSourceScanType
scheduling
Source file: src/public/StillDeep.Intelligence.Contracts/protos/scheduling.proto
SchedulingService: scheduled ticketing (cinema, theater, conference).
ScheduledEvent ("Dune Part 3") -> EventSchedule (showing "Friday 7 pm, hall 4") -> EventTicketType ("Adult", "Student", "VIP"). A seat is a seat location (product_location.location_kind = 'seat'); seat_id is its product id. The client draws the hall itself.
Services
SchedulingService
SchedulingService: scheduled ticketing: events, showings, ticket types, seats. Seats and capacities are the server's. HoldSeat holds a seat on the server for an open SalesService cart until expires_at (renewed while the cart lives), ReleaseSeat or a canceled cart gives it back. WatchSeatMap follows the seats of a showing, changes of other registers included. SalesService.AddTickets puts the tickets and their seats in the cart. Errors: NOT_FOUND (cart_not_found, hold_not_found, schedule_not_found), FAILED_PRECONDITION (seat_taken, resource_invalid, admission_section_invalid, admission_tier_invalid, amount_overflow), INVALID_ARGUMENT.
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListEvents |
ListEventsRequest |
ListEventsResponse |
- |
GetSchedules |
GetSchedulesRequest |
GetSchedulesResponse |
- |
GetTicketTypes |
GetTicketTypesRequest |
GetTicketTypesResponse |
- |
GetSeatMap |
GetSeatMapRequest |
GetSeatMapResponse |
- |
HoldSeat |
HoldSeatRequest |
HoldSeatResponse |
- |
ReleaseSeat |
ReleaseSeatRequest |
ActionResponse |
- |
WatchSeatMap |
TicketingWatchSeatMapRequest |
TicketingSeatMapUpdate |
server |
PreviewTickets |
TicketingPreviewTicketsRequest |
TicketingPreviewTicketsResponse |
- |
Messages
EventScheduleEventTicketTypeGetSchedulesRequestGetSchedulesResponseGetSeatMapRequestGetSeatMapResponseGetTicketTypesRequestGetTicketTypesResponseHoldSeatRequestHoldSeatResponseListEventsRequestListEventsResponseReleaseSeatRequestScheduledEventSeatTicketingPreviewTicketsRequestTicketingPreviewTicketsResponseTicketingSeatMapUpdateTicketingShowingPriceTicketingShowingSectionTicketingTicketCountTicketingWatchSeatMapRequest
Enums
SeatStatus
session_clock
Source file: src/public/StillDeep.Intelligence.Contracts/protos/session_clock.proto
SessionClockService: the time of the register, for every screen.
Nothing here reads the clock or the time zone database of the machine: "now" is the register's clock corrected by the server, and the zone rules are the ones PostgreSQL applies, kept by the register for offline. A screen never converts a time with the zones of its own machine; it formats the wall times returned here in its own culture.
Services
SessionClockService
SessionClockService. Refusals (x-failure-code): post_zones_unknown (FAILED_PRECONDITION) for a conversion on a register that has not read its zones yet. Malformed input (too many values, a wall time with an offset) is INVALID_ARGUMENT.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetClock |
SessionClockRequest |
SessionClock |
- |
ToLocal |
SessionToLocalRequest |
SessionToLocalResponse |
- |
ToUtc |
SessionToUtcRequest |
SessionToUtcResponse |
- |
GetZoneRules |
SessionZoneRulesRequest |
SessionZoneRulesResponse |
- |
Messages
SessionClockSessionClockRequestSessionToLocalRequestSessionToLocalResponseSessionToUtcRequestSessionToUtcResponseSessionWallTimeSessionZoneAbbreviationSessionZoneChangeSessionZoneRulesSessionZoneRulesRequestSessionZoneRulesResponse
Enums
SessionTimeSource
session
Source file: src/public/StillDeep.Intelligence.Contracts/protos/session.proto
SessionService: who is at the register and what the register allows right now.
One session per register (one process = one register). It holds the signed-in employee, the shift this session holds, the employee's shift held by another register, the opening hours, the idle delay and the display language. Every screen of the register reads the same SessionState and follows it with WatchSession.
The rules live in the engine: which shift a sign-in finds, the guards before a sign-in (local database set aside, time zones), the offline badge, the service shift of a cashier-less register, the pause after a delay without activity. A screen shows the state and reports activity; it runs no timer and compares no user id.
Services
SessionService
SessionService: session of the register. Refusals carry a stable code in the x-failure-code trailer: SignIn: invalid_credentials, scan_seal_mismatch (UNAUTHENTICATED), user_inactive (PERMISSION_DENIED), server_unreachable (UNAVAILABLE: the register keeps nothing to check this employee offline), scan_not_sealed, local_database_damaged, post_zone_mismatch, post_zones_unknown (FAILED_PRECONDITION). OpenServiceSession: post_unknown, service_shift_unavailable (FAILED_PRECONDITION). SetScreenLanguage: INVALID_ARGUMENT for a language the register does not know. Display language of every call of the register: the language forced on the cart (x-cart-id), else the x-display-locale header (BCP 47, for a screen that shows another language than the session, a customer display), else the session's screen_language, else the signed-in employee's, else the register's, else the company's.
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetSession |
SessionGetRequest |
SessionState |
- |
SignIn |
SessionSignInRequest |
SessionState |
- |
SignOut |
SessionSignOutRequest |
SessionState |
- |
OpenServiceSession |
SessionOpenServiceRequest |
SessionState |
- |
RefreshShiftElsewhere |
SessionRefreshElsewhereRequest |
SessionState |
- |
ReportActivity |
SessionActivityRequest |
SessionActivityResponse |
- |
WatchSession |
SessionWatchRequest |
SessionState |
server |
SetScreenLanguage |
SessionLanguageRequest |
SessionState |
- |
Messages
SessionActivityRequestSessionActivityResponseSessionGetRequestSessionLanguageRequestSessionOpeningSessionOpenServiceRequestSessionRefreshElsewhereRequestSessionSignInRequestSessionSignOutRequestSessionStateSessionWatchRequest
shift
Source file: src/public/StillDeep.Intelligence.Contracts/protos/shift.proto
ShiftService: shift lifecycle.
States: open -> paused -> open -> ... -> closed -> reconciled. Invariants:
- 1 user = 1 open shift max (cross-register). Double-open attempt = FAILED_PRECONDITION.
- 1 register = 1 open shift max.
- Cashier-less registers (default_user_id + is_always_open or post_type.has_shift=false): the server opens the shift on demand as default_user_id and rolls it at business_day_cutoff. The UI never calls Open/Close.
Closing: a deposited amount is declared for each payment_method with deposit_at_close=true (typically cash). With no sale -> direct close without dialog (no-op deposit).
Services
ShiftService
ShiftService: shift management. Called by: POSClient (open at login, close at logout), all services SalesService/Device/etc. via interceptor for permission validation, and UI for button pre-validation. Usage patterns: * Login: UserService.Authenticate -> OpenShift. * Meal break: PauseShift -> ResumeShift. * End of day: CloseShift with declared_deposits per method. Error codes: NOT_FOUND, FAILED_PRECONDITION (already open / not open), PERMISSION_DENIED, ALREADY_EXISTS (idempotency). Dependencies: UserService (auth), publication of ShiftOpenedEvent / ShiftPausedEvent / ShiftResumedEvent / ShiftClosedEvent via EventService.
| RPC | Request | Response | Streaming |
|---|---|---|---|
OpenShift |
OpenShiftRequest |
OpenShiftResponse |
- |
PauseShift |
PauseShiftRequest |
Shift |
- |
ResumeShift |
ResumeShiftRequest |
Shift |
- |
CloseShift |
CloseShiftRequest |
CloseShiftResponse |
- |
GetShift |
GetShiftRequest |
Shift |
- |
PrepareCloseShift |
PrepareCloseShiftRequest |
ShiftClosing |
- |
GetCurrentShift |
GetCurrentShiftRequest |
Shift |
- |
ListShifts |
ListShiftsRequest |
ListShiftsResponse |
- |
CheckPermission |
CheckPermissionRequest |
CheckPermissionResponse |
- |
OpenSharedShift |
OpenSharedShiftRequest |
OpenSharedShiftResponse |
- |
CloseSharedShift |
CloseSharedShiftRequest |
CloseSharedShiftResponse |
- |
Messages
CheckPermissionRequestCheckPermissionResponseCloseSharedShiftRequestCloseSharedShiftResponseCloseShiftRequestCloseShiftResponseDeclaredDepositGetCurrentShiftRequestGetShiftRequestListShiftsRequestListShiftsResponseOpenSharedShiftRequestOpenSharedShiftResponseOpenShiftRequestOpenShiftResponsePauseShiftRequestPrepareCloseShiftRequestResumeShiftRequestShiftShiftClosingShiftCountLineShiftDepositShiftPauseShiftTotals
Enums
ShiftStatus
stay_admission
Source file: src/public/StillDeep.Intelligence.Contracts/protos/stay_admission.proto
StayAdmissionService: control of a ticket at the door (event, activity or site entry), online and offline.
The register reads the signed code printed on the ticket, checks its validity period (doors open 3 hours before the start) and records the entry. Online the server decides for every register; offline the register refuses what it already let in and the reading is delivered later. A train ticket is checked by TransportService instead.
Services
StayAdmissionService
| RPC | Request | Response | Streaming |
|---|---|---|---|
CheckTicket |
StayCheckTicketRequest |
StayTicketCheck |
- |
Messages
StayCheckTicketRequestStayTicketCheck
stay_sale
Source file: src/public/StillDeep.Intelligence.Contracts/protos/stay_sale.proto
Stays sold by SalesService (AddStay, ExtendStay) and the stay a cart line carries.
Shared by sales.proto and stay.proto so that neither imports the other: StayService reads the plan, the state and the price of a window; SalesService puts the stay in the cart, priced and labelled by the engine, its nights or hours held at once. The server reads the line again at FinalizeTransaction or ReserveCart and creates the occupancy.
Messages
StayAddRequestStayExtendRequestStayPartyGroupStaySaleLineStayWindow
Enums
StayBookingUnit
stay
Source file: src/public/StillDeep.Intelligence.Contracts/protos/stay.proto
StayService: stays on rented locations (campsite, cabin, hall, sports court, buffet table).
A location is a Product of kind "emplacement" rented by the night or by the hour. This service reads the plan, the state and the price of a window, computed by the engine with the rules the server applies again at the sale, then follows a stay: arrival, departure, move. The sale itself goes through SalesService.AddStay and ExtendStay. Online only: a stay is priced and sold against the real occupancy of the location.
Services
StayService
StayService. Called by: POSClient. The shift of a change is the open shift of the register (x-shift-id). Errors: UNAVAILABLE (server_unreachable: stays are online only), NOT_FOUND (location_not_found, stay_not_found), FAILED_PRECONDITION with x-failure-code, PERMISSION_DENIED (stay.manage, stay.checkout_unpaid), INVALID_ARGUMENT (unreadable id).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetLocationPlan |
StayLocationPlanRequest |
StayLocationPlan |
- |
ListLocationStates |
StayLocationStatesRequest |
StayLocationStatesResponse |
- |
ListLocationStateSlots |
StayStateSlotsRequest |
StayStateSlotsResponse |
- |
QuoteStay |
StayQuoteRequest |
StayQuote |
- |
QuoteStays |
StayQuotesRequest |
StayQuotesResponse |
- |
ListServicePrices |
StayServicePricesRequest |
StayServicePricesResponse |
- |
ListStays |
StayListRequest |
StayListResponse |
- |
GetCurrentStay |
StayCurrentRequest |
StayCurrentResponse |
- |
ListOccupiedLocations |
StayOccupiedLocationsRequest |
StayOccupiedLocationsResponse |
- |
CheckInStay |
StayCheckInRequest |
StayResponse |
- |
CheckOutStay |
StayCheckOutRequest |
StayCheckOutResponse |
- |
MoveStay |
StayMoveRequest |
StayResponse |
- |
Messages
StayStayAgeTierStayCheckInRequestStayCheckOutRequestStayCheckOutResponseStayCurrentRequestStayCurrentResponseStayListRequestStayListResponseStayLocationStayLocationPlanStayLocationPlanRequestStayLocationQuoteStayLocationStateEntryStayLocationStatesRequestStayLocationStatesResponseStayMoveRequestStayOccupiedLocationStayOccupiedLocationsRequestStayOccupiedLocationsResponseStayPriceSlotStayPriceTierStayQuoteStayQuotePartyLineStayQuotePickStayQuoteRequestStayQuotesRequestStayQuotesResponseStayRangeStayResponseStayServicePricesRequestStayServicePricesResponseStayStateSlotStayStateSlotsRequestStayStateSlotsResponse
Enums
StayLocationState
sync
Source file: src/public/StillDeep.Intelligence.Contracts/protos/sync.proto
SyncService: outbox synchronization and register network health.
The register keeps a local SQLite and an outbox of mutations. When the connection to ServerDB PostgreSQL is restored, the worker drains the outbox. This service lets the UI:
- see the sync state (online/degraded/offline + outbox count)
- force a manual drain (e.g. cashier sees 200 pending messages)
- monitor network health (latency to ServerDB)
Services
SyncService
SyncService: read / control the sync. Called by: POSClient (connection indicator + "Force resync" button), the Admin (online registers dashboard). Error codes: PERMISSION_DENIED (force_drain), UNAVAILABLE with x-failure-code "server_unreachable" (ForceDrain while the server is unreachable: nothing is used up, the messages wait) or "sync_unavailable" (GetOutboxCount, ForceDrain on a host that does not hold the outbox of the register).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetSyncStatus |
GetSyncStatusRequest |
SyncStatus |
- |
RetryStartup |
HostRetryStartupRequest |
SyncStatus |
- |
GetOutboxCount |
GetOutboxCountRequest |
GetOutboxCountResponse |
- |
ForceDrain |
ForceDrainRequest |
ForceDrainResponse |
- |
Messages
ForceDrainRequestForceDrainResponseGetOutboxCountRequestGetOutboxCountResponseGetSyncStatusRequestSyncStatus
Enums
SyncState
ticketing
Source file: src/public/StillDeep.Intelligence.Contracts/protos/ticketing.proto
Ticketing: limited resources of the register and tickets of a showing.
TicketingAvailabilityService reads and follows what is left of limited resources: seats, showing capacity, places of a general section, limited stock, nights and hours of a rented location. TicketingAddTicketsRequest puts tickets of a showing in a cart (SalesService.AddTickets). TicketingLineAdmission tells the showing and the seats of a ticket line, in the cart and in the sales history.
The server alone knows what is free. A register that cannot reach it answers with what it knows (last read, its own sales since, its own holds) and says so: verified = false.
This file imports neither sales.proto nor scheduling.proto: sales.proto imports it.
Services
TicketingAvailabilityService
TicketingAvailabilityService: limited resources of the register. Errors: INVALID_ARGUMENT (no key, more than 5000 keys, unreadable id, TICKETING_RESOURCE_KIND_UNSPECIFIED). A server that does not answer is never an error here: the states come back with verified = false.
| RPC | Request | Response | Streaming |
|---|---|---|---|
ReadAvailability |
TicketingReadAvailabilityRequest |
TicketingReadAvailabilityResponse |
- |
WatchAvailability |
TicketingWatchAvailabilityRequest |
TicketingAvailabilityUpdate |
server |
Messages
TicketingAddTicketsRequestTicketingAdmissionSeatTicketingAvailabilityUpdateTicketingLineAdmissionTicketingReadAvailabilityRequestTicketingReadAvailabilityResponseTicketingResourceKeyTicketingResourceStateTicketingWatchAvailabilityRequest
Enums
TicketingResourceKind
transport_board
Source file: src/public/StillDeep.Intelligence.Contracts/protos/transport_board.proto
TransportBoardService: the on-train server. One train memory per server, shared by its posts: position from the GPS, validations and tickets sold on board. Served only by a post whose host offers the train memory.
Services
TransportBoardService
TransportBoardService: the on-train server, read by its posts. Works without the network: the post's offline copy and the train memory answer; validations reach the server by the outbox, in order. No shift needed. Errors: FAILED_PRECONDITION with x-failure-code transport_board_missing (the host offers no train memory, or none is linked to this post), offline_keys_missing (ValidateTicket by code on a post without the reading keys); NOT_FOUND transport_passenger_not_found (ValidateTicket by entry unknown to the train), transport_stop_not_found; INVALID_ARGUMENT (unreadable id, no ticket); UNAVAILABLE server_unreachable (no offline copy on this post yet).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetBoard |
TransportGetBoardRequest |
TransportTrainBoard |
- |
ListPassengers |
TransportListPassengersRequest |
TransportListPassengersResponse |
- |
FindTickets |
TransportFindTicketsRequest |
TransportListPassengersResponse |
- |
ValidateTicket |
TransportValidateTicketRequest |
TransportTicketVerdict |
- |
SearchOnBoardItineraries |
TransportOnBoardItinerariesRequest |
TransportOnBoardItinerariesResponse |
- |
ReportPosition |
TransportReportPositionRequest |
TransportReportPositionResponse |
- |
WatchBoard |
TransportWatchBoardRequest |
TransportTrainBoardChanged |
server |
Messages
TransportFindTicketsRequestTransportGetBoardRequestTransportListPassengersRequestTransportListPassengersResponseTransportOnBoardItinerariesRequestTransportOnBoardItinerariesResponseTransportReportPositionRequestTransportReportPositionResponseTransportTicketVerdictTransportTrainBoardTransportTrainBoardChangedTransportTrainMoveTransportTrainNextStopTransportTrainPassengerTransportTrainRideTransportTrainRideStopTransportTrainStateTransportTrainTicketRefTransportValidateTicketRequestTransportWatchBoardRequest
transport_journey
Source file: src/public/StillDeep.Intelligence.Contracts/protos/transport_journey.proto
Journey of a group of train passengers: the legs taken and the place of each person on each leg. Leaf file: imported by the transport_*.proto files, it imports nothing of them.
Messages
TransportJourneyTransportJourneyLegTransportPassengerTransportPlaceTransportTicketLegTransportTicketSeat
transport_operations
Source file: src/public/StillDeep.Intelligence.Contracts/protos/transport_operations.proto
TransportOperationsService: what a station employee changes on a departure, and the changes pushed to boards and desks.
Services
TransportOperationsService
TransportOperationsService: live state of a departure. UpdateDeparture needs x-shift-id, the open shift of this post, whose employee holds transport.manage_departures; the server checks the open shift and the right again, and where the post acts (its station, its train). Online only. Errors: UNAVAILABLE server_unreachable; INVALID_ARGUMENT for an unreadable schedule_id or stop_id, or no change set (WatchDepartures: an unreadable stop_id, or one the network does not have); NOT_FOUND transport_departure_not_found; FAILED_PRECONDITION with x-failure-code transport_departure_invalid, transport_departure_cancelled, transport_post_refused, permission_denied or the server's shift refusal; UNAUTHENTICATED / PERMISSION_DENIED from the shift check.
| RPC | Request | Response | Streaming |
|---|---|---|---|
UpdateDeparture |
TransportUpdateDepartureRequest |
TransportDeparture |
- |
WatchDepartures |
TransportWatchDeparturesRequest |
TransportDepartureChanged |
server |
Messages
TransportDepartureArrivalTransportDepartureChangedTransportDepartureLeaveTransportUpdateDepartureRequestTransportWatchDeparturesRequest
transport_sale_tickets
Source file: src/public/StillDeep.Intelligence.Contracts/protos/transport_sale_tickets.proto
TransportSaleTicketService: tickets and files of a paid sale, for the post that made it. The server seals the codes with the company key: the post needs no key of its own. Train tickets and event admissions of the sale come out the same way.
Services
TransportSaleTicketService
TransportSaleTicketService: called by a kiosk, a website or a desk after the sale. No shift needed: the server answers only the post that made the sale, and only for a paid sale; any other sale gives an empty answer, never another post's tickets. Errors: INVALID_ARGUMENT (unreadable transaction_id); UNAVAILABLE server_unreachable (online only: the server seals the codes).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetSaleTickets |
TransportGetSaleTicketsRequest |
TransportGetSaleTicketsResponse |
- |
GetSaleDocuments |
TransportGetSaleDocumentsRequest |
TransportGetSaleDocumentsResponse |
- |
Messages
TransportGetSaleDocumentsRequestTransportGetSaleDocumentsResponseTransportGetSaleTicketsRequestTransportGetSaleTicketsResponseTransportSaleTicketTransportSaleTicketPass
transport_sale
Source file: src/public/StillDeep.Intelligence.Contracts/protos/transport_sale.proto
TransportSaleService: a train journey in a cart of SalesService, all its legs or none, and the name printed on the tickets of the sale.
Services
TransportSaleService
TransportSaleService: sale of a train journey. Called by: station desk, kiosk, website. Same cart rules as SalesService (open shift of the post, service shift of a kiosk or a website); no permission beyond them. Errors: NOT_FOUND (cart unknown, expired or finalized; transport_journey_not_found: no line of that journey in the cart), INVALID_ARGUMENT (unreadable id), FAILED_PRECONDITION with x-failure-code transport_journey_invalid (a leg its departure does not make, a fare, class, coach or seat that is not one, a person without a place on a leg, a round trip without its way back), transport_not_priceable (the grid has no price for a person on a leg), product_inactive, seat_taken (also a seat already held in the train memory by another tablet), section_full, showing_full, refused_by_extension, shift_not_open, shift_paused, transport_board_missing (journey.on_board on a post without a train memory); UNAVAILABLE. On board, the seats held in the train memory by a cart are given back when its journey leaves the cart or the cart ends without a sale (cancelled, abandoned); a cart held by SalesService.SaveCart and a recorded sale keep them. A refusal leaves the cart as it was.
| RPC | Request | Response | Streaming |
|---|---|---|---|
PutJourney |
TransportPutJourneyRequest |
TransportPutJourneyResponse |
- |
RemoveJourney |
TransportRemoveJourneyRequest |
CartResponse |
- |
SetPassengerName |
TransportSetPassengerNameRequest |
CartResponse |
- |
Messages
TransportPutJourneyRequestTransportPutJourneyResponseTransportRemoveJourneyRequestTransportSetPassengerNameRequest
transport_timetable
Source file: src/public/StillDeep.Intelligence.Contracts/protos/transport_timetable.proto
Parts of the TransportService messages: the seasons of the fare grid, and a departure seen from each of its stops. Leaf file: transport.proto imports it, it imports nothing of the contract.
Messages
TransportDepartureStopTransportSeasonTransportSeasonPeriod
transport_trip
Source file: src/public/StillDeep.Intelligence.Contracts/protos/transport_trip.proto
TransportTripService: what a screen reads before a train ticket goes to the cart: what it proposes first, where one can go from a stop, the cheapest route of a day with the ways to make it, the fare table of a route, the seats of the departures, the places of a group, the price of its journey and the upgrade offer. Reads only, no shift: a kiosk, a website and a station display call it. Every amount comes from the fare grid (TransportNetwork.prices) and is read again by the server at the sale.
Services
TransportTripService
TransportTripService: search, places and prices of a train journey before the sale. Called by: station desk, kiosk, website, station display, conductor tablet. No shift needed. Errors: UNAVAILABLE (server unreachable and no offline copy), INVALID_ARGUMENT (unreadable id, date, trip kind or cart id; return_date before date or without "round_trip"; no or too many schedule_ids), NOT_FOUND with x-failure-code transport_stop_not_found (a stop the network does not know) or cart_not_found, FAILED_PRECONDITION with x-failure-code transport_journey_invalid (a leg its departure does not make, a fare, class, coach or seat that is not one, a place twice on a leg, a round trip without its way back) or transport_not_priceable (the grid has no price for a person on a leg).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetDefaults |
TransportDefaultsRequest |
TransportDefaults |
- |
ListDestinations |
TransportDestinationsRequest |
TransportDestinationsResponse |
- |
SearchItineraries |
TransportItinerariesRequest |
TransportItinerariesResponse |
- |
GetRoutePrices |
TransportRoutePricesRequest |
TransportRoutePricesResponse |
- |
GetDepartureSeats |
TransportDepartureSeatsRequest |
TransportDepartureSeatsResponse |
- |
SuggestPlaces |
TransportSuggestPlacesRequest |
TransportSuggestPlacesResponse |
- |
PriceJourney |
TransportPriceJourneyRequest |
TransportJourneyPrice |
- |
GetUpgradeOffer |
TransportUpgradeOfferRequest |
TransportUpgradeOffer |
- |
ListTrainPositions |
TransportTrainPositionsRequest |
TransportTrainPositionsResponse |
- |
Messages
TransportClassMoveTransportDefaultsTransportDefaultsRequestTransportDepartureSeatsTransportDepartureSeatsRequestTransportDepartureSeatsResponseTransportDestinationTransportDestinationsRequestTransportDestinationsResponseTransportItinerariesRequestTransportItinerariesResponseTransportItineraryTransportItineraryLegTransportJourneyPriceTransportLegClassTransportPriceJourneyRequestTransportRouteTransportRouteLegTransportRoutePriceTransportRoutePricesRequestTransportRoutePricesResponseTransportSeatTransportSectionLeftTransportSuggestPlacesRequestTransportSuggestPlacesResponseTransportTrainPositionTransportTrainPositionsRequestTransportTrainPositionsResponseTransportUpgradeOfferTransportUpgradeOfferRequest
transport
Source file: src/public/StillDeep.Intelligence.Contracts/protos/transport.proto
TransportService: what a screen reads to sell a train ticket or to show the board of a station: the network and its fare grid, then the departures of a window or of a day. The sale itself goes through SalesService.AddTransportLeg, leg by leg.
Services
TransportService
TransportService: reads of the train network, for the screens that sell tickets and the boards of a station. Called by: POSClient. No shift needed: a station display reads it. Errors: UNAVAILABLE (server unreachable and no offline copy), INVALID_ARGUMENT (unreadable id or date).
| RPC | Request | Response | Streaming |
|---|---|---|---|
GetNetwork |
GetTransportNetworkRequest |
TransportNetwork |
- |
ListDepartures |
ListTransportDeparturesRequest |
ListTransportDeparturesResponse |
- |
Messages
GetTransportNetworkRequestListTransportDeparturesRequestListTransportDeparturesResponseTransportClassTransportDepartureTransportFareTransportLineTransportLineStopTransportNetworkTransportPriceTransportSectionTransportStop
user
Source file: src/public/StillDeep.Intelligence.Contracts/protos/user.proto
UserService: authentication (password or id scan mode) + read of the register's accepted auth modes + idle timeout.
Extensions (RFID, magstripe, exotic scanner) do not plug into this API: they locally inject a "barcode" or "credential string" via the POSClient event bus (ScanReceivedEvent), which then calls Authenticate with the "barcode" mode + the credential. The service does not know where the code comes from; it only knows it received an identifier to resolve.
Services
UserService
UserService: authentication and user lookup. Called by: POSClient (login screen, user selection dropdown), all RPCs that accept a manager_auth_token (override discount, refund, etc.). Error codes: INVALID_ARGUMENT (mode not accepted by the register, empty login), UNAUTHENTICATED (invalid credentials), PERMISSION_DENIED (user suspended/locked/deactivated), NOT_FOUND (unknown post_id). Dependencies: ServerDB for user storage (PostgreSQL), publication of ShiftOpenedEvent indirectly via OpenShift.
| RPC | Request | Response | Streaming |
|---|---|---|---|
ListUsersForPost |
ListUsersForPostRequest |
ListUsersForPostResponse |
- |
GetPostAuthConfig |
GetPostAuthConfigRequest |
PostAuthConfig |
- |
Authenticate |
AuthenticateRequest |
AuthenticateResponse |
- |
ResetPasswordEmail |
ResetPasswordEmailRequest |
ResetPasswordEmailResponse |
- |
ResetPasswordAutoGenerate |
ResetPasswordAutoGenerateRequest |
ResetPasswordAutoGenerateResponse |
- |
ChangePassword |
ChangePasswordRequest |
ChangePasswordResponse |
- |
Messages
AuthenticateRequestAuthenticateResponseChangePasswordRequestChangePasswordResponseGetPostAuthConfigRequestListUsersForPostRequestListUsersForPostResponsePostAuthConfigResetPasswordAutoGenerateRequestResetPasswordAutoGenerateResponseResetPasswordEmailRequestResetPasswordEmailResponseUserSummary
Enums
AuthMode
How to call
# List the services (server reflection)
grpcurl -plaintext localhost:50051 list
# List the RPCs of a service
grpcurl -plaintext localhost:50051 list stilldeep.v1.CatalogService
# Describe a message
grpcurl -plaintext localhost:50051 describe stilldeep.v1.Cart
# Call an RPC
grpcurl -plaintext -d '{"query":"kind:boutique"}' localhost:50051 stilldeep.v1.CatalogService/SearchProducts
Related HTTP endpoints
| URL | Description |
|---|---|
http://localhost:5050/healthz |
Health check (HTTP/1.1) |
http://localhost:5051/grpc-info |
JSON manifest of the services and RPCs |
http://localhost:5051/swagger |
Swagger UI (description only, no live transcoding) |
http://localhost:5051/swagger/v1/swagger.json |
Minimal OpenAPI JSON |