@zixt/host 0.0.121 → 0.0.122

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import { homedir as homedir4 } from "node:os";
28
28
  // package.json
29
29
  var package_default = {
30
30
  name: "@zixt/host",
31
- version: "0.0.121",
31
+ version: "0.0.122",
32
32
  type: "module",
33
33
  exports: {
34
34
  ".": "./src/client.ts",
@@ -14605,6 +14605,8 @@ var ID_PREFIXES = {
14605
14605
  /** One bounded image owned by an AI teammate profile. */
14606
14606
  agentAvatar: "aav",
14607
14607
  host: "hst",
14608
+ /** One-use browser-approved desktop-app pairing session. */
14609
+ hostPairingSession: "hps",
14608
14610
  task: "tsk",
14609
14611
  attempt: "att",
14610
14612
  review: "rvw",
@@ -20454,6 +20456,23 @@ var CreateHostRequest = external_exports.object({
20454
20456
  /** Optional only for rolling compatibility; the current UI always asks. */
20455
20457
  operatingSystem: HostOperatingSystem.optional()
20456
20458
  });
20459
+ var HostPairingCode = external_exports.string().regex(/^zxp_[0-9a-f]{64}$/, "pairing code shape is zxp_<64 hex>");
20460
+ var Sha256Hex = external_exports.string().regex(/^[0-9a-f]{64}$/, "expected 64 lowercase hex characters");
20461
+ var CreateHostPairingSessionRequest = external_exports.object({
20462
+ name: Host.shape.name,
20463
+ operatingSystem: HostOperatingSystem.optional(),
20464
+ /** SHA-256 hex of the verifier the desktop app keeps (PKCE-style). */
20465
+ challenge: Sha256Hex
20466
+ });
20467
+ var CreateHostPairingSessionResponse = external_exports.object({
20468
+ code: HostPairingCode,
20469
+ expiresAt: external_exports.iso.datetime()
20470
+ });
20471
+ var RedeemHostPairingRequest = external_exports.object({
20472
+ code: HostPairingCode,
20473
+ /** Preimage of the session's challenge; possession proves the initiator. */
20474
+ verifier: Sha256Hex
20475
+ });
20457
20476
  var RenameHostRequest = external_exports.object({
20458
20477
  name: Host.shape.name
20459
20478
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zixt/host",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/client.ts",