package kiapi.mdw

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AddItemReply

backend_base.proto:362

message AddItemRequest

backend_base.proto:354

Make the file at local_path a new item, which a checkout places at relative_path under the binding's local_root, and its content the item's first revision. For CM_UPLOAD, whose items exist only once added; a working copy adds a file by checking it in. A backend that cannot add answers WE_NOT_SUPPORTED, and one that needs more of the binding first, such as the product an Odoo design lives on, answers WE_INVALID_PARAMETER saying what. relative_path follows LocateItemsRequest's rules without the '..' run.

message AuthenticateReply

backend_base.proto:86

message AuthenticateRequest

backend_base.proto:84

message BaselineException

backend_revisions.proto:157

Why parts[part_index] may be released as placed despite its check

Used in: CreateBaselineRequest

enum BaselineHold

backend_revisions.proto:138

Why CreateBaseline would refuse the project revision now, whatever its parts

Used in: CheckBaselineReply

message BindingTarget

backend_base.proto:212

Used in: FindBindingTargetsReply

message Bom

backend_bom.proto:42

Used in: GetBomReply

message BomLine

backend_bom.proto:33

Used in: Bom

message ByeReply

backend_base.proto:385

(message has no fields)

message ByeRequest

backend_base.proto:384

(message has no fields)

message CancelCheckoutReply

backend_base.proto:375

(message has no fields)

message CancelCheckoutRequest

backend_base.proto:368

message CancelRequestReply

backend_base.proto:388

(message has no fields)

message CancelRequestRequest

backend_base.proto:387

enum ChangeType

backend_base.proto:224

Used in: LocalChange, MemberChange

message CheckBaselineReply

backend_revisions.proto:149

One check per request part, in request order

message CheckBaselineRequest

backend_revisions.proto:130

message CheckConnectionReply

backend_base.proto:100

message CheckConnectionRequest

backend_base.proto:99

Contact the server, or find the locator of a local workspace, with the kept credentials. Mandatory with no default; a backend without it fails Hello. WE_OK means reachable and accepted, WE_NETWORK or WE_TIMEOUT unreachable, WE_NOT_AUTHENTICATED or WE_AUTH_FAILED a sign-in is needed, and WE_UNTRUSTED_HOST the host key needs confirming.

(message has no fields)

message CheckInSharedLibraryReply

backend_shared_libs.proto:260

message CheckInSharedLibraryRequest

backend_shared_libs.proto:239

Check in the local changes under local_root, which is the binding's local_root or a copy Materialize or Update wrote. Any other directory fails with WE_INVALID_PARAMETER and checks in nothing. Empty item_ids means every changed member, unless whole_files names files, which are then all it asks for. item_ids may hold provisional ids from ListLocalChanges; an expired one fails in its own MemberResult with WE_ITEM_NOT_FOUND, after any idempotent replay. A new member gets its item here. Each member answers on its own, so a WE_OK envelope means the batch was processed, not that every member applied.

message CheckPlacedPartsReply

backend_revisions.proto:112

message CheckPlacedPartsRequest

backend_revisions.proto:111

Asked of the source that owns the members. One answer per part, in request order

message CheckinReply

backend_base.proto:343

message CheckinRequest

backend_base.proto:334

Upload local_path as the item's next revision. base_revision_id is the revision the file was edited from, empty when the client does not know it. An upload backend answers WE_VERSION_CONFLICT when a revision since then changed the item, naming the latest revision and its author, and changes nothing. An empty base checks in over whatever is latest.

message CheckoutReply

backend_base.proto:321

message CheckoutRequest

backend_base.proto:313

Checkout downloads an item's working copy to local_path and optionally takes the lock. Mutating requests carry a client-generated idempotency_id so a retry after a mid-call crash does not double-apply. Checkout with lock on a released item is how a part is revised; the lock is the claim.

message ConflictResolution

backend_shared_libs.proto:141

