Get desktop application:
View/edit binary Protocol Buffers messages
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.
Why parts[part_index] may be released as placed despite its check
Used in:
Why CreateBaseline would refuse the project revision now, whatever its parts
Used in:
The project has changes no revision holds
The project is on no branch
The project has nowhere to share a release
Another user has the project checked out
Used in:
The query item of the locator that names this target, as "key=value" with the value already encoded. The client sets it in the locator it holds and never reads the key or the value
Used in:
Backend display string
Used in:
A CG_PARTS part; may name another source
Designators; may be empty
Empty means pieces
(message has no fields)
(message has no fields)
(message has no fields)
Echoed as the operation_id of the resulting ITEM_UNLOCKED event
(message has no fields)
Used in: ,
One check per request part, in request order
The first hold, in the order the user must clear them
Display name of the user holding a HOLD_LOCKED project
The project item, empty for a design not added to the source yet
The project revision to release
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)
The libraries as this check-in left them; unset if nothing committed
local_root as this check-in left it; unset unless named exactly
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.
Files committed as they are on disk, relative to local_root, to the digest of their bytes. Each was only reformatted, or its real edits are all members in item_ids, whose splice stands if the file is not adopted
whole_files only reformat members that stay where they are, as a file format upgrade does, so the commit revises no member and may reformat released ones. The caller vouches for each member, and item_ids is empty
Asked of the source that owns the members. One answer per part, in request order
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.
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.
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:
Set when applied
Set when pending
The project item
The project revision to release
Empty takes the backend's next label
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:
The revision written, which for an empty revision_id is the latest
Used in: ,
"ECO-0042"
Backend display string
Backend display string
APPLIED, REJECTED and CANCELLED are closed; the others are open
Used in:
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.
An item without a BOM answers WE_ITEM_NOT_FOUND
The project item
(message has no fields)
(message has no fields)
An empty revision_id describes the latest revision
An empty revision_id reads the latest revision
What the change made, for PCS_APPLIED
Why it was rejected or withdrawn
The fate of a change that answered CO_PENDING. A backend that never pends answers WE_ITEM_NOT_FOUND.
An empty item_id asks for workspace-level permissions, an empty revision_id for the latest revision
Newest first
(message has no fields)
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.
auth is the credential form the bound workspace needs. Absent, it needs none and never gets Authenticate
Used in:
Used in: , ,
The item name inside the library, as in a LIB_ID
Latest release at the snapshot; empty when never released
The member's content at the snapshot, compared, never shown
The content_digest revision_id was released with
Every release at the snapshot, oldest first
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
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
Backend-defined text filter; empty lists every item
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.
The locked items under a folder, so a file list can show ownership without a query per row
Empty for every lock in the workspace
Membership and revisions at snapshot, a Snapshot token; empty means the latest
The backend holds a release of this item until a review is approved
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.
Empty for every revision, otherwise only reviews naming it or WE_NOT_SUPPORTED
(message has no fields)
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:
The member's name inside the library, as in a LIB_ID
The file under local_root, for Show Diff
member.item_id is provisional; no item requests
Where the source holds the member, which differs from relative_path when it moved. Empty when the source cannot tell, and for CT_ADDED
Whether this change may be checked in. PS_DENIED disables the row with its reason; PS_UNKNOWN leaves it to the check-in call
The format version the source holds the member's file in at the copy's snapshot, as that file's header names it, read at base_relative_path or for CT_ADDED at relative_path. Empty when it holds no such file or cannot tell
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.
Used in:
What was written
Every member at snapshot, as ListMembers rows them
Write every library at a snapshot into local_root. pin is a Snapshot token; empty means the latest
A Snapshot token
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.
The single error channel for the backend call, WE_OK on success. Reply payloads carry no error field of their own and may be empty on error.
Used in:
One release of a member, as the placed-part check weighs it
Used in:
Empty when no placed part may match it
The shared store holds it
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:
CO_APPLIED
CO_PENDING
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: , , , , , , , , , ,
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: , ,
(message has no fields)
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)
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: , ,
Designators
As placed, for display
The project source's verdict on parts[part_index]
Used in:
Used in:
Also when the owning source does not track releases
Matches the latest release, in a state usable in designs
The item has no release
Matches no release
Matches a release, and a newer one exists
Matches a release whose state may not be used in designs
Matches a release the shared store does not hold yet
The owning source is not set up here, not connected, or could not answer
Matches a release whose state is usable but not for new designs
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.
Set when applied
Set when pending
The copy as this release left it; unset unless named exactly
Token of the library copy this release built on; set with snapshot
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.
Empty takes the backend's next label
One entry per requested member, in request order
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.
Used in:
Used in: ,
"DR-12"
Backend display string
The revision under review
The reviewed item; an empty source is the answering one
Used in: ,
Used in:
Unset when the backend cannot count cheaply
Unset when the backend cannot count cheaply
Used in:
CreateBaseline refuses the part unless an exception names it
Used in:
Used in: , ,
The library table nickname
Under local_root, as "Passives.kicad_sym" or "footprints/Conn.pretty"
Used in: , , , ,
Opaque and backend-specific; returned verbatim, never parsed
What the user sees, such as a branch, a tag or a date
Set when membership at the snapshot can only be rebuilt approximately
Set when applied
Set when pending
(message has no fields)
Accept a key a WE_UNTRUSTED_HOST error named. The backend records it where its transport reads trusted keys
Administrator override of another user's lock
Why a forced release was made, shown to the holder; ignored without force
The claim the user confirmed releasing, as a lock read showed it: its owner_id and lock_timestamp_unix. With force, a backend whose item is now held under another claim answers WE_BUSY and releases nothing. Unset, a forced release removes whoever holds the item. Ignored without force
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:
The member's file under local_root
The member's name inside that file
Opaque; names ours as the backend read it
What local_root holds at snapshot, set when there are no conflicts
Every member at snapshot, set when there are no conflicts
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.
A whole file the check-in left out, and a sentence saying why
Used in:
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: