@peers-app/peers-sdk 0.25.1 → 0.25.3

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 (35) hide show
  1. package/dist/contracts/__tests__/contract-resolvers.test.js +35 -2
  2. package/dist/contracts/__tests__/host-contract-consumer.test.d.ts +1 -0
  3. package/dist/contracts/__tests__/host-contract-consumer.test.js +163 -0
  4. package/dist/contracts/__tests__/system-contracts.test.js +14 -0
  5. package/dist/contracts/contract-resolvers.d.ts +14 -2
  6. package/dist/contracts/contract-resolvers.js +69 -6
  7. package/dist/contracts/host-contract-consumer.d.ts +40 -0
  8. package/dist/contracts/host-contract-consumer.js +105 -0
  9. package/dist/contracts/index.d.ts +2 -0
  10. package/dist/contracts/index.js +7 -2
  11. package/dist/contracts/system/identity-contract.d.ts +43 -0
  12. package/dist/contracts/system/identity-contract.js +133 -0
  13. package/dist/contracts/system/index.d.ts +2 -0
  14. package/dist/contracts/system/index.js +5 -1
  15. package/dist/contracts/types.d.ts +6 -0
  16. package/dist/data/devices.d.ts +4 -4
  17. package/dist/data/group-share.js +0 -38
  18. package/dist/data/index.d.ts +1 -0
  19. package/dist/data/index.js +1 -0
  20. package/dist/data/invites.d.ts +40 -40
  21. package/dist/data/invites.js +4 -2
  22. package/dist/data/peers-services-registration.pvar.d.ts +37 -0
  23. package/dist/data/peers-services-registration.pvar.js +57 -0
  24. package/dist/data/tool-access-approvals.d.ts +3 -3
  25. package/dist/device/connection.d.ts +1 -1
  26. package/dist/device/device.d.ts +1 -1
  27. package/dist/device-pairing/constants.d.ts +0 -2
  28. package/dist/device-pairing/constants.js +1 -3
  29. package/dist/device-pairing/types.d.ts +80 -80
  30. package/dist/invites/invite-messages.d.ts +12 -12
  31. package/dist/rpc-types.d.ts +0 -14
  32. package/dist/rpc-types.js +0 -13
  33. package/dist/system-ids.d.ts +17 -0
  34. package/dist/system-ids.js +18 -1
  35. package/package.json +1 -1
@@ -21,14 +21,14 @@ export declare const pairingRendezvousSchema: z.ZodObject<{
21
21
  expiresAt: z.ZodNumber;
22
22
  }, "strict", z.ZodTypeAny, {
23
23
  version: 3;
24
- expiresAt: number;
25
24
  serviceOrigin: string;
26
25
  nameplate: number;
26
+ expiresAt: number;
27
27
  }, {
28
28
  version: 3;
29
- expiresAt: number;
30
29
  serviceOrigin: string;
31
30
  nameplate: number;
31
+ expiresAt: number;
32
32
  }>;
33
33
  /** Established rendezvous shared by both endpoints once the room exists. */
34
34
  export type PairingRendezvous = z.infer<typeof pairingRendezvousSchema>;
@@ -164,19 +164,19 @@ export declare const pairingPakeSignalSchema: z.ZodObject<{
164
164
  sequence: number;
165
165
  version: 3;
166
166
  kind: "pake";
167
+ nameplate: number;
167
168
  payload: {
168
169
  share: string;
169
170
  };
170
- nameplate: number;
171
171
  senderRole: "source" | "destination";
172
172
  }, {
173
173
  sequence: number;
174
174
  version: 3;
175
175
  kind: "pake";
176
+ nameplate: number;
176
177
  payload: {
177
178
  share: string;
178
179
  };
179
- nameplate: number;
180
180
  senderRole: "source" | "destination";
181
181
  }>;
182
182
  /** PAKE share signaling message. */
@@ -220,6 +220,7 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
220
220
  sequence: number;
221
221
  version: 3;
222
222
  kind: "transport-options";
223
+ nameplate: number;
223
224
  payload: {
224
225
  webrtc: boolean;
225
226
  endpointNonce: string;
@@ -227,12 +228,12 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
227
228
  urls: string[];
228
229
  } | undefined;
229
230
  };
230
- nameplate: number;
231
231
  senderRole: "source" | "destination";
232
232
  }, {
233
233
  sequence: number;
234
234
  version: 3;
235
235
  kind: "transport-options";
236
+ nameplate: number;
236
237
  payload: {
237
238
  webrtc: boolean;
238
239
  endpointNonce: string;
@@ -240,7 +241,6 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
240
241
  urls: string[];
241
242
  } | undefined;
242
243
  };
