@yorkie-js/sdk 0.6.40 → 0.6.41-rc

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.
@@ -1,15 +1,8 @@
1
- import { BinaryReadOptions } from '@bufbuild/protobuf';
2
1
  import { default as default_2 } from 'long';
3
- import { FieldList } from '@bufbuild/protobuf';
4
- import { JsonReadOptions } from '@bufbuild/protobuf';
5
- import { JsonValue } from '@bufbuild/protobuf';
6
2
  import { default as Long_2 } from 'long';
7
3
  import { Message } from '@bufbuild/protobuf';
8
- import { PartialMessage } from '@bufbuild/protobuf';
9
- import { PlainMessage } from '@bufbuild/protobuf';
10
- import { proto3 } from '@bufbuild/protobuf';
11
4
  import { Rule } from '@yorkie-js/schema';
12
- import { Timestamp } from '@bufbuild/protobuf';
5
+ import { Timestamp } from '@bufbuild/protobuf/wkt';
13
6
 
14
7
  /**
15
8
  * `ActorID` is used to identify who is making changes to the document.
@@ -308,7 +301,7 @@ export declare class Change<P extends Indexable> {
308
301
  /**
309
302
  * @generated from message yorkie.v1.Change
310
303
  */
311
- declare class Change_2 extends Message<Change_2> {
304
+ declare type Change_2 = Message<"yorkie.v1.Change"> & {
312
305
  /**
313
306
  * @generated from field: yorkie.v1.ChangeID id = 1;
314
307
  */
@@ -325,15 +318,7 @@ declare class Change_2 extends Message<Change_2> {
325
318
  * @generated from field: yorkie.v1.PresenceChange presence_change = 4;
326
319
  */
327
320
  presenceChange?: PresenceChange_2;
328
- constructor(data?: PartialMessage<Change_2>);
329
- static readonly runtime: typeof proto3;
330
- static readonly typeName = "yorkie.v1.Change";
331
- static readonly fields: FieldList;
332
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Change_2;
333
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Change_2;
334
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Change_2;
335
- static equals(a: Change_2 | PlainMessage<Change_2> | undefined, b: Change_2 | PlainMessage<Change_2> | undefined): boolean;
336
- }
321
+ };
337
322
 
338
323
  /**
339
324
  * `ChangeContext` is used to record the context of modification when editing
@@ -506,7 +491,7 @@ declare class ChangeID {
506
491
  /**
507
492
  * @generated from message yorkie.v1.ChangeID
508
493
  */
509
- declare class ChangeID_2 extends Message<ChangeID_2> {
494
+ declare type ChangeID_2 = Message<"yorkie.v1.ChangeID"> & {
510
495
  /**
511
496
  * @generated from field: uint32 client_seq = 1;
512
497
  */
@@ -527,15 +512,7 @@ declare class ChangeID_2 extends Message<ChangeID_2> {
527
512
  * @generated from field: yorkie.v1.VersionVector version_vector = 5;
528
513
  */
529
514
  versionVector?: VersionVector_2;
530
- constructor(data?: PartialMessage<ChangeID_2>);
531
- static readonly runtime: typeof proto3;
532
- static readonly typeName = "yorkie.v1.ChangeID";
533
- static readonly fields: FieldList;
534
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChangeID_2;
535
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChangeID_2;
536
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChangeID_2;
537
- static equals(a: ChangeID_2 | PlainMessage<ChangeID_2> | undefined, b: ChangeID_2 | PlainMessage<ChangeID_2> | undefined): boolean;
538
- }
515
+ };
539
516
 
540
517
  /**
541
518
  * `ChangeInfo` represents the modifications made during a document update
@@ -636,7 +613,7 @@ declare class ChangePack<P extends Indexable> {
636
613
  *
637
614
  * @generated from message yorkie.v1.ChangePack
638
615
  */
639
- declare class ChangePack_2 extends Message<ChangePack_2> {
616
+ declare type ChangePack_2 = Message<"yorkie.v1.ChangePack"> & {
640
617
  /**
641
618
  * @generated from field: string document_key = 1;
642
619
  */
@@ -667,15 +644,7 @@ declare class ChangePack_2 extends Message<ChangePack_2> {
667
644
  * @generated from field: yorkie.v1.VersionVector version_vector = 7;
668
645
  */
669
646
  versionVector?: VersionVector_2;
670
- constructor(data?: PartialMessage<ChangePack_2>);
671
- static readonly runtime: typeof proto3;
672
- static readonly typeName = "yorkie.v1.ChangePack";
673
- static readonly fields: FieldList;
674
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChangePack_2;
675
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChangePack_2;
676
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChangePack_2;
677
- static equals(a: ChangePack_2 | PlainMessage<ChangePack_2> | undefined, b: ChangePack_2 | PlainMessage<ChangePack_2> | undefined): boolean;
678
- }
647
+ };
679
648
 
680
649
  /**
681
650
  * `ChangeStruct` represents the structure of Change.
@@ -926,7 +895,7 @@ declare class Checkpoint {
926
895
  /**
927
896
  * @generated from message yorkie.v1.Checkpoint
928
897
  */
929
- declare class Checkpoint_2 extends Message<Checkpoint_2> {
898
+ declare type Checkpoint_2 = Message<"yorkie.v1.Checkpoint"> & {
930
899
  /**
931
900
  * @generated from field: int64 server_seq = 1;
932
901
  */
@@ -935,15 +904,7 @@ declare class Checkpoint_2 extends Message<Checkpoint_2> {
935
904
  * @generated from field: uint32 client_seq = 2;
936
905
  */
937
906
  clientSeq: number;
938
- constructor(data?: PartialMessage<Checkpoint_2>);
939
- static readonly runtime: typeof proto3;
940
- static readonly typeName = "yorkie.v1.Checkpoint";
941
- static readonly fields: FieldList;
942
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Checkpoint_2;
943
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Checkpoint_2;
944
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Checkpoint_2;
945
- static equals(a: Checkpoint_2 | PlainMessage<Checkpoint_2> | undefined, b: Checkpoint_2 | PlainMessage<Checkpoint_2> | undefined): boolean;
946
- }
907
+ };
947
908
 
948
909
  /**
949
910
  * `Client` is a normal client that can communicate with the server.
@@ -1096,6 +1057,10 @@ export declare class Client {
1096
1057
  offset?: number;
1097
1058
  isForward?: boolean;
1098
1059
  }): Promise<Array<RevisionSummary>>;
1060
+ /**
1061
+ * `getRevision` retrieves a specific revision by its ID with full snapshot data.
1062
+ */
1063
+ getRevision<R, P extends Indexable>(doc: Document_2<R, P>, revisionID: string): Promise<RevisionSummary>;
1099
1064
  /**
1100
1065
  * `restoreRevision` restores the document to the given revision.
1101
1066
  */
@@ -1285,13 +1250,14 @@ export declare const converter: {
1285
1250
  toUint8Array: typeof toUint8Array;
1286
1251
  toOperation: typeof toOperation;
1287
1252
  toChangeID: typeof toChangeID;
1288
- PbChangeID: typeof ChangeID_2;
1289
1253
  bytesToChangeID: typeof bytesToChangeID;
1290
1254
  bytesToOperation: typeof bytesToOperation;
1291
1255
  versionVectorToHex: typeof versionVectorToHex;
1292
1256
  hexToVersionVector: typeof hexToVersionVector;
1293
1257
  fromSchemaRules: typeof fromSchemaRules;
1294
1258
  toRevisionSummary: typeof toRevisionSummary;
1259
+ changeIDToBinary: (changeID: ChangeID) => Uint8Array<ArrayBuffer>;
1260
+ operationToBinary: (op: Operation) => Uint8Array<ArrayBuffer>;
1295
1261
  };
1296
1262
 
1297
1263
  /**
@@ -2420,7 +2386,7 @@ declare type DocEvent_2<P extends Indexable_2 = Indexable_2, T = OpInfo_2> =
2420
2386
  /**
2421
2387
  * @generated from message yorkie.v1.DocEvent
2422
2388
  */
2423
- declare class DocEvent_3 extends Message<DocEvent_3> {
2389
+ declare type DocEvent_3 = Message<"yorkie.v1.DocEvent"> & {
2424
2390
  /**
2425
2391
  * @generated from field: yorkie.v1.DocEventType type = 1;
2426
2392
  */
@@ -2433,20 +2399,12 @@ declare class DocEvent_3 extends Message<DocEvent_3> {
2433
2399
  * @generated from field: yorkie.v1.DocEventBody body = 3;
2434
2400
  */
2435
2401
  body?: DocEventBody;
2436
- constructor(data?: PartialMessage<DocEvent_3>);
2437
- static readonly runtime: typeof proto3;
2438
- static readonly typeName = "yorkie.v1.DocEvent";
2439
- static readonly fields: FieldList;
2440
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocEvent_3;
2441
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocEvent_3;
2442
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocEvent_3;
2443
- static equals(a: DocEvent_3 | PlainMessage<DocEvent_3> | undefined, b: DocEvent_3 | PlainMessage<DocEvent_3> | undefined): boolean;
2444
- }
2402
+ };
2445
2403
 
2446
2404
  /**
2447
2405
  * @generated from message yorkie.v1.DocEventBody
2448
2406
  */
2449
- declare class DocEventBody extends Message<DocEventBody> {
2407
+ declare type DocEventBody = Message<"yorkie.v1.DocEventBody"> & {
2450
2408
  /**
2451
2409
  * @generated from field: string topic = 1;
2452
2410
  */
@@ -2455,15 +2413,7 @@ declare class DocEventBody extends Message<DocEventBody> {
2455
2413
  * @generated from field: bytes payload = 2;
2456
2414
  */
2457
2415
  payload: Uint8Array;
2458
- constructor(data?: PartialMessage<DocEventBody>);
2459
- static readonly runtime: typeof proto3;
2460
- static readonly typeName = "yorkie.v1.DocEventBody";
2461
- static readonly fields: FieldList;
2462
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocEventBody;
2463
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocEventBody;
2464
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocEventBody;
2465
- static equals(a: DocEventBody | PlainMessage<DocEventBody> | undefined, b: DocEventBody | PlainMessage<DocEventBody> | undefined): boolean;
2466
- }
2416
+ };
2467
2417
 
2468
2418
  declare type DocEventCallbackMap<P extends Indexable> = {
2469
2419
  default: NextFn<LocalChangeEvent<OpInfo, P> | RemoteChangeEvent<OpInfo, P> | SnapshotEvent>;
@@ -2872,7 +2822,7 @@ declare class Document_2<R, P extends Indexable = Indexable> implements Attachab
2872
2822
  */
2873
2823
  getClone(): {
2874
2824
  root: CRDTRoot;
2875
- presences: Map<string, P>;
2825
+ presences: Map<ActorID, P>;
2876
2826
  } | undefined;
2877
2827
  /**
2878
2828
  * `getCloneRoot` returns clone object.
@@ -3025,7 +2975,7 @@ declare class Document_2<R, P extends Indexable = Indexable> implements Attachab
3025
2975
  * `getOthersForTest` returns all the other clients in online, sorted by clientID.
3026
2976
  */
3027
2977
  getOthersForTest(): {
3028
- clientID: string;
2978
+ clientID: ActorID;
3029
2979
  presence: P;
3030
2980
  }[];
3031
2981
  /**
@@ -3688,7 +3638,7 @@ declare type JSONElement_2 = {
3688
3638
  /**
3689
3639
  * @generated from message yorkie.v1.JSONElementSimple
3690
3640
  */
3691
- declare class JSONElementSimple extends Message<JSONElementSimple> {
3641
+ declare type JSONElementSimple = Message<"yorkie.v1.JSONElementSimple"> & {
3692
3642
  /**
3693
3643
  * @generated from field: yorkie.v1.TimeTicket created_at = 1;
3694
3644
  */
@@ -3709,15 +3659,7 @@ declare class JSONElementSimple extends Message<JSONElementSimple> {
3709
3659
  * @generated from field: bytes value = 5;
3710
3660
  */
3711
3661
  value: Uint8Array;
3712
- constructor(data?: PartialMessage<JSONElementSimple>);
3713
- static readonly runtime: typeof proto3;
3714
- static readonly typeName = "yorkie.v1.JSONElementSimple";
3715
- static readonly fields: FieldList;
3716
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JSONElementSimple;
3717
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JSONElementSimple;
3718
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JSONElementSimple;
3719
- static equals(a: JSONElementSimple | PlainMessage<JSONElementSimple> | undefined, b: JSONElementSimple | PlainMessage<JSONElementSimple> | undefined): boolean;
3720
- }
3662
+ };
3721
3663
 
3722
3664
  declare type JSONElementType =
3723
3665
  | 'YORKIE_PRIMITIVE'
@@ -3880,8 +3822,10 @@ export declare interface LocalChangeEvent<T = OpInfo, P extends Indexable = Inde
3880
3822
  * `LocalChangeEvent` is an event that occurs when the document is changed
3881
3823
  * by local changes.
3882
3824
  */
3883
- declare interface LocalChangeEvent_2<T = OpInfo_2, P extends Indexable_2 = Indexable_2>
3884
- extends BaseDocEvent {
3825
+ declare interface LocalChangeEvent_2<
3826
+ T = OpInfo_2,
3827
+ P extends Indexable_2 = Indexable_2,
3828
+ > extends BaseDocEvent {
3885
3829
  type: DocEventType_2.LocalChange;
3886
3830
  source: OpSource_2.Local | OpSource_2.UndoRedo;
3887
3831
  value: ChangeInfo_2<T>;
@@ -3922,7 +3866,7 @@ export declare type NextFn<T> = (value: T) => void;
3922
3866
  /**
3923
3867
  * @generated from message yorkie.v1.NodeAttr
3924
3868
  */
3925
- declare class NodeAttr extends Message<NodeAttr> {
3869
+ declare type NodeAttr = Message<"yorkie.v1.NodeAttr"> & {
3926
3870
  /**
3927
3871
  * @generated from field: string value = 1;
3928
3872
  */
@@ -3935,15 +3879,7 @@ declare class NodeAttr extends Message<NodeAttr> {
3935
3879
  * @generated from field: bool is_removed = 3;
3936
3880
  */
3937
3881
  isRemoved: boolean;
3938
- constructor(data?: PartialMessage<NodeAttr>);
3939
- static readonly runtime: typeof proto3;
3940
- static readonly typeName = "yorkie.v1.NodeAttr";
3941
- static readonly fields: FieldList;
3942
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeAttr;
3943
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeAttr;
3944
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeAttr;
3945
- static equals(a: NodeAttr | PlainMessage<NodeAttr> | undefined, b: NodeAttr | PlainMessage<NodeAttr> | undefined): boolean;
3946
- }
3882
+ };
3947
3883
 
3948
3884
  /**
3949
3885
  * `ObjectOpInfo` represents the OperationInfo for the JSONObject.
@@ -4049,7 +3985,7 @@ declare abstract class Operation {
4049
3985
  /**
4050
3986
  * @generated from message yorkie.v1.Operation
4051
3987
  */
4052
- declare class Operation_2 extends Message<Operation_2> {
3988
+ declare type Operation_2 = Message<"yorkie.v1.Operation"> & {
4053
3989
  /**
4054
3990
  * @generated from oneof yorkie.v1.Operation.body
4055
3991
  */
@@ -4117,20 +4053,12 @@ declare class Operation_2 extends Message<Operation_2> {
4117
4053
  case: undefined;
4118
4054
  value?: undefined;
4119
4055
  };
4120
- constructor(data?: PartialMessage<Operation_2>);
4121
- static readonly runtime: typeof proto3;
4122
- static readonly typeName = "yorkie.v1.Operation";
4123
- static readonly fields: FieldList;
4124
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_2;
4125
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_2;
4126
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_2;
4127
- static equals(a: Operation_2 | PlainMessage<Operation_2> | undefined, b: Operation_2 | PlainMessage<Operation_2> | undefined): boolean;
4128
- }
4056
+ };
4129
4057
 
4130
4058
  /**
4131
4059
  * @generated from message yorkie.v1.Operation.Add
4132
4060
  */
4133
- declare class Operation_Add extends Message<Operation_Add> {
4061
+ declare type Operation_Add = Message<"yorkie.v1.Operation.Add"> & {
4134
4062
  /**
4135
4063
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4136
4064
  */
@@ -4147,20 +4075,12 @@ declare class Operation_Add extends Message<Operation_Add> {
4147
4075
  * @generated from field: yorkie.v1.TimeTicket executed_at = 4;
4148
4076
  */
4149
4077
  executedAt?: TimeTicket_2;
4150
- constructor(data?: PartialMessage<Operation_Add>);
4151
- static readonly runtime: typeof proto3;
4152
- static readonly typeName = "yorkie.v1.Operation.Add";
4153
- static readonly fields: FieldList;
4154
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Add;
4155
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Add;
4156
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Add;
4157
- static equals(a: Operation_Add | PlainMessage<Operation_Add> | undefined, b: Operation_Add | PlainMessage<Operation_Add> | undefined): boolean;
4158
- }
4078
+ };
4159
4079
 
4160
4080
  /**
4161
4081
  * @generated from message yorkie.v1.Operation.ArraySet
4162
4082
  */
4163
- declare class Operation_ArraySet extends Message<Operation_ArraySet> {
4083
+ declare type Operation_ArraySet = Message<"yorkie.v1.Operation.ArraySet"> & {
4164
4084
  /**
4165
4085
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4166
4086
  */
@@ -4177,20 +4097,12 @@ declare class Operation_ArraySet extends Message<Operation_ArraySet> {
4177
4097
  * @generated from field: yorkie.v1.TimeTicket executed_at = 4;
4178
4098
  */
4179
4099
  executedAt?: TimeTicket_2;
4180
- constructor(data?: PartialMessage<Operation_ArraySet>);
4181
- static readonly runtime: typeof proto3;
4182
- static readonly typeName = "yorkie.v1.Operation.ArraySet";
4183
- static readonly fields: FieldList;
4184
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_ArraySet;
4185
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_ArraySet;
4186
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_ArraySet;
4187
- static equals(a: Operation_ArraySet | PlainMessage<Operation_ArraySet> | undefined, b: Operation_ArraySet | PlainMessage<Operation_ArraySet> | undefined): boolean;
4188
- }
4100
+ };
4189
4101
 
4190
4102
  /**
4191
4103
  * @generated from message yorkie.v1.Operation.Edit
4192
4104
  */
4193
- declare class Operation_Edit extends Message<Operation_Edit> {
4105
+ declare type Operation_Edit = Message<"yorkie.v1.Operation.Edit"> & {
4194
4106
  /**
4195
4107
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4196
4108
  */
@@ -4225,20 +4137,12 @@ declare class Operation_Edit extends Message<Operation_Edit> {
4225
4137
  attributes: {
4226
4138
  [key: string]: string;
4227
4139
  };
4228
- constructor(data?: PartialMessage<Operation_Edit>);
4229
- static readonly runtime: typeof proto3;
4230
- static readonly typeName = "yorkie.v1.Operation.Edit";
4231
- static readonly fields: FieldList;
4232
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Edit;
4233
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Edit;
4234
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Edit;
4235
- static equals(a: Operation_Edit | PlainMessage<Operation_Edit> | undefined, b: Operation_Edit | PlainMessage<Operation_Edit> | undefined): boolean;
4236
- }
4140
+ };
4237
4141
 
4238
4142
  /**
4239
4143
  * @generated from message yorkie.v1.Operation.Increase
4240
4144
  */
4241
- declare class Operation_Increase extends Message<Operation_Increase> {
4145
+ declare type Operation_Increase = Message<"yorkie.v1.Operation.Increase"> & {
4242
4146
  /**
4243
4147
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4244
4148
  */
@@ -4251,20 +4155,12 @@ declare class Operation_Increase extends Message<Operation_Increase> {
4251
4155
  * @generated from field: yorkie.v1.TimeTicket executed_at = 3;
4252
4156
  */
4253
4157
  executedAt?: TimeTicket_2;
4254
- constructor(data?: PartialMessage<Operation_Increase>);
4255
- static readonly runtime: typeof proto3;
4256
- static readonly typeName = "yorkie.v1.Operation.Increase";
4257
- static readonly fields: FieldList;
4258
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Increase;
4259
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Increase;
4260
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Increase;
4261
- static equals(a: Operation_Increase | PlainMessage<Operation_Increase> | undefined, b: Operation_Increase | PlainMessage<Operation_Increase> | undefined): boolean;
4262
- }
4158
+ };
4263
4159
 
4264
4160
  /**
4265
4161
  * @generated from message yorkie.v1.Operation.Move
4266
4162
  */
4267
- declare class Operation_Move extends Message<Operation_Move> {
4163
+ declare type Operation_Move = Message<"yorkie.v1.Operation.Move"> & {
4268
4164
  /**
4269
4165
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4270
4166
  */
@@ -4281,20 +4177,12 @@ declare class Operation_Move extends Message<Operation_Move> {
4281
4177
  * @generated from field: yorkie.v1.TimeTicket executed_at = 4;
4282
4178
  */
4283
4179
  executedAt?: TimeTicket_2;
4284
- constructor(data?: PartialMessage<Operation_Move>);
4285
- static readonly runtime: typeof proto3;
4286
- static readonly typeName = "yorkie.v1.Operation.Move";
4287
- static readonly fields: FieldList;
4288
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Move;
4289
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Move;
4290
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Move;
4291
- static equals(a: Operation_Move | PlainMessage<Operation_Move> | undefined, b: Operation_Move | PlainMessage<Operation_Move> | undefined): boolean;
4292
- }
4180
+ };
4293
4181
 
4294
4182
  /**
4295
4183
  * @generated from message yorkie.v1.Operation.Remove
4296
4184
  */
4297
- declare class Operation_Remove extends Message<Operation_Remove> {
4185
+ declare type Operation_Remove = Message<"yorkie.v1.Operation.Remove"> & {
4298
4186
  /**
4299
4187
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4300
4188
  */
@@ -4307,20 +4195,12 @@ declare class Operation_Remove extends Message<Operation_Remove> {
4307
4195
  * @generated from field: yorkie.v1.TimeTicket executed_at = 3;
4308
4196
  */
4309
4197
  executedAt?: TimeTicket_2;
4310
- constructor(data?: PartialMessage<Operation_Remove>);
4311
- static readonly runtime: typeof proto3;
4312
- static readonly typeName = "yorkie.v1.Operation.Remove";
4313
- static readonly fields: FieldList;
4314
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Remove;
4315
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Remove;
4316
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Remove;
4317
- static equals(a: Operation_Remove | PlainMessage<Operation_Remove> | undefined, b: Operation_Remove | PlainMessage<Operation_Remove> | undefined): boolean;
4318
- }
4198
+ };
4319
4199
 
4320
4200
  /**
4321
4201
  * @generated from message yorkie.v1.Operation.Set
4322
4202
  */
4323
- declare class Operation_Set extends Message<Operation_Set> {
4203
+ declare type Operation_Set = Message<"yorkie.v1.Operation.Set"> & {
4324
4204
  /**
4325
4205
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4326
4206
  */
@@ -4337,20 +4217,12 @@ declare class Operation_Set extends Message<Operation_Set> {
4337
4217
  * @generated from field: yorkie.v1.TimeTicket executed_at = 4;
4338
4218
  */
4339
4219
  executedAt?: TimeTicket_2;
4340
- constructor(data?: PartialMessage<Operation_Set>);
4341
- static readonly runtime: typeof proto3;
4342
- static readonly typeName = "yorkie.v1.Operation.Set";
4343
- static readonly fields: FieldList;
4344
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Set;
4345
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Set;
4346
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Set;
4347
- static equals(a: Operation_Set | PlainMessage<Operation_Set> | undefined, b: Operation_Set | PlainMessage<Operation_Set> | undefined): boolean;
4348
- }
4220
+ };
4349
4221
 
4350
4222
  /**
4351
4223
  * @generated from message yorkie.v1.Operation.Style
4352
4224
  */
4353
- declare class Operation_Style extends Message<Operation_Style> {
4225
+ declare type Operation_Style = Message<"yorkie.v1.Operation.Style"> & {
4354
4226
  /**
4355
4227
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4356
4228
  */
@@ -4381,20 +4253,12 @@ declare class Operation_Style extends Message<Operation_Style> {
4381
4253
  createdAtMapByActor: {
4382
4254
  [key: string]: TimeTicket_2;
4383
4255
  };
4384
- constructor(data?: PartialMessage<Operation_Style>);
4385
- static readonly runtime: typeof proto3;
4386
- static readonly typeName = "yorkie.v1.Operation.Style";
4387
- static readonly fields: FieldList;
4388
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Style;
4389
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Style;
4390
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Style;
4391
- static equals(a: Operation_Style | PlainMessage<Operation_Style> | undefined, b: Operation_Style | PlainMessage<Operation_Style> | undefined): boolean;
4392
- }
4256
+ };
4393
4257
 
4394
4258
  /**
4395
4259
  * @generated from message yorkie.v1.Operation.TreeEdit
4396
4260
  */
4397
- declare class Operation_TreeEdit extends Message<Operation_TreeEdit> {
4261
+ declare type Operation_TreeEdit = Message<"yorkie.v1.Operation.TreeEdit"> & {
4398
4262
  /**
4399
4263
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4400
4264
  */
@@ -4427,20 +4291,12 @@ declare class Operation_TreeEdit extends Message<Operation_TreeEdit> {
4427
4291
  * @generated from field: yorkie.v1.TimeTicket executed_at = 6;
4428
4292
  */
4429
4293
  executedAt?: TimeTicket_2;
4430
- constructor(data?: PartialMessage<Operation_TreeEdit>);
4431
- static readonly runtime: typeof proto3;
4432
- static readonly typeName = "yorkie.v1.Operation.TreeEdit";
4433
- static readonly fields: FieldList;
4434
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_TreeEdit;
4435
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_TreeEdit;
4436
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_TreeEdit;
4437
- static equals(a: Operation_TreeEdit | PlainMessage<Operation_TreeEdit> | undefined, b: Operation_TreeEdit | PlainMessage<Operation_TreeEdit> | undefined): boolean;
4438
- }
4294
+ };
4439
4295
 
4440
4296
  /**
4441
4297
  * @generated from message yorkie.v1.Operation.TreeStyle
4442
4298
  */
4443
- declare class Operation_TreeStyle extends Message<Operation_TreeStyle> {
4299
+ declare type Operation_TreeStyle = Message<"yorkie.v1.Operation.TreeStyle"> & {
4444
4300
  /**
4445
4301
  * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
4446
4302
  */
@@ -4475,15 +4331,7 @@ declare class Operation_TreeStyle extends Message<Operation_TreeStyle> {
4475
4331
  createdAtMapByActor: {
4476
4332
  [key: string]: TimeTicket_2;
4477
4333
  };
4478
- constructor(data?: PartialMessage<Operation_TreeStyle>);
4479
- static readonly runtime: typeof proto3;
4480
- static readonly typeName = "yorkie.v1.Operation.TreeStyle";
4481
- static readonly fields: FieldList;
4482
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_TreeStyle;
4483
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_TreeStyle;
4484
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_TreeStyle;
4485
- static equals(a: Operation_TreeStyle | PlainMessage<Operation_TreeStyle> | undefined, b: Operation_TreeStyle | PlainMessage<Operation_TreeStyle> | undefined): boolean;
4486
- }
4334
+ };
4487
4335
 
4488
4336
  /**
4489
4337
  * `OpInfo` represents the information of an operation.
@@ -4604,22 +4452,14 @@ export declare class Presence<P extends Indexable> {
4604
4452
  /**
4605
4453
  * @generated from message yorkie.v1.Presence
4606
4454
  */
4607
- declare class Presence_2 extends Message<Presence_2> {
4455
+ declare type Presence_2 = Message<"yorkie.v1.Presence"> & {
4608
4456
  /**
4609
4457
  * @generated from field: map<string, string> data = 1;
4610
4458
  */
4611
4459
  data: {
4612
4460
  [key: string]: string;
4613
4461
  };
4614
- constructor(data?: PartialMessage<Presence_2>);
4615
- static readonly runtime: typeof proto3;
4616
- static readonly typeName = "yorkie.v1.Presence";
4617
- static readonly fields: FieldList;
4618
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Presence_2;
4619
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Presence_2;
4620
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Presence_2;
4621
- static equals(a: Presence_2 | PlainMessage<Presence_2> | undefined, b: Presence_2 | PlainMessage<Presence_2> | undefined): boolean;
4622
- }
4462
+ };
4623
4463
 
4624
4464
  /**
4625
4465
  * `PresenceChange` represents the change of presence.
@@ -4634,7 +4474,7 @@ declare type PresenceChange<P extends Indexable> = {
4634
4474
  /**
4635
4475
  * @generated from message yorkie.v1.PresenceChange
4636
4476
  */
4637
- declare class PresenceChange_2 extends Message<PresenceChange_2> {
4477
+ declare type PresenceChange_2 = Message<"yorkie.v1.PresenceChange"> & {
4638
4478
  /**
4639
4479
  * @generated from field: yorkie.v1.PresenceChange.ChangeType type = 1;
4640
4480
  */
@@ -4643,15 +4483,7 @@ declare class PresenceChange_2 extends Message<PresenceChange_2> {
4643
4483
  * @generated from field: yorkie.v1.Presence presence = 2;
4644
4484
  */
4645
4485
  presence?: Presence_2;
4646
- constructor(data?: PartialMessage<PresenceChange_2>);
4647
- static readonly runtime: typeof proto3;
4648
- static readonly typeName = "yorkie.v1.PresenceChange";
4649
- static readonly fields: FieldList;
4650
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PresenceChange_2;
4651
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PresenceChange_2;
4652
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PresenceChange_2;
4653
- static equals(a: PresenceChange_2 | PlainMessage<PresenceChange_2> | undefined, b: PresenceChange_2 | PlainMessage<PresenceChange_2> | undefined): boolean;
4654
- }
4486
+ };
4655
4487
 
4656
4488
  /**
4657
4489
  * @generated from enum yorkie.v1.PresenceChange.ChangeType
@@ -4684,8 +4516,9 @@ export declare interface PresenceChangedEvent<P extends Indexable> extends BaseD
4684
4516
  };
4685
4517
  }
4686
4518
 
4687
- declare interface PresenceChangedEvent_2<P extends Indexable_2>
4688
- extends BaseDocEvent {
4519
+ declare interface PresenceChangedEvent_2<
4520
+ P extends Indexable_2,
4521
+ > extends BaseDocEvent {
4689
4522
  type: DocEventType_2.PresenceChanged;
4690
4523
  source: OpSource_2;
4691
4524
  value: { clientID: ActorID_2; presence: P };
@@ -4846,8 +4679,10 @@ export declare interface RemoteChangeEvent<T = OpInfo, P extends Indexable = Ind
4846
4679
  * `RemoteChangeEvent` is an event that occurs when the document is changed
4847
4680
  * by remote changes.
4848
4681
  */
4849
- declare interface RemoteChangeEvent_2<T = OpInfo_2, P extends Indexable_2 = Indexable_2>
4850
- extends BaseDocEvent {
4682
+ declare interface RemoteChangeEvent_2<
4683
+ T = OpInfo_2,
4684
+ P extends Indexable_2 = Indexable_2,
4685
+ > extends BaseDocEvent {
4851
4686
  type: DocEventType_2.RemoteChange;
4852
4687
  source: OpSource_2.Remote;
4853
4688
  value: ChangeInfo_2<T>;
@@ -4911,7 +4746,7 @@ export declare interface RevisionSummary {
4911
4746
  /**
4912
4747
  * @generated from message yorkie.v1.RevisionSummary
4913
4748
  */
4914
- declare class RevisionSummary_2 extends Message<RevisionSummary_2> {
4749
+ declare type RevisionSummary_2 = Message<"yorkie.v1.RevisionSummary"> & {
4915
4750
  /**
4916
4751
  * @generated from field: string id = 1;
4917
4752
  */
@@ -4932,15 +4767,7 @@ declare class RevisionSummary_2 extends Message<RevisionSummary_2> {
4932
4767
  * @generated from field: google.protobuf.Timestamp created_at = 5;
4933
4768
  */
4934
4769
  createdAt?: Timestamp;
4935
- constructor(data?: PartialMessage<RevisionSummary_2>);
4936
- static readonly runtime: typeof proto3;
4937
- static readonly typeName = "yorkie.v1.RevisionSummary";
4938
- static readonly fields: FieldList;
4939
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RevisionSummary_2;
4940
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RevisionSummary_2;
4941
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RevisionSummary_2;
4942
- static equals(a: RevisionSummary_2 | PlainMessage<RevisionSummary_2> | undefined, b: RevisionSummary_2 | PlainMessage<RevisionSummary_2> | undefined): boolean;
4943
- }
4770
+ };
4944
4771
 
4945
4772
  /**
4946
4773
  * `RGATreeSplit` is a block-based list with improved index-based lookup in RGA.
@@ -5422,7 +5249,7 @@ declare interface RootStats {
5422
5249
  /**
5423
5250
  * @generated from message yorkie.v1.Rule
5424
5251
  */
5425
- declare class Rule_2 extends Message<Rule_2> {
5252
+ declare type Rule_2 = Message<"yorkie.v1.Rule"> & {
5426
5253
  /**
5427
5254
  * @generated from field: string path = 1;
5428
5255
  */
@@ -5431,15 +5258,7 @@ declare class Rule_2 extends Message<Rule_2> {
5431
5258
  * @generated from field: string type = 2;
5432
5259
  */
5433
5260
  type: string;
5434
- constructor(data?: PartialMessage<Rule_2>);
5435
- static readonly runtime: typeof proto3;
5436
- static readonly typeName = "yorkie.v1.Rule";
5437
- static readonly fields: FieldList;
5438
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Rule_2;
5439
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Rule_2;
5440
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Rule_2;
5441
- static equals(a: Rule_2 | PlainMessage<Rule_2> | undefined, b: Rule_2 | PlainMessage<Rule_2> | undefined): boolean;
5442
- }
5261
+ };
5443
5262
 
5444
5263
  /**
5445
5264
  * Definition of all messages the SDK can send to the Devtools panel.
@@ -5942,7 +5761,7 @@ declare type TextNode_2 = {
5942
5761
  /**
5943
5762
  * @generated from message yorkie.v1.TextNodePos
5944
5763
  */
5945
- declare class TextNodePos extends Message<TextNodePos> {
5764
+ declare type TextNodePos = Message<"yorkie.v1.TextNodePos"> & {
5946
5765
  /**
5947
5766
  * @generated from field: yorkie.v1.TimeTicket created_at = 1;
5948
5767
  */
@@ -5955,15 +5774,7 @@ declare class TextNodePos extends Message<TextNodePos> {
5955
5774
  * @generated from field: int32 relative_offset = 3;
5956
5775
  */
5957
5776
  relativeOffset: number;
5958
- constructor(data?: PartialMessage<TextNodePos>);
5959
- static readonly runtime: typeof proto3;
5960
- static readonly typeName = "yorkie.v1.TextNodePos";
5961
- static readonly fields: FieldList;
5962
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextNodePos;
5963
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextNodePos;
5964
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextNodePos;
5965
- static equals(a: TextNodePos | PlainMessage<TextNodePos> | undefined, b: TextNodePos | PlainMessage<TextNodePos> | undefined): boolean;
5966
- }
5777
+ };
5967
5778
 
5968
5779
  /**
5969
5780
  * `TextOpInfo` represents the OperationInfo for the yorkie.Text.
@@ -6071,7 +5882,7 @@ export declare class TimeTicket {
6071
5882
  /**
6072
5883
  * @generated from message yorkie.v1.TimeTicket
6073
5884
  */
6074
- declare class TimeTicket_2 extends Message<TimeTicket_2> {
5885
+ declare type TimeTicket_2 = Message<"yorkie.v1.TimeTicket"> & {
6075
5886
  /**
6076
5887
  * @generated from field: int64 lamport = 1;
6077
5888
  */
@@ -6084,15 +5895,7 @@ declare class TimeTicket_2 extends Message<TimeTicket_2> {
6084
5895
  * @generated from field: bytes actor_id = 3;
6085
5896
  */
6086
5897
  actorId: Uint8Array;
6087
- constructor(data?: PartialMessage<TimeTicket_2>);
6088
- static readonly runtime: typeof proto3;
6089
- static readonly typeName = "yorkie.v1.TimeTicket";
6090
- static readonly fields: FieldList;
6091
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeTicket_2;
6092
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeTicket_2;
6093
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeTicket_2;
6094
- static equals(a: TimeTicket_2 | PlainMessage<TimeTicket_2> | undefined, b: TimeTicket_2 | PlainMessage<TimeTicket_2> | undefined): boolean;
6095
- }
5898
+ };
6096
5899
 
6097
5900
  /**
6098
5901
  * `TimeTicketStruct` is a structure represents the meta data of the ticket.
@@ -6372,7 +6175,7 @@ declare type TreeNode_2 = TextNode_2 | ElementNode_2;
6372
6175
  /**
6373
6176
  * @generated from message yorkie.v1.TreeNode
6374
6177
  */
6375
- declare class TreeNode_3 extends Message<TreeNode_3> {
6178
+ declare type TreeNode_3 = Message<"yorkie.v1.TreeNode"> & {
6376
6179
  /**
6377
6180
  * @generated from field: yorkie.v1.TreeNodeID id = 1;
6378
6181
  */
@@ -6407,15 +6210,7 @@ declare class TreeNode_3 extends Message<TreeNode_3> {
6407
6210
  attributes: {
6408
6211
  [key: string]: NodeAttr;
6409
6212
  };
6410
- constructor(data?: PartialMessage<TreeNode_3>);
6411
- static readonly runtime: typeof proto3;
6412
- static readonly typeName = "yorkie.v1.TreeNode";
6413
- static readonly fields: FieldList;
6414
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TreeNode_3;
6415
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TreeNode_3;
6416
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TreeNode_3;
6417
- static equals(a: TreeNode_3 | PlainMessage<TreeNode_3> | undefined, b: TreeNode_3 | PlainMessage<TreeNode_3> | undefined): boolean;
6418
- }
6213
+ };
6419
6214
 
6420
6215
  /**
6421
6216
  * `TreeNodeForTest` represents the JSON representation of a node in the tree.
@@ -6430,7 +6225,7 @@ declare type TreeNodeForTest = TreeNode & {
6430
6225
  /**
6431
6226
  * @generated from message yorkie.v1.TreeNodeID
6432
6227
  */
6433
- declare class TreeNodeID extends Message<TreeNodeID> {
6228
+ declare type TreeNodeID = Message<"yorkie.v1.TreeNodeID"> & {
6434
6229
  /**
6435
6230
  * @generated from field: yorkie.v1.TimeTicket created_at = 1;
6436
6231
  */
@@ -6439,15 +6234,7 @@ declare class TreeNodeID extends Message<TreeNodeID> {
6439
6234
  * @generated from field: int32 offset = 2;
6440
6235
  */
6441
6236
  offset: number;
6442
- constructor(data?: PartialMessage<TreeNodeID>);
6443
- static readonly runtime: typeof proto3;
6444
- static readonly typeName = "yorkie.v1.TreeNodeID";
6445
- static readonly fields: FieldList;
6446
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TreeNodeID;
6447
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TreeNodeID;
6448
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TreeNodeID;
6449
- static equals(a: TreeNodeID | PlainMessage<TreeNodeID> | undefined, b: TreeNodeID | PlainMessage<TreeNodeID> | undefined): boolean;
6450
- }
6237
+ };
6451
6238
 
6452
6239
  /**
6453
6240
  * `TreeNodeInfo` represents the crdt tree node information in devtools.
@@ -6479,20 +6266,12 @@ declare type TreeNodePair = [CRDTTreeNode, CRDTTreeNode];
6479
6266
  /**
6480
6267
  * @generated from message yorkie.v1.TreeNodes
6481
6268
  */
6482
- declare class TreeNodes extends Message<TreeNodes> {
6269
+ declare type TreeNodes = Message<"yorkie.v1.TreeNodes"> & {
6483
6270
  /**
6484
6271
  * @generated from field: repeated yorkie.v1.TreeNode content = 1;
6485
6272
  */
6486
6273
  content: TreeNode_3[];
6487
- constructor(data?: PartialMessage<TreeNodes>);
6488
- static readonly runtime: typeof proto3;
6489
- static readonly typeName = "yorkie.v1.TreeNodes";
6490
- static readonly fields: FieldList;
6491
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TreeNodes;
6492
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TreeNodes;
6493
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TreeNodes;
6494
- static equals(a: TreeNodes | PlainMessage<TreeNodes> | undefined, b: TreeNodes | PlainMessage<TreeNodes> | undefined): boolean;
6495
- }
6274
+ };
6496
6275
 
6497
6276
  /**
6498
6277
  * `NoteType` is the type of a node in the tree.
@@ -6529,7 +6308,7 @@ declare type TreePos<T extends IndexTreeNode<T>> = {
6529
6308
  /**
6530
6309
  * @generated from message yorkie.v1.TreePos
6531
6310
  */
6532
- declare class TreePos_2 extends Message<TreePos_2> {
6311
+ declare type TreePos_2 = Message<"yorkie.v1.TreePos"> & {
6533
6312
  /**
6534
6313
  * @generated from field: yorkie.v1.TreeNodeID parent_id = 1;
6535
6314
  */
@@ -6538,15 +6317,7 @@ declare class TreePos_2 extends Message<TreePos_2> {
6538
6317
  * @generated from field: yorkie.v1.TreeNodeID left_sibling_id = 2;
6539
6318
  */
6540
6319
  leftSiblingId?: TreeNodeID;
6541
- constructor(data?: PartialMessage<TreePos_2>);
6542
- static readonly runtime: typeof proto3;
6543
- static readonly typeName = "yorkie.v1.TreePos";
6544
- static readonly fields: FieldList;
6545
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TreePos_2;
6546
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TreePos_2;
6547
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TreePos_2;
6548
- static equals(a: TreePos_2 | PlainMessage<TreePos_2> | undefined, b: TreePos_2 | PlainMessage<TreePos_2> | undefined): boolean;
6549
- }
6320
+ };
6550
6321
 
6551
6322
  /**
6552
6323
  * `TreePosRange` represents a pair of CRDTTreePos.
@@ -6737,22 +6508,14 @@ export declare class VersionVector {
6737
6508
  /**
6738
6509
  * @generated from message yorkie.v1.VersionVector
6739
6510
  */
6740
- declare class VersionVector_2 extends Message<VersionVector_2> {
6511
+ declare type VersionVector_2 = Message<"yorkie.v1.VersionVector"> & {
6741
6512
  /**
6742
6513
  * @generated from field: map<string, int64> vector = 1;
6743
6514
  */
6744
6515
  vector: {
6745
6516
  [key: string]: bigint;
6746
6517
  };
6747
- constructor(data?: PartialMessage<VersionVector_2>);
6748
- static readonly runtime: typeof proto3;
6749
- static readonly typeName = "yorkie.v1.VersionVector";
6750
- static readonly fields: FieldList;
6751
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VersionVector_2;
6752
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VersionVector_2;
6753
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VersionVector_2;
6754
- static equals(a: VersionVector_2 | PlainMessage<VersionVector_2> | undefined, b: VersionVector_2 | PlainMessage<VersionVector_2> | undefined): boolean;
6755
- }
6518
+ };
6756
6519
 
6757
6520
  /**
6758
6521
  * `versionVectorToHex` converts the given VersionVector to bytes.
@@ -6762,7 +6525,7 @@ declare function versionVectorToHex(vector: VersionVector): string;
6762
6525
  /**
6763
6526
  * @generated from message yorkie.v1.WatchDocumentResponse
6764
6527
  */
6765
- declare class WatchDocumentResponse extends Message<WatchDocumentResponse> {
6528
+ declare type WatchDocumentResponse = Message<"yorkie.v1.WatchDocumentResponse"> & {
6766
6529
  /**
6767
6530
  * @generated from oneof yorkie.v1.WatchDocumentResponse.body
6768
6531
  */
@@ -6782,33 +6545,17 @@ declare class WatchDocumentResponse extends Message<WatchDocumentResponse> {
6782
6545
  case: undefined;
6783
6546
  value?: undefined;
6784
6547
  };
6785
- constructor(data?: PartialMessage<WatchDocumentResponse>);
6786
- static readonly runtime: typeof proto3;
6787
- static readonly typeName = "yorkie.v1.WatchDocumentResponse";
6788
- static readonly fields: FieldList;
6789
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDocumentResponse;
6790
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDocumentResponse;
6791
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDocumentResponse;
6792
- static equals(a: WatchDocumentResponse | PlainMessage<WatchDocumentResponse> | undefined, b: WatchDocumentResponse | PlainMessage<WatchDocumentResponse> | undefined): boolean;
6793
- }
6548
+ };
6794
6549
 
6795
6550
  /**
6796
6551
  * @generated from message yorkie.v1.WatchDocumentResponse.Initialization
6797
6552
  */
6798
- declare class WatchDocumentResponse_Initialization extends Message<WatchDocumentResponse_Initialization> {
6553
+ declare type WatchDocumentResponse_Initialization = Message<"yorkie.v1.WatchDocumentResponse.Initialization"> & {
6799
6554
  /**
6800
6555
  * @generated from field: repeated string client_ids = 1;
6801
6556
  */
6802
6557
  clientIds: string[];
6803
- constructor(data?: PartialMessage<WatchDocumentResponse_Initialization>);
6804
- static readonly runtime: typeof proto3;
6805
- static readonly typeName = "yorkie.v1.WatchDocumentResponse.Initialization";
6806
- static readonly fields: FieldList;
6807
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDocumentResponse_Initialization;
6808
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDocumentResponse_Initialization;
6809
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDocumentResponse_Initialization;
6810
- static equals(a: WatchDocumentResponse_Initialization | PlainMessage<WatchDocumentResponse_Initialization> | undefined, b: WatchDocumentResponse_Initialization | PlainMessage<WatchDocumentResponse_Initialization> | undefined): boolean;
6811
- }
6558
+ };
6812
6559
 
6813
6560
  export declare interface WatchedEvent<P extends Indexable> extends BaseDocEvent_2 {
6814
6561
  type: DocEventType.Watched;
@@ -6831,11 +6578,3 @@ declare interface WatchedEvent_2<P extends Indexable_2> extends BaseDocEvent {
6831
6578
  export declare type WrappedElement<T = unknown, A extends Indexable = Indexable> = Primitive | JSONObject<T> | JSONArray<T> | Text_2<A> | Counter | Tree;
6832
6579
 
6833
6580
  export { }
6834
-
6835
-
6836
- declare global {
6837
- interface Window {
6838
- docEventsForReplayByDocKey: Map<string, Array<DocEventsForReplay>>;
6839
- }
6840
- }
6841
-