@pairlobby/protocol 0.15.0 → 0.17.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/events.d.ts +574 -10
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +4 -1
- package/dist/events.js.map +1 -1
- package/dist/http.d.ts +2129 -28
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +7 -0
- package/dist/http.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 -1
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +2 -0
- package/dist/limits.js.map +1 -1
- package/dist/permissions.d.ts +78 -0
- package/dist/permissions.d.ts.map +1 -0
- package/dist/permissions.js +65 -0
- package/dist/permissions.js.map +1 -0
- package/dist/records.d.ts +321 -0
- package/dist/records.d.ts.map +1 -1
- package/dist/records.js +10 -1
- package/dist/records.js.map +1 -1
- package/dist/requests.d.ts +16 -3
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +9 -1
- package/dist/requests.js.map +1 -1
- package/dist/wire.d.ts +1098 -14
- package/dist/wire.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/records.d.ts
CHANGED
|
@@ -36,6 +36,31 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
36
36
|
mode: "agents_and_guests_left";
|
|
37
37
|
}>]>>;
|
|
38
38
|
localJoin: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
invite: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
rename: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
lock: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
mute: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
kick: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
pause: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
turns: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
invite?: boolean | undefined;
|
|
49
|
+
rename?: boolean | undefined;
|
|
50
|
+
lock?: boolean | undefined;
|
|
51
|
+
mute?: boolean | undefined;
|
|
52
|
+
kick?: boolean | undefined;
|
|
53
|
+
pause?: boolean | undefined;
|
|
54
|
+
turns?: boolean | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
invite?: boolean | undefined;
|
|
57
|
+
rename?: boolean | undefined;
|
|
58
|
+
lock?: boolean | undefined;
|
|
59
|
+
mute?: boolean | undefined;
|
|
60
|
+
kick?: boolean | undefined;
|
|
61
|
+
pause?: boolean | undefined;
|
|
62
|
+
turns?: boolean | undefined;
|
|
63
|
+
}>>;
|
|
39
64
|
maxParticipants: z.ZodNumber;
|
|
40
65
|
maxEventPayloadBytes: z.ZodNumber;
|
|
41
66
|
maxRetainedEventBytes: z.ZodNumber;
|
|
@@ -67,6 +92,15 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
67
92
|
} | undefined;
|
|
68
93
|
inviteRole?: "guest" | "member" | undefined;
|
|
69
94
|
localJoin?: boolean | undefined;
|
|
95
|
+
permissions?: {
|
|
96
|
+
invite?: boolean | undefined;
|
|
97
|
+
rename?: boolean | undefined;
|
|
98
|
+
lock?: boolean | undefined;
|
|
99
|
+
mute?: boolean | undefined;
|
|
100
|
+
kick?: boolean | undefined;
|
|
101
|
+
pause?: boolean | undefined;
|
|
102
|
+
turns?: boolean | undefined;
|
|
103
|
+
} | undefined;
|
|
70
104
|
}, {
|
|
71
105
|
maxParticipants: number;
|
|
72
106
|
maxEventPayloadBytes: number;
|
|
@@ -90,6 +124,15 @@ export declare const RoomPolicySchema: z.ZodObject<{
|
|
|
90
124
|
joinPolicy?: "invite_only" | "open_to_guests" | undefined;
|
|
91
125
|
inviteRole?: "guest" | "member" | undefined;
|
|
92
126
|
localJoin?: boolean | undefined;
|
|
127
|
+
permissions?: {
|
|
128
|
+
invite?: boolean | undefined;
|
|
129
|
+
rename?: boolean | undefined;
|
|
130
|
+
lock?: boolean | undefined;
|
|
131
|
+
mute?: boolean | undefined;
|
|
132
|
+
kick?: boolean | undefined;
|
|
133
|
+
pause?: boolean | undefined;
|
|
134
|
+
turns?: boolean | undefined;
|
|
135
|
+
} | undefined;
|
|
93
136
|
}>;
|
|
94
137
|
export declare const RoomRecord: z.ZodObject<{
|
|
95
138
|
roomId: z.ZodString;
|
|
@@ -135,6 +178,31 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
135
178
|
mode: "agents_and_guests_left";
|
|
136
179
|
}>]>>;
|
|
137
180
|
localJoin: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
invite: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
rename: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
lock: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
mute: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
kick: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
pause: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
turns: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
}, "strip", z.ZodTypeAny, {
|
|
190
|
+
invite?: boolean | undefined;
|
|
191
|
+
rename?: boolean | undefined;
|
|
192
|
+
lock?: boolean | undefined;
|
|
193
|
+
mute?: boolean | undefined;
|
|
194
|
+
kick?: boolean | undefined;
|
|
195
|
+
pause?: boolean | undefined;
|
|
196
|
+
turns?: boolean | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
invite?: boolean | undefined;
|
|
199
|
+
rename?: boolean | undefined;
|
|
200
|
+
lock?: boolean | undefined;
|
|
201
|
+
mute?: boolean | undefined;
|
|
202
|
+
kick?: boolean | undefined;
|
|
203
|
+
pause?: boolean | undefined;
|
|
204
|
+
turns?: boolean | undefined;
|
|
205
|
+
}>>;
|
|
138
206
|
maxParticipants: z.ZodNumber;
|
|
139
207
|
maxEventPayloadBytes: z.ZodNumber;
|
|
140
208
|
maxRetainedEventBytes: z.ZodNumber;
|
|
@@ -166,6 +234,15 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
166
234
|
} | undefined;
|
|
167
235
|
inviteRole?: "guest" | "member" | undefined;
|
|
168
236
|
localJoin?: boolean | undefined;
|
|
237
|
+
permissions?: {
|
|
238
|
+
invite?: boolean | undefined;
|
|
239
|
+
rename?: boolean | undefined;
|
|
240
|
+
lock?: boolean | undefined;
|
|
241
|
+
mute?: boolean | undefined;
|
|
242
|
+
kick?: boolean | undefined;
|
|
243
|
+
pause?: boolean | undefined;
|
|
244
|
+
turns?: boolean | undefined;
|
|
245
|
+
} | undefined;
|
|
169
246
|
}, {
|
|
170
247
|
maxParticipants: number;
|
|
171
248
|
maxEventPayloadBytes: number;
|
|
@@ -189,6 +266,15 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
189
266
|
joinPolicy?: "invite_only" | "open_to_guests" | undefined;
|
|
190
267
|
inviteRole?: "guest" | "member" | undefined;
|
|
191
268
|
localJoin?: boolean | undefined;
|
|
269
|
+
permissions?: {
|
|
270
|
+
invite?: boolean | undefined;
|
|
271
|
+
rename?: boolean | undefined;
|
|
272
|
+
lock?: boolean | undefined;
|
|
273
|
+
mute?: boolean | undefined;
|
|
274
|
+
kick?: boolean | undefined;
|
|
275
|
+
pause?: boolean | undefined;
|
|
276
|
+
turns?: boolean | undefined;
|
|
277
|
+
} | undefined;
|
|
192
278
|
}>;
|
|
193
279
|
controllerCredentialHash: z.ZodString;
|
|
194
280
|
/** Bumped by every control request so a late acknowledgement cannot overwrite newer state. */
|
|
@@ -238,6 +324,15 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
238
324
|
} | undefined;
|
|
239
325
|
inviteRole?: "guest" | "member" | undefined;
|
|
240
326
|
localJoin?: boolean | undefined;
|
|
327
|
+
permissions?: {
|
|
328
|
+
invite?: boolean | undefined;
|
|
329
|
+
rename?: boolean | undefined;
|
|
330
|
+
lock?: boolean | undefined;
|
|
331
|
+
mute?: boolean | undefined;
|
|
332
|
+
kick?: boolean | undefined;
|
|
333
|
+
pause?: boolean | undefined;
|
|
334
|
+
turns?: boolean | undefined;
|
|
335
|
+
} | undefined;
|
|
241
336
|
};
|
|
242
337
|
controllerCredentialHash: string;
|
|
243
338
|
controlRevision: number;
|
|
@@ -284,6 +379,15 @@ export declare const RoomRecord: z.ZodObject<{
|
|
|
284
379
|
joinPolicy?: "invite_only" | "open_to_guests" | undefined;
|
|
285
380
|
inviteRole?: "guest" | "member" | undefined;
|
|
286
381
|
localJoin?: boolean | undefined;
|
|
382
|
+
permissions?: {
|
|
383
|
+
invite?: boolean | undefined;
|
|
384
|
+
rename?: boolean | undefined;
|
|
385
|
+
lock?: boolean | undefined;
|
|
386
|
+
mute?: boolean | undefined;
|
|
387
|
+
kick?: boolean | undefined;
|
|
388
|
+
pause?: boolean | undefined;
|
|
389
|
+
turns?: boolean | undefined;
|
|
390
|
+
} | undefined;
|
|
287
391
|
};
|
|
288
392
|
controllerCredentialHash: string;
|
|
289
393
|
controlRevision: number;
|
|
@@ -336,6 +440,32 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
336
440
|
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
337
441
|
leftAt: z.ZodNullable<z.ZodNumber>;
|
|
338
442
|
muted: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
+
/** This member's own allowances and refusals, ahead of the room's. Dropped when they stop being a member. */
|
|
444
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
invite: z.ZodOptional<z.ZodBoolean>;
|
|
446
|
+
rename: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
+
lock: z.ZodOptional<z.ZodBoolean>;
|
|
448
|
+
mute: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
kick: z.ZodOptional<z.ZodBoolean>;
|
|
450
|
+
pause: z.ZodOptional<z.ZodBoolean>;
|
|
451
|
+
turns: z.ZodOptional<z.ZodBoolean>;
|
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
|
453
|
+
invite?: boolean | undefined;
|
|
454
|
+
rename?: boolean | undefined;
|
|
455
|
+
lock?: boolean | undefined;
|
|
456
|
+
mute?: boolean | undefined;
|
|
457
|
+
kick?: boolean | undefined;
|
|
458
|
+
pause?: boolean | undefined;
|
|
459
|
+
turns?: boolean | undefined;
|
|
460
|
+
}, {
|
|
461
|
+
invite?: boolean | undefined;
|
|
462
|
+
rename?: boolean | undefined;
|
|
463
|
+
lock?: boolean | undefined;
|
|
464
|
+
mute?: boolean | undefined;
|
|
465
|
+
kick?: boolean | undefined;
|
|
466
|
+
pause?: boolean | undefined;
|
|
467
|
+
turns?: boolean | undefined;
|
|
468
|
+
}>>;
|
|
339
469
|
}, "strip", z.ZodTypeAny, {
|
|
340
470
|
participantId: string;
|
|
341
471
|
displayName: string;
|
|
@@ -355,6 +485,15 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
355
485
|
revokedAt: number | null;
|
|
356
486
|
leftAt: number | null;
|
|
357
487
|
muted?: boolean | undefined;
|
|
488
|
+
permissions?: {
|
|
489
|
+
invite?: boolean | undefined;
|
|
490
|
+
rename?: boolean | undefined;
|
|
491
|
+
lock?: boolean | undefined;
|
|
492
|
+
mute?: boolean | undefined;
|
|
493
|
+
kick?: boolean | undefined;
|
|
494
|
+
pause?: boolean | undefined;
|
|
495
|
+
turns?: boolean | undefined;
|
|
496
|
+
} | undefined;
|
|
358
497
|
nameSource?: "profile" | "room" | undefined;
|
|
359
498
|
}, {
|
|
360
499
|
participantId: string;
|
|
@@ -375,6 +514,15 @@ export declare const ParticipantRecord: z.ZodObject<{
|
|
|
375
514
|
revokedAt: number | null;
|
|
376
515
|
leftAt: number | null;
|
|
377
516
|
muted?: boolean | undefined;
|
|
517
|
+
permissions?: {
|
|
518
|
+
invite?: boolean | undefined;
|
|
519
|
+
rename?: boolean | undefined;
|
|
520
|
+
lock?: boolean | undefined;
|
|
521
|
+
mute?: boolean | undefined;
|
|
522
|
+
kick?: boolean | undefined;
|
|
523
|
+
pause?: boolean | undefined;
|
|
524
|
+
turns?: boolean | undefined;
|
|
525
|
+
} | undefined;
|
|
378
526
|
nameSource?: "profile" | "room" | undefined;
|
|
379
527
|
}>;
|
|
380
528
|
export type ParticipantRecord = z.infer<typeof ParticipantRecord>;
|
|
@@ -707,6 +855,31 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
707
855
|
left: z.ZodBoolean;
|
|
708
856
|
paused: z.ZodBoolean;
|
|
709
857
|
muted: z.ZodOptional<z.ZodBoolean>;
|
|
858
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
859
|
+
invite: z.ZodOptional<z.ZodBoolean>;
|
|
860
|
+
rename: z.ZodOptional<z.ZodBoolean>;
|
|
861
|
+
lock: z.ZodOptional<z.ZodBoolean>;
|
|
862
|
+
mute: z.ZodOptional<z.ZodBoolean>;
|
|
863
|
+
kick: z.ZodOptional<z.ZodBoolean>;
|
|
864
|
+
pause: z.ZodOptional<z.ZodBoolean>;
|
|
865
|
+
turns: z.ZodOptional<z.ZodBoolean>;
|
|
866
|
+
}, "strip", z.ZodTypeAny, {
|
|
867
|
+
invite?: boolean | undefined;
|
|
868
|
+
rename?: boolean | undefined;
|
|
869
|
+
lock?: boolean | undefined;
|
|
870
|
+
mute?: boolean | undefined;
|
|
871
|
+
kick?: boolean | undefined;
|
|
872
|
+
pause?: boolean | undefined;
|
|
873
|
+
turns?: boolean | undefined;
|
|
874
|
+
}, {
|
|
875
|
+
invite?: boolean | undefined;
|
|
876
|
+
rename?: boolean | undefined;
|
|
877
|
+
lock?: boolean | undefined;
|
|
878
|
+
mute?: boolean | undefined;
|
|
879
|
+
kick?: boolean | undefined;
|
|
880
|
+
pause?: boolean | undefined;
|
|
881
|
+
turns?: boolean | undefined;
|
|
882
|
+
}>>;
|
|
710
883
|
controlRevision: z.ZodNumber;
|
|
711
884
|
acknowledgedOutcome: z.ZodNullable<z.ZodEnum<["pause_requested", "paused_between_turns", "current_turn_cancelled", "tool_cancellation_unknown", "resumed", "unsupported", "disconnected"]>>;
|
|
712
885
|
/** The revision the receiver last acknowledged, so a client can tell whether the latest control was answered. */
|
|
@@ -731,6 +904,15 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
731
904
|
revoked: boolean;
|
|
732
905
|
left: boolean;
|
|
733
906
|
muted?: boolean | undefined;
|
|
907
|
+
permissions?: {
|
|
908
|
+
invite?: boolean | undefined;
|
|
909
|
+
rename?: boolean | undefined;
|
|
910
|
+
lock?: boolean | undefined;
|
|
911
|
+
mute?: boolean | undefined;
|
|
912
|
+
kick?: boolean | undefined;
|
|
913
|
+
pause?: boolean | undefined;
|
|
914
|
+
turns?: boolean | undefined;
|
|
915
|
+
} | undefined;
|
|
734
916
|
nameSource?: "profile" | "room" | undefined;
|
|
735
917
|
interruptRequested?: boolean | undefined;
|
|
736
918
|
acknowledgedRevision?: number | undefined;
|
|
@@ -753,6 +935,15 @@ export declare const ParticipantView: z.ZodObject<{
|
|
|
753
935
|
revoked: boolean;
|
|
754
936
|
left: boolean;
|
|
755
937
|
muted?: boolean | undefined;
|
|
938
|
+
permissions?: {
|
|
939
|
+
invite?: boolean | undefined;
|
|
940
|
+
rename?: boolean | undefined;
|
|
941
|
+
lock?: boolean | undefined;
|
|
942
|
+
mute?: boolean | undefined;
|
|
943
|
+
kick?: boolean | undefined;
|
|
944
|
+
pause?: boolean | undefined;
|
|
945
|
+
turns?: boolean | undefined;
|
|
946
|
+
} | undefined;
|
|
756
947
|
nameSource?: "profile" | "room" | undefined;
|
|
757
948
|
interruptRequested?: boolean | undefined;
|
|
758
949
|
acknowledgedRevision?: number | undefined;
|
|
@@ -767,9 +958,13 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
767
958
|
requestRecoverySupported: z.ZodOptional<z.ZodBoolean>;
|
|
768
959
|
/** The relay can dismiss failed requests and cancel unresolved work without claiming success. */
|
|
769
960
|
requestResolutionSupported: z.ZodOptional<z.ZodBoolean>;
|
|
961
|
+
/** The relay can defer unresolved requests while a local provider is temporarily unavailable. */
|
|
962
|
+
providerWaitSupported: z.ZodOptional<z.ZodBoolean>;
|
|
770
963
|
rejoinSupported: z.ZodOptional<z.ZodBoolean>;
|
|
771
964
|
renameSelfSupported: z.ZodOptional<z.ZodBoolean>;
|
|
772
965
|
adminRolesSupported: z.ZodOptional<z.ZodBoolean>;
|
|
966
|
+
/** The relay enforces per-command permissions for members and accepts changes to them. */
|
|
967
|
+
permissionsSupported: z.ZodOptional<z.ZodBoolean>;
|
|
773
968
|
inviteRoleSupported: z.ZodOptional<z.ZodBoolean>;
|
|
774
969
|
autoCloseSupported: z.ZodOptional<z.ZodBoolean>;
|
|
775
970
|
interruptSupported: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -820,6 +1015,31 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
820
1015
|
left: z.ZodBoolean;
|
|
821
1016
|
paused: z.ZodBoolean;
|
|
822
1017
|
muted: z.ZodOptional<z.ZodBoolean>;
|
|
1018
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
1019
|
+
invite: z.ZodOptional<z.ZodBoolean>;
|
|
1020
|
+
rename: z.ZodOptional<z.ZodBoolean>;
|
|
1021
|
+
lock: z.ZodOptional<z.ZodBoolean>;
|
|
1022
|
+
mute: z.ZodOptional<z.ZodBoolean>;
|
|
1023
|
+
kick: z.ZodOptional<z.ZodBoolean>;
|
|
1024
|
+
pause: z.ZodOptional<z.ZodBoolean>;
|
|
1025
|
+
turns: z.ZodOptional<z.ZodBoolean>;
|
|
1026
|
+
}, "strip", z.ZodTypeAny, {
|
|
1027
|
+
invite?: boolean | undefined;
|
|
1028
|
+
rename?: boolean | undefined;
|
|
1029
|
+
lock?: boolean | undefined;
|
|
1030
|
+
mute?: boolean | undefined;
|
|
1031
|
+
kick?: boolean | undefined;
|
|
1032
|
+
pause?: boolean | undefined;
|
|
1033
|
+
turns?: boolean | undefined;
|
|
1034
|
+
}, {
|
|
1035
|
+
invite?: boolean | undefined;
|
|
1036
|
+
rename?: boolean | undefined;
|
|
1037
|
+
lock?: boolean | undefined;
|
|
1038
|
+
mute?: boolean | undefined;
|
|
1039
|
+
kick?: boolean | undefined;
|
|
1040
|
+
pause?: boolean | undefined;
|
|
1041
|
+
turns?: boolean | undefined;
|
|
1042
|
+
}>>;
|
|
823
1043
|
controlRevision: z.ZodNumber;
|
|
824
1044
|
acknowledgedOutcome: z.ZodNullable<z.ZodEnum<["pause_requested", "paused_between_turns", "current_turn_cancelled", "tool_cancellation_unknown", "resumed", "unsupported", "disconnected"]>>;
|
|
825
1045
|
/** The revision the receiver last acknowledged, so a client can tell whether the latest control was answered. */
|
|
@@ -844,6 +1064,15 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
844
1064
|
revoked: boolean;
|
|
845
1065
|
left: boolean;
|
|
846
1066
|
muted?: boolean | undefined;
|
|
1067
|
+
permissions?: {
|
|
1068
|
+
invite?: boolean | undefined;
|
|
1069
|
+
rename?: boolean | undefined;
|
|
1070
|
+
lock?: boolean | undefined;
|
|
1071
|
+
mute?: boolean | undefined;
|
|
1072
|
+
kick?: boolean | undefined;
|
|
1073
|
+
pause?: boolean | undefined;
|
|
1074
|
+
turns?: boolean | undefined;
|
|
1075
|
+
} | undefined;
|
|
847
1076
|
nameSource?: "profile" | "room" | undefined;
|
|
848
1077
|
interruptRequested?: boolean | undefined;
|
|
849
1078
|
acknowledgedRevision?: number | undefined;
|
|
@@ -866,6 +1095,15 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
866
1095
|
revoked: boolean;
|
|
867
1096
|
left: boolean;
|
|
868
1097
|
muted?: boolean | undefined;
|
|
1098
|
+
permissions?: {
|
|
1099
|
+
invite?: boolean | undefined;
|
|
1100
|
+
rename?: boolean | undefined;
|
|
1101
|
+
lock?: boolean | undefined;
|
|
1102
|
+
mute?: boolean | undefined;
|
|
1103
|
+
kick?: boolean | undefined;
|
|
1104
|
+
pause?: boolean | undefined;
|
|
1105
|
+
turns?: boolean | undefined;
|
|
1106
|
+
} | undefined;
|
|
869
1107
|
nameSource?: "profile" | "room" | undefined;
|
|
870
1108
|
interruptRequested?: boolean | undefined;
|
|
871
1109
|
acknowledgedRevision?: number | undefined;
|
|
@@ -905,6 +1143,31 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
905
1143
|
mode: "agents_and_guests_left";
|
|
906
1144
|
}>]>>;
|
|
907
1145
|
localJoin: z.ZodOptional<z.ZodBoolean>;
|
|
1146
|
+
permissions: z.ZodOptional<z.ZodObject<{
|
|
1147
|
+
invite: z.ZodOptional<z.ZodBoolean>;
|
|
1148
|
+
rename: z.ZodOptional<z.ZodBoolean>;
|
|
1149
|
+
lock: z.ZodOptional<z.ZodBoolean>;
|
|
1150
|
+
mute: z.ZodOptional<z.ZodBoolean>;
|
|
1151
|
+
kick: z.ZodOptional<z.ZodBoolean>;
|
|
1152
|
+
pause: z.ZodOptional<z.ZodBoolean>;
|
|
1153
|
+
turns: z.ZodOptional<z.ZodBoolean>;
|
|
1154
|
+
}, "strip", z.ZodTypeAny, {
|
|
1155
|
+
invite?: boolean | undefined;
|
|
1156
|
+
rename?: boolean | undefined;
|
|
1157
|
+
lock?: boolean | undefined;
|
|
1158
|
+
mute?: boolean | undefined;
|
|
1159
|
+
kick?: boolean | undefined;
|
|
1160
|
+
pause?: boolean | undefined;
|
|
1161
|
+
turns?: boolean | undefined;
|
|
1162
|
+
}, {
|
|
1163
|
+
invite?: boolean | undefined;
|
|
1164
|
+
rename?: boolean | undefined;
|
|
1165
|
+
lock?: boolean | undefined;
|
|
1166
|
+
mute?: boolean | undefined;
|
|
1167
|
+
kick?: boolean | undefined;
|
|
1168
|
+
pause?: boolean | undefined;
|
|
1169
|
+
turns?: boolean | undefined;
|
|
1170
|
+
}>>;
|
|
908
1171
|
maxParticipants: z.ZodNumber;
|
|
909
1172
|
maxEventPayloadBytes: z.ZodNumber;
|
|
910
1173
|
maxRetainedEventBytes: z.ZodNumber;
|
|
@@ -936,6 +1199,15 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
936
1199
|
} | undefined;
|
|
937
1200
|
inviteRole?: "guest" | "member" | undefined;
|
|
938
1201
|
localJoin?: boolean | undefined;
|
|
1202
|
+
permissions?: {
|
|
1203
|
+
invite?: boolean | undefined;
|
|
1204
|
+
rename?: boolean | undefined;
|
|
1205
|
+
lock?: boolean | undefined;
|
|
1206
|
+
mute?: boolean | undefined;
|
|
1207
|
+
kick?: boolean | undefined;
|
|
1208
|
+
pause?: boolean | undefined;
|
|
1209
|
+
turns?: boolean | undefined;
|
|
1210
|
+
} | undefined;
|
|
939
1211
|
}, {
|
|
940
1212
|
maxParticipants: number;
|
|
941
1213
|
maxEventPayloadBytes: number;
|
|
@@ -959,6 +1231,15 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
959
1231
|
joinPolicy?: "invite_only" | "open_to_guests" | undefined;
|
|
960
1232
|
inviteRole?: "guest" | "member" | undefined;
|
|
961
1233
|
localJoin?: boolean | undefined;
|
|
1234
|
+
permissions?: {
|
|
1235
|
+
invite?: boolean | undefined;
|
|
1236
|
+
rename?: boolean | undefined;
|
|
1237
|
+
lock?: boolean | undefined;
|
|
1238
|
+
mute?: boolean | undefined;
|
|
1239
|
+
kick?: boolean | undefined;
|
|
1240
|
+
pause?: boolean | undefined;
|
|
1241
|
+
turns?: boolean | undefined;
|
|
1242
|
+
} | undefined;
|
|
962
1243
|
}>;
|
|
963
1244
|
}, "strip", z.ZodTypeAny, {
|
|
964
1245
|
name: string;
|
|
@@ -990,6 +1271,15 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
990
1271
|
} | undefined;
|
|
991
1272
|
inviteRole?: "guest" | "member" | undefined;
|
|
992
1273
|
localJoin?: boolean | undefined;
|
|
1274
|
+
permissions?: {
|
|
1275
|
+
invite?: boolean | undefined;
|
|
1276
|
+
rename?: boolean | undefined;
|
|
1277
|
+
lock?: boolean | undefined;
|
|
1278
|
+
mute?: boolean | undefined;
|
|
1279
|
+
kick?: boolean | undefined;
|
|
1280
|
+
pause?: boolean | undefined;
|
|
1281
|
+
turns?: boolean | undefined;
|
|
1282
|
+
} | undefined;
|
|
993
1283
|
};
|
|
994
1284
|
controlRevision: number;
|
|
995
1285
|
latestSeq: number;
|
|
@@ -1013,6 +1303,15 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1013
1303
|
revoked: boolean;
|
|
1014
1304
|
left: boolean;
|
|
1015
1305
|
muted?: boolean | undefined;
|
|
1306
|
+
permissions?: {
|
|
1307
|
+
invite?: boolean | undefined;
|
|
1308
|
+
rename?: boolean | undefined;
|
|
1309
|
+
lock?: boolean | undefined;
|
|
1310
|
+
mute?: boolean | undefined;
|
|
1311
|
+
kick?: boolean | undefined;
|
|
1312
|
+
pause?: boolean | undefined;
|
|
1313
|
+
turns?: boolean | undefined;
|
|
1314
|
+
} | undefined;
|
|
1016
1315
|
nameSource?: "profile" | "room" | undefined;
|
|
1017
1316
|
interruptRequested?: boolean | undefined;
|
|
1018
1317
|
acknowledgedRevision?: number | undefined;
|
|
@@ -1027,9 +1326,11 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1027
1326
|
messageStagesSupported?: boolean | undefined;
|
|
1028
1327
|
requestRecoverySupported?: boolean | undefined;
|
|
1029
1328
|
requestResolutionSupported?: boolean | undefined;
|
|
1329
|
+
providerWaitSupported?: boolean | undefined;
|
|
1030
1330
|
rejoinSupported?: boolean | undefined;
|
|
1031
1331
|
renameSelfSupported?: boolean | undefined;
|
|
1032
1332
|
adminRolesSupported?: boolean | undefined;
|
|
1333
|
+
permissionsSupported?: boolean | undefined;
|
|
1033
1334
|
inviteRoleSupported?: boolean | undefined;
|
|
1034
1335
|
autoCloseSupported?: boolean | undefined;
|
|
1035
1336
|
interruptSupported?: boolean | undefined;
|
|
@@ -1066,6 +1367,15 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1066
1367
|
joinPolicy?: "invite_only" | "open_to_guests" | undefined;
|
|
1067
1368
|
inviteRole?: "guest" | "member" | undefined;
|
|
1068
1369
|
localJoin?: boolean | undefined;
|
|
1370
|
+
permissions?: {
|
|
1371
|
+
invite?: boolean | undefined;
|
|
1372
|
+
rename?: boolean | undefined;
|
|
1373
|
+
lock?: boolean | undefined;
|
|
1374
|
+
mute?: boolean | undefined;
|
|
1375
|
+
kick?: boolean | undefined;
|
|
1376
|
+
pause?: boolean | undefined;
|
|
1377
|
+
turns?: boolean | undefined;
|
|
1378
|
+
} | undefined;
|
|
1069
1379
|
};
|
|
1070
1380
|
controlRevision: number;
|
|
1071
1381
|
latestSeq: number;
|
|
@@ -1089,6 +1399,15 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1089
1399
|
revoked: boolean;
|
|
1090
1400
|
left: boolean;
|
|
1091
1401
|
muted?: boolean | undefined;
|
|
1402
|
+
permissions?: {
|
|
1403
|
+
invite?: boolean | undefined;
|
|
1404
|
+
rename?: boolean | undefined;
|
|
1405
|
+
lock?: boolean | undefined;
|
|
1406
|
+
mute?: boolean | undefined;
|
|
1407
|
+
kick?: boolean | undefined;
|
|
1408
|
+
pause?: boolean | undefined;
|
|
1409
|
+
turns?: boolean | undefined;
|
|
1410
|
+
} | undefined;
|
|
1092
1411
|
nameSource?: "profile" | "room" | undefined;
|
|
1093
1412
|
interruptRequested?: boolean | undefined;
|
|
1094
1413
|
acknowledgedRevision?: number | undefined;
|
|
@@ -1103,9 +1422,11 @@ export declare const RoomSnapshot: z.ZodObject<{
|
|
|
1103
1422
|
messageStagesSupported?: boolean | undefined;
|
|
1104
1423
|
requestRecoverySupported?: boolean | undefined;
|
|
1105
1424
|
requestResolutionSupported?: boolean | undefined;
|
|
1425
|
+
providerWaitSupported?: boolean | undefined;
|
|
1106
1426
|
rejoinSupported?: boolean | undefined;
|
|
1107
1427
|
renameSelfSupported?: boolean | undefined;
|
|
1108
1428
|
adminRolesSupported?: boolean | undefined;
|
|
1429
|
+
permissionsSupported?: boolean | undefined;
|
|
1109
1430
|
inviteRoleSupported?: boolean | undefined;
|
|
1110
1431
|
autoCloseSupported?: boolean | undefined;
|
|
1111
1432
|
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":"AAGA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAStB,eAAO,MAAM,aAAa,qDAAmD,CAAC;AAC9E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc3B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;IAInB,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO5C,8FAA8F;;;;;;;IAO9F,0GAA0G;;IAE1G,mEAAmE;;IAEnE,oFAAoF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM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
|
|
|
6
6
|
import { AttemptId, EventId, HandoverId, ParticipantId, RoomId, SessionId } from './ids.js';
|
|
7
7
|
import { HandoverDocument, HandoverState } from './handover.js';
|
|
8
8
|
import { AutoClosePolicySchema, CloseReasonSchema } from './auto-close.js';
|
|
9
|
+
import { PermissionSet } from './permissions.js';
|
|
9
10
|
export const RoomLifecycle = z.enum(['open', 'closed', 'expired', 'deleted']);
|
|
10
11
|
export const RoomPolicySchema = z.object({
|
|
11
12
|
joinPolicy: z.enum(['invite_only', 'open_to_guests']).default('invite_only'),
|
|
12
13
|
inviteRole: z.enum(['member', 'guest']).optional(),
|
|
13
14
|
autoClose: AutoClosePolicySchema.optional(),
|
|
14
15
|
localJoin: z.boolean().optional(),
|
|
16
|
+
permissions: PermissionSet.optional(),
|
|
15
17
|
maxParticipants: z.number().int().min(2),
|
|
16
18
|
maxEventPayloadBytes: z.number().int().min(1),
|
|
17
19
|
maxRetainedEventBytes: z.number().int().min(1),
|
|
@@ -65,7 +67,9 @@ export const ParticipantRecord = z.object({
|
|
|
65
67
|
joinedAt: z.number().int().nonnegative(),
|
|
66
68
|
revokedAt: z.number().int().nonnegative().nullable(),
|
|
67
69
|
leftAt: z.number().int().nonnegative().nullable(),
|
|
68
|
-
muted: z.boolean().optional()
|
|
70
|
+
muted: z.boolean().optional(),
|
|
71
|
+
/** This member's own allowances and refusals, ahead of the room's. Dropped when they stop being a member. */
|
|
72
|
+
permissions: PermissionSet.optional()
|
|
69
73
|
});
|
|
70
74
|
export const InviteRedemption = z.enum(['unused', 'reserved', 'redeemed']);
|
|
71
75
|
export const InviteRecord = z.object({
|
|
@@ -129,6 +133,7 @@ export const ParticipantView = z.object({
|
|
|
129
133
|
left: z.boolean(),
|
|
130
134
|
paused: z.boolean(),
|
|
131
135
|
muted: z.boolean().optional(),
|
|
136
|
+
permissions: PermissionSet.optional(),
|
|
132
137
|
controlRevision: z.number().int().nonnegative(),
|
|
133
138
|
acknowledgedOutcome: ControlOutcome.nullable(),
|
|
134
139
|
/** The revision the receiver last acknowledged, so a client can tell whether the latest control was answered. */
|
|
@@ -144,9 +149,13 @@ export const RoomSnapshot = z.object({
|
|
|
144
149
|
requestRecoverySupported: z.boolean().optional(),
|
|
145
150
|
/** The relay can dismiss failed requests and cancel unresolved work without claiming success. */
|
|
146
151
|
requestResolutionSupported: z.boolean().optional(),
|
|
152
|
+
/** The relay can defer unresolved requests while a local provider is temporarily unavailable. */
|
|
153
|
+
providerWaitSupported: z.boolean().optional(),
|
|
147
154
|
rejoinSupported: z.boolean().optional(),
|
|
148
155
|
renameSelfSupported: z.boolean().optional(),
|
|
149
156
|
adminRolesSupported: z.boolean().optional(),
|
|
157
|
+
/** The relay enforces per-command permissions for members and accepts changes to them. */
|
|
158
|
+
permissionsSupported: z.boolean().optional(),
|
|
150
159
|
inviteRoleSupported: z.boolean().optional(),
|
|
151
160
|
autoCloseSupported: z.boolean().optional(),
|
|
152
161
|
interruptSupported: z.boolean().optional(),
|
package/dist/records.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records.js","sourceRoot":"","sources":["../src/records.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,iDAAiD;AAEjD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AACtC,OAAO,EAAC,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAC,MAAM,aAAa,CAAC;AAClG,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAC,MAAM,UAAU,CAAC;AAC1F,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"records.js","sourceRoot":"","sources":["../src/records.ts"],"names":[],"mappings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AAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACzC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC3C,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IACtC,MAAM,EAAE,gBAAgB;CAC3B,CAAC,CAAC"}
|
package/dist/requests.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface MessageRequest {
|
|
|
10
10
|
requiresReply: boolean;
|
|
11
11
|
receivedAt: number | null;
|
|
12
12
|
readAt?: number;
|
|
13
|
-
action?: 'working' | 'waiting' | 'no_action' | 'declined' | 'reply_pending' | 'done';
|
|
13
|
+
action?: 'working' | 'waiting' | 'provider_wait' | 'no_action' | 'declined' | 'reply_pending' | 'done';
|
|
14
14
|
actionAt?: number;
|
|
15
15
|
actionReason?: string;
|
|
16
16
|
responseEventId: string | null;
|
|
@@ -41,6 +41,19 @@ export interface MessageRequest {
|
|
|
41
41
|
resolutionBy?: string;
|
|
42
42
|
resolutionReason?: string;
|
|
43
43
|
resolutionEventId?: string;
|
|
44
|
+
providerWait?: ProviderWait;
|
|
45
|
+
}
|
|
46
|
+
export interface ProviderWait {
|
|
47
|
+
provider: string;
|
|
48
|
+
model?: string;
|
|
49
|
+
limitKind: 'session' | 'weekly' | 'unknown';
|
|
50
|
+
detectedAt: number;
|
|
51
|
+
retryAt: number | null;
|
|
52
|
+
resetTimezone: string | null;
|
|
53
|
+
displayMessage: string;
|
|
54
|
+
resetActionUrl: string | null;
|
|
55
|
+
automaticRetry: boolean;
|
|
56
|
+
source?: 'result' | 'result_errors' | 'stderr';
|
|
44
57
|
}
|
|
45
58
|
export type TurnMode = 'sequential' | 'parallel';
|
|
46
59
|
export type TurnEntry = {
|
|
@@ -48,7 +61,7 @@ export type TurnEntry = {
|
|
|
48
61
|
conversationId: string;
|
|
49
62
|
participantId: string;
|
|
50
63
|
name: string;
|
|
51
|
-
state: 'waiting' | 'answering' | 'stalled' | 'paused' | 'unavailable' | 'failed';
|
|
64
|
+
state: 'waiting' | 'provider_wait' | 'answering' | 'stalled' | 'paused' | 'unavailable' | 'failed';
|
|
52
65
|
expiresAt: number | null;
|
|
53
66
|
workingAt?: number;
|
|
54
67
|
runtime?: string;
|
|
@@ -69,7 +82,7 @@ export type TurnAction = {
|
|
|
69
82
|
participantId?: string | undefined;
|
|
70
83
|
};
|
|
71
84
|
export declare const TURN_LEASE_MS = 90000;
|
|
72
|
-
export type RequestState = 'awaiting_ack' | 'awaiting_reply' | 'ack_overdue' | 'reply_overdue' | 'answered' | 'no_action' | 'declined' | 'failed' | 'dismissed' | 'waiting_turn' | 'answering' | 'stalled' | 'passed' | 'skipped' | 'cancelled';
|
|
85
|
+
export type RequestState = 'awaiting_ack' | 'awaiting_reply' | 'ack_overdue' | 'reply_overdue' | 'answered' | 'no_action' | 'declined' | 'failed' | 'dismissed' | 'provider_wait' | 'waiting_turn' | 'answering' | 'stalled' | 'passed' | 'skipped' | 'cancelled';
|
|
73
86
|
export declare const ACK_TIMEOUT_MS = 30000;
|
|
74
87
|
export declare const REPLY_TIMEOUT_MS: number;
|
|
75
88
|
export declare function requestState(request: MessageRequest, now?: number): RequestState;
|