243
- nameplate: number;
244
244
  senderRole: "source" | "destination";
245
245
  }>, z.ZodObject<{
246
246
  kind: z.ZodLiteral<"transport-choice">;
@@ -274,6 +274,7 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
274
274
  sequence: number;
275
275
  version: 3;
276
276
  kind: "transport-choice";
277
+ nameplate: number;
277
278
  payload: {
278
279
  endpointNonce: string;
279
280
  selected: "wrtc";
@@ -282,12 +283,12 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
282
283
  endpointNonce: string;
283
284
  selected: "ws";
284
285
  };
285
- nameplate: number;
286
286
  senderRole: "source" | "destination";
287
287
  }, {
288
288
  sequence: number;
289
289
  version: 3;
290
290
  kind: "transport-choice";
291
+ nameplate: number;
291
292
  payload: {
292
293
  endpointNonce: string;
293
294
  selected: "wrtc";
@@ -296,7 +297,6 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
296
297
  endpointNonce: string;
297
298
  selected: "ws";
298
299
  };
299
- nameplate: number;
300
300
  senderRole: "source" | "destination";
301
301
  }>, z.ZodObject<{
302
302
  kind: z.ZodLiteral<"offer">;
@@ -319,21 +319,21 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
319
319
  sequence: number;
320
320
  version: 3;
321
321
  kind: "offer";
322
+ nameplate: number;
322
323
  payload: {
323
324
  type: "offer";
324
325
  sdp: string;
325
326
  };
326
- nameplate: number;
327
327
  senderRole: "source" | "destination";
328
328
  }, {
329
329
  sequence: number;
330
330
  version: 3;
331
331
  kind: "offer";
332
+ nameplate: number;
332
333
  payload: {
333
334
  type: "offer";
334
335
  sdp: string;
335
336
  };
336
- nameplate: number;
337
337
  senderRole: "source" | "destination";
338
338
  }>, z.ZodObject<{
339
339
  kind: z.ZodLiteral<"answer">;
@@ -356,21 +356,21 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
356
356
  sequence: number;
357
357
  version: 3;
358
358
  kind: "answer";
359
+ nameplate: number;
359
360
  payload: {
360
361
  type: "answer";
361
362
  sdp: string;
362
363
  };
363
- nameplate: number;
364
364
  senderRole: "source" | "destination";
365
365
  }, {
366
366
  sequence: number;
367
367
  version: 3;
368
368
  kind: "answer";
369
+ nameplate: number;
369
370
  payload: {
370
371
  type: "answer";
371
372
  sdp: string;
372
373
  };
373
- nameplate: number;
374
374
  senderRole: "source" | "destination";
375
375
  }>, z.ZodObject<{
376
376
  kind: z.ZodLiteral<"candidate">;
@@ -398,25 +398,25 @@ export declare const unsignedPairingSignalSchema: z.ZodDiscriminatedUnion<"kind"
398
398
  sequence: number;
399
399
  version: 3;
400
400
  kind: "candidate";
401
+ nameplate: number;
401
402
  payload: {
402
403
  candidate: string;
403
404
  sdpMid?: string | null | undefined;
404
405
  sdpMLineIndex?: number | null | undefined;
405
406
  usernameFragment?: string | null | undefined;
406
407
  };
407
- nameplate: number;
408
408
  senderRole: "source" | "destination";
409
409
  }, {
410
410
  sequence: number;
411
411
  version: 3;
412
412
  kind: "candidate";
413
+ nameplate: number;
413
414
  payload: {
414
415
  candidate: string;
415
416
  sdpMid?: string | null | undefined;
416
417
  sdpMLineIndex?: number | null | undefined;
417
418
  usernameFragment?: string | null | undefined;
418
419
  };
419
- nameplate: number;
420
420
  senderRole: "source" | "destination";
421
421
  }>]>;
422
422
  /** Signaling message contents before authentication. */
@@ -457,6 +457,7 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
457
457
  sequence: number;
458
458
  version: 3;
459
459
  kind: "transport-options";
460
+ nameplate: number;
460
461
  payload: {
461
462
  webrtc: boolean;
462
463
  endpointNonce: string;
@@ -464,13 +465,13 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
464
465
  urls: string[];
465
466
  } | undefined;
466
467
  };
467
- nameplate: number;
468
468
  senderRole: "source" | "destination";
469
469
  mac: string;
