@pairlobby/protocol 0.27.0 → 0.29.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/dist/http.d.ts CHANGED
@@ -133,6 +133,10 @@ export declare const ROUTES: {
133
133
  readonly method: "POST";
134
134
  readonly path: "/v1/rooms/:roomId/access";
135
135
  };
136
+ readonly setRoomType: {
137
+ readonly method: "POST";
138
+ readonly path: "/v1/rooms/:roomId/type";
139
+ };
136
140
  readonly joinAsGuest: {
137
141
  readonly method: "POST";
138
142
  readonly path: "/v1/rooms/:roomId/guests";
@@ -205,15 +209,19 @@ export declare const CreateRoomRequest: z.ZodIntersection<z.ZodObject<{
205
209
  /** Client-generated so a lost response never strands a credential the caller does not hold. */
206
210
  controllerCredential: z.ZodString;
207
211
  participantCredential: z.ZodString;
212
+ /** Absent creates a room without a type, as relays did before types. */
213
+ type: z.ZodOptional<z.ZodEnum<["public", "protected", "private", "personal"]>>;
208
214
  }, "strip", z.ZodTypeAny, {
209
215
  name: string;
210
216
  controllerCredential: string;
211
217
  participantCredential: string;
218
+ type?: "public" | "protected" | "private" | "personal" | undefined;
212
219
  expiresAt?: number | null | undefined;
213
220
  }, {
214
221
  name: string;
215
222
  controllerCredential: string;
216
223
  participantCredential: string;
224
+ type?: "public" | "protected" | "private" | "personal" | undefined;
217
225
  expiresAt?: number | null | undefined;
218
226
  }>>;
219
227
  export type CreateRoomRequest = z.infer<typeof CreateRoomRequest>;
@@ -315,6 +323,22 @@ export declare const CreateRoomResponse: z.ZodObject<{
315
323
  acknowledgedRevision: z.ZodOptional<z.ZodNumber>;
316
324
  interruptRequested: z.ZodOptional<z.ZodBoolean>;
317
325
  member: z.ZodOptional<z.ZodString>;
326
+ origin: z.ZodOptional<z.ZodObject<{
327
+ directory: z.ZodLiteral<true>;
328
+ handle: z.ZodString;
329
+ listingId: z.ZodString;
330
+ contact: z.ZodEnum<["questions", "tasks"]>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ handle: string;
333
+ directory: true;
334
+ listingId: string;
335
+ contact: "questions" | "tasks";
336
+ }, {
337
+ handle: string;
338
+ directory: true;
339
+ listingId: string;
340
+ contact: "questions" | "tasks";
341
+ }>>;
318
342
  }, "strip", z.ZodTypeAny, {
319
343
  participantId: string;
320
344
  displayName: string;
@@ -346,6 +370,12 @@ export declare const CreateRoomResponse: z.ZodObject<{
346
370
  turns?: boolean | undefined;
347
371
  } | undefined;
348
372
  nameSource?: "room" | "profile" | undefined;
373
+ origin?: {
374
+ handle: string;
375
+ directory: true;
376
+ listingId: string;
377
+ contact: "questions" | "tasks";
378
+ } | undefined;
349
379
  interruptRequested?: boolean | undefined;
350
380
  acknowledgedRevision?: number | undefined;
351
381
  }, {
@@ -379,10 +409,17 @@ export declare const CreateRoomResponse: z.ZodObject<{
379
409
  turns?: boolean | undefined;
380
410
  } | undefined;
381
411
  nameSource?: "room" | "profile" | undefined;
412
+ origin?: {
413
+ handle: string;
414
+ directory: true;
415
+ listingId: string;
416
+ contact: "questions" | "tasks";
417
+ } | undefined;
382
418
  interruptRequested?: boolean | undefined;
383
419
  acknowledgedRevision?: number | undefined;
384
420
  }>, "many">;
385
421
  policy: z.ZodObject<{
422
+ type: z.ZodOptional<z.ZodEnum<["public", "protected", "private", "personal"]>>;
386
423
  joinPolicy: z.ZodDefault<z.ZodEnum<["invite_only", "open_to_guests"]>>;
387
424
  inviteRole: z.ZodOptional<z.ZodEnum<["member", "guest"]>>;
388
425
  autoClose: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
@@ -465,6 +502,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
465
502
  inviteLifetimeMs: number | null;
466
503
  exportWindowMs: number;
467
504
  connectTicketLifetimeMs: number;
505
+ type?: "public" | "protected" | "private" | "personal" | undefined;
468
506
  maxFileBytes?: number | undefined;
469
507
  autoClose?: {
470
508
  mode: "off";
@@ -499,6 +537,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
499
537
  inviteLifetimeMs: number | null;
500
538
  exportWindowMs: number;
501
539
  connectTicketLifetimeMs: number;
540
+ type?: "public" | "protected" | "private" | "personal" | undefined;
502
541
  maxFileBytes?: number | undefined;
503
542
  autoClose?: {
504
543
  mode: "off";
@@ -543,6 +582,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
543
582
  inviteLifetimeMs: number | null;
544
583
  exportWindowMs: number;
545
584
  connectTicketLifetimeMs: number;
585
+ type?: "public" | "protected" | "private" | "personal" | undefined;
546
586
  maxFileBytes?: number | undefined;
547
587
  autoClose?: {
548
588
  mode: "off";
@@ -603,6 +643,12 @@ export declare const CreateRoomResponse: z.ZodObject<{
603
643
  turns?: boolean | undefined;
604
644
  } | undefined;
605
645
  nameSource?: "room" | "profile" | undefined;
646
+ origin?: {
647
+ handle: string;
648
+ directory: true;
649
+ listingId: string;
650
+ contact: "questions" | "tasks";
651
+ } | undefined;
606
652
  interruptRequested?: boolean | undefined;
607
653
  acknowledgedRevision?: number | undefined;
608
654
  }[];
@@ -646,6 +692,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
646
692
  inviteLifetimeMs: number | null;
647
693
  exportWindowMs: number;
648
694
  connectTicketLifetimeMs: number;
695
+ type?: "public" | "protected" | "private" | "personal" | undefined;
649
696
  maxFileBytes?: number | undefined;
650
697
  autoClose?: {
651
698
  mode: "off";
@@ -707,6 +754,12 @@ export declare const CreateRoomResponse: z.ZodObject<{
707
754
  turns?: boolean | undefined;
708
755
  } | undefined;
709
756
  nameSource?: "room" | "profile" | undefined;
757
+ origin?: {
758
+ handle: string;
759
+ directory: true;
760
+ listingId: string;
761
+ contact: "questions" | "tasks";
762
+ } | undefined;
710
763
  interruptRequested?: boolean | undefined;
711
764
  acknowledgedRevision?: number | undefined;
712
765
  }[];
@@ -764,6 +817,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
764
817
  inviteLifetimeMs: number | null;
765
818
  exportWindowMs: number;
766
819
  connectTicketLifetimeMs: number;
820
+ type?: "public" | "protected" | "private" | "personal" | undefined;
767
821
  maxFileBytes?: number | undefined;
768
822
  autoClose?: {
769
823
  mode: "off";
@@ -824,6 +878,12 @@ export declare const CreateRoomResponse: z.ZodObject<{
824
878
  turns?: boolean | undefined;
825
879
  } | undefined;
826
880
  nameSource?: "room" | "profile" | undefined;
881
+ origin?: {
882
+ handle: string;
883
+ directory: true;
884
+ listingId: string;
885
+ contact: "questions" | "tasks";
886
+ } | undefined;
827
887
  interruptRequested?: boolean | undefined;
828
888
  acknowledgedRevision?: number | undefined;
829
889
  }[];
@@ -874,6 +934,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
874
934
  inviteLifetimeMs: number | null;
875
935
  exportWindowMs: number;
876
936
  connectTicketLifetimeMs: number;
937
+ type?: "public" | "protected" | "private" | "personal" | undefined;
877
938
  maxFileBytes?: number | undefined;
878
939
  autoClose?: {
879
940
  mode: "off";
@@ -935,6 +996,12 @@ export declare const CreateRoomResponse: z.ZodObject<{
935
996
  turns?: boolean | undefined;
936
997
  } | undefined;
937
998
  nameSource?: "room" | "profile" | undefined;
999
+ origin?: {
1000
+ handle: string;
1001
+ directory: true;
1002
+ listingId: string;
1003
+ contact: "questions" | "tasks";
1004
+ } | undefined;
938
1005
  interruptRequested?: boolean | undefined;
939
1006
  acknowledgedRevision?: number | undefined;
940
1007
  }[];
@@ -1208,6 +1275,22 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1208
1275
  acknowledgedRevision: z.ZodOptional<z.ZodNumber>;
1209
1276
  interruptRequested: z.ZodOptional<z.ZodBoolean>;
1210
1277
  member: z.ZodOptional<z.ZodString>;
1278
+ origin: z.ZodOptional<z.ZodObject<{
1279
+ directory: z.ZodLiteral<true>;
1280
+ handle: z.ZodString;
1281
+ listingId: z.ZodString;
1282
+ contact: z.ZodEnum<["questions", "tasks"]>;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ handle: string;
1285
+ directory: true;
1286
+ listingId: string;
1287
+ contact: "questions" | "tasks";
1288
+ }, {
1289
+ handle: string;
1290
+ directory: true;
1291
+ listingId: string;
1292
+ contact: "questions" | "tasks";
1293
+ }>>;
1211
1294
  }, "strip", z.ZodTypeAny, {
1212
1295
  participantId: string;
1213
1296
  displayName: string;
@@ -1239,6 +1322,12 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1239
1322
  turns?: boolean | undefined;
1240
1323
  } | undefined;
1241
1324
  nameSource?: "room" | "profile" | undefined;
1325
+ origin?: {
1326
+ handle: string;
1327
+ directory: true;
1328
+ listingId: string;
1329
+ contact: "questions" | "tasks";
1330
+ } | undefined;
1242
1331
  interruptRequested?: boolean | undefined;
1243
1332
  acknowledgedRevision?: number | undefined;
1244
1333
  }, {
@@ -1272,10 +1361,17 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1272
1361
  turns?: boolean | undefined;
1273
1362
  } | undefined;
1274
1363
  nameSource?: "room" | "profile" | undefined;
1364
+ origin?: {
1365
+ handle: string;
1366
+ directory: true;
1367
+ listingId: string;
1368
+ contact: "questions" | "tasks";
1369
+ } | undefined;
1275
1370
  interruptRequested?: boolean | undefined;
1276
1371
  acknowledgedRevision?: number | undefined;
1277
1372
  }>, "many">;
1278
1373
  policy: z.ZodObject<{
1374
+ type: z.ZodOptional<z.ZodEnum<["public", "protected", "private", "personal"]>>;
1279
1375
  joinPolicy: z.ZodDefault<z.ZodEnum<["invite_only", "open_to_guests"]>>;
1280
1376
  inviteRole: z.ZodOptional<z.ZodEnum<["member", "guest"]>>;
1281
1377
  autoClose: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
@@ -1358,6 +1454,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1358
1454
  inviteLifetimeMs: number | null;
1359
1455
  exportWindowMs: number;
1360
1456
  connectTicketLifetimeMs: number;
1457
+ type?: "public" | "protected" | "private" | "personal" | undefined;
1361
1458
  maxFileBytes?: number | undefined;
1362
1459
  autoClose?: {
1363
1460
  mode: "off";
@@ -1392,6 +1489,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1392
1489
  inviteLifetimeMs: number | null;
1393
1490
  exportWindowMs: number;
1394
1491
  connectTicketLifetimeMs: number;
1492
+ type?: "public" | "protected" | "private" | "personal" | undefined;
1395
1493
  maxFileBytes?: number | undefined;
1396
1494
  autoClose?: {
1397
1495
  mode: "off";
@@ -1436,6 +1534,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1436
1534
  inviteLifetimeMs: number | null;
1437
1535
  exportWindowMs: number;
1438
1536
  connectTicketLifetimeMs: number;
1537
+ type?: "public" | "protected" | "private" | "personal" | undefined;
1439
1538
  maxFileBytes?: number | undefined;
1440
1539
  autoClose?: {
1441
1540
  mode: "off";
@@ -1496,6 +1595,12 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1496
1595
  turns?: boolean | undefined;
1497
1596
  } | undefined;
1498
1597
  nameSource?: "room" | "profile" | undefined;
1598
+ origin?: {
1599
+ handle: string;
1600
+ directory: true;
1601
+ listingId: string;
1602
+ contact: "questions" | "tasks";
1603
+ } | undefined;
1499
1604
  interruptRequested?: boolean | undefined;
1500
1605
  acknowledgedRevision?: number | undefined;
1501
1606
  }[];
@@ -1539,6 +1644,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1539
1644
  inviteLifetimeMs: number | null;
1540
1645
  exportWindowMs: number;
1541
1646
  connectTicketLifetimeMs: number;
1647
+ type?: "public" | "protected" | "private" | "personal" | undefined;
1542
1648
  maxFileBytes?: number | undefined;
1543
1649
  autoClose?: {
1544
1650
  mode: "off";
@@ -1600,6 +1706,12 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1600
1706
  turns?: boolean | undefined;
1601
1707
  } | undefined;
1602
1708
  nameSource?: "room" | "profile" | undefined;
1709
+ origin?: {
1710
+ handle: string;
1711
+ directory: true;
1712
+ listingId: string;
1713
+ contact: "questions" | "tasks";
1714
+ } | undefined;
1603
1715
  interruptRequested?: boolean | undefined;
1604
1716
  acknowledgedRevision?: number | undefined;
1605
1717
  }[];
@@ -1646,6 +1758,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1646
1758
  inviteLifetimeMs: number | null;
1647
1759
  exportWindowMs: number;
1648
1760
  connectTicketLifetimeMs: number;
1761
+ type?: "public" | "protected" | "private" | "personal" | undefined;
1649
1762
  maxFileBytes?: number | undefined;
1650
1763
  autoClose?: {
1651
1764
  mode: "off";
@@ -1706,6 +1819,12 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1706
1819
  turns?: boolean | undefined;
1707
1820
  } | undefined;
1708
1821
  nameSource?: "room" | "profile" | undefined;
1822
+ origin?: {
1823
+ handle: string;
1824
+ directory: true;
1825
+ listingId: string;
1826
+ contact: "questions" | "tasks";
1827
+ } | undefined;
1709
1828
  interruptRequested?: boolean | undefined;
1710
1829
  acknowledgedRevision?: number | undefined;
1711
1830
  }[];
@@ -1754,6 +1873,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1754
1873
  inviteLifetimeMs: number | null;
1755
1874
  exportWindowMs: number;
1756
1875
  connectTicketLifetimeMs: number;
1876
+ type?: "public" | "protected" | "private" | "personal" | undefined;
1757
1877
  maxFileBytes?: number | undefined;
1758
1878
  autoClose?: {
1759
1879
  mode: "off";
@@ -1815,6 +1935,12 @@ export declare const RedeemInviteResponse: z.ZodObject<{
1815
1935
  turns?: boolean | undefined;
1816
1936
  } | undefined;
1817
1937
  nameSource?: "room" | "profile" | undefined;
1938
+ origin?: {
1939
+ handle: string;
1940
+ directory: true;
1941
+ listingId: string;
1942
+ contact: "questions" | "tasks";
1943
+ } | undefined;
1818
1944
  interruptRequested?: boolean | undefined;
1819
1945
  acknowledgedRevision?: number | undefined;
1820
1946
  }[];
@@ -2063,7 +2189,7 @@ export type LiveTransport = (typeof LIVE_TRANSPORTS)[number];
2063
2189
  * Names a relay lists in `features`. A client checks for one before relying on it;
2064
2190
  * a relay that does not describe itself is assumed to have whatever was usual before descriptions existed.
2065
2191
  */
2066
- export declare const RELAY_FEATURES: readonly ["message-stages", "files", "local-join", "invite-probe", "create-token", "token-login", "receipt-watermark"];
2192
+ export declare const RELAY_FEATURES: readonly ["message-stages", "files", "local-join", "invite-probe", "create-token", "token-login", "receipt-watermark", "member-tokens", "directory", "room-types"];
2067
2193
  export type RelayFeature = (typeof RELAY_FEATURES)[number];
2068
2194
  /**
2069
2195
  * How a relay keeps plain receipts. `events`: one `message.received` event per message and reader, as
@@ -3270,6 +3396,30 @@ export declare const ReadEventsResponse: z.ZodObject<{
3270
3396
  payload: {
3271
3397
  localJoin: boolean;
3272
3398
  };
3399
+ }>, z.ZodObject<{
3400
+ type: z.ZodLiteral<"room.type_changed">;
3401
+ payload: z.ZodObject<{
3402
+ type: z.ZodEnum<["public", "protected", "private", "personal"]>;
3403
+ previous: z.ZodEnum<["public", "protected", "private", "personal"]>;
3404
+ }, "strip", z.ZodTypeAny, {
3405
+ type: "public" | "protected" | "private" | "personal";
3406
+ previous: "public" | "protected" | "private" | "personal";
3407
+ }, {
3408
+ type: "public" | "protected" | "private" | "personal";
3409
+ previous: "public" | "protected" | "private" | "personal";
3410
+ }>;
3411
+ }, "strip", z.ZodTypeAny, {
3412
+ type: "room.type_changed";
3413
+ payload: {
3414
+ type: "public" | "protected" | "private" | "personal";
3415
+ previous: "public" | "protected" | "private" | "personal";
3416
+ };
3417
+ }, {
3418
+ type: "room.type_changed";
3419
+ payload: {
3420
+ type: "public" | "protected" | "private" | "personal";
3421
+ previous: "public" | "protected" | "private" | "personal";
3422
+ };
3273
3423
  }>, z.ZodObject<{
3274
3424
  type: z.ZodLiteral<"room.invitation_changed">;
3275
3425
  payload: z.ZodObject<{
@@ -3948,6 +4098,12 @@ export declare const ReadEventsResponse: z.ZodObject<{
3948
4098
  payload: {
3949
4099
  localJoin: boolean;
3950
4100
  };
4101
+ } | {
4102
+ type: "room.type_changed";
4103
+ payload: {
4104
+ type: "public" | "protected" | "private" | "personal";
4105
+ previous: "public" | "protected" | "private" | "personal";
4106
+ };
3951
4107
  } | {
3952
4108
  type: "room.invitation_changed";
3953
4109
  payload: {
@@ -4249,6 +4405,12 @@ export declare const ReadEventsResponse: z.ZodObject<{
4249
4405
  payload: {
4250
4406
  localJoin: boolean;
4251
4407
  };
4408
+ } | {
4409
+ type: "room.type_changed";
4410
+ payload: {
4411
+ type: "public" | "protected" | "private" | "personal";
4412
+ previous: "public" | "protected" | "private" | "personal";
4413
+ };
4252
4414
  } | {
4253
4415
  type: "room.invitation_changed";
4254
4416
  payload: {
@@ -5399,6 +5561,30 @@ export declare const SendEventResponse: z.ZodObject<{
5399
5561
  payload: {
5400
5562
  localJoin: boolean;
5401
5563
  };
5564
+ }>, z.ZodObject<{
5565
+ type: z.ZodLiteral<"room.type_changed">;
5566
+ payload: z.ZodObject<{
5567
+ type: z.ZodEnum<["public", "protected", "private", "personal"]>;
5568
+ previous: z.ZodEnum<["public", "protected", "private", "personal"]>;
5569
+ }, "strip", z.ZodTypeAny, {
5570
+ type: "public" | "protected" | "private" | "personal";
5571
+ previous: "public" | "protected" | "private" | "personal";
5572
+ }, {
5573
+ type: "public" | "protected" | "private" | "personal";
5574
+ previous: "public" | "protected" | "private" | "personal";
5575
+ }>;
5576
+ }, "strip", z.ZodTypeAny, {
5577
+ type: "room.type_changed";
5578
+ payload: {
5579
+ type: "public" | "protected" | "private" | "personal";
5580
+ previous: "public" | "protected" | "private" | "personal";
5581
+ };
5582
+ }, {
5583
+ type: "room.type_changed";
5584
+ payload: {
5585
+ type: "public" | "protected" | "private" | "personal";
5586
+ previous: "public" | "protected" | "private" | "personal";
5587
+ };
5402
5588
  }>, z.ZodObject<{
5403
5589
  type: z.ZodLiteral<"room.invitation_changed">;
5404
5590
  payload: z.ZodObject<{
@@ -6058,6 +6244,12 @@ export declare const SendEventResponse: z.ZodObject<{
6058
6244
  payload: {
6059
6245
  localJoin: boolean;
6060
6246
  };
6247
+ } | {
6248
+ type: "room.type_changed";
6249
+ payload: {
6250
+ type: "public" | "protected" | "private" | "personal";
6251
+ previous: "public" | "protected" | "private" | "personal";
6252
+ };
6061
6253
  } | {
6062
6254
  type: "room.invitation_changed";
6063
6255
  payload: {
@@ -6350,6 +6542,12 @@ export declare const SendEventResponse: z.ZodObject<{
6350
6542
  payload: {
6351
6543
  localJoin: boolean;
6352
6544
  };
6545
+ } | {
6546
+ type: "room.type_changed";
6547
+ payload: {
6548
+ type: "public" | "protected" | "private" | "personal";
6549
+ previous: "public" | "protected" | "private" | "personal";
6550
+ };
6353
6551
  } | {
6354
6552
  type: "room.invitation_changed";
6355
6553
  payload: {
@@ -6668,22 +6866,34 @@ export declare const SetLocalJoinRequest: z.ZodObject<{
6668
6866
  localJoin: boolean;
6669
6867
  }>;
6670
6868
  export type SetLocalJoinRequest = z.infer<typeof SetLocalJoinRequest>;
6869
+ export declare const SetRoomTypeRequest: z.ZodObject<{
6870
+ type: z.ZodEnum<["public", "protected", "private", "personal"]>;
6871
+ }, "strip", z.ZodTypeAny, {
6872
+ type: "public" | "protected" | "private" | "personal";
6873
+ }, {
6874
+ type: "public" | "protected" | "private" | "personal";
6875
+ }>;
6876
+ export type SetRoomTypeRequest = z.infer<typeof SetRoomTypeRequest>;
6671
6877
  /** A room that devices on the relay's network may join by name. Only what is needed to choose one. */
6878
+ /** `type` says what joining by name gives: public, a member; protected, a visitor. Absent from older relays, which list only public rooms. */
6672
6879
  export declare const LocalRoom: z.ZodObject<{
6673
6880
  roomId: z.ZodString;
6674
6881
  name: z.ZodString;
6675
6882
  createdAt: z.ZodNumber;
6676
6883
  participantCount: z.ZodNumber;
6884
+ type: z.ZodOptional<z.ZodEnum<["public", "protected"]>>;
6677
6885
  }, "strip", z.ZodTypeAny, {
6678
6886
  name: string;
6679
6887
  roomId: string;
6680
6888
  createdAt: number;
6681
6889
  participantCount: number;
6890
+ type?: "public" | "protected" | undefined;
6682
6891
  }, {
6683
6892
  name: string;
6684
6893
  roomId: string;
6685
6894
  createdAt: number;
6686
6895
  participantCount: number;
6896
+ type?: "public" | "protected" | undefined;
6687
6897
  }>;
6688
6898
  export type LocalRoom = z.infer<typeof LocalRoom>;
6689
6899
  export declare const LocalRoomsResponse: z.ZodObject<{
@@ -6692,16 +6902,19 @@ export declare const LocalRoomsResponse: z.ZodObject<{
6692
6902
  name: z.ZodString;
6693
6903
  createdAt: z.ZodNumber;
6694
6904
  participantCount: z.ZodNumber;
6905
+ type: z.ZodOptional<z.ZodEnum<["public", "protected"]>>;
6695
6906
  }, "strip", z.ZodTypeAny, {
6696
6907
  name: string;
6697
6908
  roomId: string;
6698
6909
  createdAt: number;
6699
6910
  participantCount: number;
6911
+ type?: "public" | "protected" | undefined;
6700
6912
  }, {
6701
6913
  name: string;
6702
6914
  roomId: string;
6703
6915
  createdAt: number;
6704
6916
  participantCount: number;
6917
+ type?: "public" | "protected" | undefined;
6705
6918
  }>, "many">;
6706
6919
  }, "strip", z.ZodTypeAny, {
6707
6920
  rooms: {
@@ -6709,6 +6922,7 @@ export declare const LocalRoomsResponse: z.ZodObject<{
6709
6922
  roomId: string;
6710
6923
  createdAt: number;
6711
6924
  participantCount: number;
6925
+ type?: "public" | "protected" | undefined;
6712
6926
  }[];
6713
6927
  }, {
6714
6928
  rooms: {
@@ -6716,6 +6930,7 @@ export declare const LocalRoomsResponse: z.ZodObject<{
6716
6930
  roomId: string;
6717
6931
  createdAt: number;
6718
6932
  participantCount: number;
6933
+ type?: "public" | "protected" | undefined;
6719
6934
  }[];
6720
6935
  }>;
6721
6936
  export type LocalRoomsResponse = z.infer<typeof LocalRoomsResponse>;
@@ -7786,6 +8001,30 @@ export declare const ControlResponse: z.ZodObject<{
7786
8001
  payload: {
7787
8002
  localJoin: boolean;
7788
8003
  };
8004
+ }>, z.ZodObject<{
8005
+ type: z.ZodLiteral<"room.type_changed">;
8006
+ payload: z.ZodObject<{
8007
+ type: z.ZodEnum<["public", "protected", "private", "personal"]>;
8008
+ previous: z.ZodEnum<["public", "protected", "private", "personal"]>;
8009
+ }, "strip", z.ZodTypeAny, {
8010
+ type: "public" | "protected" | "private" | "personal";
8011
+ previous: "public" | "protected" | "private" | "personal";
8012
+ }, {
8013
+ type: "public" | "protected" | "private" | "personal";
8014
+ previous: "public" | "protected" | "private" | "personal";
8015
+ }>;
8016
+ }, "strip", z.ZodTypeAny, {
8017
+ type: "room.type_changed";
8018
+ payload: {
8019
+ type: "public" | "protected" | "private" | "personal";
8020
+ previous: "public" | "protected" | "private" | "personal";
8021
+ };
8022
+ }, {
8023
+ type: "room.type_changed";
8024
+ payload: {
8025
+ type: "public" | "protected" | "private" | "personal";
8026
+ previous: "public" | "protected" | "private" | "personal";
8027
+ };
7789
8028
  }>, z.ZodObject<{
7790
8029
  type: z.ZodLiteral<"room.invitation_changed">;
7791
8030
  payload: z.ZodObject<{
@@ -8443,6 +8682,12 @@ export declare const ControlResponse: z.ZodObject<{
8443
8682
  payload: {
8444
8683
  localJoin: boolean;
8445
8684
  };
8685
+ } | {
8686
+ type: "room.type_changed";
8687
+ payload: {
8688
+ type: "public" | "protected" | "private" | "personal";
8689
+ previous: "public" | "protected" | "private" | "personal";
8690
+ };
8446
8691
  } | {
8447
8692
  type: "room.invitation_changed";
8448
8693
  payload: {
@@ -8735,6 +8980,12 @@ export declare const ControlResponse: z.ZodObject<{
8735
8980
  payload: {
8736
8981
  localJoin: boolean;
8737
8982
  };
8983
+ } | {
8984
+ type: "room.type_changed";
8985
+ payload: {
8986
+ type: "public" | "protected" | "private" | "personal";
8987
+ previous: "public" | "protected" | "private" | "personal";
8988
+ };
8738
8989
  } | {
8739
8990
  type: "room.invitation_changed";
8740
8991
  payload: {
@@ -8921,6 +9172,22 @@ export declare const ExportResponse: z.ZodObject<{
8921
9172
  acknowledgedRevision: z.ZodOptional<z.ZodNumber>;
8922
9173
  interruptRequested: z.ZodOptional<z.ZodBoolean>;
8923
9174
  member: z.ZodOptional<z.ZodString>;
9175
+ origin: z.ZodOptional<z.ZodObject<{
9176
+ directory: z.ZodLiteral<true>;
9177
+ handle: z.ZodString;
9178
+ listingId: z.ZodString;
9179
+ contact: z.ZodEnum<["questions", "tasks"]>;
9180
+ }, "strip", z.ZodTypeAny, {
9181
+ handle: string;
9182
+ directory: true;
9183
+ listingId: string;
9184
+ contact: "questions" | "tasks";
9185
+ }, {
9186
+ handle: string;
9187
+ directory: true;
9188
+ listingId: string;
9189
+ contact: "questions" | "tasks";
9190
+ }>>;
8924
9191
  }, "strip", z.ZodTypeAny, {
8925
9192
  participantId: string;
8926
9193
  displayName: string;
@@ -8952,6 +9219,12 @@ export declare const ExportResponse: z.ZodObject<{
8952
9219
  turns?: boolean | undefined;
8953
9220
  } | undefined;
8954
9221
  nameSource?: "room" | "profile" | undefined;
9222
+ origin?: {
9223
+ handle: string;
9224
+ directory: true;
9225
+ listingId: string;
9226
+ contact: "questions" | "tasks";
9227
+ } | undefined;
8955
9228
  interruptRequested?: boolean | undefined;
8956
9229
  acknowledgedRevision?: number | undefined;
8957
9230
  }, {
@@ -8985,10 +9258,17 @@ export declare const ExportResponse: z.ZodObject<{
8985
9258
  turns?: boolean | undefined;
8986
9259
  } | undefined;
8987
9260
  nameSource?: "room" | "profile" | undefined;
9261
+ origin?: {
9262
+ handle: string;
9263
+ directory: true;
9264
+ listingId: string;
9265
+ contact: "questions" | "tasks";
9266
+ } | undefined;
8988
9267
  interruptRequested?: boolean | undefined;
8989
9268
  acknowledgedRevision?: number | undefined;
8990
9269
  }>, "many">;
8991
9270
  policy: z.ZodObject<{
9271
+ type: z.ZodOptional<z.ZodEnum<["public", "protected", "private", "personal"]>>;
8992
9272
  joinPolicy: z.ZodDefault<z.ZodEnum<["invite_only", "open_to_guests"]>>;
8993
9273
  inviteRole: z.ZodOptional<z.ZodEnum<["member", "guest"]>>;
8994
9274
  autoClose: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
@@ -9071,6 +9351,7 @@ export declare const ExportResponse: z.ZodObject<{
9071
9351
  inviteLifetimeMs: number | null;
9072
9352
  exportWindowMs: number;
9073
9353
  connectTicketLifetimeMs: number;
9354
+ type?: "public" | "protected" | "private" | "personal" | undefined;
9074
9355
  maxFileBytes?: number | undefined;
9075
9356
  autoClose?: {
9076
9357
  mode: "off";
@@ -9105,6 +9386,7 @@ export declare const ExportResponse: z.ZodObject<{
9105
9386
  inviteLifetimeMs: number | null;
9106
9387
  exportWindowMs: number;
9107
9388
  connectTicketLifetimeMs: number;
9389
+ type?: "public" | "protected" | "private" | "personal" | undefined;
9108
9390
  maxFileBytes?: number | undefined;
9109
9391
  autoClose?: {
9110
9392
  mode: "off";
@@ -9149,6 +9431,7 @@ export declare const ExportResponse: z.ZodObject<{
9149
9431
  inviteLifetimeMs: number | null;
9150
9432
  exportWindowMs: number;
9151
9433
  connectTicketLifetimeMs: number;
9434
+ type?: "public" | "protected" | "private" | "personal" | undefined;
9152
9435
  maxFileBytes?: number | undefined;
9153
9436
  autoClose?: {
9154
9437
  mode: "off";
@@ -9209,6 +9492,12 @@ export declare const ExportResponse: z.ZodObject<{
9209
9492
  turns?: boolean | undefined;
9210
9493
  } | undefined;
9211
9494
  nameSource?: "room" | "profile" | undefined;
9495
+ origin?: {
9496
+ handle: string;
9497
+ directory: true;
9498
+ listingId: string;
9499
+ contact: "questions" | "tasks";
9500
+ } | undefined;
9212
9501
  interruptRequested?: boolean | undefined;
9213
9502
  acknowledgedRevision?: number | undefined;
9214
9503
  }[];
@@ -9252,6 +9541,7 @@ export declare const ExportResponse: z.ZodObject<{
9252
9541
  inviteLifetimeMs: number | null;
9253
9542
  exportWindowMs: number;
9254
9543
  connectTicketLifetimeMs: number;
9544
+ type?: "public" | "protected" | "private" | "personal" | undefined;
9255
9545
  maxFileBytes?: number | undefined;
9256
9546
  autoClose?: {
9257
9547
  mode: "off";
@@ -9313,6 +9603,12 @@ export declare const ExportResponse: z.ZodObject<{
9313
9603
  turns?: boolean | undefined;
9314
9604
  } | undefined;
9315
9605
  nameSource?: "room" | "profile" | undefined;
9606
+ origin?: {
9607
+ handle: string;
9608
+ directory: true;
9609
+ listingId: string;
9610
+ contact: "questions" | "tasks";
9611
+ } | undefined;
9316
9612
  interruptRequested?: boolean | undefined;
9317
9613
  acknowledgedRevision?: number | undefined;
9318
9614
  }[];
@@ -10392,6 +10688,30 @@ export declare const ExportResponse: z.ZodObject<{
10392
10688
  payload: {
10393
10689
  localJoin: boolean;
10394
10690
  };
10691
+ }>, z.ZodObject<{
10692
+ type: z.ZodLiteral<"room.type_changed">;
10693
+ payload: z.ZodObject<{
10694
+ type: z.ZodEnum<["public", "protected", "private", "personal"]>;
10695
+ previous: z.ZodEnum<["public", "protected", "private", "personal"]>;
10696
+ }, "strip", z.ZodTypeAny, {
10697
+ type: "public" | "protected" | "private" | "personal";
10698
+ previous: "public" | "protected" | "private" | "personal";
10699
+ }, {
10700
+ type: "public" | "protected" | "private" | "personal";
10701
+ previous: "public" | "protected" | "private" | "personal";
10702
+ }>;
10703
+ }, "strip", z.ZodTypeAny, {
10704
+ type: "room.type_changed";
10705
+ payload: {
10706
+ type: "public" | "protected" | "private" | "personal";
10707
+ previous: "public" | "protected" | "private" | "personal";
10708
+ };
10709
+ }, {
10710
+ type: "room.type_changed";
10711
+ payload: {
10712
+ type: "public" | "protected" | "private" | "personal";
10713
+ previous: "public" | "protected" | "private" | "personal";
10714
+ };
10395
10715
  }>, z.ZodObject<{
10396
10716
  type: z.ZodLiteral<"room.invitation_changed">;
10397
10717
  payload: z.ZodObject<{
@@ -11105,6 +11425,7 @@ export declare const ExportResponse: z.ZodObject<{
11105
11425
  inviteLifetimeMs: number | null;
11106
11426
  exportWindowMs: number;
11107
11427
  connectTicketLifetimeMs: number;
11428
+ type?: "public" | "protected" | "private" | "personal" | undefined;
11108
11429
  maxFileBytes?: number | undefined;
11109
11430
  autoClose?: {
11110
11431
  mode: "off";
@@ -11165,6 +11486,12 @@ export declare const ExportResponse: z.ZodObject<{
11165
11486
  turns?: boolean | undefined;
11166
11487
  } | undefined;
11167
11488
  nameSource?: "room" | "profile" | undefined;
11489
+ origin?: {
11490
+ handle: string;
11491
+ directory: true;
11492
+ listingId: string;
11493
+ contact: "questions" | "tasks";
11494
+ } | undefined;
11168
11495
  interruptRequested?: boolean | undefined;
11169
11496
  acknowledgedRevision?: number | undefined;
11170
11497
  }[];
@@ -11398,6 +11725,12 @@ export declare const ExportResponse: z.ZodObject<{
11398
11725
  payload: {
11399
11726
  localJoin: boolean;
11400
11727
  };
11728
+ } | {
11729
+ type: "room.type_changed";
11730
+ payload: {
11731
+ type: "public" | "protected" | "private" | "personal";
11732
+ previous: "public" | "protected" | "private" | "personal";
11733
+ };
11401
11734
  } | {
11402
11735
  type: "room.invitation_changed";
11403
11736
  payload: {
@@ -11547,6 +11880,7 @@ export declare const ExportResponse: z.ZodObject<{
11547
11880
  inviteLifetimeMs: number | null;
11548
11881
  exportWindowMs: number;
11549
11882
  connectTicketLifetimeMs: number;
11883
+ type?: "public" | "protected" | "private" | "personal" | undefined;
11550
11884
  maxFileBytes?: number | undefined;
11551
11885
  autoClose?: {
11552
11886
  mode: "off";
@@ -11608,6 +11942,12 @@ export declare const ExportResponse: z.ZodObject<{
11608
11942
  turns?: boolean | undefined;
11609
11943
  } | undefined;
11610
11944
  nameSource?: "room" | "profile" | undefined;
11945
+ origin?: {
11946
+ handle: string;
11947
+ directory: true;
11948
+ listingId: string;
11949
+ contact: "questions" | "tasks";
11950
+ } | undefined;
11611
11951
  interruptRequested?: boolean | undefined;
11612
11952
  acknowledgedRevision?: number | undefined;
11613
11953
  }[];
@@ -11841,6 +12181,12 @@ export declare const ExportResponse: z.ZodObject<{
11841
12181
  payload: {
11842
12182
  localJoin: boolean;
11843
12183
  };
12184
+ } | {
12185
+ type: "room.type_changed";
12186
+ payload: {
12187
+ type: "public" | "protected" | "private" | "personal";
12188
+ previous: "public" | "protected" | "private" | "personal";
12189
+ };
11844
12190
  } | {
11845
12191
  type: "room.invitation_changed";
11846
12192
  payload: {