@universal-everything/sdk-core 1.1.0-dev.c32077a → 1.1.0-dev.cb0ab05
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/index.d.ts +11 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -331,10 +331,17 @@ type DeployProfileBase = {
|
|
|
331
331
|
* Deploy a sponsored Universal Profile. Two mutually-exclusive controller
|
|
332
332
|
* modes:
|
|
333
333
|
* - **custody**: `controllerWalletId` — a relayer-held wallet row.
|
|
334
|
-
* - **external (A1)**: `controllerAddress` + `controlProof` — a user-held key
|
|
335
|
-
* (a Privy embedded wallet, or an extension/mobile key)
|
|
336
|
-
* by
|
|
334
|
+
* - **external (A1)**: `controllerAddress` (+ `controlProof`) — a user-held key
|
|
335
|
+
* (a Privy embedded wallet, or an extension/mobile key). The proof is a
|
|
336
|
+
* signature by that key over a nonce-bound challenge; build it with
|
|
337
337
|
* `@universal-everything/sdk-core-viem`'s `buildControlProof`.
|
|
338
|
+
*
|
|
339
|
+
* On `/v1` the proof is **optional**: a first-time user has only a social
|
|
340
|
+
* login, and the extension / mobile app holding the new controller cannot sign
|
|
341
|
+
* for a not-yet-deployed profile. When present it is always verified. The next
|
|
342
|
+
* API version makes it mandatory for everyone (relayer
|
|
343
|
+
* `docs/DESIGN_2026-09-10_control-proof-versioning.md`), so callers that CAN
|
|
344
|
+
* sign (a Privy embedded wallet) should always send it.
|
|
338
345
|
*/
|
|
339
346
|
type DeployProfileInput = (DeployProfileBase & {
|
|
340
347
|
controllerWalletId: string;
|
|
@@ -342,7 +349,7 @@ type DeployProfileInput = (DeployProfileBase & {
|
|
|
342
349
|
controlProof?: never;
|
|
343
350
|
}) | (DeployProfileBase & {
|
|
344
351
|
controllerAddress: Hex;
|
|
345
|
-
controlProof
|
|
352
|
+
controlProof?: ControlProof;
|
|
346
353
|
controllerWalletId?: never;
|
|
347
354
|
});
|
|
348
355
|
type DeployProfileSingleChainResponse = {
|