470
470
  }, {
471
471
  sequence: number;
472
472
  version: 3;
473
473
  kind: "transport-options";
474
+ nameplate: number;
474
475
  payload: {
475
476
  webrtc: boolean;
476
477
  endpointNonce: string;
@@ -478,7 +479,6 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
478
479
  urls: string[];
479
480
  } | undefined;
480
481
  };
481
- nameplate: number;
482
482
  senderRole: "source" | "destination";
483
483
  mac: string;
484
484
  }>, z.ZodObject<{
@@ -515,6 +515,7 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
515
515
  sequence: number;
516
516
  version: 3;
517
517
  kind: "transport-choice";
518
+ nameplate: number;
518
519
  payload: {
519
520
  endpointNonce: string;
520
521
  selected: "wrtc";
@@ -523,13 +524,13 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
523
524
  endpointNonce: string;
524
525
  selected: "ws";
525
526
  };
526
- nameplate: number;
527
527
  senderRole: "source" | "destination";
528
528
  mac: string;
529
529
  }, {
530
530
  sequence: number;
531
531
  version: 3;
532
532
  kind: "transport-choice";
533
+ nameplate: number;
533
534
  payload: {
534
535
  endpointNonce: string;
535
536
  selected: "wrtc";
@@ -538,7 +539,6 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
538
539
  endpointNonce: string;
539
540
  selected: "ws";
540
541
  };
541
- nameplate: number;
542
542
  senderRole: "source" | "destination";
543
543
  mac: string;
544
544
  }>, z.ZodObject<{
@@ -564,22 +564,22 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
564
564
  sequence: number;
565
565
  version: 3;
566
566
  kind: "offer";
567
+ nameplate: number;
567
568
  payload: {
568
569
  type: "offer";
569
570
  sdp: string;
570
571
  };
571
- nameplate: number;
572
572
  senderRole: "source" | "destination";
573
573
  mac: string;
574
574
  }, {
575
575
  sequence: number;
576
576
  version: 3;
577
577
  kind: "offer";
578
+ nameplate: number;
578
579
  payload: {
579
580
  type: "offer";
580
581
  sdp: string;
581
582
  };
582
- nameplate: number;
583
583
  senderRole: "source" | "destination";
584
584
  mac: string;
585
585
  }>, z.ZodObject<{
@@ -605,22 +605,22 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
605
605
  sequence: number;
606
606
  version: 3;
607
607
  kind: "answer";
608
+ nameplate: number;
608
609
  payload: {
609
610
  type: "answer";
610
611
  sdp: string;
611
612
  };
612
- nameplate: number;
613
613
  senderRole: "source" | "destination";
614
614
  mac: string;
615
615
  }, {
616
616
  sequence: number;
617
617
  version: 3;
618
618
  kind: "answer";
619
+ nameplate: number;
619
620
  payload: {
620
621
  type: "answer";
621
622
  sdp: string;
622
623
  };
623
- nameplate: number;
624
624
  senderRole: "source" | "destination";
625
625
  mac: string;
626
626
  }>, z.ZodObject<{
@@ -651,26 +651,26 @@ export declare const authenticatedPairingSignalSchema: z.ZodDiscriminatedUnion<"
651
651
  sequence: number;
652
652
  version: 3;
653
653
  kind: "candidate";
654
+ nameplate: number;
654
655
  payload: {
655
656
  candidate: string;
656
657
  sdpMid?: string | null | undefined;
657
658
  sdpMLineIndex?: number | null | undefined;
658
659
  usernameFragment?: string | null | undefined;
659
660
  };
660
- nameplate: number;
661
661
  senderRole: "source" | "destination";
662
662
  mac: string;
663
663
  }, {
664
664
  sequence: number;
665
665
  version: 3;
666
666
  kind: "candidate";
667
+ nameplate: number;
667
668
  payload: {
668
669
  candidate: string;
669
670
  sdpMid?: string | null | undefined;
670
671
  sdpMLineIndex?: number | null | undefined;
671
672
  usernameFragment?: string | null | undefined;
672
673
  };
673
- nameplate: number;
674
674
  senderRole: "source" | "destination";
675
675
  mac: string;
676
676
  }>]>;
@@ -694,19 +694,19 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
694
694
  sequence: number;
695
695
  version: 3;
696
696
  kind: "pake";
697
+ nameplate: number;
697
698
  payload: {
698
699
  share: string;
699
700
  };
700
- nameplate: number;
701
701
  senderRole: "source" | "destination";
