Live Edit client API#
This guide is for developers who write a client for the Live Edit service. It states what a client can rely on: the RPCs, the session and layer lifecycle, safe re-sends, stream endings, errors and input limits. The protocol files define every message and field.
Contents:
API services#
The service serves two gRPC services, gRPC health checking and server reflection on one HTTP/2 port; it has no REST API.
nvidia.omniverse.live.v1alpha.LiveService carries all editing, presence and subscription traffic:
RPC |
Type |
Purpose |
|---|---|---|
|
Unary |
Create a session for a base layer path and a name; returns its |
|
Unary |
List the sessions of a base layer path |
|
Unary |
Delete a session and all its layers |
|
Bidirectional stream |
Presence events and peer messages |
|
Client stream |
Create or replace a layer’s content; returns a new |
|
Client stream |
Apply one delta to a layer; returns its |
|
Unary |
Delete a layer |
|
Unary |
The layer’s creator, creation time and last-modified time |
|
Server stream |
The layer’s content, then every later update |
|
Unary |
Server time for round-trip and jitter estimation, and the answering replica’s features |
The gRPC reference gives each RPC’s request and response messages and the protocol definitions.
nvidia.omniverse.discovery.capabilities.v2alpha.CapabilitiesService has one RPC, ListServices.
It advertises LiveService under the discovery type live-service and needs no credentials.
Authentication#
Send authorization: Bearer <token> metadata on every LiveService call, Ping included.
Use the same token your client sends to your deployment’s Storage Service.
A missing, non-ASCII, non-Bearer or empty header is refused UNAUTHENTICATED before the call runs.
Every LiveService call except Ping needs read access to the session’s base layer path in Storage, and nothing more.
A caller with read access can call every RPC, including CreateLayer, UpdateLayer and the deletes, so Storage permissions cannot give a participant read-only access to a session.
A token Storage refuses is answered UNAUTHENTICATED, and missing access PERMISSION_DENIED; both carry an empty message.
A base layer path Storage does not find is answered NOT_FOUND, except by ListSessions, which returns an empty list.
Session and layer lifecycle#
CreateSessionwith a base layer path and a session name returns asession_id. Names are unique per base path, andListSessionslets other users find the session.JoinSessionshows the user to the session’s other members and relays peer messages.CreateLayeruploads a layer’s content and returns itsobject_id, the layer’s object generation.UpdateLayerapplies one delta to that object and returns asequence_num, which increases with every committed update.SubscribeReadLayerdelivers the layer’s content, then every later update as it commits.CreateLayeron an existing layer name replaces the layer with a new object; object ids are never reused. Writes naming the oldobject_idfailFAILED_PRECONDITION, and subscribers receive the new object’s content.DeleteLayerremoves a layer, andDeleteSessionthe session with all its layers; their subscriptions endNOT_FOUND.
Finding layers#
The API does not list a session’s layers.
Clients agree on layer names themselves: by a naming convention in your application, or by announcing names in peer messages.
Peer messages are not stored, so a member that joins later learns names only from the convention or from a member who announces them again.
StatLayer answers NOT_FOUND for a name that does not exist, and a subscription to it ends NOT_FOUND.
Common flows#
Deadlines#
Every call except JoinSession and SubscribeReadLayer has a server-side deadline, 30 seconds by default and 2 seconds for ListSessions; a deployment can change both.
A shorter grpc-timeout on your call applies instead.
A call past its deadline ends DEADLINE_EXCEEDED.
CreateLayer and UpdateLayer are not exempt: the whole upload, including any wait for capacity, must finish in time.
The two streams run until you close them or the service ends them.
Client requirements#
Message size. Each gRPC message must be at most 4 MB. A larger request fails
OUT_OF_RANGE, orCANCELLEDwhen it is an upload chunk; send upload content in chunks.Rust clients on
h2. A client built on theh2crate, through tonic or hyper, needs h2 0.4.19 or later. Versions 0.4.16 to 0.4.18 close their own connection after about 100 unread small messages, which ordinary presence traffic can reach. Every stream on that connection then failsRESOURCE_EXHAUSTED.Read streams promptly. Even on h2 0.4.19, a client that stops reading under heavy presence fan-out can have its connection closed. Read on a thread application work cannot block, or raise the receive window (
initial_connection_window_sizeon a tonicEndpoint).Rich error details. Decode
google.rpc.Statusfrom thegrpc-status-details-bintrailer to use the retry hints; the status code alone stays correct.Feature checks.
Pingreports whether the replica that answered supports operation ids (operation_ids) and chained writes (chained_writes). During a rolling upgrade the next call can reach another version, so handle a replica that lacks a feature on any call.
Protocol files#
File |
Defines |
|---|---|
|
|
|
The OODF delta carried in layer content |
Both are reproduced in full in the gRPC reference.
Layer content and deltas, in upload chunks and subscription chunks alike, are OMPF containers, all integers little-endian:
Bytes |
Field |
|---|---|
4 |
Magic |
4 |
|
8 × |
One |
rest |
The parts: part 0 is the OODF delta, and parts 1 to N are the external values, in |
The retry hints use the standard google.rpc error messages (References).
See next#
Writing layers: uploads, safe re-sends and chained writes.