@cero-base/cero 2.3.4 → 2.4.0
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/README.md +1 -1
- package/package.json +3 -2
- package/src/build/index.js +1 -7
- package/src/build/internal.js +14 -16
- package/src/build/schemas.js +13 -50
- package/src/extensions/profile-sync.js +8 -2
- package/src/handle/index.js +54 -140
- package/src/handle/join.js +7 -12
- package/src/index.js +43 -76
- package/src/lib/bluetooth.js +96 -84
- package/src/lib/operators.js +43 -36
- package/src/lib/refs.js +2 -2
- package/src/rpc/client.js +57 -50
- package/src/rpc/server.js +77 -88
- package/types/build/schemas.d.ts +8 -43
- package/types/extensions/index.d.ts +5 -3
- package/types/handle/index.d.ts +7 -63
- package/types/index.d.ts +17 -40
- package/types/lib/bluetooth.d.ts +29 -24
- package/types/lib/operators.d.ts +21 -17
- package/types/lib/refs.d.ts +2 -2
- package/types/rpc/client.d.ts +7 -3
- package/types/rpc/server.d.ts +7 -12
package/types/rpc/server.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type Identity = {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
/**
|
|
28
|
-
* Per-device id
|
|
28
|
+
* Per-device id.
|
|
29
29
|
*/
|
|
30
30
|
deviceId: string;
|
|
31
31
|
/**
|
|
@@ -57,7 +57,7 @@ export type GetResult = {
|
|
|
57
57
|
*
|
|
58
58
|
* @typedef {object} Identity
|
|
59
59
|
* @property {string} id Long-lived cero identity id.
|
|
60
|
-
* @property {string} deviceId Per-device id
|
|
60
|
+
* @property {string} deviceId Per-device id.
|
|
61
61
|
* @property {string} deviceName This device's name, empty when it has none.
|
|
62
62
|
*
|
|
63
63
|
* @typedef {{ ref: import('../lib/refs.js').Ref, codec: import('@cero-base/core/rpc').Codec, info?: import('../lib/spec.js').RefInfo }} RefAndCodec
|
|
@@ -127,7 +127,7 @@ export declare class Server extends RPCServer {
|
|
|
127
127
|
*/
|
|
128
128
|
private _wireInit;
|
|
129
129
|
/**
|
|
130
|
-
* Wire the `restore` handler.
|
|
130
|
+
* Wire the `restore` handler.
|
|
131
131
|
* @private
|
|
132
132
|
*/
|
|
133
133
|
private _wireRestore;
|
|
@@ -137,15 +137,15 @@ export declare class Server extends RPCServer {
|
|
|
137
137
|
*/
|
|
138
138
|
private _wireData;
|
|
139
139
|
/**
|
|
140
|
-
* Register
|
|
140
|
+
* Register add/open/join/close/leave RPC handlers for child handles.
|
|
141
141
|
* @private
|
|
142
142
|
*/
|
|
143
|
-
private
|
|
143
|
+
private _wireHandles;
|
|
144
144
|
/**
|
|
145
|
-
* Register
|
|
145
|
+
* Register the `verb` handler: the operator by its name, on the handle, as in the worker.
|
|
146
146
|
* @private
|
|
147
147
|
*/
|
|
148
|
-
private
|
|
148
|
+
private _wireVerbs;
|
|
149
149
|
/**
|
|
150
150
|
* Look up a live handle by id, throwing if unknown. Binds the handle's
|
|
151
151
|
* codec on first use.
|
|
@@ -172,11 +172,6 @@ export declare class Server extends RPCServer {
|
|
|
172
172
|
* @private
|
|
173
173
|
*/
|
|
174
174
|
private _identity;
|
|
175
|
-
/**
|
|
176
|
-
* Wire the on-demand `seed` handler — surfaces the recovery phrase only when asked.
|
|
177
|
-
* @private
|
|
178
|
-
*/
|
|
179
|
-
private _wireSeed;
|
|
180
175
|
}
|
|
181
176
|
/**
|
|
182
177
|
* Construct a `Server`, wait for it to be ready, and return it.
|