702
702
  }, {
703
703
  sequence: number;
704
704
  version: 3;
705
705
  kind: "pake";
706
+ nameplate: number;
706
707
  payload: {
707
708
  share: string;
708
709
  };
709
- nameplate: number;
710
710
  senderRole: "source" | "destination";
711
711
  }>, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
712
712
  kind: z.ZodLiteral<"transport-options">;
@@ -743,6 +743,7 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
743
743
  sequence: number;
744
744
  version: 3;
745
745
  kind: "transport-options";
746
+ nameplate: number;
746
747
  payload: {
747
748
  webrtc: boolean;
748
749
  endpointNonce: string;
@@ -750,13 +751,13 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
750
751
  urls: string[];
751
752
  } | undefined;
752
753
  };
753
- nameplate: number;
754
754
  senderRole: "source" | "destination";
755
755
  mac: string;
756
756
  }, {
757
757
  sequence: number;
758
758
  version: 3;
759
759
  kind: "transport-options";
760
+ nameplate: number;
760
761
  payload: {
761
762
  webrtc: boolean;
762
763
  endpointNonce: string;
@@ -764,7 +765,6 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
764
765
  urls: string[];
765
766
  } | undefined;
766
767
  };
767
- nameplate: number;
768
768
  senderRole: "source" | "destination";
769
769
  mac: string;
770
770
  }>, z.ZodObject<{
@@ -801,6 +801,7 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
801
801
  sequence: number;
802
802
  version: 3;
803
803
  kind: "transport-choice";
804
+ nameplate: number;
804
805
  payload: {
805
806
  endpointNonce: string;
806
807
  selected: "wrtc";
@@ -809,13 +810,13 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
809
810
  endpointNonce: string;
810
811
  selected: "ws";
811
812
  };
812
- nameplate: number;
813
813
  senderRole: "source" | "destination";
814
814
  mac: string;
815
815
  }, {
816
816
  sequence: number;
817
817
  version: 3;
818
818
  kind: "transport-choice";
819
+ nameplate: number;
819
820
  payload: {
820
821
  endpointNonce: string;
821
822
  selected: "wrtc";
@@ -824,7 +825,6 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
824
825
  endpointNonce: string;
825
826
  selected: "ws";
826
827
  };
827
- nameplate: number;
828
828
  senderRole: "source" | "destination";
829
829
  mac: string;
830
830
  }>, z.ZodObject<{
@@ -850,22 +850,22 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
850
850
  sequence: number;
851
851
  version: 3;
852
852
  kind: "offer";
853
+ nameplate: number;
853
854
  payload: {
854
855
  type: "offer";
855
856
  sdp: string;
856
857
  };
857
- nameplate: number;
858
858
  senderRole: "source" | "destination";
859
859
  mac: string;
860
860
  }, {
861
861
  sequence: number;
862
862
  version: 3;
863
863
  kind: "offer";
864
+ nameplate: number;
864
865
  payload: {
865
866
  type: "offer";
866
867
  sdp: string;
867
868
  };
868
- nameplate: number;
869
869
  senderRole: "source" | "destination";
870
870
  mac: string;
871
871
  }>, z.ZodObject<{
@@ -891,22 +891,22 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
891
891
  sequence: number;
892
892
  version: 3;
893
893
  kind: "answer";
894
+ nameplate: number;
894
895
  payload: {
895
896
  type: "answer";
896
897
  sdp: string;
897
898
  };
898
- nameplate: number;
899
899
  senderRole: "source" | "destination";
900
900
  mac: string;
901
901
  }, {
902
902
  sequence: number;
903
903
  version: 3;
904
904
  kind: "answer";
905
+ nameplate: number;
905
906
  payload: {
906
907
  type: "answer";
907
908
  sdp: string;
908
909
  };
909
- nameplate: number;
910
910
  senderRole: "source" | "destination";
911
911
  mac: string;
912
912
  }>, z.ZodObject<{
@@ -937,26 +937,26 @@ export declare const pairingSignalSchema: z.ZodUnion<[z.ZodObject<{
937
937
  sequence: number;
938
938
  version: 3;
939
939
  kind: "candidate";
940
+ nameplate: number;
940
941
  payload: {
941
942
  candidate: string;
942
943
  sdpMid?: string | null | undefined;
943
944
  sdpMLineIndex?: number | null | undefined;
944
945
  usernameFragment?: string | null | undefined;
945
946
  };
946
- nameplate: number;
947
947
  senderRole: "source" | "destination";
948
948
  mac: string;
949
949
  }, {
950
950
  sequence: number;
951
951
  version: 3;
952
952
  kind: "candidate";
953
+ nameplate: number;
953
954
  payload: {
954
955
  candidate: string;
955
956
  sdpMid?: string | null | undefined;
956
957
  sdpMLineIndex?: number | null | undefined;
957
958
  usernameFragment?: string | null | undefined;
958
959
  };
959
- nameplate: number;
960
960
  senderRole: "source" | "destination";
961
961
  mac: string;
962
962
  }>]>]>;
