@@ -73,7 +73,7 @@ export type BatchFunction<T extends LiveObject> = (ctx: BatchContext<T>) => void
7373export declare interface RestObject {
7474 /**
7575 * Reads object data from the channel in compact object response format.
76- * Uses the channel's root object as the entrypoint when no objectId is provided .
76+ * If no `objectId` is provided then the entire channel object is returned .
7777 *
7878 * Returns a {@link RestObjectGetCompactResult} representing the logical structure of your data as a JSON-like value.
7979 * {@link LiveMap} instances appear as JSON objects with their entries, and {@link LiveCounter} instances appear
@@ -89,7 +89,7 @@ export declare interface RestObject {
8989 get ( params ?: RestObjectGetCompactParams ) : Promise < RestObjectGetCompactResult > ;
9090 /**
9191 * Reads object data from the channel in full object response format.
92- * Uses the channel's root object as the entrypoint when no objectId is provided .
92+ * If no `objectId` is provided then the entire channel object is returned .
9393 *
9494 * Returns a {@link RestObjectGetFullResult} with full object metadata and decoded object data values
9595 * (`bytes` decoded to `Buffer`/`ArrayBuffer`, `json` decoded to native objects/arrays).
@@ -104,7 +104,7 @@ export declare interface RestObject {
104104 get ( params : RestObjectGetFullParams ) : Promise < RestObjectGetFullResult > ;
105105 /**
106106 * Reads object data from the channel.
107- * Uses the channel's root object as the entrypoint when no objectId is provided .
107+ * If no `objectId` is provided then the entire channel object is returned .
108108 *
109109 * When `compact` is `true` (the default), returns a {@link RestObjectGetCompactResult} representing the logical
110110 * structure of your data as a JSON-like value. {@link LiveMap} instances appear as JSON objects with their entries,
@@ -390,9 +390,9 @@ export interface RestObjectPublishResult {
390390 * Request parameters for {@link RestObject.get}.
391391 */
392392export interface RestObjectGetParams {
393- /** The unique identifier of the object instance to fetch. If omitted, fetches from the channel's root object. */
393+ /** The unique identifier of the object instance to fetch. If omitted, fetches from the channel object. */
394394 objectId ?: string ;
395- /** A dot-separated path to return a subset of the object. Evaluated relative to the root or the specified objectId. */
395+ /** A dot-separated path to return a subset of the object. Evaluated relative to the channel object or the specified objectId. */
396396 path ?: string ;
397397 /** When true (default), returns a values-only representation. When false, includes object IDs and type metadata. */
398398 compact ?: boolean ;
@@ -500,7 +500,7 @@ export type AnyRestLiveObject = {
500500} ;
501501
502502/**
503- * A decoded leaf data value in the non-compact {@link RestObject.get} responses.
503+ * A decoded leaf data value in the full {@link RestObject.get} responses.
504504 */
505505type RestObjectData = Omit < ObjectData , 'value' > ;
506506
0 commit comments