The user's answer to a conflict against theirs_revision_id. With merged unset the member stays as the local file holds it. Otherwise the member becomes merged, a library file holding only that member as DownloadRevision writes it, under a header of its file's format version, and every other member of its file is left untouched. With whole_file_of set, merged is instead the member's whole symbol file, holding every other symbol the file holds here, and replaces that file as it is; whole_file_of is the git blob id of the file's bytes the answer was made from, and a file that no longer holds them counts as a moved ours. A merged that is empty, or a symbol file without the member, removes it. ours_token echoes the conflict's, and is empty in a keep answer no conflict asked for, which is never refused; a merged answer whose ours or theirs has moved since is never written, and is either asked for again or fails the update with WE_VERSION_CONFLICT.

Used in: UpdateSharedLibrariesRequest

message CreateBaselineReply

backend_revisions.proto:175

message CreateBaselineRequest

backend_revisions.proto:164

message Credentials

backend_base.proto:79

Credentials cross the local socket only inside Authenticate. Backends never touch the platform keychain; the client brokers it. fields is keyed by AuthField.field_id. The backend keeps them and verifies them as CheckConnection does, answering WE_NETWORK or WE_TIMEOUT when it cannot.

Used in: AuthenticateRequest

message DownloadRevisionReply

backend_revisions.proto:60

The revision written, which for an empty revision_id is the latest

message DownloadRevisionRequest

backend_revisions.proto:52

message Eco

backend_eco.proto:47

Used in: GetEcoReply, ListEcosReply

enum EcoState

backend_eco.proto:36

APPLIED, REJECTED and CANCELLED are closed; the others are open

Used in: Eco

message FindBindingTargetsReply

backend_base.proto:222

message FindBindingTargetsRequest

backend_base.proto:206

Lists what a project can be bound to, for a backend whose locator names one thing among many, as an Odoo locator names a product. text narrows the list by name or code and is empty for every target, and limit caps the answer (0 leaves the cap to the backend). A backend with nothing to choose answers WE_NOT_SUPPORTED, as one that predates this request does.

message GetAvailableTransitionsReply

backend_lifecycle.proto:48

message GetAvailableTransitionsRequest

backend_lifecycle.proto:42

message GetBomReply

backend_bom.proto:59

message GetBomRequest

backend_bom.proto:53

An item without a BOM answers WE_ITEM_NOT_FOUND

message GetCapabilitiesReply

backend_base.proto:71

message GetCapabilitiesRequest

backend_base.proto:70

(message has no fields)

message GetChildFoldersReply

backend_base.proto:135

message GetChildFoldersRequest

backend_base.proto:129

message GetEcoReply

backend_eco.proto:65

message GetEcoRequest

backend_eco.proto:64

message GetEcoSchemaReply

backend_eco.proto:62

message GetEcoSchemaRequest

backend_eco.proto:61

(message has no fields)

message GetItemInfoReply

backend_base.proto:163

message GetItemInfoRequest

backend_base.proto:157

An empty revision_id describes the latest revision

message GetLifecycleDefinitionReply

backend_lifecycle.proto:40

message GetLifecycleDefinitionRequest

backend_lifecycle.proto:39

message GetLockInfoReply

backend_locking.proto:57

message GetLockInfoRequest

backend_locking.proto:56

message GetPartReply

backend_parts.proto:40

message GetPartRequest

backend_parts.proto:35

An empty revision_id reads the latest revision

message GetPendingChangeReply

backend_base.proto:298

message GetPendingChangeRequest

backend_base.proto:296

The fate of a change that answered CO_PENDING. A backend that never pends answers WE_ITEM_NOT_FOUND.

message GetPermissionsReply

backend_permissions.proto:40

message GetPermissionsRequest

backend_permissions.proto:35

An empty item_id asks for workspace-level permissions, an empty revision_id for the latest revision

message GetReviewReply

backend_review.proto:68

message GetReviewRequest

backend_review.proto:67

message GetRevisionHistoryReply

backend_revisions.proto:46

message GetRevisionHistoryRequest

backend_revisions.proto:40

Newest first

message GetRootFoldersReply

backend_base.proto:123

message GetRootFoldersRequest