@@ -1031,12 +1031,12 @@ export declare const devicePairingRoomCreatedAckSchema: z.ZodDiscriminatedUnion<
1031
1031
  expiresAt: z.ZodNumber;
1032
1032
  }, "strict", z.ZodTypeAny, {
1033
1033
  ok: true;
1034
- expiresAt: number;
1035
1034
  nameplate: number;
1035
+ expiresAt: number;
1036
1036
  }, {
1037
1037
  ok: true;
1038
- expiresAt: number;
1039
1038
  nameplate: number;
1039
+ expiresAt: number;
1040
1040
  }>, z.ZodObject<{
1041
1041
  ok: z.ZodLiteral<false>;
1042
1042
  code: z.ZodEnum<["invalid", "not-found", "occupied", "expired", "forbidden", "rate-limited", "too-large", "out-of-order"]>;
@@ -1144,15 +1144,15 @@ export declare const devicePairingTranscriptSchema: z.ZodObject<{
1144
1144
  publicBoxKey: string;
1145
1145
  userId: string;
1146
1146
  deviceId: string;
1147
- deviceName?: string | undefined;
1148
1147
  userName?: string | undefined;
1148
+ deviceName?: string | undefined;
1149
1149
  }, {
1150
1150
  publicKey: string;
1151
1151
  publicBoxKey: string;
1152
1152
  userId: string;
1153
1153
  deviceId: string;
1154
- deviceName?: string | undefined;
1155
1154
  userName?: string | undefined;
1155
+ deviceName?: string | undefined;
1156
1156
  }>;
1157
1157
  destinationIdentity: z.ZodObject<{
1158
1158
  userId: z.ZodEffects<z.ZodString, string, string>;
@@ -1166,15 +1166,15 @@ export declare const devicePairingTranscriptSchema: z.ZodObject<{
1166
1166
  publicBoxKey: string;
1167
1167
  userId: string;
1168
1168
  deviceId: string;
1169
- deviceName?: string | undefined;
1170
1169
  userName?: string | undefined;
1170
+ deviceName?: string | undefined;
1171
1171
  }, {
1172
1172
  publicKey: string;
1173
1173
  publicBoxKey: string;
1174
1174
  userId: string;
1175
1175
  deviceId: string;
1176
- deviceName?: string | undefined;
1177
1176
  userName?: string | undefined;
1177
+ deviceName?: string | undefined;
1178
1178
  }>;
1179
1179
  sourceEndpointNonce: z.ZodString;
1180
1180
  destinationEndpointNonce: z.ZodString;
@@ -1190,16 +1190,16 @@ export declare const devicePairingTranscriptSchema: z.ZodObject<{
1190
1190
  publicBoxKey: string;
1191
1191
  userId: string;
1192
1192
  deviceId: string;
1193
- deviceName?: string | undefined;
1194
1193
  userName?: string | undefined;
1194
+ deviceName?: string | undefined;
1195
1195
  };
1196
1196
  destinationIdentity: {
1197
1197
  publicKey: string;
1198
1198
  publicBoxKey: string;
1199
1199
  userId: string;
1200
1200
  deviceId: string;
1201
- deviceName?: string | undefined;
1202
1201
  userName?: string | undefined;
1202
+ deviceName?: string | undefined;
1203
1203
  };
1204
1204
  sourceEndpointNonce: string;
1205
1205
  destinationEndpointNonce: string;
@@ -1214,16 +1214,16 @@ export declare const devicePairingTranscriptSchema: z.ZodObject<{
1214
1214
  publicBoxKey: string;
1215
1215
  userId: string;
1216
1216
  deviceId: string;
1217
- deviceName?: string | undefined;
1218
1217
  userName?: string | undefined;
1218
+ deviceName?: string | undefined;
1219
1219
  };
1220
1220
  destinationIdentity: {
1221
1221
  publicKey: string;
1222
1222
  publicBoxKey: string;
1223
1223
  userId: string;
1224
1224
  deviceId: string;
1225
- deviceName?: string | undefined;
1226
1225
  userName?: string | undefined;
1226
+ deviceName?: string | undefined;
1227
1227
  };
1228
1228
  sourceEndpointNonce: string;
1229
1229
  destinationEndpointNonce: string;
@@ -1237,12 +1237,12 @@ export declare const pairingDevicePresentationSchema: z.ZodObject<{
1237
1237
  userName: z.ZodOptional<z.ZodString>;
1238
1238
  deviceType: z.ZodOptional<z.ZodString>;
1239
1239
  }, "strict", z.ZodTypeAny, {
1240
- deviceName?: string | undefined;
1241
1240
  userName?: string | undefined;
1241
+ deviceName?: string | undefined;
1242
1242
  deviceType?: string | undefined;
1243
1243
  }, {
1244
- deviceName?: string | undefined;
1245
1244
  userName?: string | undefined;
1245
+ deviceName?: string | undefined;
1246
1246
  deviceType?: string | undefined;
1247
1247
  }>;
1248
1248
  /** Renderer-safe presentation of the remote endpoint. */
@@ -1264,27 +1264,27 @@ export declare const pairingConfirmationContentsSchema: z.ZodObject<{
1264
1264
  publicBoxKey: string;
1265
1265
  userId: string;
1266
1266
  deviceId: string;
1267
- deviceName?: string | undefined;
1268
1267
  userName?: string | undefined;
1268
+ deviceName?: string | undefined;
1269
1269
  }, {
1270
1270
  publicKey: string;
1271
1271
  publicBoxKey: string;
1272
1272
  userId: string;
1273
1273
  deviceId: string;
1274
- deviceName?: string | undefined;
1275
1274
  userName?: string | undefined;
1275
+ deviceName?: string | undefined;
1276
1276
  }>;
1277
1277
  presentation: z.ZodObject<{
1278
1278
  deviceName: z.ZodOptional<z.ZodString>;
1279
1279
  userName: z.ZodOptional<z.ZodString>;
1280
1280
  deviceType: z.ZodOptional<z.ZodString>;
1281
1281
  }, "strict", z.ZodTypeAny, {
1282
- deviceName?: string | undefined;
1283
1282
  userName?: string | undefined;
1283
+ deviceName?: string | undefined;
1284
1284
  deviceType?: string | undefined;
1285
1285
  }, {
1286
- deviceName?: string | undefined;
1287
1286
  userName?: string | undefined;
1287
+ deviceName?: string | undefined;
1288
1288
  deviceType?: string | undefined;
1289
1289
  }>;
1290
1290
  }, "strict", z.ZodTypeAny, {
@@ -1295,13 +1295,13 @@ export declare const pairingConfirmationContentsSchema: z.ZodObject<{
1295
1295
  publicBoxKey: string;
1296
1296
  userId: string;
1297
1297
  deviceId: string;
1298
- deviceName?: string | undefined;
1299
1298
  userName?: string | undefined;
1299
+ deviceName?: string | undefined;
1300
1300
  };
1301
1301
  transcriptHash: string;
1302
1302
  presentation: {
1303
- deviceName?: string | undefined;
1304
1303
  userName?: string | undefined;
1304
+ deviceName?: string | undefined;
1305
1305
  deviceType?: string | undefined;
1306
1306
  };
1307
1307
  }, {
@@ -1312,13 +1312,13 @@ export declare const pairingConfirmationContentsSchema: z.ZodObject<{
1312
1312
  publicBoxKey: string;
1313
1313
  userId: string;
1314
1314
  deviceId: string;
1315
- deviceName?: string | undefined;
1316
1315
  userName?: string | undefined;
1316
+ deviceName?: string | undefined;
1317
1317
  };
1318
1318
  transcriptHash: string;
1319
1319
  presentation: {
1320
- deviceName?: string | undefined;
1321
1320
  userName?: string | undefined;
1321
+ deviceName?: string | undefined;
1322
1322
  deviceType?: string | undefined;
1323
1323
  };
1324
1324
  }>;
@@ -1344,27 +1344,27 @@ export declare const pairingConfirmationSchema: z.ZodObject<{
1344
1344
  publicBoxKey: string;
1345
1345
  userId: string;
1346
1346
  deviceId: string;
1347
- deviceName?: string | undefined;
1348
1347
  userName?: string | undefined;
1348
+ deviceName?: string | undefined;
1349
1349
  }, {
1350
1350
  publicKey: string;
1351
1351
  publicBoxKey: string;
1352
1352
  userId: string;
1353
1353
  deviceId: string;
1354
- deviceName?: string | undefined;
1355
1354
  userName?: string | undefined;
1355
+ deviceName?: string | undefined;
1356
1356
  }>;
1357
1357
  presentation: z.ZodObject<{
1358
1358
  deviceName: z.ZodOptional<z.ZodString>;
1359
1359
  userName: z.ZodOptional<z.ZodString>;
1360
1360
  deviceType: z.ZodOptional<z.ZodString>;
1361
1361
  }, "strict", z.ZodTypeAny, {
1362
- deviceName?: string | undefined;
1363
1362
  userName?: string | undefined;
1363
+ deviceName?: string | undefined;
1364
1364
  deviceType?: string | undefined;
1365
1365
  }, {
1366
- deviceName?: string | undefined;
1367
1366
  userName?: string | undefined;
1367
+ deviceName?: string | undefined;
1368
1368
  deviceType?: string | undefined;
1369
1369
  }>;
1370
1370
  } & {
@@ -1377,14 +1377,14 @@ export declare const pairingConfirmationSchema: z.ZodObject<{
1377
1377
  publicBoxKey: string;
1378
1378
  userId: string;
1379
1379
  deviceId: string;
1380
- deviceName?: string | undefined;
1381
1380
  userName?: string | undefined;
1381
+ deviceName?: string | undefined;
1382
1382
  };
1383
1383
  mac: string;
1384
1384
  transcriptHash: string;
1385
1385
  presentation: {
1386
- deviceName?: string | undefined;
1387
1386
  userName?: string | undefined;
1387
+ deviceName?: string | undefined;
1388
1388
  deviceType?: string | undefined;
1389
1389
  };
1390
1390
  }, {
@@ -1395,14 +1395,14 @@ export declare const pairingConfirmationSchema: z.ZodObject<{
1395
1395
  publicBoxKey: string;
1396
1396
  userId: string;
1397
1397
  deviceId: string;
1398
- deviceName?: string | undefined;
1399
1398
  userName?: string | undefined;
1399
+ deviceName?: string | undefined;
1400
1400
  };
1401
1401
  mac: string;
1402
1402
  transcriptHash: string;
1403
1403
  presentation: {
1404
- deviceName?: string | undefined;
1405
1404
  userName?: string | undefined;
1405
+ deviceName?: string | undefined;
1406
1406
  deviceType?: string | undefined;
1407
1407
  };
1408
1408
  }>;
