doover-js 0.6.6 → 0.6.8
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.
- package/dist/types/common.d.ts +6 -0
- package/package.json +1 -1
package/dist/types/common.d.ts
CHANGED
|
@@ -174,11 +174,17 @@ export type RpcStatus<TPending = undefined> = {
|
|
|
174
174
|
} | {
|
|
175
175
|
code: "success";
|
|
176
176
|
};
|
|
177
|
+
export interface RpcActor {
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
email: 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> {
|