backend_base.proto:121

message GetSearchSchemaReply

backend_search.proto:35

message GetSearchSchemaRequest

backend_search.proto:34

(message has no fields)

message Hello

backend_base.proto:54

Handshake. Major protocol_version must match; minors are additive-only. The reply carries identity and capabilities so the framework can gate UI before any further call. author is the name and email the user chose in KiCad for what the backend records on their behalf; absent, the backend uses its own identity. A backend with no use for it ignores it.

message HelloReply

backend_base.proto:62

auth is the credential form the bound workspace needs. Absent, it needs none and never gets Authenticate

message ItemLock

backend_locking.proto:66

Used in: ListLocksReply

message LibraryMember

backend_shared_libs.proto:174

Used in: ListMembersReply, MaterializeSharedLibrariesReply, UpdateSharedLibrariesReply

message ListEcosReply

backend_eco.proto:76

message ListEcosRequest

backend_eco.proto:69

The change orders affecting any of the items, which may belong to other sources. An item matches by item_id and source together; empty items lists every change order, and closed ones need include_closed

message ListItemsReply

backend_base.proto:150

message ListItemsRequest

backend_base.proto:143

An empty folder_id lists the workspace root. For a binding that names one design, that root is the design's files, which Open Project from Workspace checks out

message ListLocalChangesReply

backend_base.proto:286

message ListLocalChangesRequest

backend_base.proto:280

The local changes under local_root, either the binding's local_root (Hello.workspace) or a library copy Materialize or Update wrote. Any other directory fails with WE_INVALID_PARAMETER. Paged as PageRequest describes, over the copy as of the first page; a copy changed mid-walk answers WE_VERSION_CONFLICT. Mandatory for CM_WORKING_COPY; a CM_UPLOAD backend may answer WE_NOT_SUPPORTED. This answers what changed, where LocateItems answers which item a path is.

message ListLocksReply

backend_locking.proto:72

message ListLocksRequest

backend_locking.proto:60

The locked items under a folder, so a file list can show ownership without a query per row

message ListMembersReply

backend_shared_libs.proto:207

message ListMembersRequest

backend_shared_libs.proto:200

Membership and revisions at snapshot, a Snapshot token; empty means the latest

message ListReviewsReply

backend_review.proto:83

message ListReviewsRequest

backend_review.proto:76

Answer only reviews of item_id, each naming that item in Review.item. While approval_required is set, CreateBaseline of a revision with no approved review fails with WE_PERMISSION_DENIED naming the missing approval, or answers pending until it is approved. It never succeeds silently.

message ListSharedLibrariesReply

backend_shared_libs.proto:76

message ListSharedLibrariesRequest

backend_shared_libs.proto:74

(message has no fields)

message LocalChange

backend_base.proto:247

One item that differs under local_root from what the backend last wrote there. In a library copy a row is one member; under the binding's local_root it is one file, with library_id and name empty. item_id is set on every row. An item that does not exist yet has a provisional id, stable while the copy is unchanged, never reused for another item, and expired by any change to the copy (Materialize, Update, a check-in). It is valid only in CheckInSharedLibrary.item_ids for the same library copy; elsewhere it only keys the row. A client never persists one and lists again after each change. A moved item is REMOVED plus ADDED. base_revision_id is the revision the copy holds for the item, possibly unreleased, and stays downloadable for MODIFIED and REMOVED; it is empty only for ADDED. For REMOVED the location is where the item was.

Used in: ListLocalChangesReply

message LocateItemsReply

backend_base.proto:198

message LocateItemsRequest

backend_base.proto:189