@@ -1462,15 +1462,15 @@ export declare const pairingInstallationReceiptContentsSchema: z.ZodObject<{
1462
1462
  publicBoxKey: string;
1463
1463
  userId: string;
1464
1464
  deviceId: string;
1465
- deviceName?: string | undefined;
1466
1465
  userName?: string | undefined;
1466
+ deviceName?: string | undefined;
1467
1467
  }, {
1468
1468
  publicKey: string;
1469
1469
  publicBoxKey: string;
1470
1470
  userId: string;
1471
1471
  deviceId: string;
1472
- deviceName?: string | undefined;
1473
1472
  userName?: string | undefined;
1473
+ deviceName?: string | undefined;
1474
1474
  }>;
1475
1475
  installedAt: z.ZodNumber;
1476
1476
  }, "strict", z.ZodTypeAny, {
@@ -1481,8 +1481,8 @@ export declare const pairingInstallationReceiptContentsSchema: z.ZodObject<{
1481
1481
  publicBoxKey: string;
1482
1482
  userId: string;
1483
1483
  deviceId: string;
1484
- deviceName?: string | undefined;
1485
1484
  userName?: string | undefined;
1485
+ deviceName?: string | undefined;
1486
1486
  };
1487
1487
  installedAt: number;
1488
1488
  }, {
@@ -1493,8 +1493,8 @@ export declare const pairingInstallationReceiptContentsSchema: z.ZodObject<{
1493
1493
  publicBoxKey: string;
1494
1494
  userId: string;
1495
1495
  deviceId: string;
1496
- deviceName?: string | undefined;
1497
1496
  userName?: string | undefined;
1497
+ deviceName?: string | undefined;
1498
1498
  };
1499
1499
  installedAt: number;
1500
1500
  }>;
