@yorkie-js/sdk 0.6.39 → 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.
- package/dist/yorkie-js-sdk.d.ts +159 -334
- package/dist/yorkie-js-sdk.es.js +4458 -7546
- package/dist/yorkie-js-sdk.es.js.map +1 -1
- package/dist/yorkie-js-sdk.js +4461 -7549
- package/dist/yorkie-js-sdk.js.map +1 -1
- package/package.json +26 -27
package/dist/yorkie-js-sdk.d.ts
CHANGED
|
@@ -1,14 +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';
|
|
5
|
+
import { Timestamp } from '@bufbuild/protobuf/wkt';
|
|
12
6
|
|
|
13
7
|
/**
|
|
14
8
|
* `ActorID` is used to identify who is making changes to the document.
|
|
@@ -307,7 +301,7 @@ export declare class Change<P extends Indexable> {
|
|
|
307
301
|
/**
|
|
308
302
|
* @generated from message yorkie.v1.Change
|
|
309
303
|
*/
|
|
310
|
-
declare
|
|
304
|
+
declare type Change_2 = Message<"yorkie.v1.Change"> & {
|
|
311
305
|
/**
|
|
312
306
|
* @generated from field: yorkie.v1.ChangeID id = 1;
|
|
313
307
|
*/
|
|
@@ -324,15 +318,7 @@ declare class Change_2 extends Message<Change_2> {
|
|
|
324
318
|
* @generated from field: yorkie.v1.PresenceChange presence_change = 4;
|
|
325
319
|
*/
|
|
326
320
|
presenceChange?: PresenceChange_2;
|
|
327
|
-
|
|
328
|
-
static readonly runtime: typeof proto3;
|
|
329
|
-
static readonly typeName = "yorkie.v1.Change";
|
|
330
|
-
static readonly fields: FieldList;
|
|
331
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Change_2;
|
|
332
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Change_2;
|
|
333
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Change_2;
|
|
334
|
-
static equals(a: Change_2 | PlainMessage<Change_2> | undefined, b: Change_2 | PlainMessage<Change_2> | undefined): boolean;
|
|
335
|
-
}
|
|
321
|
+
};
|
|
336
322
|
|
|
337
323
|
/**
|
|
338
324
|
* `ChangeContext` is used to record the context of modification when editing
|
|
@@ -505,7 +491,7 @@ declare class ChangeID {
|
|
|
505
491
|
/**
|
|
506
492
|
* @generated from message yorkie.v1.ChangeID
|
|
507
493
|
*/
|
|
508
|
-
declare
|
|
494
|
+
declare type ChangeID_2 = Message<"yorkie.v1.ChangeID"> & {
|
|
509
495
|
/**
|
|
510
496
|
* @generated from field: uint32 client_seq = 1;
|
|
511
497
|
*/
|
|
@@ -526,15 +512,7 @@ declare class ChangeID_2 extends Message<ChangeID_2> {
|
|
|
526
512
|
* @generated from field: yorkie.v1.VersionVector version_vector = 5;
|
|
527
513
|
*/
|
|
528
514
|
versionVector?: VersionVector_2;
|
|
529
|
-
|
|
530
|
-
static readonly runtime: typeof proto3;
|
|
531
|
-
static readonly typeName = "yorkie.v1.ChangeID";
|
|
532
|
-
static readonly fields: FieldList;
|
|
533
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChangeID_2;
|
|
534
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChangeID_2;
|
|
535
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChangeID_2;
|
|
536
|
-
static equals(a: ChangeID_2 | PlainMessage<ChangeID_2> | undefined, b: ChangeID_2 | PlainMessage<ChangeID_2> | undefined): boolean;
|
|
537
|
-
}
|
|
515
|
+
};
|
|
538
516
|
|
|
539
517
|
/**
|
|
540
518
|
* `ChangeInfo` represents the modifications made during a document update
|
|
@@ -635,7 +613,7 @@ declare class ChangePack<P extends Indexable> {
|
|
|
635
613
|
*
|
|
636
614
|
* @generated from message yorkie.v1.ChangePack
|
|
637
615
|
*/
|
|
638
|
-
declare
|
|
616
|
+
declare type ChangePack_2 = Message<"yorkie.v1.ChangePack"> & {
|
|
639
617
|
/**
|
|
640
618
|
* @generated from field: string document_key = 1;
|
|
641
619
|
*/
|
|
@@ -666,15 +644,7 @@ declare class ChangePack_2 extends Message<ChangePack_2> {
|
|
|
666
644
|
* @generated from field: yorkie.v1.VersionVector version_vector = 7;
|
|
667
645
|
*/
|
|
668
646
|
versionVector?: VersionVector_2;
|
|
669
|
-
|
|
670
|
-
static readonly runtime: typeof proto3;
|
|
671
|
-
static readonly typeName = "yorkie.v1.ChangePack";
|
|
672
|
-
static readonly fields: FieldList;
|
|
673
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChangePack_2;
|
|
674
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChangePack_2;
|
|
675
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChangePack_2;
|
|
676
|
-
static equals(a: ChangePack_2 | PlainMessage<ChangePack_2> | undefined, b: ChangePack_2 | PlainMessage<ChangePack_2> | undefined): boolean;
|
|
677
|
-
}
|
|
647
|
+
};
|
|
678
648
|
|
|
679
649
|
/**
|
|
680
650
|
* `ChangeStruct` represents the structure of Change.
|
|
@@ -925,7 +895,7 @@ declare class Checkpoint {
|
|
|
925
895
|
/**
|
|
926
896
|
* @generated from message yorkie.v1.Checkpoint
|
|
927
897
|
*/
|
|
928
|
-
declare
|
|
898
|
+
declare type Checkpoint_2 = Message<"yorkie.v1.Checkpoint"> & {
|
|
929
899
|
/**
|
|
930
900
|
* @generated from field: int64 server_seq = 1;
|
|
931
901
|
*/
|
|
@@ -934,15 +904,7 @@ declare class Checkpoint_2 extends Message<Checkpoint_2> {
|
|
|
934
904
|
* @generated from field: uint32 client_seq = 2;
|
|
935
905
|
*/
|
|
936
906
|
clientSeq: number;
|
|
937
|
-
|
|
938
|
-
static readonly runtime: typeof proto3;
|
|
939
|
-
static readonly typeName = "yorkie.v1.Checkpoint";
|
|
940
|
-
static readonly fields: FieldList;
|
|
941
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Checkpoint_2;
|
|
942
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Checkpoint_2;
|
|
943
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Checkpoint_2;
|
|
944
|
-
static equals(a: Checkpoint_2 | PlainMessage<Checkpoint_2> | undefined, b: Checkpoint_2 | PlainMessage<Checkpoint_2> | undefined): boolean;
|
|
945
|
-
}
|
|
907
|
+
};
|
|
946
908
|
|
|
947
909
|
/**
|
|
948
910
|
* `Client` is a normal client that can communicate with the server.
|
|
@@ -1083,6 +1045,26 @@ export declare class Client {
|
|
|
1083
1045
|
* `getCondition` returns the condition of this client.
|
|
1084
1046
|
*/
|
|
1085
1047
|
getCondition(condition: ClientCondition): boolean;
|
|
1048
|
+
/**
|
|
1049
|
+
* `createRevision` creates a new revision for the given document.
|
|
1050
|
+
*/
|
|
1051
|
+
createRevision<R, P extends Indexable>(doc: Document_2<R, P>, label: string, description?: string): Promise<RevisionSummary>;
|
|
1052
|
+
/**
|
|
1053
|
+
* `listRevisions` lists all revisions for the given document.
|
|
1054
|
+
*/
|
|
1055
|
+
listRevisions<R, P extends Indexable>(doc: Document_2<R, P>, options?: {
|
|
1056
|
+
pageSize?: number;
|
|
1057
|
+
offset?: number;
|
|
1058
|
+
isForward?: boolean;
|
|
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>;
|
|
1064
|
+
/**
|
|
1065
|
+
* `restoreRevision` restores the document to the given revision.
|
|
1066
|
+
*/
|
|
1067
|
+
restoreRevision<R, P extends Indexable>(doc: Document_2<R, P>, revisionId: string): Promise<void>;
|
|
1086
1068
|
/**
|
|
1087
1069
|
* `broadcast` broadcasts the given payload to the given topic.
|
|
1088
1070
|
*/
|
|
@@ -1268,12 +1250,14 @@ export declare const converter: {
|
|
|
1268
1250
|
toUint8Array: typeof toUint8Array;
|
|
1269
1251
|
toOperation: typeof toOperation;
|
|
1270
1252
|
toChangeID: typeof toChangeID;
|
|
1271
|
-
PbChangeID: typeof ChangeID_2;
|
|
1272
1253
|
bytesToChangeID: typeof bytesToChangeID;
|
|
1273
1254
|
bytesToOperation: typeof bytesToOperation;
|
|
1274
1255
|
versionVectorToHex: typeof versionVectorToHex;
|
|
1275
1256
|
hexToVersionVector: typeof hexToVersionVector;
|
|
1276
1257
|
fromSchemaRules: typeof fromSchemaRules;
|
|
1258
|
+
toRevisionSummary: typeof toRevisionSummary;
|
|
1259
|
+
changeIDToBinary: (changeID: ChangeID) => Uint8Array<ArrayBuffer>;
|
|
1260
|
+
operationToBinary: (op: Operation) => Uint8Array<ArrayBuffer>;
|
|
1277
1261
|
};
|
|
1278
1262
|
|
|
1279
1263
|
/**
|
|
@@ -2402,7 +2386,7 @@ declare type DocEvent_2<P extends Indexable_2 = Indexable_2, T = OpInfo_2> =
|
|
|
2402
2386
|
/**
|
|
2403
2387
|
* @generated from message yorkie.v1.DocEvent
|
|
2404
2388
|
*/
|
|
2405
|
-
declare
|
|
2389
|
+
declare type DocEvent_3 = Message<"yorkie.v1.DocEvent"> & {
|
|
2406
2390
|
/**
|
|
2407
2391
|
* @generated from field: yorkie.v1.DocEventType type = 1;
|
|
2408
2392
|
*/
|
|
@@ -2415,20 +2399,12 @@ declare class DocEvent_3 extends Message<DocEvent_3> {
|
|
|
2415
2399
|
* @generated from field: yorkie.v1.DocEventBody body = 3;
|
|
2416
2400
|
*/
|
|
2417
2401
|
body?: DocEventBody;
|
|
2418
|
-
|
|
2419
|
-
static readonly runtime: typeof proto3;
|
|
2420
|
-
static readonly typeName = "yorkie.v1.DocEvent";
|
|
2421
|
-
static readonly fields: FieldList;
|
|
2422
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocEvent_3;
|
|
2423
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocEvent_3;
|
|
2424
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocEvent_3;
|
|
2425
|
-
static equals(a: DocEvent_3 | PlainMessage<DocEvent_3> | undefined, b: DocEvent_3 | PlainMessage<DocEvent_3> | undefined): boolean;
|
|
2426
|
-
}
|
|
2402
|
+
};
|
|
2427
2403
|
|
|
2428
2404
|
/**
|
|
2429
2405
|
* @generated from message yorkie.v1.DocEventBody
|
|
2430
2406
|
*/
|
|
2431
|
-
declare
|
|
2407
|
+
declare type DocEventBody = Message<"yorkie.v1.DocEventBody"> & {
|
|
2432
2408
|
/**
|
|
2433
2409
|
* @generated from field: string topic = 1;
|
|
2434
2410
|
*/
|
|
@@ -2437,15 +2413,7 @@ declare class DocEventBody extends Message<DocEventBody> {
|
|
|
2437
2413
|
* @generated from field: bytes payload = 2;
|
|
2438
2414
|
*/
|
|
2439
2415
|
payload: Uint8Array;
|
|
2440
|
-
|
|
2441
|
-
static readonly runtime: typeof proto3;
|
|
2442
|
-
static readonly typeName = "yorkie.v1.DocEventBody";
|
|
2443
|
-
static readonly fields: FieldList;
|
|
2444
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocEventBody;
|
|
2445
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocEventBody;
|
|
2446
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocEventBody;
|
|
2447
|
-
static equals(a: DocEventBody | PlainMessage<DocEventBody> | undefined, b: DocEventBody | PlainMessage<DocEventBody> | undefined): boolean;
|
|
2448
|
-
}
|
|
2416
|
+
};
|
|
2449
2417
|
|
|
2450
2418
|
declare type DocEventCallbackMap<P extends Indexable> = {
|
|
2451
2419
|
default: NextFn<LocalChangeEvent<OpInfo, P> | RemoteChangeEvent<OpInfo, P> | SnapshotEvent>;
|
|
@@ -2854,7 +2822,7 @@ declare class Document_2<R, P extends Indexable = Indexable> implements Attachab
|
|
|
2854
2822
|
*/
|
|
2855
2823
|
getClone(): {
|
|
2856
2824
|
root: CRDTRoot;
|
|
2857
|
-
presences: Map<
|
|
2825
|
+
presences: Map<ActorID, P>;
|
|
2858
2826
|
} | undefined;
|
|
2859
2827
|
/**
|
|
2860
2828
|
* `getCloneRoot` returns clone object.
|
|
@@ -3007,7 +2975,7 @@ declare class Document_2<R, P extends Indexable = Indexable> implements Attachab
|
|
|
3007
2975
|
* `getOthersForTest` returns all the other clients in online, sorted by clientID.
|
|
3008
2976
|
*/
|
|
3009
2977
|
getOthersForTest(): {
|
|
3010
|
-
clientID:
|
|
2978
|
+
clientID: ActorID;
|
|
3011
2979
|
presence: P;
|
|
3012
2980
|
}[];
|
|
3013
2981
|
/**
|
|
@@ -3670,7 +3638,7 @@ declare type JSONElement_2 = {
|
|
|
3670
3638
|
/**
|
|
3671
3639
|
* @generated from message yorkie.v1.JSONElementSimple
|
|
3672
3640
|
*/
|
|
3673
|
-
declare
|
|
3641
|
+
declare type JSONElementSimple = Message<"yorkie.v1.JSONElementSimple"> & {
|
|
3674
3642
|
/**
|
|
3675
3643
|
* @generated from field: yorkie.v1.TimeTicket created_at = 1;
|
|
3676
3644
|
*/
|
|
@@ -3691,15 +3659,7 @@ declare class JSONElementSimple extends Message<JSONElementSimple> {
|
|
|
3691
3659
|
* @generated from field: bytes value = 5;
|
|
3692
3660
|
*/
|
|
3693
3661
|
value: Uint8Array;
|
|
3694
|
-
|
|
3695
|
-
static readonly runtime: typeof proto3;
|
|
3696
|
-
static readonly typeName = "yorkie.v1.JSONElementSimple";
|
|
3697
|
-
static readonly fields: FieldList;
|
|
3698
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JSONElementSimple;
|
|
3699
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JSONElementSimple;
|
|
3700
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JSONElementSimple;
|
|
3701
|
-
static equals(a: JSONElementSimple | PlainMessage<JSONElementSimple> | undefined, b: JSONElementSimple | PlainMessage<JSONElementSimple> | undefined): boolean;
|
|
3702
|
-
}
|
|
3662
|
+
};
|
|
3703
3663
|
|
|
3704
3664
|
declare type JSONElementType =
|
|
3705
3665
|
| 'YORKIE_PRIMITIVE'
|
|
@@ -3862,8 +3822,10 @@ export declare interface LocalChangeEvent<T = OpInfo, P extends Indexable = Inde
|
|
|
3862
3822
|
* `LocalChangeEvent` is an event that occurs when the document is changed
|
|
3863
3823
|
* by local changes.
|
|
3864
3824
|
*/
|
|
3865
|
-
declare interface LocalChangeEvent_2<
|
|
3866
|
-
|
|
3825
|
+
declare interface LocalChangeEvent_2<
|
|
3826
|
+
T = OpInfo_2,
|
|
3827
|
+
P extends Indexable_2 = Indexable_2,
|
|
3828
|
+
> extends BaseDocEvent {
|
|
3867
3829
|
type: DocEventType_2.LocalChange;
|
|
3868
3830
|
source: OpSource_2.Local | OpSource_2.UndoRedo;
|
|
3869
3831
|
value: ChangeInfo_2<T>;
|
|
@@ -3904,7 +3866,7 @@ export declare type NextFn<T> = (value: T) => void;
|
|
|
3904
3866
|
/**
|
|
3905
3867
|
* @generated from message yorkie.v1.NodeAttr
|
|
3906
3868
|
*/
|
|
3907
|
-
declare
|
|
3869
|
+
declare type NodeAttr = Message<"yorkie.v1.NodeAttr"> & {
|
|
3908
3870
|
/**
|
|
3909
3871
|
* @generated from field: string value = 1;
|
|
3910
3872
|
*/
|
|
@@ -3917,15 +3879,7 @@ declare class NodeAttr extends Message<NodeAttr> {
|
|
|
3917
3879
|
* @generated from field: bool is_removed = 3;
|
|
3918
3880
|
*/
|
|
3919
3881
|
isRemoved: boolean;
|
|
3920
|
-
|
|
3921
|
-
static readonly runtime: typeof proto3;
|
|
3922
|
-
static readonly typeName = "yorkie.v1.NodeAttr";
|
|
3923
|
-
static readonly fields: FieldList;
|
|
3924
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeAttr;
|
|
3925
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeAttr;
|
|
3926
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeAttr;
|
|
3927
|
-
static equals(a: NodeAttr | PlainMessage<NodeAttr> | undefined, b: NodeAttr | PlainMessage<NodeAttr> | undefined): boolean;
|
|
3928
|
-
}
|
|
3882
|
+
};
|
|
3929
3883
|
|
|
3930
3884
|
/**
|
|
3931
3885
|
* `ObjectOpInfo` represents the OperationInfo for the JSONObject.
|
|
@@ -4031,7 +3985,7 @@ declare abstract class Operation {
|
|
|
4031
3985
|
/**
|
|
4032
3986
|
* @generated from message yorkie.v1.Operation
|
|
4033
3987
|
*/
|
|
4034
|
-
declare
|
|
3988
|
+
declare type Operation_2 = Message<"yorkie.v1.Operation"> & {
|
|
4035
3989
|
/**
|
|
4036
3990
|
* @generated from oneof yorkie.v1.Operation.body
|
|
4037
3991
|
*/
|
|
@@ -4099,20 +4053,12 @@ declare class Operation_2 extends Message<Operation_2> {
|
|
|
4099
4053
|
case: undefined;
|
|
4100
4054
|
value?: undefined;
|
|
4101
4055
|
};
|
|
4102
|
-
|
|
4103
|
-
static readonly runtime: typeof proto3;
|
|
4104
|
-
static readonly typeName = "yorkie.v1.Operation";
|
|
4105
|
-
static readonly fields: FieldList;
|
|
4106
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_2;
|
|
4107
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_2;
|
|
4108
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_2;
|
|
4109
|
-
static equals(a: Operation_2 | PlainMessage<Operation_2> | undefined, b: Operation_2 | PlainMessage<Operation_2> | undefined): boolean;
|
|
4110
|
-
}
|
|
4056
|
+
};
|
|
4111
4057
|
|
|
4112
4058
|
/**
|
|
4113
4059
|
* @generated from message yorkie.v1.Operation.Add
|
|
4114
4060
|
*/
|
|
4115
|
-
declare
|
|
4061
|
+
declare type Operation_Add = Message<"yorkie.v1.Operation.Add"> & {
|
|
4116
4062
|
/**
|
|
4117
4063
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4118
4064
|
*/
|
|
@@ -4129,20 +4075,12 @@ declare class Operation_Add extends Message<Operation_Add> {
|
|
|
4129
4075
|
* @generated from field: yorkie.v1.TimeTicket executed_at = 4;
|
|
4130
4076
|
*/
|
|
4131
4077
|
executedAt?: TimeTicket_2;
|
|
4132
|
-
|
|
4133
|
-
static readonly runtime: typeof proto3;
|
|
4134
|
-
static readonly typeName = "yorkie.v1.Operation.Add";
|
|
4135
|
-
static readonly fields: FieldList;
|
|
4136
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Add;
|
|
4137
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Add;
|
|
4138
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Add;
|
|
4139
|
-
static equals(a: Operation_Add | PlainMessage<Operation_Add> | undefined, b: Operation_Add | PlainMessage<Operation_Add> | undefined): boolean;
|
|
4140
|
-
}
|
|
4078
|
+
};
|
|
4141
4079
|
|
|
4142
4080
|
/**
|
|
4143
4081
|
* @generated from message yorkie.v1.Operation.ArraySet
|
|
4144
4082
|
*/
|
|
4145
|
-
declare
|
|
4083
|
+
declare type Operation_ArraySet = Message<"yorkie.v1.Operation.ArraySet"> & {
|
|
4146
4084
|
/**
|
|
4147
4085
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4148
4086
|
*/
|
|
@@ -4159,20 +4097,12 @@ declare class Operation_ArraySet extends Message<Operation_ArraySet> {
|
|
|
4159
4097
|
* @generated from field: yorkie.v1.TimeTicket executed_at = 4;
|
|
4160
4098
|
*/
|
|
4161
4099
|
executedAt?: TimeTicket_2;
|
|
4162
|
-
|
|
4163
|
-
static readonly runtime: typeof proto3;
|
|
4164
|
-
static readonly typeName = "yorkie.v1.Operation.ArraySet";
|
|
4165
|
-
static readonly fields: FieldList;
|
|
4166
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_ArraySet;
|
|
4167
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_ArraySet;
|
|
4168
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_ArraySet;
|
|
4169
|
-
static equals(a: Operation_ArraySet | PlainMessage<Operation_ArraySet> | undefined, b: Operation_ArraySet | PlainMessage<Operation_ArraySet> | undefined): boolean;
|
|
4170
|
-
}
|
|
4100
|
+
};
|
|
4171
4101
|
|
|
4172
4102
|
/**
|
|
4173
4103
|
* @generated from message yorkie.v1.Operation.Edit
|
|
4174
4104
|
*/
|
|
4175
|
-
declare
|
|
4105
|
+
declare type Operation_Edit = Message<"yorkie.v1.Operation.Edit"> & {
|
|
4176
4106
|
/**
|
|
4177
4107
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4178
4108
|
*/
|
|
@@ -4207,20 +4137,12 @@ declare class Operation_Edit extends Message<Operation_Edit> {
|
|
|
4207
4137
|
attributes: {
|
|
4208
4138
|
[key: string]: string;
|
|
4209
4139
|
};
|
|
4210
|
-
|
|
4211
|
-
static readonly runtime: typeof proto3;
|
|
4212
|
-
static readonly typeName = "yorkie.v1.Operation.Edit";
|
|
4213
|
-
static readonly fields: FieldList;
|
|
4214
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Edit;
|
|
4215
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Edit;
|
|
4216
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Edit;
|
|
4217
|
-
static equals(a: Operation_Edit | PlainMessage<Operation_Edit> | undefined, b: Operation_Edit | PlainMessage<Operation_Edit> | undefined): boolean;
|
|
4218
|
-
}
|
|
4140
|
+
};
|
|
4219
4141
|
|
|
4220
4142
|
/**
|
|
4221
4143
|
* @generated from message yorkie.v1.Operation.Increase
|
|
4222
4144
|
*/
|
|
4223
|
-
declare
|
|
4145
|
+
declare type Operation_Increase = Message<"yorkie.v1.Operation.Increase"> & {
|
|
4224
4146
|
/**
|
|
4225
4147
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4226
4148
|
*/
|
|
@@ -4233,20 +4155,12 @@ declare class Operation_Increase extends Message<Operation_Increase> {
|
|
|
4233
4155
|
* @generated from field: yorkie.v1.TimeTicket executed_at = 3;
|
|
4234
4156
|
*/
|
|
4235
4157
|
executedAt?: TimeTicket_2;
|
|
4236
|
-
|
|
4237
|
-
static readonly runtime: typeof proto3;
|
|
4238
|
-
static readonly typeName = "yorkie.v1.Operation.Increase";
|
|
4239
|
-
static readonly fields: FieldList;
|
|
4240
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Increase;
|
|
4241
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Increase;
|
|
4242
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Increase;
|
|
4243
|
-
static equals(a: Operation_Increase | PlainMessage<Operation_Increase> | undefined, b: Operation_Increase | PlainMessage<Operation_Increase> | undefined): boolean;
|
|
4244
|
-
}
|
|
4158
|
+
};
|
|
4245
4159
|
|
|
4246
4160
|
/**
|
|
4247
4161
|
* @generated from message yorkie.v1.Operation.Move
|
|
4248
4162
|
*/
|
|
4249
|
-
declare
|
|
4163
|
+
declare type Operation_Move = Message<"yorkie.v1.Operation.Move"> & {
|
|
4250
4164
|
/**
|
|
4251
4165
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4252
4166
|
*/
|
|
@@ -4263,20 +4177,12 @@ declare class Operation_Move extends Message<Operation_Move> {
|
|
|
4263
4177
|
* @generated from field: yorkie.v1.TimeTicket executed_at = 4;
|
|
4264
4178
|
*/
|
|
4265
4179
|
executedAt?: TimeTicket_2;
|
|
4266
|
-
|
|
4267
|
-
static readonly runtime: typeof proto3;
|
|
4268
|
-
static readonly typeName = "yorkie.v1.Operation.Move";
|
|
4269
|
-
static readonly fields: FieldList;
|
|
4270
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Move;
|
|
4271
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Move;
|
|
4272
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Move;
|
|
4273
|
-
static equals(a: Operation_Move | PlainMessage<Operation_Move> | undefined, b: Operation_Move | PlainMessage<Operation_Move> | undefined): boolean;
|
|
4274
|
-
}
|
|
4180
|
+
};
|
|
4275
4181
|
|
|
4276
4182
|
/**
|
|
4277
4183
|
* @generated from message yorkie.v1.Operation.Remove
|
|
4278
4184
|
*/
|
|
4279
|
-
declare
|
|
4185
|
+
declare type Operation_Remove = Message<"yorkie.v1.Operation.Remove"> & {
|
|
4280
4186
|
/**
|
|
4281
4187
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4282
4188
|
*/
|
|
@@ -4289,20 +4195,12 @@ declare class Operation_Remove extends Message<Operation_Remove> {
|
|
|
4289
4195
|
* @generated from field: yorkie.v1.TimeTicket executed_at = 3;
|
|
4290
4196
|
*/
|
|
4291
4197
|
executedAt?: TimeTicket_2;
|
|
4292
|
-
|
|
4293
|
-
static readonly runtime: typeof proto3;
|
|
4294
|
-
static readonly typeName = "yorkie.v1.Operation.Remove";
|
|
4295
|
-
static readonly fields: FieldList;
|
|
4296
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Remove;
|
|
4297
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Remove;
|
|
4298
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Remove;
|
|
4299
|
-
static equals(a: Operation_Remove | PlainMessage<Operation_Remove> | undefined, b: Operation_Remove | PlainMessage<Operation_Remove> | undefined): boolean;
|
|
4300
|
-
}
|
|
4198
|
+
};
|
|
4301
4199
|
|
|
4302
4200
|
/**
|
|
4303
4201
|
* @generated from message yorkie.v1.Operation.Set
|
|
4304
4202
|
*/
|
|
4305
|
-
declare
|
|
4203
|
+
declare type Operation_Set = Message<"yorkie.v1.Operation.Set"> & {
|
|
4306
4204
|
/**
|
|
4307
4205
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4308
4206
|
*/
|
|
@@ -4319,20 +4217,12 @@ declare class Operation_Set extends Message<Operation_Set> {
|
|
|
4319
4217
|
* @generated from field: yorkie.v1.TimeTicket executed_at = 4;
|
|
4320
4218
|
*/
|
|
4321
4219
|
executedAt?: TimeTicket_2;
|
|
4322
|
-
|
|
4323
|
-
static readonly runtime: typeof proto3;
|
|
4324
|
-
static readonly typeName = "yorkie.v1.Operation.Set";
|
|
4325
|
-
static readonly fields: FieldList;
|
|
4326
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Set;
|
|
4327
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Set;
|
|
4328
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Set;
|
|
4329
|
-
static equals(a: Operation_Set | PlainMessage<Operation_Set> | undefined, b: Operation_Set | PlainMessage<Operation_Set> | undefined): boolean;
|
|
4330
|
-
}
|
|
4220
|
+
};
|
|
4331
4221
|
|
|
4332
4222
|
/**
|
|
4333
4223
|
* @generated from message yorkie.v1.Operation.Style
|
|
4334
4224
|
*/
|
|
4335
|
-
declare
|
|
4225
|
+
declare type Operation_Style = Message<"yorkie.v1.Operation.Style"> & {
|
|
4336
4226
|
/**
|
|
4337
4227
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4338
4228
|
*/
|
|
@@ -4363,20 +4253,12 @@ declare class Operation_Style extends Message<Operation_Style> {
|
|
|
4363
4253
|
createdAtMapByActor: {
|
|
4364
4254
|
[key: string]: TimeTicket_2;
|
|
4365
4255
|
};
|
|
4366
|
-
|
|
4367
|
-
static readonly runtime: typeof proto3;
|
|
4368
|
-
static readonly typeName = "yorkie.v1.Operation.Style";
|
|
4369
|
-
static readonly fields: FieldList;
|
|
4370
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_Style;
|
|
4371
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_Style;
|
|
4372
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_Style;
|
|
4373
|
-
static equals(a: Operation_Style | PlainMessage<Operation_Style> | undefined, b: Operation_Style | PlainMessage<Operation_Style> | undefined): boolean;
|
|
4374
|
-
}
|
|
4256
|
+
};
|
|
4375
4257
|
|
|
4376
4258
|
/**
|
|
4377
4259
|
* @generated from message yorkie.v1.Operation.TreeEdit
|
|
4378
4260
|
*/
|
|
4379
|
-
declare
|
|
4261
|
+
declare type Operation_TreeEdit = Message<"yorkie.v1.Operation.TreeEdit"> & {
|
|
4380
4262
|
/**
|
|
4381
4263
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4382
4264
|
*/
|
|
@@ -4409,20 +4291,12 @@ declare class Operation_TreeEdit extends Message<Operation_TreeEdit> {
|
|
|
4409
4291
|
* @generated from field: yorkie.v1.TimeTicket executed_at = 6;
|
|
4410
4292
|
*/
|
|
4411
4293
|
executedAt?: TimeTicket_2;
|
|
4412
|
-
|
|
4413
|
-
static readonly runtime: typeof proto3;
|
|
4414
|
-
static readonly typeName = "yorkie.v1.Operation.TreeEdit";
|
|
4415
|
-
static readonly fields: FieldList;
|
|
4416
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_TreeEdit;
|
|
4417
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_TreeEdit;
|
|
4418
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_TreeEdit;
|
|
4419
|
-
static equals(a: Operation_TreeEdit | PlainMessage<Operation_TreeEdit> | undefined, b: Operation_TreeEdit | PlainMessage<Operation_TreeEdit> | undefined): boolean;
|
|
4420
|
-
}
|
|
4294
|
+
};
|
|
4421
4295
|
|
|
4422
4296
|
/**
|
|
4423
4297
|
* @generated from message yorkie.v1.Operation.TreeStyle
|
|
4424
4298
|
*/
|
|
4425
|
-
declare
|
|
4299
|
+
declare type Operation_TreeStyle = Message<"yorkie.v1.Operation.TreeStyle"> & {
|
|
4426
4300
|
/**
|
|
4427
4301
|
* @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
|
|
4428
4302
|
*/
|
|
@@ -4457,15 +4331,7 @@ declare class Operation_TreeStyle extends Message<Operation_TreeStyle> {
|
|
|
4457
4331
|
createdAtMapByActor: {
|
|
4458
4332
|
[key: string]: TimeTicket_2;
|
|
4459
4333
|
};
|
|
4460
|
-
|
|
4461
|
-
static readonly runtime: typeof proto3;
|
|
4462
|
-
static readonly typeName = "yorkie.v1.Operation.TreeStyle";
|
|
4463
|
-
static readonly fields: FieldList;
|
|
4464
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Operation_TreeStyle;
|
|
4465
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Operation_TreeStyle;
|
|
4466
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Operation_TreeStyle;
|
|
4467
|
-
static equals(a: Operation_TreeStyle | PlainMessage<Operation_TreeStyle> | undefined, b: Operation_TreeStyle | PlainMessage<Operation_TreeStyle> | undefined): boolean;
|
|
4468
|
-
}
|
|
4334
|
+
};
|
|
4469
4335
|
|
|
4470
4336
|
/**
|
|
4471
4337
|
* `OpInfo` represents the information of an operation.
|
|
@@ -4586,22 +4452,14 @@ export declare class Presence<P extends Indexable> {
|
|
|
4586
4452
|
/**
|
|
4587
4453
|
* @generated from message yorkie.v1.Presence
|
|
4588
4454
|
*/
|
|
4589
|
-
declare
|
|
4455
|
+
declare type Presence_2 = Message<"yorkie.v1.Presence"> & {
|
|
4590
4456
|
/**
|
|
4591
4457
|
* @generated from field: map<string, string> data = 1;
|
|
4592
4458
|
*/
|
|
4593
4459
|
data: {
|
|
4594
4460
|
[key: string]: string;
|
|
4595
4461
|
};
|
|
4596
|
-
|
|
4597
|
-
static readonly runtime: typeof proto3;
|
|
4598
|
-
static readonly typeName = "yorkie.v1.Presence";
|
|
4599
|
-
static readonly fields: FieldList;
|
|
4600
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Presence_2;
|
|
4601
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Presence_2;
|
|
4602
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Presence_2;
|
|
4603
|
-
static equals(a: Presence_2 | PlainMessage<Presence_2> | undefined, b: Presence_2 | PlainMessage<Presence_2> | undefined): boolean;
|
|
4604
|
-
}
|
|
4462
|
+
};
|
|
4605
4463
|
|
|
4606
4464
|
/**
|
|
4607
4465
|
* `PresenceChange` represents the change of presence.
|
|
@@ -4616,7 +4474,7 @@ declare type PresenceChange<P extends Indexable> = {
|
|
|
4616
4474
|
/**
|
|
4617
4475
|
* @generated from message yorkie.v1.PresenceChange
|
|
4618
4476
|
*/
|
|
4619
|
-
declare
|
|
4477
|
+
declare type PresenceChange_2 = Message<"yorkie.v1.PresenceChange"> & {
|
|
4620
4478
|
/**
|
|
4621
4479
|
* @generated from field: yorkie.v1.PresenceChange.ChangeType type = 1;
|
|
4622
4480
|
*/
|
|
@@ -4625,15 +4483,7 @@ declare class PresenceChange_2 extends Message<PresenceChange_2> {
|
|
|
4625
4483
|
* @generated from field: yorkie.v1.Presence presence = 2;
|
|
4626
4484
|
*/
|
|
4627
4485
|
presence?: Presence_2;
|
|
4628
|
-
|
|
4629
|
-
static readonly runtime: typeof proto3;
|
|
4630
|
-
static readonly typeName = "yorkie.v1.PresenceChange";
|
|
4631
|
-
static readonly fields: FieldList;
|
|
4632
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PresenceChange_2;
|
|
4633
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PresenceChange_2;
|
|
4634
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PresenceChange_2;
|
|
4635
|
-
static equals(a: PresenceChange_2 | PlainMessage<PresenceChange_2> | undefined, b: PresenceChange_2 | PlainMessage<PresenceChange_2> | undefined): boolean;
|
|
4636
|
-
}
|
|
4486
|
+
};
|
|
4637
4487
|
|
|
4638
4488
|
/**
|
|
4639
4489
|
* @generated from enum yorkie.v1.PresenceChange.ChangeType
|
|
@@ -4666,8 +4516,9 @@ export declare interface PresenceChangedEvent<P extends Indexable> extends BaseD
|
|
|
4666
4516
|
};
|
|
4667
4517
|
}
|
|
4668
4518
|
|
|
4669
|
-
declare interface PresenceChangedEvent_2<
|
|
4670
|
-
extends
|
|
4519
|
+
declare interface PresenceChangedEvent_2<
|
|
4520
|
+
P extends Indexable_2,
|
|
4521
|
+
> extends BaseDocEvent {
|
|
4671
4522
|
type: DocEventType_2.PresenceChanged;
|
|
4672
4523
|
source: OpSource_2;
|
|
4673
4524
|
value: { clientID: ActorID_2; presence: P };
|
|
@@ -4828,8 +4679,10 @@ export declare interface RemoteChangeEvent<T = OpInfo, P extends Indexable = Ind
|
|
|
4828
4679
|
* `RemoteChangeEvent` is an event that occurs when the document is changed
|
|
4829
4680
|
* by remote changes.
|
|
4830
4681
|
*/
|
|
4831
|
-
declare interface RemoteChangeEvent_2<
|
|
4832
|
-
|
|
4682
|
+
declare interface RemoteChangeEvent_2<
|
|
4683
|
+
T = OpInfo_2,
|
|
4684
|
+
P extends Indexable_2 = Indexable_2,
|
|
4685
|
+
> extends BaseDocEvent {
|
|
4833
4686
|
type: DocEventType_2.RemoteChange;
|
|
4834
4687
|
source: OpSource_2.Remote;
|
|
4835
4688
|
value: ChangeInfo_2<T>;
|
|
@@ -4861,6 +4714,61 @@ declare type RemoveOpInfo_2 = {
|
|
|
4861
4714
|
*/
|
|
4862
4715
|
declare type ResourceStatus = 'detached' | 'attached' | 'removed';
|
|
4863
4716
|
|
|
4717
|
+
/**
|
|
4718
|
+
* `RevisionSummary` represents a document revision for version management.
|
|
4719
|
+
* It stores a snapshot of document content at a specific point in time,
|
|
4720
|
+
* enabling features like rollback, audit, and version history tracking.
|
|
4721
|
+
*/
|
|
4722
|
+
export declare interface RevisionSummary {
|
|
4723
|
+
/**
|
|
4724
|
+
* `id` is the unique identifier of the revision.
|
|
4725
|
+
*/
|
|
4726
|
+
id: string;
|
|
4727
|
+
/**
|
|
4728
|
+
* `label` is a user-friendly name for this revision.
|
|
4729
|
+
*/
|
|
4730
|
+
label: string;
|
|
4731
|
+
/**
|
|
4732
|
+
* `description` is a detailed explanation of this revision.
|
|
4733
|
+
*/
|
|
4734
|
+
description: string;
|
|
4735
|
+
/**
|
|
4736
|
+
* `snapshot` is the serialized document content (JSON format) at this revision point.
|
|
4737
|
+
* This contains only the pure data without CRDT metadata.
|
|
4738
|
+
*/
|
|
4739
|
+
snapshot: string;
|
|
4740
|
+
/**
|
|
4741
|
+
* `createdAt` is the time when this revision was created.
|
|
4742
|
+
*/
|
|
4743
|
+
createdAt: Date;
|
|
4744
|
+
}
|
|
4745
|
+
|
|
4746
|
+
/**
|
|
4747
|
+
* @generated from message yorkie.v1.RevisionSummary
|
|
4748
|
+
*/
|
|
4749
|
+
declare type RevisionSummary_2 = Message<"yorkie.v1.RevisionSummary"> & {
|
|
4750
|
+
/**
|
|
4751
|
+
* @generated from field: string id = 1;
|
|
4752
|
+
*/
|
|
4753
|
+
id: string;
|
|
4754
|
+
/**
|
|
4755
|
+
* @generated from field: string label = 2;
|
|
4756
|
+
*/
|
|
4757
|
+
label: string;
|
|
4758
|
+
/**
|
|
4759
|
+
* @generated from field: string description = 3;
|
|
4760
|
+
*/
|
|
4761
|
+
description: string;
|
|
4762
|
+
/**
|
|
4763
|
+
* @generated from field: string snapshot = 4;
|
|
4764
|
+
*/
|
|
4765
|
+
snapshot: string;
|
|
4766
|
+
/**
|
|
4767
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
4768
|
+
*/
|
|
4769
|
+
createdAt?: Timestamp;
|
|
4770
|
+
};
|
|
4771
|
+
|
|
4864
4772
|
/**
|
|
4865
4773
|
* `RGATreeSplit` is a block-based list with improved index-based lookup in RGA.
|
|
4866
4774
|
* The difference from RGATreeList is that it has data on a block basis to
|
|
@@ -5341,7 +5249,7 @@ declare interface RootStats {
|
|
|
5341
5249
|
/**
|
|
5342
5250
|
* @generated from message yorkie.v1.Rule
|
|
5343
5251
|
*/
|
|
5344
|
-
declare
|
|
5252
|
+
declare type Rule_2 = Message<"yorkie.v1.Rule"> & {
|
|
5345
5253
|
/**
|
|
5346
5254
|
* @generated from field: string path = 1;
|
|
5347
5255
|
*/
|
|
@@ -5350,15 +5258,7 @@ declare class Rule_2 extends Message<Rule_2> {
|
|
|
5350
5258
|
* @generated from field: string type = 2;
|
|
5351
5259
|
*/
|
|
5352
5260
|
type: string;
|
|
5353
|
-
|
|
5354
|
-
static readonly runtime: typeof proto3;
|
|
5355
|
-
static readonly typeName = "yorkie.v1.Rule";
|
|
5356
|
-
static readonly fields: FieldList;
|
|
5357
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Rule_2;
|
|
5358
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Rule_2;
|
|
5359
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Rule_2;
|
|
5360
|
-
static equals(a: Rule_2 | PlainMessage<Rule_2> | undefined, b: Rule_2 | PlainMessage<Rule_2> | undefined): boolean;
|
|
5361
|
-
}
|
|
5261
|
+
};
|
|
5362
5262
|
|
|
5363
5263
|
/**
|
|
5364
5264
|
* Definition of all messages the SDK can send to the Devtools panel.
|
|
@@ -5861,7 +5761,7 @@ declare type TextNode_2 = {
|
|
|
5861
5761
|
/**
|
|
5862
5762
|
* @generated from message yorkie.v1.TextNodePos
|
|
5863
5763
|
*/
|
|
5864
|
-
declare
|
|
5764
|
+
declare type TextNodePos = Message<"yorkie.v1.TextNodePos"> & {
|
|
5865
5765
|
/**
|
|
5866
5766
|
* @generated from field: yorkie.v1.TimeTicket created_at = 1;
|
|
5867
5767
|
*/
|
|
@@ -5874,15 +5774,7 @@ declare class TextNodePos extends Message<TextNodePos> {
|
|
|
5874
5774
|
* @generated from field: int32 relative_offset = 3;
|
|
5875
5775
|
*/
|
|
5876
5776
|
relativeOffset: number;
|
|
5877
|
-
|
|
5878
|
-
static readonly runtime: typeof proto3;
|
|
5879
|
-
static readonly typeName = "yorkie.v1.TextNodePos";
|
|
5880
|
-
static readonly fields: FieldList;
|
|
5881
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TextNodePos;
|
|
5882
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TextNodePos;
|
|
5883
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TextNodePos;
|
|
5884
|
-
static equals(a: TextNodePos | PlainMessage<TextNodePos> | undefined, b: TextNodePos | PlainMessage<TextNodePos> | undefined): boolean;
|
|
5885
|
-
}
|
|
5777
|
+
};
|
|
5886
5778
|
|
|
5887
5779
|
/**
|
|
5888
5780
|
* `TextOpInfo` represents the OperationInfo for the yorkie.Text.
|
|
@@ -5990,7 +5882,7 @@ export declare class TimeTicket {
|
|
|
5990
5882
|
/**
|
|
5991
5883
|
* @generated from message yorkie.v1.TimeTicket
|
|
5992
5884
|
*/
|
|
5993
|
-
declare
|
|
5885
|
+
declare type TimeTicket_2 = Message<"yorkie.v1.TimeTicket"> & {
|
|
5994
5886
|
/**
|
|
5995
5887
|
* @generated from field: int64 lamport = 1;
|
|
5996
5888
|
*/
|
|
@@ -6003,15 +5895,7 @@ declare class TimeTicket_2 extends Message<TimeTicket_2> {
|
|
|
6003
5895
|
* @generated from field: bytes actor_id = 3;
|
|
6004
5896
|
*/
|
|
6005
5897
|
actorId: Uint8Array;
|
|
6006
|
-
|
|
6007
|
-
static readonly runtime: typeof proto3;
|
|
6008
|
-
static readonly typeName = "yorkie.v1.TimeTicket";
|
|
6009
|
-
static readonly fields: FieldList;
|
|
6010
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeTicket_2;
|
|
6011
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeTicket_2;
|
|
6012
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeTicket_2;
|
|
6013
|
-
static equals(a: TimeTicket_2 | PlainMessage<TimeTicket_2> | undefined, b: TimeTicket_2 | PlainMessage<TimeTicket_2> | undefined): boolean;
|
|
6014
|
-
}
|
|
5898
|
+
};
|
|
6015
5899
|
|
|
6016
5900
|
/**
|
|
6017
5901
|
* `TimeTicketStruct` is a structure represents the meta data of the ticket.
|
|
@@ -6071,6 +5955,11 @@ declare enum TokenType {
|
|
|
6071
5955
|
*/
|
|
6072
5956
|
declare function toOperation(operation: Operation): Operation_2;
|
|
6073
5957
|
|
|
5958
|
+
/**
|
|
5959
|
+
* `toRevisionSummary` converts a protobuf RevisionSummary to a RevisionSummary.
|
|
5960
|
+
*/
|
|
5961
|
+
declare function toRevisionSummary(pbRevision: RevisionSummary_2): RevisionSummary;
|
|
5962
|
+
|
|
6074
5963
|
/**
|
|
6075
5964
|
* `toTreeNodes` converts the given model to Protobuf format.
|
|
6076
5965
|
*/
|
|
@@ -6286,7 +6175,7 @@ declare type TreeNode_2 = TextNode_2 | ElementNode_2;
|
|
|
6286
6175
|
/**
|
|
6287
6176
|
* @generated from message yorkie.v1.TreeNode
|
|
6288
6177
|
*/
|
|
6289
|
-
declare
|
|
6178
|
+
declare type TreeNode_3 = Message<"yorkie.v1.TreeNode"> & {
|
|
6290
6179
|
/**
|
|
6291
6180
|
* @generated from field: yorkie.v1.TreeNodeID id = 1;
|
|
6292
6181
|
*/
|
|
@@ -6321,15 +6210,7 @@ declare class TreeNode_3 extends Message<TreeNode_3> {
|
|
|
6321
6210
|
attributes: {
|
|
6322
6211
|
[key: string]: NodeAttr;
|
|
6323
6212
|
};
|
|
6324
|
-
|
|
6325
|
-
static readonly runtime: typeof proto3;
|
|
6326
|
-
static readonly typeName = "yorkie.v1.TreeNode";
|
|
6327
|
-
static readonly fields: FieldList;
|
|
6328
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TreeNode_3;
|
|
6329
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TreeNode_3;
|
|
6330
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TreeNode_3;
|
|
6331
|
-
static equals(a: TreeNode_3 | PlainMessage<TreeNode_3> | undefined, b: TreeNode_3 | PlainMessage<TreeNode_3> | undefined): boolean;
|
|
6332
|
-
}
|
|
6213
|
+
};
|
|
6333
6214
|
|
|
6334
6215
|
/**
|
|
6335
6216
|
* `TreeNodeForTest` represents the JSON representation of a node in the tree.
|
|
@@ -6344,7 +6225,7 @@ declare type TreeNodeForTest = TreeNode & {
|
|
|
6344
6225
|
/**
|
|
6345
6226
|
* @generated from message yorkie.v1.TreeNodeID
|
|
6346
6227
|
*/
|
|
6347
|
-
declare
|
|
6228
|
+
declare type TreeNodeID = Message<"yorkie.v1.TreeNodeID"> & {
|
|
6348
6229
|
/**
|
|
6349
6230
|
* @generated from field: yorkie.v1.TimeTicket created_at = 1;
|
|
6350
6231
|
*/
|
|
@@ -6353,15 +6234,7 @@ declare class TreeNodeID extends Message<TreeNodeID> {
|
|
|
6353
6234
|
* @generated from field: int32 offset = 2;
|
|
6354
6235
|
*/
|
|
6355
6236
|
offset: number;
|
|
6356
|
-
|
|
6357
|
-
static readonly runtime: typeof proto3;
|
|
6358
|
-
static readonly typeName = "yorkie.v1.TreeNodeID";
|
|
6359
|
-
static readonly fields: FieldList;
|
|
6360
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TreeNodeID;
|
|
6361
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TreeNodeID;
|
|
6362
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TreeNodeID;
|
|
6363
|
-
static equals(a: TreeNodeID | PlainMessage<TreeNodeID> | undefined, b: TreeNodeID | PlainMessage<TreeNodeID> | undefined): boolean;
|
|
6364
|
-
}
|
|
6237
|
+
};
|
|
6365
6238
|
|
|
6366
6239
|
/**
|
|
6367
6240
|
* `TreeNodeInfo` represents the crdt tree node information in devtools.
|
|
@@ -6393,20 +6266,12 @@ declare type TreeNodePair = [CRDTTreeNode, CRDTTreeNode];
|
|
|
6393
6266
|
/**
|
|
6394
6267
|
* @generated from message yorkie.v1.TreeNodes
|
|
6395
6268
|
*/
|
|
6396
|
-
declare
|
|
6269
|
+
declare type TreeNodes = Message<"yorkie.v1.TreeNodes"> & {
|
|
6397
6270
|
/**
|
|
6398
6271
|
* @generated from field: repeated yorkie.v1.TreeNode content = 1;
|
|
6399
6272
|
*/
|
|
6400
6273
|
content: TreeNode_3[];
|
|
6401
|
-
|
|
6402
|
-
static readonly runtime: typeof proto3;
|
|
6403
|
-
static readonly typeName = "yorkie.v1.TreeNodes";
|
|
6404
|
-
static readonly fields: FieldList;
|
|
6405
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TreeNodes;
|
|
6406
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TreeNodes;
|
|
6407
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TreeNodes;
|
|
6408
|
-
static equals(a: TreeNodes | PlainMessage<TreeNodes> | undefined, b: TreeNodes | PlainMessage<TreeNodes> | undefined): boolean;
|
|
6409
|
-
}
|
|
6274
|
+
};
|
|
6410
6275
|
|
|
6411
6276
|
/**
|
|
6412
6277
|
* `NoteType` is the type of a node in the tree.
|
|
@@ -6443,7 +6308,7 @@ declare type TreePos<T extends IndexTreeNode<T>> = {
|
|
|
6443
6308
|
/**
|
|
6444
6309
|
* @generated from message yorkie.v1.TreePos
|
|
6445
6310
|
*/
|
|
6446
|
-
declare
|
|
6311
|
+
declare type TreePos_2 = Message<"yorkie.v1.TreePos"> & {
|
|
6447
6312
|
/**
|
|
6448
6313
|
* @generated from field: yorkie.v1.TreeNodeID parent_id = 1;
|
|
6449
6314
|
*/
|
|
@@ -6452,15 +6317,7 @@ declare class TreePos_2 extends Message<TreePos_2> {
|
|
|
6452
6317
|
* @generated from field: yorkie.v1.TreeNodeID left_sibling_id = 2;
|
|
6453
6318
|
*/
|
|
6454
6319
|
leftSiblingId?: TreeNodeID;
|
|
6455
|
-
|
|
6456
|
-
static readonly runtime: typeof proto3;
|
|
6457
|
-
static readonly typeName = "yorkie.v1.TreePos";
|
|
6458
|
-
static readonly fields: FieldList;
|
|
6459
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TreePos_2;
|
|
6460
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TreePos_2;
|
|
6461
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TreePos_2;
|
|
6462
|
-
static equals(a: TreePos_2 | PlainMessage<TreePos_2> | undefined, b: TreePos_2 | PlainMessage<TreePos_2> | undefined): boolean;
|
|
6463
|
-
}
|
|
6320
|
+
};
|
|
6464
6321
|
|
|
6465
6322
|
/**
|
|
6466
6323
|
* `TreePosRange` represents a pair of CRDTTreePos.
|
|
@@ -6651,22 +6508,14 @@ export declare class VersionVector {
|
|
|
6651
6508
|
/**
|
|
6652
6509
|
* @generated from message yorkie.v1.VersionVector
|
|
6653
6510
|
*/
|
|
6654
|
-
declare
|
|
6511
|
+
declare type VersionVector_2 = Message<"yorkie.v1.VersionVector"> & {
|
|
6655
6512
|
/**
|
|
6656
6513
|
* @generated from field: map<string, int64> vector = 1;
|
|
6657
6514
|
*/
|
|
6658
6515
|
vector: {
|
|
6659
6516
|
[key: string]: bigint;
|
|
6660
6517
|
};
|
|
6661
|
-
|
|
6662
|
-
static readonly runtime: typeof proto3;
|
|
6663
|
-
static readonly typeName = "yorkie.v1.VersionVector";
|
|
6664
|
-
static readonly fields: FieldList;
|
|
6665
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VersionVector_2;
|
|
6666
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VersionVector_2;
|
|
6667
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VersionVector_2;
|
|
6668
|
-
static equals(a: VersionVector_2 | PlainMessage<VersionVector_2> | undefined, b: VersionVector_2 | PlainMessage<VersionVector_2> | undefined): boolean;
|
|
6669
|
-
}
|
|
6518
|
+
};
|
|
6670
6519
|
|
|
6671
6520
|
/**
|
|
6672
6521
|
* `versionVectorToHex` converts the given VersionVector to bytes.
|
|
@@ -6676,7 +6525,7 @@ declare function versionVectorToHex(vector: VersionVector): string;
|
|
|
6676
6525
|
/**
|
|
6677
6526
|
* @generated from message yorkie.v1.WatchDocumentResponse
|
|
6678
6527
|
*/
|
|
6679
|
-
declare
|
|
6528
|
+
declare type WatchDocumentResponse = Message<"yorkie.v1.WatchDocumentResponse"> & {
|
|
6680
6529
|
/**
|
|
6681
6530
|
* @generated from oneof yorkie.v1.WatchDocumentResponse.body
|
|
6682
6531
|
*/
|
|
@@ -6696,33 +6545,17 @@ declare class WatchDocumentResponse extends Message<WatchDocumentResponse> {
|
|
|
6696
6545
|
case: undefined;
|
|
6697
6546
|
value?: undefined;
|
|
6698
6547
|
};
|
|
6699
|
-
|
|
6700
|
-
static readonly runtime: typeof proto3;
|
|
6701
|
-
static readonly typeName = "yorkie.v1.WatchDocumentResponse";
|
|
6702
|
-
static readonly fields: FieldList;
|
|
6703
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDocumentResponse;
|
|
6704
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDocumentResponse;
|
|
6705
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDocumentResponse;
|
|
6706
|
-
static equals(a: WatchDocumentResponse | PlainMessage<WatchDocumentResponse> | undefined, b: WatchDocumentResponse | PlainMessage<WatchDocumentResponse> | undefined): boolean;
|
|
6707
|
-
}
|
|
6548
|
+
};
|
|
6708
6549
|
|
|
6709
6550
|
/**
|
|
6710
6551
|
* @generated from message yorkie.v1.WatchDocumentResponse.Initialization
|
|
6711
6552
|
*/
|
|
6712
|
-
declare
|
|
6553
|
+
declare type WatchDocumentResponse_Initialization = Message<"yorkie.v1.WatchDocumentResponse.Initialization"> & {
|
|
6713
6554
|
/**
|
|
6714
6555
|
* @generated from field: repeated string client_ids = 1;
|
|
6715
6556
|
*/
|
|
6716
6557
|
clientIds: string[];
|
|
6717
|
-
|
|
6718
|
-
static readonly runtime: typeof proto3;
|
|
6719
|
-
static readonly typeName = "yorkie.v1.WatchDocumentResponse.Initialization";
|
|
6720
|
-
static readonly fields: FieldList;
|
|
6721
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDocumentResponse_Initialization;
|
|
6722
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDocumentResponse_Initialization;
|
|
6723
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDocumentResponse_Initialization;
|
|
6724
|
-
static equals(a: WatchDocumentResponse_Initialization | PlainMessage<WatchDocumentResponse_Initialization> | undefined, b: WatchDocumentResponse_Initialization | PlainMessage<WatchDocumentResponse_Initialization> | undefined): boolean;
|
|
6725
|
-
}
|
|
6558
|
+
};
|
|
6726
6559
|
|
|
6727
6560
|
export declare interface WatchedEvent<P extends Indexable> extends BaseDocEvent_2 {
|
|
6728
6561
|
type: DocEventType.Watched;
|
|
@@ -6745,11 +6578,3 @@ declare interface WatchedEvent_2<P extends Indexable_2> extends BaseDocEvent {
|
|
|
6745
6578
|
export declare type WrappedElement<T = unknown, A extends Indexable = Indexable> = Primitive | JSONObject<T> | JSONArray<T> | Text_2<A> | Counter | Tree;
|
|
6746
6579
|
|
|
6747
6580
|
export { }
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
declare global {
|
|
6751
|
-
interface Window {
|
|
6752
|
-
docEventsForReplayByDocKey: Map<string, Array<DocEventsForReplay>>;
|
|
6753
|
-
}
|
|
6754
|
-
}
|
|
6755
|
-
|