The items at files under the binding's local_root (Hello.workspace), one ref per path in request order, duplicates included. An empty item_id means the file is not an item; a file deleted locally still answers its item when the backend knows it. Paths are '/' separated, relative and normalized. A leading run of '..' components may climb above local_root; the backend bounds it lexically against its own working tree, never by resolving links, and a path that lands outside answers an empty item. A rooted path, a drive letter, a backslash or any other '..' component fails the request with WE_INVALID_PARAMETER. Mandatory for CM_WORKING_COPY. A CM_UPLOAD backend may answer WE_NOT_SUPPORTED, and its client then knows only the files it checked out; one that answers lets a design made elsewhere resolve with no checkout. Not paged; the caller batches. The base is the revision the working copy holds for the item, the one a release of the local design names. An upload backend may name one only when the file under local_root holds exactly that revision's bytes, and for a project file only while every schematic and board of the design also holds its latest revision's bytes, since a release names the whole design. It is empty when unknown, as on an upload backend that cannot tell, for a file that is not an item, or for one added since. An empty revision_id elsewhere still means the item's latest revision, for every check-in model.

message LocatedItem

backend_base.proto:191

Used in: LocateItemsReply

message LockReply

backend_locking.proto:39

message LockRequest

backend_locking.proto:33

message MaterializeSharedLibrariesReply

backend_shared_libs.proto:90

message MaterializeSharedLibrariesRequest

backend_shared_libs.proto:83

Write every library at a snapshot into local_root. pin is a Snapshot token; empty means the latest

message MdwRequest

mdw_envelope.proto:40

A request from the client to the backend on the control channel. channel_token is the per-spawn secret echoed in every envelope both directions. request_id ties CancelRequest to an in-flight call.

message MdwResponse

mdw_envelope.proto:48

message MemberChange

backend_shared_libs.proto:97

Used in: UpdateSharedLibrariesReply

message MemberRelease

backend_shared_libs.proto:190

One release of a member, as the placed-part check weighs it

Used in: LibraryMember

message MemberResult

backend_shared_libs.proto:217

One member's outcome. library_id and name identify the member even when no item could be created for it. outcome is unset when error is set.

Used in: CheckInSharedLibraryReply

message PageRequest

backend_base.proto:115

One page of a list. page_size 0 asks for the backend's default. An empty page_token starts at the first page; a reply's empty next_page_token ends the list. A continuation token binds the whole query and a stable listing snapshot, so a traversal returns each row of that snapshot exactly once. Only page_token changes between pages; any other change answers WE_INVALID_PARAMETER. A backend that can no longer serve the snapshot answers WE_VERSION_CONFLICT and the caller starts again.

Used in: GetChildFoldersRequest, GetRevisionHistoryRequest, GetRootFoldersRequest, ListEcosRequest, ListItemsRequest, ListLocalChangesRequest, ListLocksRequest, ListMembersRequest, ListReviewsRequest, SearchPartsRequest, SearchRequest

message PartFacts

backend_revisions.proto:81

What the source owning a placed member knows about it. statuses holds UNKNOWN, UNVERIFIED, NEVER_RELEASED or DIFFERS alone; for a matched release it holds every OUTDATED, NOT_USABLE, UNPUBLISHED and NOT_FOR_NEW_DESIGNS that applies, or RELEASED when none does. The project's policy weighs all of them with matched_state.

Used in: CheckPlacedPartsReply, PlacedPart, PlacedPartCheck

message PingReply

backend_base.proto:382

(message has no fields)

message PingRequest

backend_base.proto:381

Liveness and lifecycle. Ping is the idle health probe. Bye asks for a clean shutdown. CancelRequest is a best-effort abort of an in-flight request_id.

(message has no fields)

message PlacedPart

backend_revisions.proto:99

A library member placed in a design. content_digest is the library digest of it as placed. part and part_revision_id come from the symbol's MDW_Part field, which holds identity only; both are empty when the symbol has none, and the backend resolves such a member itself (ResolveParts). A revision's label is not sent; the owning backend knows it. The client sets owner_facts when item.source names another source, from that source's CheckPlacedParts.

Used in: CheckBaselineRequest, CheckPlacedPartsRequest, CreateBaselineRequest

message PlacedPartCheck

backend_revisions.proto:123

The project source's verdict on parts[part_index]

Used in: CheckBaselineReply

enum PlacedPartStatus

backend_revisions.proto:62

Used in: PartFacts

message PublishEvent

mdw_envelope.proto:65