@@ -1517,15 +1517,15 @@ export declare const signedPairingInstallationReceiptSchema: z.ZodObject<{
1517
1517
  publicBoxKey: string;
1518
1518
  userId: string;
1519
1519
  deviceId: string;
1520
- deviceName?: string | undefined;
1521
1520
  userName?: string | undefined;
1521
+ deviceName?: string | undefined;
1522
1522
  }, {
1523
1523
  publicKey: string;
1524
1524
  publicBoxKey: string;
1525
1525
  userId: string;
1526
1526
  deviceId: string;
1527
- deviceName?: string | undefined;
1528
1527
  userName?: string | undefined;
1528
+ deviceName?: string | undefined;
1529
1529
  }>;
1530
1530
  installedAt: z.ZodNumber;
1531
1531
  }, "strict", z.ZodTypeAny, {
@@ -1536,8 +1536,8 @@ export declare const signedPairingInstallationReceiptSchema: z.ZodObject<{
1536
1536
  publicBoxKey: string;
1537
1537
  userId: string;
1538
1538
  deviceId: string;
1539
- deviceName?: string | undefined;
1540
1539
  userName?: string | undefined;
1540
+ deviceName?: string | undefined;
1541
1541
  };
1542
1542
  installedAt: number;
1543
1543
  }, {
@@ -1548,8 +1548,8 @@ export declare const signedPairingInstallationReceiptSchema: z.ZodObject<{
1548
1548
  publicBoxKey: string;
1549
1549
  userId: string;
1550
1550
  deviceId: string;
1551
- deviceName?: string | undefined;
1552
1551
  userName?: string | undefined;
1552
+ deviceName?: string | undefined;
1553
1553
  };
1554
1554
  installedAt: number;
1555
1555
  }>;
