@pairlobby/protocol 0.18.0 → 0.20.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/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +3 -1
- package/dist/errors.js.map +1 -1
- package/dist/events.d.ts +250 -2
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +4 -1
- package/dist/events.js.map +1 -1
- package/dist/files.d.ts +241 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +60 -0
- package/dist/files.js.map +1 -0
- package/dist/http.d.ts +605 -39
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +7 -1
- package/dist/http.js.map +1 -1
- 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/limits.d.ts +4 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js.map +1 -1
- package/dist/permissions.d.ts +10 -4
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +7 -7
- package/dist/permissions.js.map +1 -1
- package/dist/records.d.ts +80 -14
- package/dist/records.d.ts.map +1 -1
- package/dist/records.js +5 -0
- package/dist/records.js.map +1 -1
- package/dist/requests.d.ts +3 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js.map +1 -1
- package/dist/wire.d.ts +294 -26
- package/dist/wire.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/records.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
38
38
|
localJoin: z.ZodOptional<z.ZodBoolean>;
|
|
39
39
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
40
40
|
invite: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
attach: z.ZodOptional<z.ZodBoolean>;
|
|
41
42
|
rename: z.ZodOptional<z.ZodBoolean>;
|
|
42
43
|
lock: z.ZodOptional<z.ZodBoolean>;
|
|
43
44
|
mute: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -46,6 +47,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
46
47
|
turns: z.ZodOptional<z.ZodBoolean>;
|
|
47
48
|
}, "strip", z.ZodTypeAny, {
|
|
48
49
|
invite?: boolean | undefined;
|
|
50
|
+
attach?: boolean | undefined;
|
|
49
51
|
rename?: boolean | undefined;
|
|
50
52
|
lock?: boolean | undefined;
|
|
51
53
|
mute?: boolean | undefined;
|
|
@@ -54,6 +56,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
54
56
|
turns?: boolean | undefined;
|
|
55
57
|
}, {
|
|
56
58
|
invite?: boolean | undefined;
|
|
59
|
+
attach?: boolean | undefined;
|
|
57
60
|
rename?: boolean | undefined;
|
|
58
61
|
lock?: boolean | undefined;
|
|
59
62
|
mute?: boolean | undefined;
|
|
@@ -61,6 +64,8 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
61
64
|
pause?: boolean | undefined;
|
|
62
65
|
turns?: boolean | undefined;
|
|
63
66
|
}>>;
|
|
67
|
+
maxFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
maxRetainedFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
64
69
|
maxParticipants: z.ZodNumber;
|
|
65
70
|
maxEventPayloadBytes: z.ZodNumber;
|
|
66
71
|
maxRetainedEventBytes: z.ZodNumber;
|
|
@@ -79,6 +84,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
79
84
|
inviteLifetimeMs: number | null;
|
|
80
85
|
exportWindowMs: number;
|
|
81
86
|
connectTicketLifetimeMs: number;
|
|
87
|
+
maxFileBytes?: number | undefined;
|
|
82
88
|
autoClose?: {
|
|
83
89
|
mode: "off";
|
|
84
90
|
} | {
|
|
@@ -94,6 +100,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
94
100
|
localJoin?: boolean | undefined;
|
|
95
101
|
permissions?: {
|
|
96
102
|
invite?: boolean | undefined;
|
|
103
|
+
attach?: boolean | undefined;
|
|
97
104
|
rename?: boolean | undefined;
|
|
98
105
|
lock?: boolean | undefined;
|
|
99
106
|
mute?: boolean | undefined;
|
|
@@ -101,6 +108,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
101
108
|
pause?: boolean | undefined;
|
|
102
109
|
turns?: boolean | undefined;
|
|
103
110
|
} | undefined;
|
|
111
|
+
maxRetainedFileBytes?: number | undefined;
|
|
104
112
|
}, {
|
|
105
113
|
maxParticipants: number;
|
|
106
114
|
maxEventPayloadBytes: number;
|
|
@@ -110,6 +118,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
110
118
|
inviteLifetimeMs: number | null;
|
|
111
119
|
exportWindowMs: number;
|
|
112
120
|
connectTicketLifetimeMs: number;
|
|
121
|
+
maxFileBytes?: number | undefined;
|
|
113
122
|
autoClose?: {
|
|
114
123
|
mode: "off";
|
|
115
124
|
} | {
|
|
@@ -126,6 +135,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
126
135
|
localJoin?: boolean | undefined;
|
|
127
136
|
permissions?: {
|
|
128
137
|
invite?: boolean | undefined;
|
|
138
|
+
attach?: boolean | undefined;
|
|
129
139
|
rename?: boolean | undefined;
|
|
130
140
|
lock?: boolean | undefined;
|
|
131
141
|
mute?: boolean | undefined;
|
|
@@ -133,6 +143,7 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
133
143
|
pause?: boolean | undefined;
|
|
134
144
|
turns?: boolean | undefined;
|
|
135
145
|
} | undefined;
|
|
146
|
+
maxRetainedFileBytes?: number | undefined;
|
|
136
147
|
}>;
|
|
137
148
|
export declare const RoomRecord: z.ZodObject<{
|
|
138
149
|
roomId: z.ZodString;
|
|
@@ -180,6 +191,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
180
191
|
localJoin: z.ZodOptional<z.ZodBoolean>;
|
|
181
192
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
182
193
|
invite: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
+
attach: z.ZodOptional<z.ZodBoolean>;
|
|
183
195
|
rename: z.ZodOptional<z.ZodBoolean>;
|
|
184
196
|
lock: z.ZodOptional<z.ZodBoolean>;
|
|
185
197
|
mute: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -188,6 +200,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
188
200
|
turns: z.ZodOptional<z.ZodBoolean>;
|
|
189
201
|
}, "strip", z.ZodTypeAny, {
|
|
190
202
|
invite?: boolean | undefined;
|
|
203
|
+
attach?: boolean | undefined;
|
|
191
204
|
rename?: boolean | undefined;
|
|
192
205
|
lock?: boolean | undefined;
|
|
193
206
|
mute?: boolean | undefined;
|
|
@@ -196,6 +209,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
196
209
|
turns?: boolean | undefined;
|
|
197
210
|
}, {
|
|
198
211
|
invite?: boolean | undefined;
|
|
212
|
+
attach?: boolean | undefined;
|
|
199
213
|
rename?: boolean | undefined;
|
|
200
214
|
lock?: boolean | undefined;
|
|
201
215
|
mute?: boolean | undefined;
|
|
@@ -203,6 +217,8 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
203
217
|
pause?: boolean | undefined;
|
|
204
218
|
turns?: boolean | undefined;
|
|
205
219
|
}>>;
|
|
220
|
+
maxFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
maxRetainedFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
206
222
|
maxParticipants: z.ZodNumber;
|
|
207
223
|
maxEventPayloadBytes: z.ZodNumber;
|
|
208
224
|
maxRetainedEventBytes: z.ZodNumber;
|
|
@@ -221,6 +237,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
221
237
|
inviteLifetimeMs: number | null;
|
|
222
238
|
exportWindowMs: number;
|
|
223
239
|
connectTicketLifetimeMs: number;
|
|
240
|
+
maxFileBytes?: number | undefined;
|
|
224
241
|
autoClose?: {
|
|
225
242
|
mode: "off";
|
|
226
243
|
} | {
|
|
@@ -236,6 +253,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
236
253
|
localJoin?: boolean | undefined;
|
|
237
254
|
permissions?: {
|
|
238
255
|
invite?: boolean | undefined;
|
|
256
|
+
attach?: boolean | undefined;
|
|
239
257
|
rename?: boolean | undefined;
|
|
240
258
|
lock?: boolean | undefined;
|
|
241
259
|
mute?: boolean | undefined;
|
|
@@ -243,6 +261,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
243
261
|
pause?: boolean | undefined;
|
|
244
262
|
turns?: boolean | undefined;
|
|
245
263
|
} | undefined;
|
|
264
|
+
maxRetainedFileBytes?: number | undefined;
|
|
246
265
|
}, {
|
|
247
266
|
maxParticipants: number;
|
|
248
267
|
maxEventPayloadBytes: number;
|
|
@@ -252,6 +271,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
252
271
|
inviteLifetimeMs: number | null;
|
|
253
272
|
exportWindowMs: number;
|
|
254
273
|
connectTicketLifetimeMs: number;
|
|
274
|
+
maxFileBytes?: number | undefined;
|
|
255
275
|
autoClose?: {
|
|
256
276
|
mode: "off";
|
|
257
277
|
} | {
|
|
@@ -268,6 +288,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
268
288
|
localJoin?: boolean | undefined;
|
|
269
289
|
permissions?: {
|
|
270
290
|
invite?: boolean | undefined;
|
|
291
|
+
attach?: boolean | undefined;
|
|
271
292
|
rename?: boolean | undefined;
|
|
272
293
|
lock?: boolean | undefined;
|
|
273
294
|
mute?: boolean | undefined;
|
|
@@ -275,6 +296,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
275
296
|
pause?: boolean | undefined;
|
|
276
297
|
turns?: boolean | undefined;
|
|
277
298
|
} | undefined;
|
|
299
|
+
maxRetainedFileBytes?: number | undefined;
|
|
278
300
|
}>;
|
|
279
301
|
controllerCredentialHash: z.ZodString;
|
|
280
302
|
/** Bumped by every control request so a late acknowledgement cannot overwrite newer state. */
|
|
@@ -296,9 +318,9 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
296
318
|
retainedEvents: z.ZodNumber;
|
|
297
319
|
}, "strip", z.ZodTypeAny, {
|
|
298
320
|
name: string;
|
|
299
|
-
expiresAt: number | null;
|
|
300
321
|
roomId: string;
|
|
301
322
|
createdAt: number;
|
|
323
|
+
expiresAt: number | null;
|
|
302
324
|
closedAt: number | null;
|
|
303
325
|
lifecycle: "open" | "closed" | "expired" | "deleted";
|
|
304
326
|
policy: {
|
|
@@ -311,6 +333,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
311
333
|
inviteLifetimeMs: number | null;
|
|
312
334
|
exportWindowMs: number;
|
|
313
335
|
connectTicketLifetimeMs: number;
|
|
336
|
+
maxFileBytes?: number | undefined;
|
|
314
337
|
autoClose?: {
|
|
315
338
|
mode: "off";
|
|
316
339
|
} | {
|
|
@@ -326,6 +349,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
326
349
|
localJoin?: boolean | undefined;
|
|
327
350
|
permissions?: {
|
|
328
351
|
invite?: boolean | undefined;
|
|
352
|
+
attach?: boolean | undefined;
|
|
329
353
|
rename?: boolean | undefined;
|
|
330
354
|
lock?: boolean | undefined;
|
|
331
355
|
mute?: boolean | undefined;
|
|
@@ -333,6 +357,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
333
357
|
pause?: boolean | undefined;
|
|
334
358
|
turns?: boolean | undefined;
|
|
335
359
|
} | undefined;
|
|
360
|
+
maxRetainedFileBytes?: number | undefined;
|
|
336
361
|
};
|
|
337
362
|
controllerCredentialHash: string;
|
|
338
363
|
controlRevision: number;
|
|
@@ -351,9 +376,9 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
351
376
|
closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
|
|
352
377
|
}, {
|
|
353
378
|
name: string;
|
|
354
|
-
expiresAt: number | null;
|
|
355
379
|
roomId: string;
|
|
356
380
|
createdAt: number;
|
|
381
|
+
expiresAt: number | null;
|
|
357
382
|
closedAt: number | null;
|
|
358
383
|
lifecycle: "open" | "closed" | "expired" | "deleted";
|
|
359
384
|
policy: {
|
|
@@ -365,6 +390,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
365
390
|
inviteLifetimeMs: number | null;
|
|
366
391
|
exportWindowMs: number;
|
|
367
392
|
connectTicketLifetimeMs: number;
|
|
393
|
+
maxFileBytes?: number | undefined;
|
|
368
394
|
autoClose?: {
|
|
369
395
|
mode: "off";
|
|
370
396
|
} | {
|
|
@@ -381,6 +407,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
381
407
|
localJoin?: boolean | undefined;
|
|
382
408
|
permissions?: {
|
|
383
409
|
invite?: boolean | undefined;
|
|
410
|
+
attach?: boolean | undefined;
|
|
384
411
|
rename?: boolean | undefined;
|
|
385
412
|
lock?: boolean | undefined;
|
|
386
413
|
mute?: boolean | undefined;
|
|
@@ -388,6 +415,7 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
388
415
|
pause?: boolean | undefined;
|
|
389
416
|
turns?: boolean | undefined;
|
|
390
417
|
} | undefined;
|
|
418
|
+
maxRetainedFileBytes?: number | undefined;
|
|
391
419
|
};
|
|
392
420
|
controllerCredentialHash: string;
|
|
393
421
|
controlRevision: number;
|
|
@@ -443,6 +471,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
443
471
|
/** This member's own allowances and refusals, ahead of the room's. Dropped when they stop being a member. */
|
|
444
472
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
445
473
|
invite: z.ZodOptional<z.ZodBoolean>;
|
|
474
|
+
attach: z.ZodOptional<z.ZodBoolean>;
|
|
446
475
|
rename: z.ZodOptional<z.ZodBoolean>;
|
|
447
476
|
lock: z.ZodOptional<z.ZodBoolean>;
|
|
448
477
|
mute: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -451,6 +480,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
451
480
|
turns: z.ZodOptional<z.ZodBoolean>;
|
|
452
481
|
}, "strip", z.ZodTypeAny, {
|
|
453
482
|
invite?: boolean | undefined;
|
|
483
|
+
attach?: boolean | undefined;
|
|
454
484
|
rename?: boolean | undefined;
|
|
455
485
|
lock?: boolean | undefined;
|
|
456
486
|
mute?: boolean | undefined;
|
|
@@ -459,6 +489,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
459
489
|
turns?: boolean | undefined;
|
|
460
490
|
}, {
|
|
461
491
|
invite?: boolean | undefined;
|
|
492
|
+
attach?: boolean | undefined;
|
|
462
493
|
rename?: boolean | undefined;
|
|
463
494
|
lock?: boolean | undefined;
|
|
464
495
|
mute?: boolean | undefined;
|
|
@@ -467,6 +498,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
467
498
|
turns?: boolean | undefined;
|
|
468
499
|
}>>;
|
|
469
500
|
}, "strip", z.ZodTypeAny, {
|
|
501
|
+
roomId: string;
|
|
470
502
|
participantId: string;
|
|
471
503
|
displayName: string;
|
|
472
504
|
kind: "agent" | "human";
|
|
@@ -478,7 +510,6 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
478
510
|
runtime?: string | undefined;
|
|
479
511
|
runtimeVersion?: string | undefined;
|
|
480
512
|
} | null;
|
|
481
|
-
roomId: string;
|
|
482
513
|
sessionId: string | null;
|
|
483
514
|
credentialHash: string;
|
|
484
515
|
joinedAt: number;
|
|
@@ -487,6 +518,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
487
518
|
muted?: boolean | undefined;
|
|
488
519
|
permissions?: {
|
|
489
520
|
invite?: boolean | undefined;
|
|
521
|
+
attach?: boolean | undefined;
|
|
490
522
|
rename?: boolean | undefined;
|
|
491
523
|
lock?: boolean | undefined;
|
|
492
524
|
mute?: boolean | undefined;
|
|
@@ -496,6 +528,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
496
528
|
} | undefined;
|
|
497
529
|
nameSource?: "profile" | "room" | undefined;
|
|
498
530
|
}, {
|
|
531
|
+
roomId: string;
|
|
499
532
|
participantId: string;
|
|
500
533
|
displayName: string;
|
|
501
534
|
kind: "agent" | "human";
|
|
@@ -507,7 +540,6 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
507
540
|
runtime?: string | undefined;
|
|
508
541
|
runtimeVersion?: string | undefined;
|
|
509
542
|
} | null;
|
|
510
|
-
roomId: string;
|
|
511
543
|
sessionId: string | null;
|
|
512
544
|
credentialHash: string;
|
|
513
545
|
joinedAt: number;
|
|
@@ -516,6 +548,7 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
516
548
|
muted?: boolean | undefined;
|
|
517
549
|
permissions?: {
|
|
518
550
|
invite?: boolean | undefined;
|
|
551
|
+
attach?: boolean | undefined;
|
|
519
552
|
rename?: boolean | undefined;
|
|
520
553
|
lock?: boolean | undefined;
|
|
521
554
|
mute?: boolean | undefined;
|
|
@@ -551,11 +584,11 @@ export declare const InviteRecord: z.ZodObject<{
|
|
|
551
584
|
/** Tombstone horizon: a consumed code stays unclaimable by anyone else until this time. */
|
|
552
585
|
recoverableUntil: z.ZodNullable<z.ZodNumber>;
|
|
553
586
|
}, "strip", z.ZodTypeAny, {
|
|
587
|
+
roomId: string;
|
|
588
|
+
createdAt: number;
|
|
554
589
|
role: "controller" | "guest" | "member";
|
|
555
590
|
expiresAt: number | null;
|
|
556
591
|
state: "unused" | "reserved" | "redeemed";
|
|
557
|
-
roomId: string;
|
|
558
|
-
createdAt: number;
|
|
559
592
|
digest: string;
|
|
560
593
|
reusable: boolean;
|
|
561
594
|
boundAttemptId: string | null;
|
|
@@ -564,11 +597,11 @@ export declare const InviteRecord: z.ZodObject<{
|
|
|
564
597
|
recoverableUntil: number | null;
|
|
565
598
|
defaultName?: string | undefined;
|
|
566
599
|
}, {
|
|
600
|
+
roomId: string;
|
|
601
|
+
createdAt: number;
|
|
567
602
|
role: "controller" | "guest" | "member";
|
|
568
603
|
expiresAt: number | null;
|
|
569
604
|
state: "unused" | "reserved" | "redeemed";
|
|
570
|
-
roomId: string;
|
|
571
|
-
createdAt: number;
|
|
572
605
|
digest: string;
|
|
573
606
|
boundAttemptId: string | null;
|
|
574
607
|
boundCredentialHash: string | null;
|
|
@@ -722,6 +755,7 @@ export declare const HandoverRecord: z.ZodObject<{
|
|
|
722
755
|
resolvedEventId: z.ZodNullable<z.ZodString>;
|
|
723
756
|
resolvedAt: z.ZodNullable<z.ZodNumber>;
|
|
724
757
|
}, "strip", z.ZodTypeAny, {
|
|
758
|
+
roomId: string;
|
|
725
759
|
handoverId: string;
|
|
726
760
|
revision: number;
|
|
727
761
|
document: {
|
|
@@ -749,13 +783,13 @@ export declare const HandoverRecord: z.ZodObject<{
|
|
|
749
783
|
body: string;
|
|
750
784
|
};
|
|
751
785
|
state: "offered" | "accepted" | "declined";
|
|
752
|
-
roomId: string;
|
|
753
786
|
senderId: string;
|
|
754
787
|
recipientId: string;
|
|
755
788
|
offeredEventId: string;
|
|
756
789
|
resolvedEventId: string | null;
|
|
757
790
|
resolvedAt: number | null;
|
|
758
791
|
}, {
|
|
792
|
+
roomId: string;
|
|
759
793
|
handoverId: string;
|
|
760
794
|
revision: number;
|
|
761
795
|
document: {
|
|
@@ -783,7 +817,6 @@ export declare const HandoverRecord: z.ZodObject<{
|
|
|
783
817
|
body: string;
|
|
784
818
|
};
|
|
785
819
|
state: "offered" | "accepted" | "declined";
|
|
786
|
-
roomId: string;
|
|
787
820
|
senderId: string;
|
|
788
821
|
recipientId: string;
|
|
789
822
|
offeredEventId: string;
|
|
@@ -803,9 +836,9 @@ export declare const ControlRecord: z.ZodObject<{
|
|
|
803
836
|
acknowledgedOutcome: z.ZodNullable<z.ZodEnum<["pause_requested", "paused_between_turns", "current_turn_cancelled", "tool_cancellation_unknown", "resumed", "unsupported", "disconnected"]>>;
|
|
804
837
|
acknowledgedAt: z.ZodNullable<z.ZodNumber>;
|
|
805
838
|
}, "strip", z.ZodTypeAny, {
|
|
839
|
+
roomId: string;
|
|
806
840
|
revision: number;
|
|
807
841
|
targetParticipantId: string;
|
|
808
|
-
roomId: string;
|
|
809
842
|
paused: boolean;
|
|
810
843
|
requestedAt: number;
|
|
811
844
|
acknowledgedRevision: number;
|
|
@@ -813,9 +846,9 @@ export declare const ControlRecord: z.ZodObject<{
|
|
|
813
846
|
acknowledgedAt: number | null;
|
|
814
847
|
interruptRequested?: boolean | undefined;
|
|
815
848
|
}, {
|
|
849
|
+
roomId: string;
|
|
816
850
|
revision: number;
|
|
817
851
|
targetParticipantId: string;
|
|
818
|
-
roomId: string;
|
|
819
852
|
paused: boolean;
|
|
820
853
|
requestedAt: number;
|
|
821
854
|
acknowledgedRevision: number;
|
|
@@ -857,6 +890,7 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
857
890
|
muted: z.ZodOptional<z.ZodBoolean>;
|
|
858
891
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
859
892
|
invite: z.ZodOptional<z.ZodBoolean>;
|
|
893
|
+
attach: z.ZodOptional<z.ZodBoolean>;
|
|
860
894
|
rename: z.ZodOptional<z.ZodBoolean>;
|
|
861
895
|
lock: z.ZodOptional<z.ZodBoolean>;
|
|
862
896
|
mute: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -865,6 +899,7 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
865
899
|
turns: z.ZodOptional<z.ZodBoolean>;
|
|
866
900
|
}, "strip", z.ZodTypeAny, {
|
|
867
901
|
invite?: boolean | undefined;
|
|
902
|
+
attach?: boolean | undefined;
|
|
868
903
|
rename?: boolean | undefined;
|
|
869
904
|
lock?: boolean | undefined;
|
|
870
905
|
mute?: boolean | undefined;
|
|
@@ -873,6 +908,7 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
873
908
|
turns?: boolean | undefined;
|
|
874
909
|
}, {
|
|
875
910
|
invite?: boolean | undefined;
|
|
911
|
+
attach?: boolean | undefined;
|
|
876
912
|
rename?: boolean | undefined;
|
|
877
913
|
lock?: boolean | undefined;
|
|
878
914
|
mute?: boolean | undefined;
|
|
@@ -906,6 +942,7 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
906
942
|
muted?: boolean | undefined;
|
|
907
943
|
permissions?: {
|
|
908
944
|
invite?: boolean | undefined;
|
|
945
|
+
attach?: boolean | undefined;
|
|
909
946
|
rename?: boolean | undefined;
|
|
910
947
|
lock?: boolean | undefined;
|
|
911
948
|
mute?: boolean | undefined;
|
|
@@ -937,6 +974,7 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
937
974
|
muted?: boolean | undefined;
|
|
938
975
|
permissions?: {
|
|
939
976
|
invite?: boolean | undefined;
|
|
977
|
+
attach?: boolean | undefined;
|
|
940
978
|
rename?: boolean | undefined;
|
|
941
979
|
lock?: boolean | undefined;
|
|
942
980
|
mute?: boolean | undefined;
|
|
@@ -965,6 +1003,8 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
965
1003
|
adminRolesSupported: z.ZodOptional<z.ZodBoolean>;
|
|
966
1004
|
/** The relay enforces per-command permissions for members and accepts changes to them. */
|
|
967
1005
|
permissionsSupported: z.ZodOptional<z.ZodBoolean>;
|
|
1006
|
+
/** The relay stores files, so messages may carry attachments. */
|
|
1007
|
+
filesSupported: z.ZodOptional<z.ZodBoolean>;
|
|
968
1008
|
inviteRoleSupported: z.ZodOptional<z.ZodBoolean>;
|
|
969
1009
|
autoCloseSupported: z.ZodOptional<z.ZodBoolean>;
|
|
970
1010
|
interruptSupported: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1017,6 +1057,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1017
1057
|
muted: z.ZodOptional<z.ZodBoolean>;
|
|
1018
1058
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
1019
1059
|
invite: z.ZodOptional<z.ZodBoolean>;
|
|
1060
|
+
attach: z.ZodOptional<z.ZodBoolean>;
|
|
1020
1061
|
rename: z.ZodOptional<z.ZodBoolean>;
|
|
1021
1062
|
lock: z.ZodOptional<z.ZodBoolean>;
|
|
1022
1063
|
mute: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1025,6 +1066,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1025
1066
|
turns: z.ZodOptional<z.ZodBoolean>;
|
|
1026
1067
|
}, "strip", z.ZodTypeAny, {
|
|
1027
1068
|
invite?: boolean | undefined;
|
|
1069
|
+
attach?: boolean | undefined;
|
|
1028
1070
|
rename?: boolean | undefined;
|
|
1029
1071
|
lock?: boolean | undefined;
|
|
1030
1072
|
mute?: boolean | undefined;
|
|
@@ -1033,6 +1075,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1033
1075
|
turns?: boolean | undefined;
|
|
1034
1076
|
}, {
|
|
1035
1077
|
invite?: boolean | undefined;
|
|
1078
|
+
attach?: boolean | undefined;
|
|
1036
1079
|
rename?: boolean | undefined;
|
|
1037
1080
|
lock?: boolean | undefined;
|
|
1038
1081
|
mute?: boolean | undefined;
|
|
@@ -1066,6 +1109,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1066
1109
|
muted?: boolean | undefined;
|
|
1067
1110
|
permissions?: {
|
|
1068
1111
|
invite?: boolean | undefined;
|
|
1112
|
+
attach?: boolean | undefined;
|
|
1069
1113
|
rename?: boolean | undefined;
|
|
1070
1114
|
lock?: boolean | undefined;
|
|
1071
1115
|
mute?: boolean | undefined;
|
|
@@ -1097,6 +1141,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1097
1141
|
muted?: boolean | undefined;
|
|
1098
1142
|
permissions?: {
|
|
1099
1143
|
invite?: boolean | undefined;
|
|
1144
|
+
attach?: boolean | undefined;
|
|
1100
1145
|
rename?: boolean | undefined;
|
|
1101
1146
|
lock?: boolean | undefined;
|
|
1102
1147
|
mute?: boolean | undefined;
|
|
@@ -1145,6 +1190,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1145
1190
|
localJoin: z.ZodOptional<z.ZodBoolean>;
|
|
1146
1191
|
permissions: z.ZodOptional<z.ZodObject<{
|
|
1147
1192
|
invite: z.ZodOptional<z.ZodBoolean>;
|
|
1193
|
+
attach: z.ZodOptional<z.ZodBoolean>;
|
|
1148
1194
|
rename: z.ZodOptional<z.ZodBoolean>;
|
|
1149
1195
|
lock: z.ZodOptional<z.ZodBoolean>;
|
|
1150
1196
|
mute: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1153,6 +1199,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1153
1199
|
turns: z.ZodOptional<z.ZodBoolean>;
|
|
1154
1200
|
}, "strip", z.ZodTypeAny, {
|
|
1155
1201
|
invite?: boolean | undefined;
|
|
1202
|
+
attach?: boolean | undefined;
|
|
1156
1203
|
rename?: boolean | undefined;
|
|
1157
1204
|
lock?: boolean | undefined;
|
|
1158
1205
|
mute?: boolean | undefined;
|
|
@@ -1161,6 +1208,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1161
1208
|
turns?: boolean | undefined;
|
|
1162
1209
|
}, {
|
|
1163
1210
|
invite?: boolean | undefined;
|
|
1211
|
+
attach?: boolean | undefined;
|
|
1164
1212
|
rename?: boolean | undefined;
|
|
1165
1213
|
lock?: boolean | undefined;
|
|
1166
1214
|
mute?: boolean | undefined;
|
|
@@ -1168,6 +1216,8 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1168
1216
|
pause?: boolean | undefined;
|
|
1169
1217
|
turns?: boolean | undefined;
|
|
1170
1218
|
}>>;
|
|
1219
|
+
maxFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1220
|
+
maxRetainedFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1171
1221
|
maxParticipants: z.ZodNumber;
|
|
1172
1222
|
maxEventPayloadBytes: z.ZodNumber;
|
|
1173
1223
|
maxRetainedEventBytes: z.ZodNumber;
|
|
@@ -1186,6 +1236,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1186
1236
|
inviteLifetimeMs: number | null;
|
|
1187
1237
|
exportWindowMs: number;
|
|
1188
1238
|
connectTicketLifetimeMs: number;
|
|
1239
|
+
maxFileBytes?: number | undefined;
|
|
1189
1240
|
autoClose?: {
|
|
1190
1241
|
mode: "off";
|
|
1191
1242
|
} | {
|
|
@@ -1201,6 +1252,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1201
1252
|
localJoin?: boolean | undefined;
|
|
1202
1253
|
permissions?: {
|
|
1203
1254
|
invite?: boolean | undefined;
|
|
1255
|
+
attach?: boolean | undefined;
|
|
1204
1256
|
rename?: boolean | undefined;
|
|
1205
1257
|
lock?: boolean | undefined;
|
|
1206
1258
|
mute?: boolean | undefined;
|
|
@@ -1208,6 +1260,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1208
1260
|
pause?: boolean | undefined;
|
|
1209
1261
|
turns?: boolean | undefined;
|
|
1210
1262
|
} | undefined;
|
|
1263
|
+
maxRetainedFileBytes?: number | undefined;
|
|
1211
1264
|
}, {
|
|
1212
1265
|
maxParticipants: number;
|
|
1213
1266
|
maxEventPayloadBytes: number;
|
|
@@ -1217,6 +1270,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1217
1270
|
inviteLifetimeMs: number | null;
|
|
1218
1271
|
exportWindowMs: number;
|
|
1219
1272
|
connectTicketLifetimeMs: number;
|
|
1273
|
+
maxFileBytes?: number | undefined;
|
|
1220
1274
|
autoClose?: {
|
|
1221
1275
|
mode: "off";
|
|
1222
1276
|
} | {
|
|
@@ -1233,6 +1287,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1233
1287
|
localJoin?: boolean | undefined;
|
|
1234
1288
|
permissions?: {
|
|
1235
1289
|
invite?: boolean | undefined;
|
|
1290
|
+
attach?: boolean | undefined;
|
|
1236
1291
|
rename?: boolean | undefined;
|
|
1237
1292
|
lock?: boolean | undefined;
|
|
1238
1293
|
mute?: boolean | undefined;
|
|
@@ -1240,12 +1295,13 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1240
1295
|
pause?: boolean | undefined;
|
|
1241
1296
|
turns?: boolean | undefined;
|
|
1242
1297
|
} | undefined;
|
|
1298
|
+
maxRetainedFileBytes?: number | undefined;
|
|
1243
1299
|
}>;
|
|
1244
1300
|
}, "strip", z.ZodTypeAny, {
|
|
1245
1301
|
name: string;
|
|
1246
|
-
expiresAt: number | null;
|
|
1247
1302
|
roomId: string;
|
|
1248
1303
|
createdAt: number;
|
|
1304
|
+
expiresAt: number | null;
|
|
1249
1305
|
closedAt: number | null;
|
|
1250
1306
|
lifecycle: "open" | "closed" | "expired" | "deleted";
|
|
1251
1307
|
policy: {
|
|
@@ -1258,6 +1314,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1258
1314
|
inviteLifetimeMs: number | null;
|
|
1259
1315
|
exportWindowMs: number;
|
|
1260
1316
|
connectTicketLifetimeMs: number;
|
|
1317
|
+
maxFileBytes?: number | undefined;
|
|
1261
1318
|
autoClose?: {
|
|
1262
1319
|
mode: "off";
|
|
1263
1320
|
} | {
|
|
@@ -1273,6 +1330,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1273
1330
|
localJoin?: boolean | undefined;
|
|
1274
1331
|
permissions?: {
|
|
1275
1332
|
invite?: boolean | undefined;
|
|
1333
|
+
attach?: boolean | undefined;
|
|
1276
1334
|
rename?: boolean | undefined;
|
|
1277
1335
|
lock?: boolean | undefined;
|
|
1278
1336
|
mute?: boolean | undefined;
|
|
@@ -1280,6 +1338,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1280
1338
|
pause?: boolean | undefined;
|
|
1281
1339
|
turns?: boolean | undefined;
|
|
1282
1340
|
} | undefined;
|
|
1341
|
+
maxRetainedFileBytes?: number | undefined;
|
|
1283
1342
|
};
|
|
1284
1343
|
controlRevision: number;
|
|
1285
1344
|
latestSeq: number;
|
|
@@ -1305,6 +1364,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1305
1364
|
muted?: boolean | undefined;
|
|
1306
1365
|
permissions?: {
|
|
1307
1366
|
invite?: boolean | undefined;
|
|
1367
|
+
attach?: boolean | undefined;
|
|
1308
1368
|
rename?: boolean | undefined;
|
|
1309
1369
|
lock?: boolean | undefined;
|
|
1310
1370
|
mute?: boolean | undefined;
|
|
@@ -1331,6 +1391,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1331
1391
|
renameSelfSupported?: boolean | undefined;
|
|
1332
1392
|
adminRolesSupported?: boolean | undefined;
|
|
1333
1393
|
permissionsSupported?: boolean | undefined;
|
|
1394
|
+
filesSupported?: boolean | undefined;
|
|
1334
1395
|
inviteRoleSupported?: boolean | undefined;
|
|
1335
1396
|
autoCloseSupported?: boolean | undefined;
|
|
1336
1397
|
interruptSupported?: boolean | undefined;
|
|
@@ -1339,9 +1400,9 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1339
1400
|
workingStatusSupported?: boolean | undefined;
|
|
1340
1401
|
}, {
|
|
1341
1402
|
name: string;
|
|
1342
|
-
expiresAt: number | null;
|
|
1343
1403
|
roomId: string;
|
|
1344
1404
|
createdAt: number;
|
|
1405
|
+
expiresAt: number | null;
|
|
1345
1406
|
closedAt: number | null;
|
|
1346
1407
|
lifecycle: "open" | "closed" | "expired" | "deleted";
|
|
1347
1408
|
policy: {
|
|
@@ -1353,6 +1414,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1353
1414
|
inviteLifetimeMs: number | null;
|
|
1354
1415
|
exportWindowMs: number;
|
|
1355
1416
|
connectTicketLifetimeMs: number;
|
|
1417
|
+
maxFileBytes?: number | undefined;
|
|
1356
1418
|
autoClose?: {
|
|
1357
1419
|
mode: "off";
|
|
1358
1420
|
} | {
|
|
@@ -1369,6 +1431,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1369
1431
|
localJoin?: boolean | undefined;
|
|
1370
1432
|
permissions?: {
|
|
1371
1433
|
invite?: boolean | undefined;
|
|
1434
|
+
attach?: boolean | undefined;
|
|
1372
1435
|
rename?: boolean | undefined;
|
|
1373
1436
|
lock?: boolean | undefined;
|
|
1374
1437
|
mute?: boolean | undefined;
|
|
@@ -1376,6 +1439,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1376
1439
|
pause?: boolean | undefined;
|
|
1377
1440
|
turns?: boolean | undefined;
|
|
1378
1441
|
} | undefined;
|
|
1442
|
+
maxRetainedFileBytes?: number | undefined;
|
|
1379
1443
|
};
|
|
1380
1444
|
controlRevision: number;
|
|
1381
1445
|
latestSeq: number;
|
|
@@ -1401,6 +1465,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1401
1465
|
muted?: boolean | undefined;
|
|
1402
1466
|
permissions?: {
|
|
1403
1467
|
invite?: boolean | undefined;
|
|
1468
|
+
attach?: boolean | undefined;
|
|
1404
1469
|
rename?: boolean | undefined;
|
|
1405
1470
|
lock?: boolean | undefined;
|
|
1406
1471
|
mute?: boolean | undefined;
|
|
@@ -1427,6 +1492,7 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1427
1492
|
renameSelfSupported?: boolean | undefined;
|
|
1428
1493
|
adminRolesSupported?: boolean | undefined;
|
|
1429
1494
|
permissionsSupported?: boolean | undefined;
|
|
1495
|
+
filesSupported?: boolean | undefined;
|
|
1430
1496
|
inviteRoleSupported?: boolean | undefined;
|
|
1431
1497
|
autoCloseSupported?: boolean | undefined;
|
|
1432
1498
|
interruptSupported?: boolean | undefined;
|
package/dist/records.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../src/records.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../src/records.ts"],"names":[],"mappings":"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"}
|
package/dist/records.js
CHANGED
|
@@ -7,6 +7,7 @@ import { AttemptId, EventId, HandoverId, ParticipantId, RoomId, SessionId } from
|
|
|
7
7
|
import { HandoverDocument, HandoverState } from './handover.js';
|
|
8
8
|
import { AutoClosePolicySchema, CloseReasonSchema } from './auto-close.js';
|
|
9
9
|
import { PermissionSet } from './permissions.js';
|
|
10
|
+
import { ABSOLUTE_MAX_FILE_BYTES } from './files.js';
|
|
10
11
|
export const RoomLifecycle = z.enum(['open', 'closed', 'expired', 'deleted']);
|
|
11
12
|
export const RoomPolicySchema = z.object({
|
|
12
13
|
joinPolicy: z.enum(['invite_only', 'open_to_guests']).default('invite_only'),
|
|
@@ -14,6 +15,8 @@ export const RoomPolicySchema = z.object({
|
|
|
14
15
|
autoClose: AutoClosePolicySchema.optional(),
|
|
15
16
|
localJoin: z.boolean().optional(),
|
|
16
17
|
permissions: PermissionSet.optional(),
|
|
18
|
+
maxFileBytes: z.number().int().nonnegative().max(ABSOLUTE_MAX_FILE_BYTES).optional(),
|
|
19
|
+
maxRetainedFileBytes: z.number().int().nonnegative().optional(),
|
|
17
20
|
maxParticipants: z.number().int().min(2),
|
|
18
21
|
maxEventPayloadBytes: z.number().int().min(1),
|
|
19
22
|
maxRetainedEventBytes: z.number().int().min(1),
|
|
@@ -156,6 +159,8 @@ export const RoomSnapshot = z.object({
|
|
|
156
159
|
adminRolesSupported: z.boolean().optional(),
|
|
157
160
|
/** The relay enforces per-command permissions for members and accepts changes to them. */
|
|
158
161
|
permissionsSupported: z.boolean().optional(),
|
|
162
|
+
/** The relay stores files, so messages may carry attachments. */
|
|
163
|
+
filesSupported: z.boolean().optional(),
|
|
159
164
|
inviteRoleSupported: z.boolean().optional(),
|
|
160
165
|
autoCloseSupported: z.boolean().optional(),
|
|
161
166
|
interruptSupported: z.boolean().optional(),
|