Event-channel message (backend to client), pushed as a REQ and ACKed per message. Delivery is authoritative for lock and lifecycle tracking, so the channel is reliable REQ/REP rather than lossy pub/sub.

message PublishEventAck

mdw_envelope.proto:71

message ReleaseRevisionReply

backend_lifecycle.proto:87

message ReleaseRevisionRequest

backend_lifecycle.proto:75

Publish the content at local_path as the item's next released revision. base_revision_id is the release the edit started from, empty for a first release; a newer release answers WE_VERSION_CONFLICT. local_path is the file holding the item inside the source's local copy, and content_digest is the library digest of the item as the client computed it. member_digest, when set, covers the whole member where content_digest covers what a placement is compared on; a backend tells releases apart by it. Releasing gives up the caller's claim on the item.

message ResolvePartsReply

backend_parts.proto:70

One entry per requested member, in request order

message ResolvePartsRequest

backend_parts.proto:61

Every part of this source that uses each member, for a symbol placed without a part identity. Members may belong to another source. A generic symbol serves many parts, so the caller shows the candidates and never picks one. At most 1000 members per request.

message ResolvedPart

backend_parts.proto:63

Used in: ResolvePartsReply

message Review

backend_review.proto:53

Used in: GetReviewReply, ListReviewsReply

enum ReviewState

backend_review.proto:35

Used in: Review, Reviewer

message Reviewer

backend_review.proto:45

Used in: Review

message SearchPartsReply

backend_parts.proto:48

message SearchPartsRequest

backend_parts.proto:42

message SearchReply

backend_search.proto:44

message SearchRequest

backend_search.proto:37

enum Severity

backend_revisions.proto:114

Used in: PlacedPartCheck

enum SharedLibType

backend_shared_libs.proto:51

Used in: SharedLibrary

message SharedLibrary

backend_shared_libs.proto:66

Used in: ListSharedLibrariesReply, MaterializeSharedLibrariesReply, UpdateSharedLibrariesReply

message Snapshot

backend_shared_libs.proto:59

Used in: CheckInSharedLibraryReply, ListSharedLibrariesReply, MaterializeSharedLibrariesReply, ReleaseRevisionReply, UpdateSharedLibrariesReply

message TransitionLifecycleReply

backend_lifecycle.proto:59

message TransitionLifecycleRequest

backend_lifecycle.proto:50

message TrustHostKeyReply

backend_base.proto:104

(message has no fields)

message TrustHostKeyRequest

backend_base.proto:103

Accept a key a WE_UNTRUSTED_HOST error named. The backend records it where its transport reads trusted keys

message UnlockReply

backend_locking.proto:54

message UnlockRequest

backend_locking.proto:41

message UpdateConflict

backend_shared_libs.proto:114

A member changed both locally and upstream that the backend could not merge. Ours is the member called name inside relative_path, absent when the file or the member is missing (deleted locally). The client downloads base and theirs with DownloadRevision, merges them with an extract of ours and sends the result back as a ConflictResolution. An empty base_revision_id means both sides added the member; an empty theirs_revision_id means upstream removed it. Never both.

Used in: UpdateSharedLibrariesReply

message UpdateSharedLibrariesReply

backend_shared_libs.proto:165

message UpdateSharedLibrariesRequest

backend_shared_libs.proto:158

Bring an unpinned copy to the latest snapshot. A local_root that does not exist or is empty is materialized at the latest snapshot. A non-empty directory without the backend's manifest fails with WE_INVALID_PARAMETER naming it, and is never overwritten. Any conflict leaves the copy unchanged; the caller resolves every conflict and sends the update again with the resolutions.

message WholeFileSkip

backend_shared_libs.proto:254

A whole file the check-in left out, and a sentence saying why

Used in: CheckInSharedLibraryReply

message WorkspaceBinding

backend_base.proto:40

Which workspace a backend process serves. Each workspace gets its own process, so this is the only place a backend learns its server, repository or database. locator is opaque to the client and free of credentials. local_root is the directory the client chose for the workspace's files.

Used in: Hello