@cero-base/cero 2.3.4 → 2.4.1

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.
@@ -25,7 +25,7 @@ export type Identity = {
25
25
  */
26
26
  id: string;
27
27
  /**
28
- * Per-device id (empty when no `local` spec).
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 (empty when no `local` spec).
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. The phrase becomes a seed here: the UI cannot load the crypto it takes.
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 invite/revoke/join RPC handlers.
140
+ * Register add/open/join/close/leave RPC handlers for child handles.
141
141
  * @private
142
142
  */
143
- private _wirePairing;
143
+ private _wireHandles;
144
144
  /**
145
- * Register add/open/close/leave RPC handlers for child handles.
145
+ * Register the `verb` handler: the operator by its name, on the handle, as in the worker.
146
146
  * @private
147
147
  */
148
- private _wireHandles;
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.