@@ -1566,8 +1566,8 @@ export declare const signedPairingInstallationReceiptSchema: z.ZodObject<{
1566
1566
  publicBoxKey: string;
1567
1567
  userId: string;
1568
1568
  deviceId: string;
1569
- deviceName?: string | undefined;
1570
1569
  userName?: string | undefined;
1570
+ deviceName?: string | undefined;
1571
1571
  };
1572
1572
  installedAt: number;
1573
1573
  };
@@ -1582,8 +1582,8 @@ export declare const signedPairingInstallationReceiptSchema: z.ZodObject<{
1582
1582
  publicBoxKey: string;
1583
1583
  userId: string;
1584
1584
  deviceId: string;
1585
- deviceName?: string | undefined;
1586
1585
  userName?: string | undefined;
1586
+ deviceName?: string | undefined;
1587
1587
  };
1588
1588
  installedAt: number;
1589
1589
  };
@@ -1612,12 +1612,12 @@ export declare const devicePairingStateSchema: z.ZodObject<{
1612
1612
  userName: z.ZodOptional<z.ZodString>;
1613
1613
  deviceType: z.ZodOptional<z.ZodString>;
1614
1614
  }, "strict", z.ZodTypeAny, {
1615
- deviceName?: string | undefined;
1616
1615
  userName?: string | undefined;
1616
+ deviceName?: string | undefined;
1617
1617
  deviceType?: string | undefined;
1618
1618
  }, {
1619
- deviceName?: string | undefined;
1620
1619
  userName?: string | undefined;
1620
+ deviceName?: string | undefined;
1621
1621
  deviceType?: string | undefined;
1622
1622
  }>>;
1623
1623
  /** Destination only: the code to show as text and QR while `showing-code`. */
@@ -1630,11 +1630,11 @@ export declare const devicePairingStateSchema: z.ZodObject<{
1630
1630
  code?: string | undefined;
1631
1631
  error?: string | undefined;
1632
1632
  role?: "source" | "destination" | undefined;
1633
- sessionId?: string | undefined;
1634
1633
  expiresAt?: number | undefined;
1634
+ sessionId?: string | undefined;
1635
1635
  remoteDevice?: {
1636
- deviceName?: string | undefined;
1637
1636
  userName?: string | undefined;
1637
+ deviceName?: string | undefined;
1638
1638
  deviceType?: string | undefined;
1639
1639
  } | undefined;
1640
1640
  notice?: string | undefined;
@@ -1643,11 +1643,11 @@ export declare const devicePairingStateSchema: z.ZodObject<{
1643
1643
  code?: string | undefined;
1644
1644
  error?: string | undefined;
1645
1645
  role?: "source" | "destination" | undefined;
1646
- sessionId?: string | undefined;
1647
1646
  expiresAt?: number | undefined;
1647
+ sessionId?: string | undefined;
1648
1648
  remoteDevice?: {
1649
- deviceName?: string | undefined;
1650
1649
  userName?: string | undefined;
1650
+ deviceName?: string | undefined;
1651
1651
  deviceType?: string | undefined;
1652
1652
  } | undefined;
1653
1653
  notice?: string | undefined;