diff --git a/packages/sdk/buf.gen.yaml b/packages/sdk/buf.gen.yaml
index be0eaeb96..a08aca642 100644
--- a/packages/sdk/buf.gen.yaml
+++ b/packages/sdk/buf.gen.yaml
@@ -4,9 +4,9 @@ plugins:
out: .
opt:
- target=ts
- - js_import_style=module
+ - import_extension=none
- plugin: connect-es
out: .
opt:
- target=ts
- - js_import_style=module
+ - import_extension=none
diff --git a/packages/sdk/src/api/converter.ts b/packages/sdk/src/api/converter.ts
index e5a1e1752..04f54e6e6 100644
--- a/packages/sdk/src/api/converter.ts
+++ b/packages/sdk/src/api/converter.ts
@@ -14,7 +14,6 @@
* limitations under the License.
*/
-import Long from 'long';
import { ConnectError } from '@connectrpc/connect';
import { ErrorInfo } from '@buf/googleapis_googleapis.bufbuild_es/google/rpc/error_details_pb';
import { Code, YorkieError } from '@yorkie-js-sdk/src/util/error';
@@ -149,7 +148,7 @@ function toPresenceChange(
*/
function toCheckpoint(checkpoint: Checkpoint): PbCheckpoint {
return new PbCheckpoint({
- serverSeq: checkpoint.getServerSeqAsString(),
+ serverSeq: checkpoint.getServerSeq(),
clientSeq: checkpoint.getClientSeq(),
});
}
@@ -160,7 +159,7 @@ function toCheckpoint(checkpoint: Checkpoint): PbCheckpoint {
function toChangeID(changeID: ChangeID): PbChangeID {
return new PbChangeID({
clientSeq: changeID.getClientSeq(),
- lamport: changeID.getLamportAsString(),
+ lamport: changeID.getLamport(),
actorId: toUint8Array(changeID.getActorID()),
});
}
@@ -174,7 +173,7 @@ function toTimeTicket(ticket?: TimeTicket): PbTimeTicket | undefined {
}
return new PbTimeTicket({
- lamport: ticket.getLamportAsString(),
+ lamport: ticket.getLamport(),
delimiter: ticket.getDelimiter(),
actorId: toUint8Array(ticket.getActorID()),
});
@@ -805,16 +804,13 @@ export function errorCodeOf(error: ConnectError): string {
* `fromChangeID` converts the given Protobuf format to model format.
*/
function fromChangeID(pbChangeID: PbChangeID): ChangeID {
- let serverSeq: Long | undefined;
- if (pbChangeID.serverSeq) {
- serverSeq = Long.fromString(pbChangeID.serverSeq, true);
- }
-
+ // TODO(hackerwins): Remove BigInt conversion. Some of the bigint values are
+ // passed as string in the protobuf. We should fix this in the future.
return ChangeID.of(
pbChangeID.clientSeq,
- Long.fromString(pbChangeID.lamport, true),
+ BigInt(pbChangeID.lamport),
toHexString(pbChangeID.actorId),
- serverSeq,
+ BigInt(pbChangeID.serverSeq),
);
}
@@ -827,7 +823,7 @@ function fromTimeTicket(pbTimeTicket?: PbTimeTicket): TimeTicket | undefined {
}
return TimeTicket.of(
- Long.fromString(pbTimeTicket.lamport, true),
+ BigInt(pbTimeTicket.lamport),
pbTimeTicket.delimiter,
toHexString(pbTimeTicket.actorId),
);
@@ -1314,10 +1310,7 @@ function fromChanges
(
* `fromCheckpoint` converts the given Protobuf format to model format.
*/
function fromCheckpoint(pbCheckpoint: PbCheckpoint): Checkpoint {
- return Checkpoint.of(
- Long.fromString(pbCheckpoint.serverSeq, true),
- pbCheckpoint.clientSeq,
- );
+ return Checkpoint.of(BigInt(pbCheckpoint.serverSeq), pbCheckpoint.clientSeq);
}
/**
diff --git a/packages/sdk/src/api/yorkie/v1/resources.proto b/packages/sdk/src/api/yorkie/v1/resources.proto
index d1a8c3776..9f31d95b0 100644
--- a/packages/sdk/src/api/yorkie/v1/resources.proto
+++ b/packages/sdk/src/api/yorkie/v1/resources.proto
@@ -57,8 +57,8 @@ message Change {
message ChangeID {
uint32 client_seq = 1;
- int64 server_seq = 2 [jstype = JS_STRING];
- int64 lamport = 3 [jstype = JS_STRING];
+ int64 server_seq = 2;
+ int64 lamport = 3;
bytes actor_id = 4;
}
@@ -136,6 +136,12 @@ message Operation {
repeated string attributes_to_remove = 6;
map created_at_map_by_actor = 7;
}
+ message ArraySet {
+ TimeTicket parent_created_at = 1;
+ TimeTicket created_at = 2;
+ JSONElementSimple value = 3;
+ TimeTicket executed_at = 4;
+ }
oneof body {
Set set = 1;
@@ -148,6 +154,7 @@ message Operation {
Increase increase = 8;
TreeEdit tree_edit = 9;
TreeStyle tree_style = 10;
+ ArraySet array_set = 11;
}
}
@@ -325,7 +332,7 @@ message Presence {
}
message Checkpoint {
- int64 server_seq = 1 [jstype = JS_STRING];
+ int64 server_seq = 1;
uint32 client_seq = 2;
}
@@ -336,7 +343,7 @@ message TextNodePos {
}
message TimeTicket {
- int64 lamport = 1 [jstype = JS_STRING];
+ int64 lamport = 1;
uint32 delimiter = 2;
bytes actor_id = 3;
}
diff --git a/packages/sdk/src/api/yorkie/v1/resources_pb.d.ts b/packages/sdk/src/api/yorkie/v1/resources_pb.d.ts
deleted file mode 100644
index 7d77073f6..000000000
--- a/packages/sdk/src/api/yorkie/v1/resources_pb.d.ts
+++ /dev/null
@@ -1,1912 +0,0 @@
-//
-// Copyright 2022 The Yorkie Authors. All rights reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// @generated by protoc-gen-es v1.6.0 with parameter "target=js+dts,js_import_style=module"
-// @generated from file src/api/yorkie/v1/resources.proto (package yorkie.v1, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-
-/**
- * @generated from enum yorkie.v1.ValueType
- */
-export declare enum ValueType {
- /**
- * @generated from enum value: VALUE_TYPE_NULL = 0;
- */
- NULL = 0,
-
- /**
- * @generated from enum value: VALUE_TYPE_BOOLEAN = 1;
- */
- BOOLEAN = 1,
-
- /**
- * @generated from enum value: VALUE_TYPE_INTEGER = 2;
- */
- INTEGER = 2,
-
- /**
- * @generated from enum value: VALUE_TYPE_LONG = 3;
- */
- LONG = 3,
-
- /**
- * @generated from enum value: VALUE_TYPE_DOUBLE = 4;
- */
- DOUBLE = 4,
-
- /**
- * @generated from enum value: VALUE_TYPE_STRING = 5;
- */
- STRING = 5,
-
- /**
- * @generated from enum value: VALUE_TYPE_BYTES = 6;
- */
- BYTES = 6,
-
- /**
- * @generated from enum value: VALUE_TYPE_DATE = 7;
- */
- DATE = 7,
-
- /**
- * @generated from enum value: VALUE_TYPE_JSON_OBJECT = 8;
- */
- JSON_OBJECT = 8,
-
- /**
- * @generated from enum value: VALUE_TYPE_JSON_ARRAY = 9;
- */
- JSON_ARRAY = 9,
-
- /**
- * @generated from enum value: VALUE_TYPE_TEXT = 10;
- */
- TEXT = 10,
-
- /**
- * @generated from enum value: VALUE_TYPE_INTEGER_CNT = 11;
- */
- INTEGER_CNT = 11,
-
- /**
- * @generated from enum value: VALUE_TYPE_LONG_CNT = 12;
- */
- LONG_CNT = 12,
-
- /**
- * @generated from enum value: VALUE_TYPE_TREE = 13;
- */
- TREE = 13,
-}
-
-/**
- * @generated from enum yorkie.v1.DocEventType
- */
-export declare enum DocEventType {
- /**
- * @generated from enum value: DOC_EVENT_TYPE_DOCUMENT_CHANGED = 0;
- */
- DOCUMENT_CHANGED = 0,
-
- /**
- * @generated from enum value: DOC_EVENT_TYPE_DOCUMENT_WATCHED = 1;
- */
- DOCUMENT_WATCHED = 1,
-
- /**
- * @generated from enum value: DOC_EVENT_TYPE_DOCUMENT_UNWATCHED = 2;
- */
- DOCUMENT_UNWATCHED = 2,
-
- /**
- * @generated from enum value: DOC_EVENT_TYPE_DOCUMENT_BROADCAST = 3;
- */
- DOCUMENT_BROADCAST = 3,
-}
-
-/**
- * ///////////////////////////////////////
- * Messages for Snapshot //
- * ///////////////////////////////////////
- *
- * @generated from message yorkie.v1.Snapshot
- */
-export declare class Snapshot extends Message {
- /**
- * @generated from field: yorkie.v1.JSONElement root = 1;
- */
- root?: JSONElement;
-
- /**
- * @generated from field: map presences = 2;
- */
- presences: { [key: string]: Presence };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Snapshot";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Snapshot;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Snapshot;
-
- static fromJsonString(jsonString: string, options?: Partial): Snapshot;
-
- static equals(a: Snapshot | PlainMessage | undefined, b: Snapshot | PlainMessage | undefined): boolean;
-}
-
-/**
- * ChangePack is a message that contains all changes that occurred in a document.
- * It is used to synchronize changes between clients and servers.
- *
- * @generated from message yorkie.v1.ChangePack
- */
-export declare class ChangePack extends Message {
- /**
- * @generated from field: string document_key = 1;
- */
- documentKey: string;
-
- /**
- * @generated from field: yorkie.v1.Checkpoint checkpoint = 2;
- */
- checkpoint?: Checkpoint;
-
- /**
- * @generated from field: bytes snapshot = 3;
- */
- snapshot: Uint8Array;
-
- /**
- * @generated from field: repeated yorkie.v1.Change changes = 4;
- */
- changes: Change[];
-
- /**
- * @generated from field: yorkie.v1.TimeTicket min_synced_ticket = 5;
- */
- minSyncedTicket?: TimeTicket;
-
- /**
- * @generated from field: bool is_removed = 6;
- */
- isRemoved: boolean;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.ChangePack";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ChangePack;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ChangePack;
-
- static fromJsonString(jsonString: string, options?: Partial): ChangePack;
-
- static equals(a: ChangePack | PlainMessage | undefined, b: ChangePack | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Change
- */
-export declare class Change extends Message {
- /**
- * @generated from field: yorkie.v1.ChangeID id = 1;
- */
- id?: ChangeID;
-
- /**
- * @generated from field: string message = 2;
- */
- message: string;
-
- /**
- * @generated from field: repeated yorkie.v1.Operation operations = 3;
- */
- operations: Operation[];
-
- /**
- * @generated from field: yorkie.v1.PresenceChange presence_change = 4;
- */
- presenceChange?: PresenceChange;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Change";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Change;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Change;
-
- static fromJsonString(jsonString: string, options?: Partial): Change;
-
- static equals(a: Change | PlainMessage | undefined, b: Change | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.ChangeID
- */
-export declare class ChangeID extends Message {
- /**
- * @generated from field: uint32 client_seq = 1;
- */
- clientSeq: number;
-
- /**
- * @generated from field: int64 server_seq = 2 [jstype = JS_STRING];
- */
- serverSeq: string;
-
- /**
- * @generated from field: int64 lamport = 3 [jstype = JS_STRING];
- */
- lamport: string;
-
- /**
- * @generated from field: bytes actor_id = 4;
- */
- actorId: Uint8Array;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.ChangeID";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): ChangeID;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): ChangeID;
-
- static fromJsonString(jsonString: string, options?: Partial): ChangeID;
-
- static equals(a: ChangeID | PlainMessage | undefined, b: ChangeID | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation
- */
-export declare class Operation extends Message {
- /**
- * @generated from oneof yorkie.v1.Operation.body
- */
- body: {
- /**
- * @generated from field: yorkie.v1.Operation.Set set = 1;
- */
- value: Operation_Set;
- case: "set";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.Add add = 2;
- */
- value: Operation_Add;
- case: "add";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.Move move = 3;
- */
- value: Operation_Move;
- case: "move";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.Remove remove = 4;
- */
- value: Operation_Remove;
- case: "remove";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.Edit edit = 5;
- */
- value: Operation_Edit;
- case: "edit";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.Select select = 6;
- */
- value: Operation_Select;
- case: "select";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.Style style = 7;
- */
- value: Operation_Style;
- case: "style";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.Increase increase = 8;
- */
- value: Operation_Increase;
- case: "increase";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.TreeEdit tree_edit = 9;
- */
- value: Operation_TreeEdit;
- case: "treeEdit";
- } | {
- /**
- * @generated from field: yorkie.v1.Operation.TreeStyle tree_style = 10;
- */
- value: Operation_TreeStyle;
- case: "treeStyle";
- } | { case: undefined; value?: undefined };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation;
-
- static equals(a: Operation | PlainMessage | undefined, b: Operation | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.Set
- */
-export declare class Operation_Set extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: string key = 2;
- */
- key: string;
-
- /**
- * @generated from field: yorkie.v1.JSONElementSimple value = 3;
- */
- value?: JSONElementSimple;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 4;
- */
- executedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.Set";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_Set;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_Set;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_Set;
-
- static equals(a: Operation_Set | PlainMessage | undefined, b: Operation_Set | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.Add
- */
-export declare class Operation_Add extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket prev_created_at = 2;
- */
- prevCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.JSONElementSimple value = 3;
- */
- value?: JSONElementSimple;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 4;
- */
- executedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.Add";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_Add;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_Add;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_Add;
-
- static equals(a: Operation_Add | PlainMessage | undefined, b: Operation_Add | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.Move
- */
-export declare class Operation_Move extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket prev_created_at = 2;
- */
- prevCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 3;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 4;
- */
- executedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.Move";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_Move;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_Move;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_Move;
-
- static equals(a: Operation_Move | PlainMessage | undefined, b: Operation_Move | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.Remove
- */
-export declare class Operation_Remove extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 2;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 3;
- */
- executedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.Remove";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_Remove;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_Remove;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_Remove;
-
- static equals(a: Operation_Remove | PlainMessage | undefined, b: Operation_Remove | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.Edit
- */
-export declare class Operation_Edit extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TextNodePos from = 2;
- */
- from?: TextNodePos;
-
- /**
- * @generated from field: yorkie.v1.TextNodePos to = 3;
- */
- to?: TextNodePos;
-
- /**
- * @generated from field: map created_at_map_by_actor = 4;
- */
- createdAtMapByActor: { [key: string]: TimeTicket };
-
- /**
- * @generated from field: string content = 5;
- */
- content: string;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 6;
- */
- executedAt?: TimeTicket;
-
- /**
- * @generated from field: map attributes = 7;
- */
- attributes: { [key: string]: string };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.Edit";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_Edit;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_Edit;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_Edit;
-
- static equals(a: Operation_Edit | PlainMessage | undefined, b: Operation_Edit | PlainMessage | undefined): boolean;
-}
-
-/**
- * NOTE(hackerwins): Select Operation is not used in the current version.
- * In the previous version, it was used to represent selection of Text.
- * However, it has been replaced by Presence now. It is retained for backward
- * compatibility purposes.
- *
- * @generated from message yorkie.v1.Operation.Select
- */
-export declare class Operation_Select extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TextNodePos from = 2;
- */
- from?: TextNodePos;
-
- /**
- * @generated from field: yorkie.v1.TextNodePos to = 3;
- */
- to?: TextNodePos;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 4;
- */
- executedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.Select";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_Select;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_Select;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_Select;
-
- static equals(a: Operation_Select | PlainMessage | undefined, b: Operation_Select | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.Style
- */
-export declare class Operation_Style extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TextNodePos from = 2;
- */
- from?: TextNodePos;
-
- /**
- * @generated from field: yorkie.v1.TextNodePos to = 3;
- */
- to?: TextNodePos;
-
- /**
- * @generated from field: map attributes = 4;
- */
- attributes: { [key: string]: string };
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 5;
- */
- executedAt?: TimeTicket;
-
- /**
- * @generated from field: map created_at_map_by_actor = 6;
- */
- createdAtMapByActor: { [key: string]: TimeTicket };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.Style";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_Style;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_Style;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_Style;
-
- static equals(a: Operation_Style | PlainMessage | undefined, b: Operation_Style | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.Increase
- */
-export declare class Operation_Increase extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.JSONElementSimple value = 2;
- */
- value?: JSONElementSimple;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 3;
- */
- executedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.Increase";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_Increase;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_Increase;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_Increase;
-
- static equals(a: Operation_Increase | PlainMessage | undefined, b: Operation_Increase | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.TreeEdit
- */
-export declare class Operation_TreeEdit extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TreePos from = 2;
- */
- from?: TreePos;
-
- /**
- * @generated from field: yorkie.v1.TreePos to = 3;
- */
- to?: TreePos;
-
- /**
- * @generated from field: map created_at_map_by_actor = 4;
- */
- createdAtMapByActor: { [key: string]: TimeTicket };
-
- /**
- * @generated from field: repeated yorkie.v1.TreeNodes contents = 5;
- */
- contents: TreeNodes[];
-
- /**
- * @generated from field: int32 split_level = 7;
- */
- splitLevel: number;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 6;
- */
- executedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.TreeEdit";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_TreeEdit;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_TreeEdit;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_TreeEdit;
-
- static equals(a: Operation_TreeEdit | PlainMessage | undefined, b: Operation_TreeEdit | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Operation.TreeStyle
- */
-export declare class Operation_TreeStyle extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket parent_created_at = 1;
- */
- parentCreatedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TreePos from = 2;
- */
- from?: TreePos;
-
- /**
- * @generated from field: yorkie.v1.TreePos to = 3;
- */
- to?: TreePos;
-
- /**
- * @generated from field: map attributes = 4;
- */
- attributes: { [key: string]: string };
-
- /**
- * @generated from field: yorkie.v1.TimeTicket executed_at = 5;
- */
- executedAt?: TimeTicket;
-
- /**
- * @generated from field: repeated string attributes_to_remove = 6;
- */
- attributesToRemove: string[];
-
- /**
- * @generated from field: map created_at_map_by_actor = 7;
- */
- createdAtMapByActor: { [key: string]: TimeTicket };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Operation.TreeStyle";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Operation_TreeStyle;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Operation_TreeStyle;
-
- static fromJsonString(jsonString: string, options?: Partial): Operation_TreeStyle;
-
- static equals(a: Operation_TreeStyle | PlainMessage | undefined, b: Operation_TreeStyle | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.JSONElementSimple
- */
-export declare class JSONElementSimple extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 1;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket moved_at = 2;
- */
- movedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 3;
- */
- removedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.ValueType type = 4;
- */
- type: ValueType;
-
- /**
- * @generated from field: bytes value = 5;
- */
- value: Uint8Array;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.JSONElementSimple";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): JSONElementSimple;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): JSONElementSimple;
-
- static fromJsonString(jsonString: string, options?: Partial): JSONElementSimple;
-
- static equals(a: JSONElementSimple | PlainMessage | undefined, b: JSONElementSimple | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.JSONElement
- */
-export declare class JSONElement extends Message {
- /**
- * @generated from oneof yorkie.v1.JSONElement.body
- */
- body: {
- /**
- * @generated from field: yorkie.v1.JSONElement.JSONObject json_object = 1;
- */
- value: JSONElement_JSONObject;
- case: "jsonObject";
- } | {
- /**
- * @generated from field: yorkie.v1.JSONElement.JSONArray json_array = 2;
- */
- value: JSONElement_JSONArray;
- case: "jsonArray";
- } | {
- /**
- * @generated from field: yorkie.v1.JSONElement.Primitive primitive = 3;
- */
- value: JSONElement_Primitive;
- case: "primitive";
- } | {
- /**
- * @generated from field: yorkie.v1.JSONElement.Text text = 5;
- */
- value: JSONElement_Text;
- case: "text";
- } | {
- /**
- * @generated from field: yorkie.v1.JSONElement.Counter counter = 6;
- */
- value: JSONElement_Counter;
- case: "counter";
- } | {
- /**
- * @generated from field: yorkie.v1.JSONElement.Tree tree = 7;
- */
- value: JSONElement_Tree;
- case: "tree";
- } | { case: undefined; value?: undefined };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.JSONElement";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): JSONElement;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): JSONElement;
-
- static fromJsonString(jsonString: string, options?: Partial): JSONElement;
-
- static equals(a: JSONElement | PlainMessage | undefined, b: JSONElement | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.JSONElement.JSONObject
- */
-export declare class JSONElement_JSONObject extends Message {
- /**
- * @generated from field: repeated yorkie.v1.RHTNode nodes = 1;
- */
- nodes: RHTNode[];
-
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 2;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket moved_at = 3;
- */
- movedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 4;
- */
- removedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.JSONElement.JSONObject";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): JSONElement_JSONObject;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): JSONElement_JSONObject;
-
- static fromJsonString(jsonString: string, options?: Partial): JSONElement_JSONObject;
-
- static equals(a: JSONElement_JSONObject | PlainMessage | undefined, b: JSONElement_JSONObject | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.JSONElement.JSONArray
- */
-export declare class JSONElement_JSONArray extends Message {
- /**
- * @generated from field: repeated yorkie.v1.RGANode nodes = 1;
- */
- nodes: RGANode[];
-
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 2;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket moved_at = 3;
- */
- movedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 4;
- */
- removedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.JSONElement.JSONArray";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): JSONElement_JSONArray;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): JSONElement_JSONArray;
-
- static fromJsonString(jsonString: string, options?: Partial): JSONElement_JSONArray;
-
- static equals(a: JSONElement_JSONArray | PlainMessage | undefined, b: JSONElement_JSONArray | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.JSONElement.Primitive
- */
-export declare class JSONElement_Primitive extends Message {
- /**
- * @generated from field: yorkie.v1.ValueType type = 1;
- */
- type: ValueType;
-
- /**
- * @generated from field: bytes value = 2;
- */
- value: Uint8Array;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 3;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket moved_at = 4;
- */
- movedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 5;
- */
- removedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.JSONElement.Primitive";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): JSONElement_Primitive;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): JSONElement_Primitive;
-
- static fromJsonString(jsonString: string, options?: Partial): JSONElement_Primitive;
-
- static equals(a: JSONElement_Primitive | PlainMessage | undefined, b: JSONElement_Primitive | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.JSONElement.Text
- */
-export declare class JSONElement_Text extends Message {
- /**
- * @generated from field: repeated yorkie.v1.TextNode nodes = 1;
- */
- nodes: TextNode[];
-
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 2;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket moved_at = 3;
- */
- movedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 4;
- */
- removedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.JSONElement.Text";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): JSONElement_Text;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): JSONElement_Text;
-
- static fromJsonString(jsonString: string, options?: Partial): JSONElement_Text;
-
- static equals(a: JSONElement_Text | PlainMessage | undefined, b: JSONElement_Text | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.JSONElement.Counter
- */
-export declare class JSONElement_Counter extends Message {
- /**
- * @generated from field: yorkie.v1.ValueType type = 1;
- */
- type: ValueType;
-
- /**
- * @generated from field: bytes value = 2;
- */
- value: Uint8Array;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 3;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket moved_at = 4;
- */
- movedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 5;
- */
- removedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.JSONElement.Counter";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): JSONElement_Counter;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): JSONElement_Counter;
-
- static fromJsonString(jsonString: string, options?: Partial): JSONElement_Counter;
-
- static equals(a: JSONElement_Counter | PlainMessage | undefined, b: JSONElement_Counter | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.JSONElement.Tree
- */
-export declare class JSONElement_Tree extends Message {
- /**
- * @generated from field: repeated yorkie.v1.TreeNode nodes = 1;
- */
- nodes: TreeNode[];
-
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 2;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket moved_at = 3;
- */
- movedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 4;
- */
- removedAt?: TimeTicket;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.JSONElement.Tree";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): JSONElement_Tree;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): JSONElement_Tree;
-
- static fromJsonString(jsonString: string, options?: Partial): JSONElement_Tree;
-
- static equals(a: JSONElement_Tree | PlainMessage | undefined, b: JSONElement_Tree | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.RHTNode
- */
-export declare class RHTNode extends Message {
- /**
- * @generated from field: string key = 1;
- */
- key: string;
-
- /**
- * @generated from field: yorkie.v1.JSONElement element = 2;
- */
- element?: JSONElement;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.RHTNode";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): RHTNode;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): RHTNode;
-
- static fromJsonString(jsonString: string, options?: Partial): RHTNode;
-
- static equals(a: RHTNode | PlainMessage | undefined, b: RHTNode | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.RGANode
- */
-export declare class RGANode extends Message {
- /**
- * @generated from field: yorkie.v1.RGANode next = 1;
- */
- next?: RGANode;
-
- /**
- * @generated from field: yorkie.v1.JSONElement element = 2;
- */
- element?: JSONElement;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.RGANode";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): RGANode;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): RGANode;
-
- static fromJsonString(jsonString: string, options?: Partial): RGANode;
-
- static equals(a: RGANode | PlainMessage | undefined, b: RGANode | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.NodeAttr
- */
-export declare class NodeAttr extends Message {
- /**
- * @generated from field: string value = 1;
- */
- value: string;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket updated_at = 2;
- */
- updatedAt?: TimeTicket;
-
- /**
- * @generated from field: bool is_removed = 3;
- */
- isRemoved: boolean;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.NodeAttr";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): NodeAttr;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): NodeAttr;
-
- static fromJsonString(jsonString: string, options?: Partial): NodeAttr;
-
- static equals(a: NodeAttr | PlainMessage | undefined, b: NodeAttr | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.TextNode
- */
-export declare class TextNode extends Message {
- /**
- * @generated from field: yorkie.v1.TextNodeID id = 1;
- */
- id?: TextNodeID;
-
- /**
- * @generated from field: string value = 2;
- */
- value: string;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 3;
- */
- removedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TextNodeID ins_prev_id = 4;
- */
- insPrevId?: TextNodeID;
-
- /**
- * @generated from field: map attributes = 5;
- */
- attributes: { [key: string]: NodeAttr };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.TextNode";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TextNode;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TextNode;
-
- static fromJsonString(jsonString: string, options?: Partial): TextNode;
-
- static equals(a: TextNode | PlainMessage | undefined, b: TextNode | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.TextNodeID
- */
-export declare class TextNodeID extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 1;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: int32 offset = 2;
- */
- offset: number;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.TextNodeID";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TextNodeID;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TextNodeID;
-
- static fromJsonString(jsonString: string, options?: Partial): TextNodeID;
-
- static equals(a: TextNodeID | PlainMessage | undefined, b: TextNodeID | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.TreeNode
- */
-export declare class TreeNode extends Message {
- /**
- * @generated from field: yorkie.v1.TreeNodeID id = 1;
- */
- id?: TreeNodeID;
-
- /**
- * @generated from field: string type = 2;
- */
- type: string;
-
- /**
- * @generated from field: string value = 3;
- */
- value: string;
-
- /**
- * @generated from field: yorkie.v1.TimeTicket removed_at = 4;
- */
- removedAt?: TimeTicket;
-
- /**
- * @generated from field: yorkie.v1.TreeNodeID ins_prev_id = 5;
- */
- insPrevId?: TreeNodeID;
-
- /**
- * @generated from field: yorkie.v1.TreeNodeID ins_next_id = 6;
- */
- insNextId?: TreeNodeID;
-
- /**
- * @generated from field: int32 depth = 7;
- */
- depth: number;
-
- /**
- * @generated from field: map attributes = 8;
- */
- attributes: { [key: string]: NodeAttr };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.TreeNode";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TreeNode;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TreeNode;
-
- static fromJsonString(jsonString: string, options?: Partial): TreeNode;
-
- static equals(a: TreeNode | PlainMessage | undefined, b: TreeNode | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.TreeNodes
- */
-export declare class TreeNodes extends Message {
- /**
- * @generated from field: repeated yorkie.v1.TreeNode content = 1;
- */
- content: TreeNode[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.TreeNodes";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TreeNodes;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TreeNodes;
-
- static fromJsonString(jsonString: string, options?: Partial): TreeNodes;
-
- static equals(a: TreeNodes | PlainMessage | undefined, b: TreeNodes | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.TreeNodeID
- */
-export declare class TreeNodeID extends Message {
- /**
- * @generated from field: yorkie.v1.TimeTicket created_at = 1;
- */
- createdAt?: TimeTicket;
-
- /**
- * @generated from field: int32 offset = 2;
- */
- offset: number;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.TreeNodeID";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TreeNodeID;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TreeNodeID;
-
- static fromJsonString(jsonString: string, options?: Partial): TreeNodeID;
-
- static equals(a: TreeNodeID | PlainMessage | undefined, b: TreeNodeID | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.TreePos
- */
-export declare class TreePos extends Message {
- /**
- * @generated from field: yorkie.v1.TreeNodeID parent_id = 1;
- */
- parentId?: TreeNodeID;
-
- /**
- * @generated from field: yorkie.v1.TreeNodeID left_sibling_id = 2;
- */
- leftSiblingId?: TreeNodeID;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.TreePos";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): TreePos;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): TreePos;
-
- static fromJsonString(jsonString: string, options?: Partial): TreePos;
-
- static equals(a: TreePos | PlainMessage | undefined, b: TreePos | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.User
- */
-export declare class User extends Message {
- /**
- * @generated from field: string id = 1;
- */
- id: string;
-
- /**
- * @generated from field: string username = 2;
- */
- username: string;
-
- /**
- * @generated from field: google.protobuf.Timestamp created_at = 3;
- */
- createdAt?: Timestamp;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.User";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): User;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): User;
-
- static fromJsonString(jsonString: string, options?: Partial): User;
-
- static equals(a: User | PlainMessage | undefined, b: User | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.Project
- */
-export declare class Project extends Message {
- /**
- * @generated from field: string id = 1;
- */
- id: string;
-
- /**
- * @generated from field: string name = 2;
- */
- name: string;
-
- /**
- * @generated from field: string public_key = 3;
- */
- publicKey: string;
-
- /**
- * @generated from field: string secret_key = 4;
- */
- secretKey: string;
-
- /**
- * @generated from field: string auth_webhook_url = 5;
- */
- authWebhookUrl: string;
-
- /**
- * @generated from field: repeated string auth_webhook_methods = 6;
- */
- authWebhookMethods: string[];
-
- /**
- * @generated from field: string client_deactivate_threshold = 7;
- */
- clientDeactivateThreshold: string;
-
- /**
- * @generated from field: google.protobuf.Timestamp created_at = 8;
- */
- createdAt?: Timestamp;
-
- /**
- * @generated from field: google.protobuf.Timestamp updated_at = 9;
- */
- updatedAt?: Timestamp;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.Project";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): Project;
-
- static fromJson(jsonValue: JsonValue, options?: Partial): Project;
-
- static fromJsonString(jsonString: string, options?: Partial): Project;
-
- static equals(a: Project | PlainMessage | undefined, b: Project | PlainMessage | undefined): boolean;
-}
-
-/**
- * @generated from message yorkie.v1.UpdatableProjectFields
- */
-export declare class UpdatableProjectFields extends Message {
- /**
- * @generated from field: google.protobuf.StringValue name = 1;
- */
- name?: string;
-
- /**
- * @generated from field: google.protobuf.StringValue auth_webhook_url = 2;
- */
- authWebhookUrl?: string;
-
- /**
- * @generated from field: yorkie.v1.UpdatableProjectFields.AuthWebhookMethods auth_webhook_methods = 3;
- */
- authWebhookMethods?: UpdatableProjectFields_AuthWebhookMethods;
-
- /**
- * @generated from field: google.protobuf.StringValue client_deactivate_threshold = 4;
- */
- clientDeactivateThreshold?: string;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "yorkie.v1.UpdatableProjectFields";
- static readonly fields: FieldList;
-
- static fromBinary(bytes: Uint8Array, options?: Partial): UpdatableProjectFields;
-
- static fromJson(jsonValue: JsonValue, options?: Partial