@pairlobby/protocol 0.31.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wire.d.ts CHANGED
@@ -8,6 +8,11 @@ export declare const ServerHello: z.ZodObject<{
8
8
  type: z.ZodLiteral<"hello">;
9
9
  snapshot: z.ZodObject<{
10
10
  roomId: z.ZodString;
11
+ stateRevision: z.ZodOptional<z.ZodNumber>;
12
+ requestRevision: z.ZodOptional<z.ZodNumber>;
13
+ snapshotRevision: z.ZodOptional<z.ZodNumber>;
14
+ turnRevision: z.ZodOptional<z.ZodNumber>;
15
+ syncSupported: z.ZodOptional<z.ZodBoolean>;
11
16
  messageReceiptScope: z.ZodOptional<z.ZodEnum<["recipient", "members"]>>;
12
17
  receiptMode: z.ZodOptional<z.ZodEnum<["events", "both", "watermark"]>>;
13
18
  messageStagesSupported: z.ZodOptional<z.ZodBoolean>;
@@ -444,11 +449,16 @@ export declare const ServerHello: z.ZodObject<{
444
449
  handles: string[];
445
450
  } | "everyone" | "default" | undefined;
446
451
  locked?: boolean | undefined;
452
+ stateRevision?: number | undefined;
453
+ requestRevision?: number | undefined;
454
+ snapshotRevision?: number | undefined;
447
455
  turnMode?: "sequential" | "parallel" | undefined;
456
+ turnRevision?: number | undefined;
448
457
  lastMessageAt?: number | null | undefined;
449
458
  autoCloseArmed?: boolean | undefined;
450
459
  autoCloseAt?: number | null | undefined;
451
460
  closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
461
+ syncSupported?: boolean | undefined;
452
462
  messageReceiptScope?: "recipient" | "members" | undefined;
453
463
  receiptMode?: "events" | "both" | "watermark" | undefined;
454
464
  messageStagesSupported?: boolean | undefined;
@@ -558,11 +568,16 @@ export declare const ServerHello: z.ZodObject<{
558
568
  handles: string[];
559
569
  } | "everyone" | "default" | undefined;
560
570
  locked?: boolean | undefined;
571
+ stateRevision?: number | undefined;
572
+ requestRevision?: number | undefined;
573
+ snapshotRevision?: number | undefined;
561
574
  turnMode?: "sequential" | "parallel" | undefined;
575
+ turnRevision?: number | undefined;
562
576
  lastMessageAt?: number | null | undefined;
563
577
  autoCloseArmed?: boolean | undefined;
564
578
  autoCloseAt?: number | null | undefined;
565
579
  closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
580
+ syncSupported?: boolean | undefined;
566
581
  messageReceiptScope?: "recipient" | "members" | undefined;
567
582
  receiptMode?: "events" | "both" | "watermark" | undefined;
568
583
  messageStagesSupported?: boolean | undefined;
@@ -676,11 +691,16 @@ export declare const ServerHello: z.ZodObject<{
676
691
  handles: string[];
677
692
  } | "everyone" | "default" | undefined;
678
693
  locked?: boolean | undefined;
694
+ stateRevision?: number | undefined;
695
+ requestRevision?: number | undefined;
696
+ snapshotRevision?: number | undefined;
679
697
  turnMode?: "sequential" | "parallel" | undefined;
698
+ turnRevision?: number | undefined;
680
699
  lastMessageAt?: number | null | undefined;
681
700
  autoCloseArmed?: boolean | undefined;
682
701
  autoCloseAt?: number | null | undefined;
683
702
  closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
703
+ syncSupported?: boolean | undefined;
684
704
  messageReceiptScope?: "recipient" | "members" | undefined;
685
705
  receiptMode?: "events" | "both" | "watermark" | undefined;
686
706
  messageStagesSupported?: boolean | undefined;
@@ -794,11 +814,16 @@ export declare const ServerHello: z.ZodObject<{
794
814
  handles: string[];
795
815
  } | "everyone" | "default" | undefined;
796
816
  locked?: boolean | undefined;
817
+ stateRevision?: number | undefined;
818
+ requestRevision?: number | undefined;
819
+ snapshotRevision?: number | undefined;
797
820
  turnMode?: "sequential" | "parallel" | undefined;
821
+ turnRevision?: number | undefined;
798
822
  lastMessageAt?: number | null | undefined;
799
823
  autoCloseArmed?: boolean | undefined;
800
824
  autoCloseAt?: number | null | undefined;
801
825
  closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
826
+ syncSupported?: boolean | undefined;
802
827
  messageReceiptScope?: "recipient" | "members" | undefined;
803
828
  receiptMode?: "events" | "both" | "watermark" | undefined;
804
829
  messageStagesSupported?: boolean | undefined;
@@ -3062,10 +3087,35 @@ export declare const ServerErrorFrame: z.ZodIntersection<z.ZodObject<{
3062
3087
  currentRevision?: number | undefined;
3063
3088
  };
3064
3089
  }>>;
3090
+ /** A negotiated hint that committed state changed without necessarily appending an event. Read the durable state to reconcile. */
3091
+ export declare const ServerStateFrame: z.ZodObject<{
3092
+ type: z.ZodLiteral<"state">;
3093
+ roomId: z.ZodString;
3094
+ stateRevision: z.ZodNumber;
3095
+ latestSeq: z.ZodNumber;
3096
+ earliestSeq: z.ZodOptional<z.ZodNumber>;
3097
+ }, "strip", z.ZodTypeAny, {
3098
+ type: "state";
3099
+ roomId: string;
3100
+ stateRevision: number;
3101
+ latestSeq: number;
3102
+ earliestSeq?: number | undefined;
3103
+ }, {
3104
+ type: "state";
3105
+ roomId: string;
3106
+ stateRevision: number;
3107
+ latestSeq: number;
3108
+ earliestSeq?: number | undefined;
3109
+ }>;
3065
3110
  export declare const ServerFrame: z.ZodUnion<[z.ZodObject<{
3066
3111
  type: z.ZodLiteral<"hello">;
3067
3112
  snapshot: z.ZodObject<{
3068
3113
  roomId: z.ZodString;
3114
+ stateRevision: z.ZodOptional<z.ZodNumber>;
3115
+ requestRevision: z.ZodOptional<z.ZodNumber>;
3116
+ snapshotRevision: z.ZodOptional<z.ZodNumber>;
3117
+ turnRevision: z.ZodOptional<z.ZodNumber>;
3118
+ syncSupported: z.ZodOptional<z.ZodBoolean>;
3069
3119
  messageReceiptScope: z.ZodOptional<z.ZodEnum<["recipient", "members"]>>;
3070
3120
  receiptMode: z.ZodOptional<z.ZodEnum<["events", "both", "watermark"]>>;
3071
3121
  messageStagesSupported: z.ZodOptional<z.ZodBoolean>;
@@ -3502,11 +3552,16 @@ export declare const ServerFrame: z.ZodUnion<[z.ZodObject<{
3502
3552
  handles: string[];
3503
3553
  } | "everyone" | "default" | undefined;
3504
3554
  locked?: boolean | undefined;
3555
+ stateRevision?: number | undefined;
3556
+ requestRevision?: number | undefined;
3557
+ snapshotRevision?: number | undefined;
3505
3558
  turnMode?: "sequential" | "parallel" | undefined;
3559
+ turnRevision?: number | undefined;
3506
3560
  lastMessageAt?: number | null | undefined;
3507
3561
  autoCloseArmed?: boolean | undefined;
3508
3562
  autoCloseAt?: number | null | undefined;
3509
3563
  closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
3564
+ syncSupported?: boolean | undefined;
3510
3565
  messageReceiptScope?: "recipient" | "members" | undefined;
3511
3566
  receiptMode?: "events" | "both" | "watermark" | undefined;
3512
3567
  messageStagesSupported?: boolean | undefined;
@@ -3616,11 +3671,16 @@ export declare const ServerFrame: z.ZodUnion<[z.ZodObject<{
3616
3671
  handles: string[];
3617
3672
  } | "everyone" | "default" | undefined;
3618
3673
  locked?: boolean | undefined;
3674
+ stateRevision?: number | undefined;
3675
+ requestRevision?: number | undefined;
3676
+ snapshotRevision?: number | undefined;
3619
3677
  turnMode?: "sequential" | "parallel" | undefined;
3678
+ turnRevision?: number | undefined;
3620
3679
  lastMessageAt?: number | null | undefined;
3621
3680
  autoCloseArmed?: boolean | undefined;
3622
3681
  autoCloseAt?: number | null | undefined;
3623
3682
  closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
3683
+ syncSupported?: boolean | undefined;
3624
3684
  messageReceiptScope?: "recipient" | "members" | undefined;
3625
3685
  receiptMode?: "events" | "both" | "watermark" | undefined;
3626
3686
  messageStagesSupported?: boolean | undefined;
@@ -3734,11 +3794,16 @@ export declare const ServerFrame: z.ZodUnion<[z.ZodObject<{
3734
3794
  handles: string[];
3735
3795
  } | "everyone" | "default" | undefined;
3736
3796
  locked?: boolean | undefined;
3797
+ stateRevision?: number | undefined;
3798
+ requestRevision?: number | undefined;
3799
+ snapshotRevision?: number | undefined;
3737
3800
  turnMode?: "sequential" | "parallel" | undefined;
3801
+ turnRevision?: number | undefined;
3738
3802
  lastMessageAt?: number | null | undefined;
3739
3803
  autoCloseArmed?: boolean | undefined;
3740
3804
  autoCloseAt?: number | null | undefined;
3741
3805
  closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
3806
+ syncSupported?: boolean | undefined;
3742
3807
  messageReceiptScope?: "recipient" | "members" | undefined;
3743
3808
  receiptMode?: "events" | "both" | "watermark" | undefined;
3744
3809
  messageStagesSupported?: boolean | undefined;
@@ -3852,11 +3917,16 @@ export declare const ServerFrame: z.ZodUnion<[z.ZodObject<{
3852
3917
  handles: string[];
3853
3918
  } | "everyone" | "default" | undefined;
3854
3919
  locked?: boolean | undefined;
3920
+ stateRevision?: number | undefined;
3921
+ requestRevision?: number | undefined;
3922
+ snapshotRevision?: number | undefined;
3855
3923
  turnMode?: "sequential" | "parallel" | undefined;
3924
+ turnRevision?: number | undefined;
3856
3925
  lastMessageAt?: number | null | undefined;
3857
3926
  autoCloseArmed?: boolean | undefined;
3858
3927
  autoCloseAt?: number | null | undefined;
3859
3928
  closeReason?: "inactivity" | "age" | "agents_and_guests_left" | "manual" | undefined;
3929
+ syncSupported?: boolean | undefined;
3860
3930
  messageReceiptScope?: "recipient" | "members" | undefined;
3861
3931
  receiptMode?: "events" | "both" | "watermark" | undefined;
3862
3932
  messageStagesSupported?: boolean | undefined;
@@ -6117,7 +6187,25 @@ export declare const ServerFrame: z.ZodUnion<[z.ZodObject<{
6117
6187
  earliestAvailableSeq?: number | undefined;
6118
6188
  currentRevision?: number | undefined;
6119
6189
  };
6120
- }>>]>;
6190
+ }>>, z.ZodObject<{
6191
+ type: z.ZodLiteral<"state">;
6192
+ roomId: z.ZodString;
6193
+ stateRevision: z.ZodNumber;
6194
+ latestSeq: z.ZodNumber;
6195
+ earliestSeq: z.ZodOptional<z.ZodNumber>;
6196
+ }, "strip", z.ZodTypeAny, {
6197
+ type: "state";
6198
+ roomId: string;
6199
+ stateRevision: number;
6200
+ latestSeq: number;
6201
+ earliestSeq?: number | undefined;
6202
+ }, {
6203
+ type: "state";
6204
+ roomId: string;
6205
+ stateRevision: number;
6206
+ latestSeq: number;
6207
+ earliestSeq?: number | undefined;
6208
+ }>]>;
6121
6209
  export type ServerFrame = z.infer<typeof ServerFrame>;
6122
6210
  /** Consumption acknowledgement, separate from delivery: it moves the participant's read cursor. */
6123
6211
  export declare const ClientAckFrame: z.ZodObject<{
@@ -6130,7 +6218,14 @@ export declare const ClientAckFrame: z.ZodObject<{
6130
6218
  type: "ack";
6131
6219
  throughSeq: number;
6132
6220
  }>;
6133
- export declare const ClientFrame: z.ZodObject<{
6221
+ export declare const ClientStateFrame: z.ZodObject<{
6222
+ type: z.ZodLiteral<"state">;
6223
+ }, "strip", z.ZodTypeAny, {
6224
+ type: "state";
6225
+ }, {
6226
+ type: "state";
6227
+ }>;
6228
+ export declare const ClientFrame: z.ZodUnion<[z.ZodObject<{
6134
6229
  type: z.ZodLiteral<"ack">;
6135
6230
  throughSeq: z.ZodNumber;
6136
6231
  }, "strip", z.ZodTypeAny, {
@@ -6139,6 +6234,12 @@ export declare const ClientFrame: z.ZodObject<{
6139
6234
  }, {
6140
6235
  type: "ack";
6141
6236
  throughSeq: number;
6142
- }>;
6237
+ }>, z.ZodObject<{
6238
+ type: z.ZodLiteral<"state">;
6239
+ }, "strip", z.ZodTypeAny, {
6240
+ type: "state";
6241
+ }, {
6242
+ type: "state";
6243
+ }>]>;
6143
6244
  export type ClientFrame = z.infer<typeof ClientFrame>;
6144
6245
  //# sourceMappingURL=wire.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../src/wire.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAMtB;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA+E,CAAC;AACxG,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,mGAAmG;AACnG,eAAO,MAAM,cAAc;;;;;;;;;EAAiF,CAAC;AAE7G,eAAO,MAAM,gBAAgB;;;;;;EAAuC,CAAC;AACrE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;IAA8C,CAAC;AACvE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
package/dist/wire.js CHANGED
@@ -5,6 +5,7 @@ import { z } from 'zod';
5
5
  import { ErrorResponse } from './http.js';
6
6
  import { RoomEvent } from './events.js';
7
7
  import { RoomSnapshot } from './records.js';
8
+ import { RoomId } from './ids.js';
8
9
  /**
9
10
  * Sent once at upgrade, before any live event. Replaying history up to
10
11
  * `watermarkSeq` and then applying subsequent frames closes the race between a
@@ -17,8 +18,11 @@ export const ServerHello = z.object({
17
18
  });
18
19
  export const ServerEventFrame = z.object({ type: z.literal('event'), event: RoomEvent });
19
20
  export const ServerErrorFrame = z.intersection(z.object({ type: z.literal('error'), fatal: z.boolean() }), ErrorResponse);
20
- export const ServerFrame = z.union([ServerHello, ServerEventFrame, ServerErrorFrame]);
21
+ /** A negotiated hint that committed state changed without necessarily appending an event. Read the durable state to reconcile. */
22
+ export const ServerStateFrame = z.object({ type: z.literal('state'), roomId: RoomId, stateRevision: z.number().int().nonnegative(), latestSeq: z.number().int().nonnegative(), earliestSeq: z.number().int().positive().optional() });
23
+ export const ServerFrame = z.union([ServerHello, ServerEventFrame, ServerErrorFrame, ServerStateFrame]);
21
24
  /** Consumption acknowledgement, separate from delivery: it moves the participant's read cursor. */
22
25
  export const ClientAckFrame = z.object({ type: z.literal('ack'), throughSeq: z.number().int().nonnegative() });
23
- export const ClientFrame = ClientAckFrame;
26
+ export const ClientStateFrame = z.object({ type: z.literal('state') });
27
+ export const ClientFrame = z.union([ClientAckFrame, ClientStateFrame]);
24
28
  //# sourceMappingURL=wire.js.map
package/dist/wire.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"wire.js","sourceRoot":"","sources":["../src/wire.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,qEAAqE;AACrE,2CAA2C;AAE3C,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,QAAQ,EAAE,YAAY;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC/C,CAAC,CAAC;A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E,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,EAAC,CAAC,CAAC;AAE7G,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAC,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pairlobby/protocol",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "description": "PairLobby protocol: part of the PairLobby room protocol and relay",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",