doover-js 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,11 +174,17 @@ export type RpcStatus<TPending = undefined> = {
174
174
  } | {
175
175
  code: "success";
176
176
  };
177
+ /** Who initiated an RPC (e.g. the logged-in user dispatching a ui_cmd). */
178
+ export interface RpcActor {
179
+ id: string;
180
+ name: string;
181
+ }
177
182
  /** Shape a consumer posts to initiate an RPC. */
178
183
  export interface RpcRequest<TRequest = object> {
179
184
  app_key?: string;
180
185
  method: string;
181
186
  request: TRequest;
187
+ actor?: RpcActor;
182
188
  }
183
189
  /** Shape of the message the server maintains as the RPC progresses. */
184
190
  export interface RpcMessageData<TRequest = object, TResponse = object, TPending = undefined> extends RpcRequest<TRequest> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doover-js",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "TypeScript client for Doover.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",