@pairlobby/protocol 0.25.0 → 0.27.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/README.md +1 -1
- package/dist/directory.d.ts +383 -0
- package/dist/directory.d.ts.map +1 -0
- package/dist/directory.js +91 -0
- package/dist/directory.js.map +1 -0
- package/dist/events.d.ts +8 -8
- package/dist/http.d.ts +52 -52
- package/dist/ids.d.ts +2 -0
- package/dist/ids.d.ts.map +1 -1
- package/dist/ids.js +2 -1
- package/dist/ids.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/names.d.ts +2 -2
- package/dist/records.d.ts +8 -8
- package/dist/wire.d.ts +24 -24
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
|
@@ -184,7 +184,7 @@ export declare const CreateRoomRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
184
184
|
runtime?: string | undefined;
|
|
185
185
|
runtimeVersion?: string | undefined;
|
|
186
186
|
} | undefined;
|
|
187
|
-
nameSource?: "
|
|
187
|
+
nameSource?: "room" | "profile" | undefined;
|
|
188
188
|
sessionId?: string | undefined;
|
|
189
189
|
}, {
|
|
190
190
|
displayName: string;
|
|
@@ -196,7 +196,7 @@ export declare const CreateRoomRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
196
196
|
runtime?: string | undefined;
|
|
197
197
|
runtimeVersion?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
|
-
nameSource?: "
|
|
199
|
+
nameSource?: "room" | "profile" | undefined;
|
|
200
200
|
sessionId?: string | undefined;
|
|
201
201
|
}>, z.ZodObject<{
|
|
202
202
|
name: z.ZodString;
|
|
@@ -345,7 +345,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
|
|
|
345
345
|
pause?: boolean | undefined;
|
|
346
346
|
turns?: boolean | undefined;
|
|
347
347
|
} | undefined;
|
|
348
|
-
nameSource?: "
|
|
348
|
+
nameSource?: "room" | "profile" | undefined;
|
|
349
349
|
interruptRequested?: boolean | undefined;
|
|
350
350
|
acknowledgedRevision?: number | undefined;
|
|
351
351
|
}, {
|
|
@@ -378,7 +378,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
|
|
|
378
378
|
pause?: boolean | undefined;
|
|
379
379
|
turns?: boolean | undefined;
|
|
380
380
|
} | undefined;
|
|
381
|
-
nameSource?: "
|
|
381
|
+
nameSource?: "room" | "profile" | undefined;
|
|
382
382
|
interruptRequested?: boolean | undefined;
|
|
383
383
|
acknowledgedRevision?: number | undefined;
|
|
384
384
|
}>, "many">;
|
|
@@ -602,7 +602,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
|
|
|
602
602
|
pause?: boolean | undefined;
|
|
603
603
|
turns?: boolean | undefined;
|
|
604
604
|
} | undefined;
|
|
605
|
-
nameSource?: "
|
|
605
|
+
nameSource?: "room" | "profile" | undefined;
|
|
606
606
|
interruptRequested?: boolean | undefined;
|
|
607
607
|
acknowledgedRevision?: number | undefined;
|
|
608
608
|
}[];
|
|
@@ -706,7 +706,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
|
|
|
706
706
|
pause?: boolean | undefined;
|
|
707
707
|
turns?: boolean | undefined;
|
|
708
708
|
} | undefined;
|
|
709
|
-
nameSource?: "
|
|
709
|
+
nameSource?: "room" | "profile" | undefined;
|
|
710
710
|
interruptRequested?: boolean | undefined;
|
|
711
711
|
acknowledgedRevision?: number | undefined;
|
|
712
712
|
}[];
|
|
@@ -823,7 +823,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
|
|
|
823
823
|
pause?: boolean | undefined;
|
|
824
824
|
turns?: boolean | undefined;
|
|
825
825
|
} | undefined;
|
|
826
|
-
nameSource?: "
|
|
826
|
+
nameSource?: "room" | "profile" | undefined;
|
|
827
827
|
interruptRequested?: boolean | undefined;
|
|
828
828
|
acknowledgedRevision?: number | undefined;
|
|
829
829
|
}[];
|
|
@@ -934,7 +934,7 @@ export declare const CreateRoomResponse: z.ZodObject<{
|
|
|
934
934
|
pause?: boolean | undefined;
|
|
935
935
|
turns?: boolean | undefined;
|
|
936
936
|
} | undefined;
|
|
937
|
-
nameSource?: "
|
|
937
|
+
nameSource?: "room" | "profile" | undefined;
|
|
938
938
|
interruptRequested?: boolean | undefined;
|
|
939
939
|
acknowledgedRevision?: number | undefined;
|
|
940
940
|
}[];
|
|
@@ -1004,7 +1004,7 @@ export declare const RedeemInviteRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
1004
1004
|
runtime?: string | undefined;
|
|
1005
1005
|
runtimeVersion?: string | undefined;
|
|
1006
1006
|
} | undefined;
|
|
1007
|
-
nameSource?: "
|
|
1007
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1008
1008
|
sessionId?: string | undefined;
|
|
1009
1009
|
}, {
|
|
1010
1010
|
displayName: string;
|
|
@@ -1016,7 +1016,7 @@ export declare const RedeemInviteRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
1016
1016
|
runtime?: string | undefined;
|
|
1017
1017
|
runtimeVersion?: string | undefined;
|
|
1018
1018
|
} | undefined;
|
|
1019
|
-
nameSource?: "
|
|
1019
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1020
1020
|
sessionId?: string | undefined;
|
|
1021
1021
|
}>, z.ZodObject<{
|
|
1022
1022
|
code: z.ZodString;
|
|
@@ -1078,7 +1078,7 @@ export declare const AccountJoinRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
1078
1078
|
runtime?: string | undefined;
|
|
1079
1079
|
runtimeVersion?: string | undefined;
|
|
1080
1080
|
} | undefined;
|
|
1081
|
-
nameSource?: "
|
|
1081
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1082
1082
|
sessionId?: string | undefined;
|
|
1083
1083
|
}, {
|
|
1084
1084
|
displayName: string;
|
|
@@ -1090,7 +1090,7 @@ export declare const AccountJoinRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
1090
1090
|
runtime?: string | undefined;
|
|
1091
1091
|
runtimeVersion?: string | undefined;
|
|
1092
1092
|
} | undefined;
|
|
1093
|
-
nameSource?: "
|
|
1093
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1094
1094
|
sessionId?: string | undefined;
|
|
1095
1095
|
}>, z.ZodObject<{
|
|
1096
1096
|
/** Stable across retries of the same join, so a lost response returns the same membership. */
|
|
@@ -1238,7 +1238,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
|
|
|
1238
1238
|
pause?: boolean | undefined;
|
|
1239
1239
|
turns?: boolean | undefined;
|
|
1240
1240
|
} | undefined;
|
|
1241
|
-
nameSource?: "
|
|
1241
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1242
1242
|
interruptRequested?: boolean | undefined;
|
|
1243
1243
|
acknowledgedRevision?: number | undefined;
|
|
1244
1244
|
}, {
|
|
@@ -1271,7 +1271,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
|
|
|
1271
1271
|
pause?: boolean | undefined;
|
|
1272
1272
|
turns?: boolean | undefined;
|
|
1273
1273
|
} | undefined;
|
|
1274
|
-
nameSource?: "
|
|
1274
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1275
1275
|
interruptRequested?: boolean | undefined;
|
|
1276
1276
|
acknowledgedRevision?: number | undefined;
|
|
1277
1277
|
}>, "many">;
|
|
@@ -1495,7 +1495,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
|
|
|
1495
1495
|
pause?: boolean | undefined;
|
|
1496
1496
|
turns?: boolean | undefined;
|
|
1497
1497
|
} | undefined;
|
|
1498
|
-
nameSource?: "
|
|
1498
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1499
1499
|
interruptRequested?: boolean | undefined;
|
|
1500
1500
|
acknowledgedRevision?: number | undefined;
|
|
1501
1501
|
}[];
|
|
@@ -1599,7 +1599,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
|
|
|
1599
1599
|
pause?: boolean | undefined;
|
|
1600
1600
|
turns?: boolean | undefined;
|
|
1601
1601
|
} | undefined;
|
|
1602
|
-
nameSource?: "
|
|
1602
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1603
1603
|
interruptRequested?: boolean | undefined;
|
|
1604
1604
|
acknowledgedRevision?: number | undefined;
|
|
1605
1605
|
}[];
|
|
@@ -1705,7 +1705,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
|
|
|
1705
1705
|
pause?: boolean | undefined;
|
|
1706
1706
|
turns?: boolean | undefined;
|
|
1707
1707
|
} | undefined;
|
|
1708
|
-
nameSource?: "
|
|
1708
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1709
1709
|
interruptRequested?: boolean | undefined;
|
|
1710
1710
|
acknowledgedRevision?: number | undefined;
|
|
1711
1711
|
}[];
|
|
@@ -1814,7 +1814,7 @@ export declare const RedeemInviteResponse: z.ZodObject<{
|
|
|
1814
1814
|
pause?: boolean | undefined;
|
|
1815
1815
|
turns?: boolean | undefined;
|
|
1816
1816
|
} | undefined;
|
|
1817
|
-
nameSource?: "
|
|
1817
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1818
1818
|
interruptRequested?: boolean | undefined;
|
|
1819
1819
|
acknowledgedRevision?: number | undefined;
|
|
1820
1820
|
}[];
|
|
@@ -2836,12 +2836,12 @@ export declare const ReadEventsResponse: z.ZodObject<{
|
|
|
2836
2836
|
source: z.ZodEnum<["profile", "room"]>;
|
|
2837
2837
|
}, "strip", z.ZodTypeAny, {
|
|
2838
2838
|
name: string;
|
|
2839
|
-
source: "
|
|
2839
|
+
source: "room" | "profile";
|
|
2840
2840
|
participantId: string;
|
|
2841
2841
|
previousName: string;
|
|
2842
2842
|
}, {
|
|
2843
2843
|
name: string;
|
|
2844
|
-
source: "
|
|
2844
|
+
source: "room" | "profile";
|
|
2845
2845
|
participantId: string;
|
|
2846
2846
|
previousName: string;
|
|
2847
2847
|
}>;
|
|
@@ -2849,7 +2849,7 @@ export declare const ReadEventsResponse: z.ZodObject<{
|
|
|
2849
2849
|
type: "participant.renamed";
|
|
2850
2850
|
payload: {
|
|
2851
2851
|
name: string;
|
|
2852
|
-
source: "
|
|
2852
|
+
source: "room" | "profile";
|
|
2853
2853
|
participantId: string;
|
|
2854
2854
|
previousName: string;
|
|
2855
2855
|
};
|
|
@@ -2857,7 +2857,7 @@ export declare const ReadEventsResponse: z.ZodObject<{
|
|
|
2857
2857
|
type: "participant.renamed";
|
|
2858
2858
|
payload: {
|
|
2859
2859
|
name: string;
|
|
2860
|
-
source: "
|
|
2860
|
+
source: "room" | "profile";
|
|
2861
2861
|
participantId: string;
|
|
2862
2862
|
previousName: string;
|
|
2863
2863
|
};
|
|
@@ -3857,7 +3857,7 @@ export declare const ReadEventsResponse: z.ZodObject<{
|
|
|
3857
3857
|
type: "participant.renamed";
|
|
3858
3858
|
payload: {
|
|
3859
3859
|
name: string;
|
|
3860
|
-
source: "
|
|
3860
|
+
source: "room" | "profile";
|
|
3861
3861
|
participantId: string;
|
|
3862
3862
|
previousName: string;
|
|
3863
3863
|
};
|
|
@@ -4158,7 +4158,7 @@ export declare const ReadEventsResponse: z.ZodObject<{
|
|
|
4158
4158
|
type: "participant.renamed";
|
|
4159
4159
|
payload: {
|
|
4160
4160
|
name: string;
|
|
4161
|
-
source: "
|
|
4161
|
+
source: "room" | "profile";
|
|
4162
4162
|
participantId: string;
|
|
4163
4163
|
previousName: string;
|
|
4164
4164
|
};
|
|
@@ -4965,12 +4965,12 @@ export declare const SendEventResponse: z.ZodObject<{
|
|
|
4965
4965
|
source: z.ZodEnum<["profile", "room"]>;
|
|
4966
4966
|
}, "strip", z.ZodTypeAny, {
|
|
4967
4967
|
name: string;
|
|
4968
|
-
source: "
|
|
4968
|
+
source: "room" | "profile";
|
|
4969
4969
|
participantId: string;
|
|
4970
4970
|
previousName: string;
|
|
4971
4971
|
}, {
|
|
4972
4972
|
name: string;
|
|
4973
|
-
source: "
|
|
4973
|
+
source: "room" | "profile";
|
|
4974
4974
|
participantId: string;
|
|
4975
4975
|
previousName: string;
|
|
4976
4976
|
}>;
|
|
@@ -4978,7 +4978,7 @@ export declare const SendEventResponse: z.ZodObject<{
|
|
|
4978
4978
|
type: "participant.renamed";
|
|
4979
4979
|
payload: {
|
|
4980
4980
|
name: string;
|
|
4981
|
-
source: "
|
|
4981
|
+
source: "room" | "profile";
|
|
4982
4982
|
participantId: string;
|
|
4983
4983
|
previousName: string;
|
|
4984
4984
|
};
|
|
@@ -4986,7 +4986,7 @@ export declare const SendEventResponse: z.ZodObject<{
|
|
|
4986
4986
|
type: "participant.renamed";
|
|
4987
4987
|
payload: {
|
|
4988
4988
|
name: string;
|
|
4989
|
-
source: "
|
|
4989
|
+
source: "room" | "profile";
|
|
4990
4990
|
participantId: string;
|
|
4991
4991
|
previousName: string;
|
|
4992
4992
|
};
|
|
@@ -5967,7 +5967,7 @@ export declare const SendEventResponse: z.ZodObject<{
|
|
|
5967
5967
|
type: "participant.renamed";
|
|
5968
5968
|
payload: {
|
|
5969
5969
|
name: string;
|
|
5970
|
-
source: "
|
|
5970
|
+
source: "room" | "profile";
|
|
5971
5971
|
participantId: string;
|
|
5972
5972
|
previousName: string;
|
|
5973
5973
|
};
|
|
@@ -6259,7 +6259,7 @@ export declare const SendEventResponse: z.ZodObject<{
|
|
|
6259
6259
|
type: "participant.renamed";
|
|
6260
6260
|
payload: {
|
|
6261
6261
|
name: string;
|
|
6262
|
-
source: "
|
|
6262
|
+
source: "room" | "profile";
|
|
6263
6263
|
participantId: string;
|
|
6264
6264
|
previousName: string;
|
|
6265
6265
|
};
|
|
@@ -6581,7 +6581,7 @@ export declare const JoinAsGuestRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
6581
6581
|
runtime?: string | undefined;
|
|
6582
6582
|
runtimeVersion?: string | undefined;
|
|
6583
6583
|
} | undefined;
|
|
6584
|
-
nameSource?: "
|
|
6584
|
+
nameSource?: "room" | "profile" | undefined;
|
|
6585
6585
|
sessionId?: string | undefined;
|
|
6586
6586
|
}, {
|
|
6587
6587
|
displayName: string;
|
|
@@ -6593,7 +6593,7 @@ export declare const JoinAsGuestRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
6593
6593
|
runtime?: string | undefined;
|
|
6594
6594
|
runtimeVersion?: string | undefined;
|
|
6595
6595
|
} | undefined;
|
|
6596
|
-
nameSource?: "
|
|
6596
|
+
nameSource?: "room" | "profile" | undefined;
|
|
6597
6597
|
sessionId?: string | undefined;
|
|
6598
6598
|
}>, z.ZodObject<{
|
|
6599
6599
|
participantCredential: z.ZodString;
|
|
@@ -6638,7 +6638,7 @@ export declare const LocalJoinRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
6638
6638
|
runtime?: string | undefined;
|
|
6639
6639
|
runtimeVersion?: string | undefined;
|
|
6640
6640
|
} | undefined;
|
|
6641
|
-
nameSource?: "
|
|
6641
|
+
nameSource?: "room" | "profile" | undefined;
|
|
6642
6642
|
sessionId?: string | undefined;
|
|
6643
6643
|
}, {
|
|
6644
6644
|
displayName: string;
|
|
@@ -6650,7 +6650,7 @@ export declare const LocalJoinRequest: z.ZodIntersection<z.ZodObject<{
|
|
|
6650
6650
|
runtime?: string | undefined;
|
|
6651
6651
|
runtimeVersion?: string | undefined;
|
|
6652
6652
|
} | undefined;
|
|
6653
|
-
nameSource?: "
|
|
6653
|
+
nameSource?: "room" | "profile" | undefined;
|
|
6654
6654
|
sessionId?: string | undefined;
|
|
6655
6655
|
}>, z.ZodObject<{
|
|
6656
6656
|
participantCredential: z.ZodString;
|
|
@@ -7352,12 +7352,12 @@ export declare const ControlResponse: z.ZodObject<{
|
|
|
7352
7352
|
source: z.ZodEnum<["profile", "room"]>;
|
|
7353
7353
|
}, "strip", z.ZodTypeAny, {
|
|
7354
7354
|
name: string;
|
|
7355
|
-
source: "
|
|
7355
|
+
source: "room" | "profile";
|
|
7356
7356
|
participantId: string;
|
|
7357
7357
|
previousName: string;
|
|
7358
7358
|
}, {
|
|
7359
7359
|
name: string;
|
|
7360
|
-
source: "
|
|
7360
|
+
source: "room" | "profile";
|
|
7361
7361
|
participantId: string;
|
|
7362
7362
|
previousName: string;
|
|
7363
7363
|
}>;
|
|
@@ -7365,7 +7365,7 @@ export declare const ControlResponse: z.ZodObject<{
|
|
|
7365
7365
|
type: "participant.renamed";
|
|
7366
7366
|
payload: {
|
|
7367
7367
|
name: string;
|
|
7368
|
-
source: "
|
|
7368
|
+
source: "room" | "profile";
|
|
7369
7369
|
participantId: string;
|
|
7370
7370
|
previousName: string;
|
|
7371
7371
|
};
|
|
@@ -7373,7 +7373,7 @@ export declare const ControlResponse: z.ZodObject<{
|
|
|
7373
7373
|
type: "participant.renamed";
|
|
7374
7374
|
payload: {
|
|
7375
7375
|
name: string;
|
|
7376
|
-
source: "
|
|
7376
|
+
source: "room" | "profile";
|
|
7377
7377
|
participantId: string;
|
|
7378
7378
|
previousName: string;
|
|
7379
7379
|
};
|
|
@@ -8352,7 +8352,7 @@ export declare const ControlResponse: z.ZodObject<{
|
|
|
8352
8352
|
type: "participant.renamed";
|
|
8353
8353
|
payload: {
|
|
8354
8354
|
name: string;
|
|
8355
|
-
source: "
|
|
8355
|
+
source: "room" | "profile";
|
|
8356
8356
|
participantId: string;
|
|
8357
8357
|
previousName: string;
|
|
8358
8358
|
};
|
|
@@ -8644,7 +8644,7 @@ export declare const ControlResponse: z.ZodObject<{
|
|
|
8644
8644
|
type: "participant.renamed";
|
|
8645
8645
|
payload: {
|
|
8646
8646
|
name: string;
|
|
8647
|
-
source: "
|
|
8647
|
+
source: "room" | "profile";
|
|
8648
8648
|
participantId: string;
|
|
8649
8649
|
previousName: string;
|
|
8650
8650
|
};
|
|
@@ -8951,7 +8951,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
8951
8951
|
pause?: boolean | undefined;
|
|
8952
8952
|
turns?: boolean | undefined;
|
|
8953
8953
|
} | undefined;
|
|
8954
|
-
nameSource?: "
|
|
8954
|
+
nameSource?: "room" | "profile" | undefined;
|
|
8955
8955
|
interruptRequested?: boolean | undefined;
|
|
8956
8956
|
acknowledgedRevision?: number | undefined;
|
|
8957
8957
|
}, {
|
|
@@ -8984,7 +8984,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
8984
8984
|
pause?: boolean | undefined;
|
|
8985
8985
|
turns?: boolean | undefined;
|
|
8986
8986
|
} | undefined;
|
|
8987
|
-
nameSource?: "
|
|
8987
|
+
nameSource?: "room" | "profile" | undefined;
|
|
8988
8988
|
interruptRequested?: boolean | undefined;
|
|
8989
8989
|
acknowledgedRevision?: number | undefined;
|
|
8990
8990
|
}>, "many">;
|
|
@@ -9208,7 +9208,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
9208
9208
|
pause?: boolean | undefined;
|
|
9209
9209
|
turns?: boolean | undefined;
|
|
9210
9210
|
} | undefined;
|
|
9211
|
-
nameSource?: "
|
|
9211
|
+
nameSource?: "room" | "profile" | undefined;
|
|
9212
9212
|
interruptRequested?: boolean | undefined;
|
|
9213
9213
|
acknowledgedRevision?: number | undefined;
|
|
9214
9214
|
}[];
|
|
@@ -9312,7 +9312,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
9312
9312
|
pause?: boolean | undefined;
|
|
9313
9313
|
turns?: boolean | undefined;
|
|
9314
9314
|
} | undefined;
|
|
9315
|
-
nameSource?: "
|
|
9315
|
+
nameSource?: "room" | "profile" | undefined;
|
|
9316
9316
|
interruptRequested?: boolean | undefined;
|
|
9317
9317
|
acknowledgedRevision?: number | undefined;
|
|
9318
9318
|
}[];
|
|
@@ -9958,12 +9958,12 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
9958
9958
|
source: z.ZodEnum<["profile", "room"]>;
|
|
9959
9959
|
}, "strip", z.ZodTypeAny, {
|
|
9960
9960
|
name: string;
|
|
9961
|
-
source: "
|
|
9961
|
+
source: "room" | "profile";
|
|
9962
9962
|
participantId: string;
|
|
9963
9963
|
previousName: string;
|
|
9964
9964
|
}, {
|
|
9965
9965
|
name: string;
|
|
9966
|
-
source: "
|
|
9966
|
+
source: "room" | "profile";
|
|
9967
9967
|
participantId: string;
|
|
9968
9968
|
previousName: string;
|
|
9969
9969
|
}>;
|
|
@@ -9971,7 +9971,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
9971
9971
|
type: "participant.renamed";
|
|
9972
9972
|
payload: {
|
|
9973
9973
|
name: string;
|
|
9974
|
-
source: "
|
|
9974
|
+
source: "room" | "profile";
|
|
9975
9975
|
participantId: string;
|
|
9976
9976
|
previousName: string;
|
|
9977
9977
|
};
|
|
@@ -9979,7 +9979,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
9979
9979
|
type: "participant.renamed";
|
|
9980
9980
|
payload: {
|
|
9981
9981
|
name: string;
|
|
9982
|
-
source: "
|
|
9982
|
+
source: "room" | "profile";
|
|
9983
9983
|
participantId: string;
|
|
9984
9984
|
previousName: string;
|
|
9985
9985
|
};
|
|
@@ -11164,7 +11164,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
11164
11164
|
pause?: boolean | undefined;
|
|
11165
11165
|
turns?: boolean | undefined;
|
|
11166
11166
|
} | undefined;
|
|
11167
|
-
nameSource?: "
|
|
11167
|
+
nameSource?: "room" | "profile" | undefined;
|
|
11168
11168
|
interruptRequested?: boolean | undefined;
|
|
11169
11169
|
acknowledgedRevision?: number | undefined;
|
|
11170
11170
|
}[];
|
|
@@ -11307,7 +11307,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
11307
11307
|
type: "participant.renamed";
|
|
11308
11308
|
payload: {
|
|
11309
11309
|
name: string;
|
|
11310
|
-
source: "
|
|
11310
|
+
source: "room" | "profile";
|
|
11311
11311
|
participantId: string;
|
|
11312
11312
|
previousName: string;
|
|
11313
11313
|
};
|
|
@@ -11607,7 +11607,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
11607
11607
|
pause?: boolean | undefined;
|
|
11608
11608
|
turns?: boolean | undefined;
|
|
11609
11609
|
} | undefined;
|
|
11610
|
-
nameSource?: "
|
|
11610
|
+
nameSource?: "room" | "profile" | undefined;
|
|
11611
11611
|
interruptRequested?: boolean | undefined;
|
|
11612
11612
|
acknowledgedRevision?: number | undefined;
|
|
11613
11613
|
}[];
|
|
@@ -11750,7 +11750,7 @@ export declare const ExportResponse: z.ZodObject<{
|
|
|
11750
11750
|
type: "participant.renamed";
|
|
11751
11751
|
payload: {
|
|
11752
11752
|
name: string;
|
|
11753
|
-
source: "
|
|
11753
|
+
source: "room" | "profile";
|
|
11754
11754
|
participantId: string;
|
|
11755
11755
|
previousName: string;
|
|
11756
11756
|
};
|
package/dist/ids.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const ID_PREFIXES: {
|
|
|
10
10
|
readonly invite: "iv";
|
|
11
11
|
readonly attempt: "at";
|
|
12
12
|
readonly file: "fl";
|
|
13
|
+
readonly listing: "ls";
|
|
13
14
|
};
|
|
14
15
|
export type IdKind = keyof typeof ID_PREFIXES;
|
|
15
16
|
export declare function newId(kind: IdKind): string;
|
|
@@ -20,6 +21,7 @@ export declare const HandoverId: z.ZodString;
|
|
|
20
21
|
export declare const SessionId: z.ZodString;
|
|
21
22
|
export declare const AttemptId: z.ZodString;
|
|
22
23
|
export declare const FileId: z.ZodString;
|
|
24
|
+
export declare const ListingId: z.ZodString;
|
|
23
25
|
/** Generates a fresh invite code in canonical `XXXX-XXXX` form. */
|
|
24
26
|
export declare function newInviteCode(length?: 8 | 12): string;
|
|
25
27
|
/** Strips formatting and folds the characters Crockford treats as equivalent. Returns null when the result is not a well-formed code. */
|
package/dist/ids.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../src/ids.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,4EAA4E;AAC5E,eAAO,MAAM,aAAa,qCAAqC,CAAC;AAKhE,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../src/ids.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,4EAA4E;AAC5E,eAAO,MAAM,aAAa,qCAAqC,CAAC;AAKhE,eAAO,MAAM,WAAW;;;;;;;;;;CAA+I,CAAC;AAExK,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,WAAW,CAAC;AAS9C,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1C;AAMD,eAAO,MAAM,MAAM,aAAmB,CAAC;AACvC,eAAO,MAAM,aAAa,aAA0B,CAAC;AACrD,eAAO,MAAM,OAAO,aAAoB,CAAC;AACzC,eAAO,MAAM,UAAU,aAAuB,CAAC;AAC/C,eAAO,MAAM,SAAS,aAAsB,CAAC;AAC7C,eAAO,MAAM,SAAS,aAAsB,CAAC;AAC7C,eAAO,MAAM,MAAM,aAAmB,CAAC;AACvC,eAAO,MAAM,SAAS,aAAsB,CAAC;AAE7C,mEAAmE;AACnE,wBAAgB,aAAa,CAAC,MAAM,GAAE,CAAC,GAAG,EAAM,GAAG,MAAM,CAExD;AAED,yIAAyI;AACzI,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAWhE;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE3D"}
|
package/dist/ids.js
CHANGED
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
export const CODE_ALPHABET = '0123456789ABCDEFGHJKMNPQRSTVWXYZ';
|
|
5
5
|
const ID_BODY_LENGTH = 26;
|
|
6
6
|
const INVITE_CODE_LENGTH = 8;
|
|
7
|
-
export const ID_PREFIXES = { room: 'rm', participant: 'pt', event: 'ev', handover: 'ho', session: 'se', invite: 'iv', attempt: 'at', file: 'fl' };
|
|
7
|
+
export const ID_PREFIXES = { room: 'rm', participant: 'pt', event: 'ev', handover: 'ho', session: 'se', invite: 'iv', attempt: 'at', file: 'fl', listing: 'ls' };
|
|
8
8
|
function randomAlphabet(length) {
|
|
9
9
|
const bytes = new Uint8Array(length);
|
|
10
10
|
globalThis.crypto.getRandomValues(bytes);
|
|
@@ -24,6 +24,7 @@ export const HandoverId = idSchema('handover');
|
|
|
24
24
|
export const SessionId = idSchema('session');
|
|
25
25
|
export const AttemptId = idSchema('attempt');
|
|
26
26
|
export const FileId = idSchema('file');
|
|
27
|
+
export const ListingId = idSchema('listing');
|
|
27
28
|
/** Generates a fresh invite code in canonical `XXXX-XXXX` form. */
|
|
28
29
|
export function newInviteCode(length = 8) {
|
|
29
30
|
return formatInviteCode(randomAlphabet(length));
|
package/dist/ids.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../src/ids.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,4EAA4E;AAC5E,MAAM,CAAC,MAAM,aAAa,GAAG,kCAAkC,CAAC;AAEhE,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,WAAW,GAAG,EAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../src/ids.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,4EAA4E;AAC5E,MAAM,CAAC,MAAM,aAAa,GAAG,kCAAkC,CAAC;AAEhE,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,kBAAkB,GAAG,CAAC,CAAC;A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ceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC"}
|
package/dist/names.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ export declare const RenameSelfRequest: z.ZodObject<{
|
|
|
7
7
|
source: z.ZodDefault<z.ZodEnum<["profile", "room"]>>;
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
9
|
name: string;
|
|
10
|
-
source: "
|
|
10
|
+
source: "room" | "profile";
|
|
11
11
|
}, {
|
|
12
12
|
name: string;
|
|
13
|
-
source?: "
|
|
13
|
+
source?: "room" | "profile" | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type RenameSelfRequest = z.infer<typeof RenameSelfRequest>;
|
|
16
16
|
//# sourceMappingURL=names.d.ts.map
|
package/dist/records.d.ts
CHANGED
|
@@ -582,7 +582,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
582
582
|
pause?: boolean | undefined;
|
|
583
583
|
turns?: boolean | undefined;
|
|
584
584
|
} | undefined;
|
|
585
|
-
nameSource?: "
|
|
585
|
+
nameSource?: "room" | "profile" | undefined;
|
|
586
586
|
}, {
|
|
587
587
|
roomId: string;
|
|
588
588
|
participantId: string;
|
|
@@ -613,7 +613,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
613
613
|
pause?: boolean | undefined;
|
|
614
614
|
turns?: boolean | undefined;
|
|
615
615
|
} | undefined;
|
|
616
|
-
nameSource?: "
|
|
616
|
+
nameSource?: "room" | "profile" | undefined;
|
|
617
617
|
}>;
|
|
618
618
|
export type ParticipantRecord = z.infer<typeof ParticipantRecord>;
|
|
619
619
|
export declare const InviteRedemption: z.ZodEnum<["unused", "reserved", "redeemed"]>;
|
|
@@ -1009,7 +1009,7 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
1009
1009
|
pause?: boolean | undefined;
|
|
1010
1010
|
turns?: boolean | undefined;
|
|
1011
1011
|
} | undefined;
|
|
1012
|
-
nameSource?: "
|
|
1012
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1013
1013
|
interruptRequested?: boolean | undefined;
|
|
1014
1014
|
acknowledgedRevision?: number | undefined;
|
|
1015
1015
|
}, {
|
|
@@ -1042,7 +1042,7 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
1042
1042
|
pause?: boolean | undefined;
|
|
1043
1043
|
turns?: boolean | undefined;
|
|
1044
1044
|
} | undefined;
|
|
1045
|
-
nameSource?: "
|
|
1045
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1046
1046
|
interruptRequested?: boolean | undefined;
|
|
1047
1047
|
acknowledgedRevision?: number | undefined;
|
|
1048
1048
|
}>;
|
|
@@ -1183,7 +1183,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1183
1183
|
pause?: boolean | undefined;
|
|
1184
1184
|
turns?: boolean | undefined;
|
|
1185
1185
|
} | undefined;
|
|
1186
|
-
nameSource?: "
|
|
1186
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1187
1187
|
interruptRequested?: boolean | undefined;
|
|
1188
1188
|
acknowledgedRevision?: number | undefined;
|
|
1189
1189
|
}, {
|
|
@@ -1216,7 +1216,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1216
1216
|
pause?: boolean | undefined;
|
|
1217
1217
|
turns?: boolean | undefined;
|
|
1218
1218
|
} | undefined;
|
|
1219
|
-
nameSource?: "
|
|
1219
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1220
1220
|
interruptRequested?: boolean | undefined;
|
|
1221
1221
|
acknowledgedRevision?: number | undefined;
|
|
1222
1222
|
}>, "many">;
|
|
@@ -1440,7 +1440,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1440
1440
|
pause?: boolean | undefined;
|
|
1441
1441
|
turns?: boolean | undefined;
|
|
1442
1442
|
} | undefined;
|
|
1443
|
-
nameSource?: "
|
|
1443
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1444
1444
|
interruptRequested?: boolean | undefined;
|
|
1445
1445
|
acknowledgedRevision?: number | undefined;
|
|
1446
1446
|
}[];
|
|
@@ -1544,7 +1544,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1544
1544
|
pause?: boolean | undefined;
|
|
1545
1545
|
turns?: boolean | undefined;
|
|
1546
1546
|
} | undefined;
|
|
1547
|
-
nameSource?: "
|
|
1547
|
+
nameSource?: "room" | "profile" | undefined;
|
|
1548
1548
|
interruptRequested?: boolean | undefined;
|
|
1549
1549
|
acknowledgedRevision?: number | undefined;
|
|
1550
1550
|
}[];
|