@univerjs/protocol 0.1.39-alpha.4 → 0.1.39-alpha.40

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/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var N=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.OK=1]="OK",E[E.INTERNAL_ERROR=2]="INTERNAL_ERROR",E[E.PERMISSION_DENIED=3]="PERMISSION_DENIED",E[E.NOT_FOUND=4]="NOT_FOUND",E[E.UNAUTHENTICATED=5]="UNAUTHENTICATED",E[E.ALREADY_EXISTS=6]="ALREADY_EXISTS",E[E.INVALID_ARGUMENT=7]="INVALID_ARGUMENT",E[E.TOO_MANY_REQUESTS=8]="TOO_MANY_REQUESTS",E[E.COMPLETION_FINISHED=9]="COMPLETION_FINISHED",E[E.CHANGESET_REVISION_CONFILICT=5001]="CHANGESET_REVISION_CONFILICT",E[E.SNAPSHOT_INVALID_SNAPSHOT=6001]="SNAPSHOT_INVALID_SNAPSHOT",E[E.SNAPSHOT_HAS_BEEN_REMOVED=6002]="SNAPSHOT_HAS_BEEN_REMOVED",E[E.APPLY_REJECT=7001]="APPLY_REJECT",E[E.APPLY_NON_SEQUENTIAL_REVISION=7002]="APPLY_NON_SEQUENTIAL_REVISION",E[E.APPLY_REVISION_CONFILICT=7003]="APPLY_REVISION_CONFILICT",E[E.APPLY_PERMISSION_DENIED=7004]="APPLY_PERMISSION_DENIED",E[E.CONNECTOR_DATA_TOO_LARGE=8001]="CONNECTOR_DATA_TOO_LARGE",E[E.LICENSE_MAX_UNITS_EXCEEDED=9001]="LICENSE_MAX_UNITS_EXCEEDED",E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED=9002]="LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED",E[E.LICENSE_IMPORT_SIZE_EXCEEDED=9003]="LICENSE_IMPORT_SIZE_EXCEEDED",E[E.LICENSE_EXPORT_SIZE_EXCEEDED=9004]="LICENSE_EXPORT_SIZE_EXCEEDED",E[E.LICENSE_DISTRO_REJECTED=9005]="LICENSE_DISTRO_REJECTED",E[E.YUUMI_UNABLE_LOAD_URL=10001]="YUUMI_UNABLE_LOAD_URL",E[E.YUUMI_URL_COL_OUT_OF_RANGE=10002]="YUUMI_URL_COL_OUT_OF_RANGE",E[E.YUUMI_RATE_OVER_LIMIT=10003]="YUUMI_RATE_OVER_LIMIT",E[E.YUUMI_SUBSCRIPTION_NOT_FOUND=10004]="YUUMI_SUBSCRIPTION_NOT_FOUND",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(N||{});function H(E){return!!(E&&E.code&&E.code!==N.OK&&E.code!=="OK")}var I=(E=>(E[E.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",E[E.UNIVER_DOC=1]="UNIVER_DOC",E[E.UNIVER_SHEET=2]="UNIVER_SHEET",E[E.UNIVER_SLIDE=3]="UNIVER_SLIDE",E[E.UNIVER_PROJECT=4]="UNIVER_PROJECT",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(I||{}),O=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.STRING=1]="STRING",E[E.NUMBER=2]="NUMBER",E[E.BOOLEAN=3]="BOOLEAN",E[E.FORCE_STRING=4]="FORCE_STRING",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(O||{}),R=(E=>(E[E.UNKNOWN_CMD=0]="UNKNOWN_CMD",E[E.HELLO=1]="HELLO",E[E.JOIN=2]="JOIN",E[E.LEAVE=3]="LEAVE",E[E.INGEST=4]="INGEST",E[E.HEARTBEAT=5]="HEARTBEAT",E[E.RECV=6]="RECV",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(R||{}),D=(E=>(E[E.UNKNOWN_CODE=0]="UNKNOWN_CODE",E[E.OK=1]="OK",E[E.FAIL=2]="FAIL",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(D||{}),_=(E=>(E[E.OpenOrReOpen=0]="OpenOrReOpen",E[E.Solved=1]="Solved",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(_||{}),S=(E=>(E[E.Unknown=0]="Unknown",E[E.Add=1]="Add",E[E.Reply=2]="Reply",E[E.Edit=3]="Edit",E[E.Delete=4]="Delete",E[E.Solve=5]="Solve",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(S||{}),L=(E=>(E[E.SomeCollaborator=0]="SomeCollaborator",E[E.AllCollaborator=1]="AllCollaborator",E[E.OneSelf=2]="OneSelf",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(L||{}),l=(E=>(E[E.View=0]="View",E[E.Edit=1]="Edit",E[E.ManageCollaborator=2]="ManageCollaborator",E[E.Print=3]="Print",E[E.Duplicate=4]="Duplicate",E[E.Comment=5]="Comment",E[E.Copy=6]="Copy",E[E.Share=7]="Share",E[E.Export=8]="Export",E[E.MoveWorksheet=9]="MoveWorksheet",E[E.DeleteWorksheet=10]="DeleteWorksheet",E[E.HideWorksheet=11]="HideWorksheet",E[E.RenameWorksheet=12]="RenameWorksheet",E[E.CreateWorksheet=13]="CreateWorksheet",E[E.SetWorksheetStyle=14]="SetWorksheetStyle",E[E.EditWorksheetCell=15]="EditWorksheetCell",E[E.InsertHyperlink=16]="InsertHyperlink",E[E.Sort=17]="Sort",E[E.Filter=18]="Filter",E[E.PivotTable=19]="PivotTable",E[E.FloatImg=20]="FloatImg",E[E.History=21]="History",E[E.RwHgtClWdt=22]="RwHgtClWdt",E[E.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",E[E.ViewFilter=24]="ViewFilter",E[E.MoveSheet=25]="MoveSheet",E[E.DeleteSheet=26]="DeleteSheet",E[E.HideSheet=27]="HideSheet",E[E.CopySheet=28]="CopySheet",E[E.RenameSheet=29]="RenameSheet",E[E.CreateSheet=30]="CreateSheet",E[E.SelectProtectedCells=31]="SelectProtectedCells",E[E.SelectUnProtectedCells=32]="SelectUnProtectedCells",E[E.SetCellStyle=33]="SetCellStyle",E[E.SetCellValue=34]="SetCellValue",E[E.SetRowStyle=35]="SetRowStyle",E[E.SetColumnStyle=36]="SetColumnStyle",E[E.InsertRow=37]="InsertRow",E[E.InsertColumn=38]="InsertColumn",E[E.DeleteRow=39]="DeleteRow",E[E.DeleteColumn=40]="DeleteColumn",E[E.EditExtraObject=41]="EditExtraObject",E[E.Delete=42]="Delete",E[E.RecoverHistory=43]="RecoverHistory",E[E.ViewHistory=44]="ViewHistory",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(l||{}),P=(E=>(E[E.Reader=0]="Reader",E[E.Editor=1]="Editor",E[E.Owner=2]="Owner",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(P||{}),M=(E=>(E[E.Unkonwn=0]="Unkonwn",E[E.Workbook=1]="Workbook",E[E.Worksheet=2]="Worksheet",E[E.SelectRange=3]="SelectRange",E[E.Document=4]="Document",E[E.Slide=5]="Slide",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(M||{}),T=(E=>(E[E.Private=0]="Private",E[E.Public=1]="Public",E[E.Organization=2]="Organization",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(T||{}),G=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.TEXT=1]="TEXT",E[E.URL=2]="URL",E[E.IMAGE=3]="IMAGE",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(G||{});exports.CellType=G;exports.CellValueType=O;exports.CmdRspCode=D;exports.CombCmd=R;exports.CommentSolvedStatus=_;exports.CommentUpdateEventType=S;exports.CreateRequest_WorkSheetObjectScope=L;exports.ErrorCode=N;exports.UnitAction=l;exports.UnitObject=M;exports.UnitRole=P;exports.UnitShareScope=T;exports.UniverType=I;exports.isError=H;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var I=(E=>(E[E.OpenOrReOpen=0]="OpenOrReOpen",E[E.Solved=1]="Solved",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(I||{}),O=(E=>(E[E.Unknown=0]="Unknown",E[E.Add=1]="Add",E[E.Reply=2]="Reply",E[E.Edit=3]="Edit",E[E.Delete=4]="Delete",E[E.Solve=5]="Solve",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(O||{}),N=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.OK=1]="OK",E[E.INTERNAL_ERROR=2]="INTERNAL_ERROR",E[E.PERMISSION_DENIED=3]="PERMISSION_DENIED",E[E.NOT_FOUND=4]="NOT_FOUND",E[E.UNAUTHENTICATED=5]="UNAUTHENTICATED",E[E.ALREADY_EXISTS=6]="ALREADY_EXISTS",E[E.INVALID_ARGUMENT=7]="INVALID_ARGUMENT",E[E.TOO_MANY_REQUESTS=8]="TOO_MANY_REQUESTS",E[E.COMPLETION_FINISHED=9]="COMPLETION_FINISHED",E[E.CHANGESET_REVISION_CONFILICT=5001]="CHANGESET_REVISION_CONFILICT",E[E.SNAPSHOT_INVALID_SNAPSHOT=6001]="SNAPSHOT_INVALID_SNAPSHOT",E[E.SNAPSHOT_HAS_BEEN_REMOVED=6002]="SNAPSHOT_HAS_BEEN_REMOVED",E[E.ENSURE_SNAPSHOT_EXECUTION=6003]="ENSURE_SNAPSHOT_EXECUTION",E[E.APPLY_REJECT=7001]="APPLY_REJECT",E[E.APPLY_NON_SEQUENTIAL_REVISION=7002]="APPLY_NON_SEQUENTIAL_REVISION",E[E.APPLY_REVISION_CONFILICT=7003]="APPLY_REVISION_CONFILICT",E[E.APPLY_PERMISSION_DENIED=7004]="APPLY_PERMISSION_DENIED",E[E.APPLY_DUPLICATED=7005]="APPLY_DUPLICATED",E[E.CONNECTOR_DATA_TOO_LARGE=8001]="CONNECTOR_DATA_TOO_LARGE",E[E.LICENSE_MAX_UNITS_EXCEEDED=9001]="LICENSE_MAX_UNITS_EXCEEDED",E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED=9002]="LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED",E[E.LICENSE_IMPORT_SIZE_EXCEEDED=9003]="LICENSE_IMPORT_SIZE_EXCEEDED",E[E.LICENSE_EXPORT_SIZE_EXCEEDED=9004]="LICENSE_EXPORT_SIZE_EXCEEDED",E[E.LICENSE_DISTRO_REJECTED=9005]="LICENSE_DISTRO_REJECTED",E[E.YUUMI_UNABLE_LOAD_URL=10001]="YUUMI_UNABLE_LOAD_URL",E[E.YUUMI_URL_COL_OUT_OF_RANGE=10002]="YUUMI_URL_COL_OUT_OF_RANGE",E[E.YUUMI_RATE_OVER_LIMIT=10003]="YUUMI_RATE_OVER_LIMIT",E[E.YUUMI_SUBSCRIPTION_NOT_FOUND=10004]="YUUMI_SUBSCRIPTION_NOT_FOUND",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(N||{}),_=(E=>(E[E.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",E[E.UNIVER_DOC=1]="UNIVER_DOC",E[E.UNIVER_SHEET=2]="UNIVER_SHEET",E[E.UNIVER_SLIDE=3]="UNIVER_SLIDE",E[E.UNIVER_PROJECT=4]="UNIVER_PROJECT",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(_||{}),D=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.TEXT=1]="TEXT",E[E.URL=2]="URL",E[E.IMAGE=3]="IMAGE",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(D||{}),R=(E=>(E[E.View=0]="View",E[E.Edit=1]="Edit",E[E.ManageCollaborator=2]="ManageCollaborator",E[E.Print=3]="Print",E[E.Duplicate=4]="Duplicate",E[E.Comment=5]="Comment",E[E.Copy=6]="Copy",E[E.Share=7]="Share",E[E.Export=8]="Export",E[E.MoveWorksheet=9]="MoveWorksheet",E[E.DeleteWorksheet=10]="DeleteWorksheet",E[E.HideWorksheet=11]="HideWorksheet",E[E.RenameWorksheet=12]="RenameWorksheet",E[E.CreateWorksheet=13]="CreateWorksheet",E[E.SetWorksheetStyle=14]="SetWorksheetStyle",E[E.EditWorksheetCell=15]="EditWorksheetCell",E[E.InsertHyperlink=16]="InsertHyperlink",E[E.Sort=17]="Sort",E[E.Filter=18]="Filter",E[E.PivotTable=19]="PivotTable",E[E.FloatImg=20]="FloatImg",E[E.History=21]="History",E[E.RwHgtClWdt=22]="RwHgtClWdt",E[E.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",E[E.ViewFilter=24]="ViewFilter",E[E.MoveSheet=25]="MoveSheet",E[E.DeleteSheet=26]="DeleteSheet",E[E.HideSheet=27]="HideSheet",E[E.CopySheet=28]="CopySheet",E[E.RenameSheet=29]="RenameSheet",E[E.CreateSheet=30]="CreateSheet",E[E.SelectProtectedCells=31]="SelectProtectedCells",E[E.SelectUnProtectedCells=32]="SelectUnProtectedCells",E[E.SetCellStyle=33]="SetCellStyle",E[E.SetCellValue=34]="SetCellValue",E[E.SetRowStyle=35]="SetRowStyle",E[E.SetColumnStyle=36]="SetColumnStyle",E[E.InsertRow=37]="InsertRow",E[E.InsertColumn=38]="InsertColumn",E[E.DeleteRow=39]="DeleteRow",E[E.DeleteColumn=40]="DeleteColumn",E[E.EditExtraObject=41]="EditExtraObject",E[E.Delete=42]="Delete",E[E.RecoverHistory=43]="RecoverHistory",E[E.ViewHistory=44]="ViewHistory",E[E.CreatePermissionObject=45]="CreatePermissionObject",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(R||{}),S=(E=>(E[E.Reader=0]="Reader",E[E.Editor=1]="Editor",E[E.Owner=2]="Owner",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(S||{}),L=(E=>(E[E.Unkonwn=0]="Unkonwn",E[E.Workbook=1]="Workbook",E[E.Worksheet=2]="Worksheet",E[E.SelectRange=3]="SelectRange",E[E.Document=4]="Document",E[E.Slide=5]="Slide",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(L||{}),P=(E=>(E[E.Private=0]="Private",E[E.Public=1]="Public",E[E.Organization=2]="Organization",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(P||{}),M=(E=>(E[E.SomeCollaborator=0]="SomeCollaborator",E[E.AllCollaborator=1]="AllCollaborator",E[E.OneSelf=2]="OneSelf",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(M||{}),G=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.STRING=1]="STRING",E[E.NUMBER=2]="NUMBER",E[E.BOOLEAN=3]="BOOLEAN",E[E.FORCE_STRING=4]="FORCE_STRING",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(G||{}),l=(E=>(E[E.Unknown=0]="Unknown",E[E.Colla=1]="Colla",E[E.Import=2]="Import",E[E.Export=3]="Export",E[E.CreateUnit=4]="CreateUnit",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(l||{}),T=(E=>(E[E.UNKNOWN_CMD=0]="UNKNOWN_CMD",E[E.HELLO=1]="HELLO",E[E.JOIN=2]="JOIN",E[E.LEAVE=3]="LEAVE",E[E.INGEST=4]="INGEST",E[E.HEARTBEAT=5]="HEARTBEAT",E[E.RECV=6]="RECV",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(T||{}),H=(E=>(E[E.UNKNOWN_CODE=0]="UNKNOWN_CODE",E[E.OK=1]="OK",E[E.FAIL=2]="FAIL",E[E.JOIN_ROOM_FULL=1001]="JOIN_ROOM_FULL",E[E.JOIN_ROOM_NOT_ALLOWED=1002]="JOIN_ROOM_NOT_ALLOWED",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(H||{}),a=(E=>(E[E.Undefined=0]="Undefined",E[E.HttpImport=1]="HttpImport",E[E.HttpExport=2]="HttpExport",E[E.UnitEmbedded=3]="UnitEmbedded",E[E.UnitSnapshot=4]="UnitSnapshot",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(a||{});function Z(E){return!!(E&&E.code&&E.code!==N.OK&&E.code!=="OK")}exports.CellType=D;exports.CellValueType=G;exports.CmdRspCode=H;exports.CombCmd=T;exports.CommentSolvedStatus=I;exports.CommentUpdateEventType=O;exports.ErrorCode=N;exports.FileSource=a;exports.IRecordType=l;exports.ObjectScope=M;exports.UnitAction=R;exports.UnitObject=L;exports.UnitRole=S;exports.UnitShareScope=P;exports.UniverType=_;exports.isError=Z;
package/lib/es/index.js CHANGED
@@ -1,21 +1,22 @@
1
- var N = /* @__PURE__ */ ((E) => (E[E.UNDEFINED = 0] = "UNDEFINED", E[E.OK = 1] = "OK", E[E.INTERNAL_ERROR = 2] = "INTERNAL_ERROR", E[E.PERMISSION_DENIED = 3] = "PERMISSION_DENIED", E[E.NOT_FOUND = 4] = "NOT_FOUND", E[E.UNAUTHENTICATED = 5] = "UNAUTHENTICATED", E[E.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", E[E.INVALID_ARGUMENT = 7] = "INVALID_ARGUMENT", E[E.TOO_MANY_REQUESTS = 8] = "TOO_MANY_REQUESTS", E[E.COMPLETION_FINISHED = 9] = "COMPLETION_FINISHED", E[E.CHANGESET_REVISION_CONFILICT = 5001] = "CHANGESET_REVISION_CONFILICT", E[E.SNAPSHOT_INVALID_SNAPSHOT = 6001] = "SNAPSHOT_INVALID_SNAPSHOT", E[E.SNAPSHOT_HAS_BEEN_REMOVED = 6002] = "SNAPSHOT_HAS_BEEN_REMOVED", E[E.APPLY_REJECT = 7001] = "APPLY_REJECT", E[E.APPLY_NON_SEQUENTIAL_REVISION = 7002] = "APPLY_NON_SEQUENTIAL_REVISION", E[E.APPLY_REVISION_CONFILICT = 7003] = "APPLY_REVISION_CONFILICT", E[E.APPLY_PERMISSION_DENIED = 7004] = "APPLY_PERMISSION_DENIED", E[E.CONNECTOR_DATA_TOO_LARGE = 8001] = "CONNECTOR_DATA_TOO_LARGE", E[E.LICENSE_MAX_UNITS_EXCEEDED = 9001] = "LICENSE_MAX_UNITS_EXCEEDED", E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED = 9002] = "LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED", E[E.LICENSE_IMPORT_SIZE_EXCEEDED = 9003] = "LICENSE_IMPORT_SIZE_EXCEEDED", E[E.LICENSE_EXPORT_SIZE_EXCEEDED = 9004] = "LICENSE_EXPORT_SIZE_EXCEEDED", E[E.LICENSE_DISTRO_REJECTED = 9005] = "LICENSE_DISTRO_REJECTED", E[E.YUUMI_UNABLE_LOAD_URL = 10001] = "YUUMI_UNABLE_LOAD_URL", E[E.YUUMI_URL_COL_OUT_OF_RANGE = 10002] = "YUUMI_URL_COL_OUT_OF_RANGE", E[E.YUUMI_RATE_OVER_LIMIT = 10003] = "YUUMI_RATE_OVER_LIMIT", E[E.YUUMI_SUBSCRIPTION_NOT_FOUND = 10004] = "YUUMI_SUBSCRIPTION_NOT_FOUND", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(N || {});
2
- function H(E) {
1
+ var I = /* @__PURE__ */ ((E) => (E[E.OpenOrReOpen = 0] = "OpenOrReOpen", E[E.Solved = 1] = "Solved", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), O = /* @__PURE__ */ ((E) => (E[E.Unknown = 0] = "Unknown", E[E.Add = 1] = "Add", E[E.Reply = 2] = "Reply", E[E.Edit = 3] = "Edit", E[E.Delete = 4] = "Delete", E[E.Solve = 5] = "Solve", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(O || {}), N = /* @__PURE__ */ ((E) => (E[E.UNDEFINED = 0] = "UNDEFINED", E[E.OK = 1] = "OK", E[E.INTERNAL_ERROR = 2] = "INTERNAL_ERROR", E[E.PERMISSION_DENIED = 3] = "PERMISSION_DENIED", E[E.NOT_FOUND = 4] = "NOT_FOUND", E[E.UNAUTHENTICATED = 5] = "UNAUTHENTICATED", E[E.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", E[E.INVALID_ARGUMENT = 7] = "INVALID_ARGUMENT", E[E.TOO_MANY_REQUESTS = 8] = "TOO_MANY_REQUESTS", E[E.COMPLETION_FINISHED = 9] = "COMPLETION_FINISHED", E[E.CHANGESET_REVISION_CONFILICT = 5001] = "CHANGESET_REVISION_CONFILICT", E[E.SNAPSHOT_INVALID_SNAPSHOT = 6001] = "SNAPSHOT_INVALID_SNAPSHOT", E[E.SNAPSHOT_HAS_BEEN_REMOVED = 6002] = "SNAPSHOT_HAS_BEEN_REMOVED", E[E.ENSURE_SNAPSHOT_EXECUTION = 6003] = "ENSURE_SNAPSHOT_EXECUTION", E[E.APPLY_REJECT = 7001] = "APPLY_REJECT", E[E.APPLY_NON_SEQUENTIAL_REVISION = 7002] = "APPLY_NON_SEQUENTIAL_REVISION", E[E.APPLY_REVISION_CONFILICT = 7003] = "APPLY_REVISION_CONFILICT", E[E.APPLY_PERMISSION_DENIED = 7004] = "APPLY_PERMISSION_DENIED", E[E.APPLY_DUPLICATED = 7005] = "APPLY_DUPLICATED", E[E.CONNECTOR_DATA_TOO_LARGE = 8001] = "CONNECTOR_DATA_TOO_LARGE", E[E.LICENSE_MAX_UNITS_EXCEEDED = 9001] = "LICENSE_MAX_UNITS_EXCEEDED", E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED = 9002] = "LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED", E[E.LICENSE_IMPORT_SIZE_EXCEEDED = 9003] = "LICENSE_IMPORT_SIZE_EXCEEDED", E[E.LICENSE_EXPORT_SIZE_EXCEEDED = 9004] = "LICENSE_EXPORT_SIZE_EXCEEDED", E[E.LICENSE_DISTRO_REJECTED = 9005] = "LICENSE_DISTRO_REJECTED", E[E.YUUMI_UNABLE_LOAD_URL = 10001] = "YUUMI_UNABLE_LOAD_URL", E[E.YUUMI_URL_COL_OUT_OF_RANGE = 10002] = "YUUMI_URL_COL_OUT_OF_RANGE", E[E.YUUMI_RATE_OVER_LIMIT = 10003] = "YUUMI_RATE_OVER_LIMIT", E[E.YUUMI_SUBSCRIPTION_NOT_FOUND = 10004] = "YUUMI_SUBSCRIPTION_NOT_FOUND", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(N || {}), _ = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(_ || {}), D = /* @__PURE__ */ ((E) => (E[E.UNDEFINED = 0] = "UNDEFINED", E[E.TEXT = 1] = "TEXT", E[E.URL = 2] = "URL", E[E.IMAGE = 3] = "IMAGE", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(D || {}), R = /* @__PURE__ */ ((E) => (E[E.View = 0] = "View", E[E.Edit = 1] = "Edit", E[E.ManageCollaborator = 2] = "ManageCollaborator", E[E.Print = 3] = "Print", E[E.Duplicate = 4] = "Duplicate", E[E.Comment = 5] = "Comment", E[E.Copy = 6] = "Copy", E[E.Share = 7] = "Share", E[E.Export = 8] = "Export", E[E.MoveWorksheet = 9] = "MoveWorksheet", E[E.DeleteWorksheet = 10] = "DeleteWorksheet", E[E.HideWorksheet = 11] = "HideWorksheet", E[E.RenameWorksheet = 12] = "RenameWorksheet", E[E.CreateWorksheet = 13] = "CreateWorksheet", E[E.SetWorksheetStyle = 14] = "SetWorksheetStyle", E[E.EditWorksheetCell = 15] = "EditWorksheetCell", E[E.InsertHyperlink = 16] = "InsertHyperlink", E[E.Sort = 17] = "Sort", E[E.Filter = 18] = "Filter", E[E.PivotTable = 19] = "PivotTable", E[E.FloatImg = 20] = "FloatImg", E[E.History = 21] = "History", E[E.RwHgtClWdt = 22] = "RwHgtClWdt", E[E.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", E[E.ViewFilter = 24] = "ViewFilter", E[E.MoveSheet = 25] = "MoveSheet", E[E.DeleteSheet = 26] = "DeleteSheet", E[E.HideSheet = 27] = "HideSheet", E[E.CopySheet = 28] = "CopySheet", E[E.RenameSheet = 29] = "RenameSheet", E[E.CreateSheet = 30] = "CreateSheet", E[E.SelectProtectedCells = 31] = "SelectProtectedCells", E[E.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", E[E.SetCellStyle = 33] = "SetCellStyle", E[E.SetCellValue = 34] = "SetCellValue", E[E.SetRowStyle = 35] = "SetRowStyle", E[E.SetColumnStyle = 36] = "SetColumnStyle", E[E.InsertRow = 37] = "InsertRow", E[E.InsertColumn = 38] = "InsertColumn", E[E.DeleteRow = 39] = "DeleteRow", E[E.DeleteColumn = 40] = "DeleteColumn", E[E.EditExtraObject = 41] = "EditExtraObject", E[E.Delete = 42] = "Delete", E[E.RecoverHistory = 43] = "RecoverHistory", E[E.ViewHistory = 44] = "ViewHistory", E[E.CreatePermissionObject = 45] = "CreatePermissionObject", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(R || {}), S = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(S || {}), L = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {}), P = /* @__PURE__ */ ((E) => (E[E.Private = 0] = "Private", E[E.Public = 1] = "Public", E[E.Organization = 2] = "Organization", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(P || {}), M = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(M || {}), G = /* @__PURE__ */ ((E) => (E[E.UNKNOWN = 0] = "UNKNOWN", E[E.STRING = 1] = "STRING", E[E.NUMBER = 2] = "NUMBER", E[E.BOOLEAN = 3] = "BOOLEAN", E[E.FORCE_STRING = 4] = "FORCE_STRING", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(G || {}), H = /* @__PURE__ */ ((E) => (E[E.Unknown = 0] = "Unknown", E[E.Colla = 1] = "Colla", E[E.Import = 2] = "Import", E[E.Export = 3] = "Export", E[E.CreateUnit = 4] = "CreateUnit", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(H || {}), T = /* @__PURE__ */ ((E) => (E[E.UNKNOWN_CMD = 0] = "UNKNOWN_CMD", E[E.HELLO = 1] = "HELLO", E[E.JOIN = 2] = "JOIN", E[E.LEAVE = 3] = "LEAVE", E[E.INGEST = 4] = "INGEST", E[E.HEARTBEAT = 5] = "HEARTBEAT", E[E.RECV = 6] = "RECV", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(T || {}), l = /* @__PURE__ */ ((E) => (E[E.UNKNOWN_CODE = 0] = "UNKNOWN_CODE", E[E.OK = 1] = "OK", E[E.FAIL = 2] = "FAIL", E[E.JOIN_ROOM_FULL = 1001] = "JOIN_ROOM_FULL", E[E.JOIN_ROOM_NOT_ALLOWED = 1002] = "JOIN_ROOM_NOT_ALLOWED", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(l || {}), a = /* @__PURE__ */ ((E) => (E[E.Undefined = 0] = "Undefined", E[E.HttpImport = 1] = "HttpImport", E[E.HttpExport = 2] = "HttpExport", E[E.UnitEmbedded = 3] = "UnitEmbedded", E[E.UnitSnapshot = 4] = "UnitSnapshot", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(a || {});
2
+ function Z(E) {
3
3
  return !!(E && E.code && E.code !== N.OK && E.code !== "OK");
4
4
  }
5
- var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), O = /* @__PURE__ */ ((E) => (E[E.UNKNOWN = 0] = "UNKNOWN", E[E.STRING = 1] = "STRING", E[E.NUMBER = 2] = "NUMBER", E[E.BOOLEAN = 3] = "BOOLEAN", E[E.FORCE_STRING = 4] = "FORCE_STRING", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(O || {}), R = /* @__PURE__ */ ((E) => (E[E.UNKNOWN_CMD = 0] = "UNKNOWN_CMD", E[E.HELLO = 1] = "HELLO", E[E.JOIN = 2] = "JOIN", E[E.LEAVE = 3] = "LEAVE", E[E.INGEST = 4] = "INGEST", E[E.HEARTBEAT = 5] = "HEARTBEAT", E[E.RECV = 6] = "RECV", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(R || {}), D = /* @__PURE__ */ ((E) => (E[E.UNKNOWN_CODE = 0] = "UNKNOWN_CODE", E[E.OK = 1] = "OK", E[E.FAIL = 2] = "FAIL", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(D || {}), _ = /* @__PURE__ */ ((E) => (E[E.OpenOrReOpen = 0] = "OpenOrReOpen", E[E.Solved = 1] = "Solved", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(_ || {}), S = /* @__PURE__ */ ((E) => (E[E.Unknown = 0] = "Unknown", E[E.Add = 1] = "Add", E[E.Reply = 2] = "Reply", E[E.Edit = 3] = "Edit", E[E.Delete = 4] = "Delete", E[E.Solve = 5] = "Solve", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(S || {}), L = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {}), P = /* @__PURE__ */ ((E) => (E[E.View = 0] = "View", E[E.Edit = 1] = "Edit", E[E.ManageCollaborator = 2] = "ManageCollaborator", E[E.Print = 3] = "Print", E[E.Duplicate = 4] = "Duplicate", E[E.Comment = 5] = "Comment", E[E.Copy = 6] = "Copy", E[E.Share = 7] = "Share", E[E.Export = 8] = "Export", E[E.MoveWorksheet = 9] = "MoveWorksheet", E[E.DeleteWorksheet = 10] = "DeleteWorksheet", E[E.HideWorksheet = 11] = "HideWorksheet", E[E.RenameWorksheet = 12] = "RenameWorksheet", E[E.CreateWorksheet = 13] = "CreateWorksheet", E[E.SetWorksheetStyle = 14] = "SetWorksheetStyle", E[E.EditWorksheetCell = 15] = "EditWorksheetCell", E[E.InsertHyperlink = 16] = "InsertHyperlink", E[E.Sort = 17] = "Sort", E[E.Filter = 18] = "Filter", E[E.PivotTable = 19] = "PivotTable", E[E.FloatImg = 20] = "FloatImg", E[E.History = 21] = "History", E[E.RwHgtClWdt = 22] = "RwHgtClWdt", E[E.ViemRwHgtClWdt = 23] = "ViemRwHgtClWdt", E[E.ViewFilter = 24] = "ViewFilter", E[E.MoveSheet = 25] = "MoveSheet", E[E.DeleteSheet = 26] = "DeleteSheet", E[E.HideSheet = 27] = "HideSheet", E[E.CopySheet = 28] = "CopySheet", E[E.RenameSheet = 29] = "RenameSheet", E[E.CreateSheet = 30] = "CreateSheet", E[E.SelectProtectedCells = 31] = "SelectProtectedCells", E[E.SelectUnProtectedCells = 32] = "SelectUnProtectedCells", E[E.SetCellStyle = 33] = "SetCellStyle", E[E.SetCellValue = 34] = "SetCellValue", E[E.SetRowStyle = 35] = "SetRowStyle", E[E.SetColumnStyle = 36] = "SetColumnStyle", E[E.InsertRow = 37] = "InsertRow", E[E.InsertColumn = 38] = "InsertColumn", E[E.DeleteRow = 39] = "DeleteRow", E[E.DeleteColumn = 40] = "DeleteColumn", E[E.EditExtraObject = 41] = "EditExtraObject", E[E.Delete = 42] = "Delete", E[E.RecoverHistory = 43] = "RecoverHistory", E[E.ViewHistory = 44] = "ViewHistory", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(P || {}), M = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(M || {}), l = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(l || {}), G = /* @__PURE__ */ ((E) => (E[E.Private = 0] = "Private", E[E.Public = 1] = "Public", E[E.Organization = 2] = "Organization", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(G || {}), T = /* @__PURE__ */ ((E) => (E[E.UNDEFINED = 0] = "UNDEFINED", E[E.TEXT = 1] = "TEXT", E[E.URL = 2] = "URL", E[E.IMAGE = 3] = "IMAGE", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(T || {});
6
5
  export {
7
- T as CellType,
8
- O as CellValueType,
9
- D as CmdRspCode,
10
- R as CombCmd,
11
- _ as CommentSolvedStatus,
12
- S as CommentUpdateEventType,
13
- L as CreateRequest_WorkSheetObjectScope,
6
+ D as CellType,
7
+ G as CellValueType,
8
+ l as CmdRspCode,
9
+ T as CombCmd,
10
+ I as CommentSolvedStatus,
11
+ O as CommentUpdateEventType,
14
12
  N as ErrorCode,
15
- P as UnitAction,
16
- l as UnitObject,
17
- M as UnitRole,
18
- G as UnitShareScope,
19
- I as UniverType,
20
- H as isError
13
+ a as FileSource,
14
+ H as IRecordType,
15
+ M as ObjectScope,
16
+ R as UnitAction,
17
+ L as UnitObject,
18
+ S as UnitRole,
19
+ P as UnitShareScope,
20
+ _ as UniverType,
21
+ Z as isError
21
22
  };
@@ -1,24 +1,27 @@
1
- export { isError } from './utils';
2
- export type { Changeset as IChangeset, Mutation as IMutation, Command as ICommand } from './ts/univer/changeset';
3
- export { ErrorCode, type Error as IError } from './ts/univer/constants/errors';
1
+ export type { DeserializedSheetBlock as IDeserializedSheetBlock, GetDeserializedSheetBlockResponse as IGetDeserializedSheetBlockResponse, } from './other/sheet_block';
2
+ export type { Changeset as IChangeset, Command as ICommand, Mutation as IMutation } from './ts/univer/changeset';
3
+ export { type CollaMsg as ICollaMsg, type CollaMsgErrorEvent as ICollaMsgErrorEvent, type CollaMsgJoin as ICollaMsgJoin, type CollaMsgLeave as ICollaMsgLeave, type CommentUpdate as ICommentUpdate, CommentUpdate_EventType as CommentUpdateEventType, CommentUpdate_Status as CommentSolvedStatus, type LiveShareNewHost as ILiveShareNewHost, type LiveShareOperation as ILiveShareOperation, type LiveShareOperation_Operation as ILiveShareOperation_Operation, type LiveShareOperation_OperationsEntry as ILiveShareOperation_OperationsEntry, type LiveShareRequestHost as ILiveShareRequestHost, type LiveShareTerminate as ILiveShareTerminate, type ShouldCloseConn as IShouldCloseConn, type UpdateCollaborator as IUpdateCollaborator, type UpdateCursor as IUpdateCursor, type UpdatePermissionObj as IUpdatePermissionObj, } from './ts/univer/colla_msg';
4
+ export { type Error as IError, ErrorCode } from './ts/univer/constants/errors';
4
5
  export { UniverType } from './ts/univer/constants/univer';
5
6
  export type { DocumentMeta as IDocumentMeta } from './ts/univer/doc';
7
+ export { CellType, type InitialSheet as IInitialSheet, type Row as IRow, type RowCell as IRow_Cell, } from './ts/univer/initial_sheet';
8
+ export type { UnitPermissionStrategy as IUnitPermissionStrategy, UnitRoleKV as IUnitRoleKV, } from './ts/univer/permission';
9
+ export { ObjectScope, UnitAction, UnitObject, UnitRole, UnitShareScope, } from './ts/univer/permission';
6
10
  export type { Resource as IResource } from './ts/univer/resource';
7
11
  export type { Snapshot as ISnapshot } from './ts/univer/snapshot';
8
- export { CellValueType, type CellData as ICellData, type CellValue as ICellValue, type RowData as IRowData, type RowData_ItemsEntry as IRowDataItemsEntry, type SheetBlock as ISheetBlock, type SheetBlockMeta as ISheetBlockMeta, type WorkbookMeta as IWorkbookMeta, type WorkbookMeta_BlockMetaEntry as IWorkbookMeta_BlockMetaEntry, type WorkbookMeta_SheetsEntry as IWorkbookMeta_SheetsEntry, type WorksheetMeta as IWorksheetMeta, } from './ts/univer/workbook';
9
- export { type ApplyRequest as IApplyRequest, type ApplyResponse as IApplyResponse, type CreateUnitRequest as ICreateUnitRequest, type CreateUnitResponse as ICreateUnitResponse, type DisposeRequest as IDisposeRequest, type DisposeResponse as IDisposeResponse, type WorkbookCreateMeta as IWorkbookCreateMeta, type EnsureSnapshotRequest as IEnsureSnapshotRequest, type EnsureSnapshotResponse as IEnsureSnapshotResponse, type DirectWriteBody as IDirectWriteBody, type DirectWriteRequest as IDirectWriteRequest, type DirectWriteResponse as IDirectWriteResponse, type GetUnitRawContentRequest as IGetUnitRawContentRequest, type GetUnitRawContentResponse as IGetUnitRawContentResponse, } from './ts/v1/apply';
12
+ export { type CellData as ICellData, type CellValue as ICellValue, CellValueType, type RowData as IRowData, type RowData_ItemsEntry as IRowDataItemsEntry, type SheetBlock as ISheetBlock, type SheetBlockMeta as ISheetBlockMeta, type WorkbookMeta as IWorkbookMeta, type WorkbookMeta_BlockMetaEntry as IWorkbookMeta_BlockMetaEntry, type WorkbookMeta_SheetsEntry as IWorkbookMeta_SheetsEntry, type WorksheetMeta as IWorksheetMeta, } from './ts/univer/workbook';
13
+ export type { Record as IRecord, Report as IReport, } from './ts/univercloud/stats/v1/stats';
14
+ export { RecordType as IRecordType, } from './ts/univercloud/stats/v1/stats';
15
+ export { type ApplyRequest as IApplyRequest, type ApplyResponse as IApplyResponse, type CreateUnitRequest as ICreateUnitRequest, type CreateUnitResponse as ICreateUnitResponse, type DirectWriteBody as IDirectWriteBody, type DirectWriteRequest as IDirectWriteRequest, type DirectWriteResponse as IDirectWriteResponse, type DisposeRequest as IDisposeRequest, type DisposeResponse as IDisposeResponse, type EnsureSnapshotRequest as IEnsureSnapshotRequest, type EnsureSnapshotResponse as IEnsureSnapshotResponse, type ForkUnitRequest as IForkUnitRequest, type ForkUnitResponse as IForkUnitResponse, type GetUnitRawContentRequest as IGetUnitRawContentRequest, type GetUnitRawContentResponse as IGetUnitRawContentResponse, type WorkbookCreateMeta as IWorkbookCreateMeta, } from './ts/v1/apply';
16
+ export type { ActionInfo as IActionInfo, AllowedRequest as IAllowedRequest, AllowedResponse as IAllowedResponse, AuthzService as IAuthzService, BatchAllowedResponse as IBatchAllowedResponse, Collaborator as ICollaborator, CreateCollaboratorRequest as ICreateCollaboratorRequest, CreateCollaboratorResponse as ICreateCollaboratorResponse, CreateRequest as ICreateRequest, CreateRequest_SelectRangeObject as ICreateRequest_SelectRangeObject, CreateRequest_WorksheetObject as ICreateRequest_WorksheetObject, CreateResponse as ICreateResponse, DeleteCollaboratorRequest as IDeleteCollaboratorRequest, DeleteCollaboratorResponse as IDeleteCollaboratorResponse, ListCollaboratorRequest as IListCollaboratorRequest, ListCollaboratorResponse as IListCollaboratorResponse, ListPermPointRequest as IListPermPointRequest, ListPermPointResponse as IListPermPointResponse, ListRolesRequest as IListRolesRequest, ListRolesResponse as IListRolesResponse, PermissionPoint as IPermissionPoint, PutCollaboratorsRequest as IPutCollaboratorsRequest, PutCollaboratorsResponse as IPutCollaboratorsResponse, UpdateCollaboratorRequest as IUpdateCollaboratorRequest, UpdateCollaboratorResponse as IUpdateCollaboratorResponse, UpdatePermPointRequest as IUpdatePermPointRequest, UpdatePermPointResponse as IUpdatePermPointResponse, } from './ts/v1/authz';
10
17
  export { CmdRspCode, CombCmd, type CombInfoResponse as ICombInfoResponse, type CombJoinInfo as ICombJoinInfo, type CombJoinRequest as ICombJoinRequest, type CombJoinResponse as ICombJoinResponse, type CombJoinResponse_RoomInfo as ICombJoinResponseRoomInfo, type CombJoinResponse_RoomInfosEntry as ICombJoinResponseRoomInfosEntry, type CombLeaveRequest as ICombLeaveRequest, type CombService as ICombService, type ConnectResponse as IConnectResponse, type Member as IMember, type NewChangesRequest as INewChangesRequest, type NewChangesResponse as INewChangesResponse, } from './ts/v1/comb';
11
- export { type FetchMissingChangesetsRequest as IFetchMissingChangesetsRequest, type FetchMissingChangesetsResponse as IFetchMissingChangesetsResponse, type GetResourcesRequest as IGetResourcesRequest, type GetResourcesResponse as IGetResourcesResponse, type GetSheetBlockRequest as IGetSheetBlockRequest, type GetSheetBlockResponse as IGetSheetBlockResponse, type GetSnapshotRequest as IGetSnapshotRequest, type GetSnapshotResponse as IGetSnapshotResponse, type GetUnitOnRevRequest as IGetUnitOnRevRequest, type GetUnitOnRevResponse as IGetUnitOnRevResponse, type SaveChangesetRequest as ISaveChangesetRequest, type SaveChangesetResponse as ISaveChangesetResponse, type SaveSheetBlockRequest as ISaveSheetBlockRequest, type SaveSheetBlockResponse as ISaveSheetBlockResponse, type SaveSnapshotRequest as ISaveSnapshotRequest, type SaveSnapshotResponse as ISaveSnapshotResponse, type UpdateUnitRequest as IUpdateUnitRequest, type UpdateUnitResponse as IUpdateUnitResponse, type SnapshotService as ISnapshotService, } from './ts/v1/snapshot';
12
- export { type RecentListRequest as IRecentListRequest, type RecentListResponse as IRecentListResponse, type RemoveNodeRequest as IRemoveNodeRequest, type RemoveNodeResponse as IRemoveNodeResponse, type RestoreNodeRequest as IRestoreNodeRequest, type RestoreNodeResponse as IRestoreNodeResponse, type DeleteUnitRequest as IDeleteUnitRequest, type DeleteUnitResponse as IDeleteUnitResponse, type WorkspaceService as IWorkspaceService, } from './ts/v1/workspace';
13
- export { type CollaMsg as ICollaMsg, type CollaMsgJoin as ICollaMsgJoin, type CollaMsgLeave as ICollaMsgLeave, type UpdateCursor as IUpdateCursor, type LiveShareRequestHost as ILiveShareRequestHost, type LiveShareNewHost as ILiveShareNewHost, type LiveShareOperation as ILiveShareOperation, type LiveShareOperation_Operation as ILiveShareOperation_Operation, type LiveShareOperation_OperationsEntry as ILiveShareOperation_OperationsEntry, type LiveShareTerminate as ILiveShareTerminate, type CollaMsgErrorEvent as ICollaMsgErrorEvent, type CommentUpdate as ICommentUpdate, type UpdateCollaborator as IUpdateCollaborator, type UpdatePermissionObj as IUpdatePermissionObj, type ShouldCloseConn as IShouldCloseConn, CommentUpdate_Status as CommentSolvedStatus, CommentUpdate_EventType as CommentUpdateEventType, } from './ts/univer/colla_msg';
14
- export { type FileService as IFileService, type FileUploadMeta as IuploadFileRequestMeta, type FileUploadRequest as IFileUploadRequest, type UploadResponse as IUploadResponse, } from './ts/v1/file';
15
- export type { GetUserResponse as IGetUserResponse, User as IUser, GetUserRequest as IGetUserRequest, ListUsersResponse as IListUsersResponse } from './ts/v1/user';
16
- export type { Collaborator as ICollaborator, CreateRequest as ICreateRequest, CreateRequest_SelectRangeObject as ICreateRequest_SelectRangeObject, CreateRequest_WorksheetObject as ICreateRequest_WorksheetObject, CreateResponse as ICreateResponse, CreateCollaboratorRequest as ICreateCollaboratorRequest, CreateCollaboratorResponse as ICreateCollaboratorResponse, UpdateCollaboratorRequest as IUpdateCollaboratorRequest, UpdateCollaboratorResponse as IUpdateCollaboratorResponse, DeleteCollaboratorRequest as IDeleteCollaboratorRequest, DeleteCollaboratorResponse as IDeleteCollaboratorResponse, ListCollaboratorRequest as IListCollaboratorRequest, ListCollaboratorResponse as IListCollaboratorResponse, AllowedRequest as IAllowedRequest, ActionInfo as IActionInfo, AllowedResponse as IAllowedResponse, AuthzService as IAuthzService, BatchAllowedResponse as IBatchAllowedResponse, ListRolesResponse as IListRolesResponse, ListPermPointRequest as IListPermPointRequest, ListPermPointResponse as IListPermPointResponse, PermissionPoint as IPermissionPoint, ListRolesRequest as IListRolesRequest, UpdatePermPointRequest as IUpdatePermPointRequest, UpdatePermPointResponse as IUpdatePermPointResponse, PutCollaboratorsRequest as IPutCollaboratorsRequest, PutCollaboratorsResponse as IPutCollaboratorsResponse, } from './ts/v1/authz';
17
- export { CreateRequest_WorkSheetObjectScope, } from './ts/v1/authz';
18
- export type { UnitRoleKV as IUnitRoleKV, UnitPermissionStrategy as IUnitPermissionStrategy, } from './ts/univer/permission';
19
- export { UnitRole, UnitObject, UnitAction, UnitShareScope, } from './ts/univer/permission';
20
- export { type InitialSheet as IInitialSheet, type Row as IRow, type RowCell as IRow_Cell, CellType, } from './ts/univer/initial_sheet';
21
- export type { UrlContext as IUrlContext, UrlRowContext as IUrlRowContext, RangeCompletionRequest as IRangeCompletionRequest, RangeCompletionResponse as IRangeCompletionResponse, YuumiService as IYuumiService, } from './ts/yuumi/v1/yuumi';
22
- export type { SSRService as ISSRService, GetSSRRequest as IGetSSRRequest, GetSSRResponse as IGetSSRResponse, } from './ts/v1/ssr';
23
- export type { AddCommentRequest, AddCommentResponse, DeleteCommentRequest, DeleteCommentResponse, ListCommentsRequest, ListCommentsResponse, Reply, ReplyCommentRequest, ReplyCommentResponse, Thread, EditCommentRequest, EditCommentResponse, SolvedCommentRequest, SolvedCommentResponse, } from './ts/v1/comment';
24
- export type { CreateHistoryRequest as ICreateHistoryRequest, CreateHistoryResponse as ICreateHistoryResponse, History as IHistory, HistoryListRequest as IHistoryListRequest, HistoryEntities as IHistoryEntities, HistoryService as IHistoryService, } from './ts/v1/history';
18
+ export type { AddCommentRequest, AddCommentResponse, DeleteCommentRequest, DeleteCommentResponse, EditCommentRequest, EditCommentResponse, ListCommentsRequest, ListCommentsResponse, Reply, ReplyCommentRequest, ReplyCommentResponse, SolvedCommentRequest, SolvedCommentResponse, Thread, } from './ts/v1/comment';
19
+ export { type FileService as IFileService, FileSource, type FileUploadMeta as IuploadFileRequestMeta, type FileUploadRequest as IFileUploadRequest, type UploadResponse as IUploadResponse, } from './ts/v1/file';
20
+ export type { CreateHistoryRequest as ICreateHistoryRequest, CreateHistoryResponse as ICreateHistoryResponse, History as IHistory, HistoryEntities as IHistoryEntities, HistoryListRequest as IHistoryListRequest, HistoryService as IHistoryService, } from './ts/v1/history';
21
+ export type { GetUserLicenseRequest as IGetUserLicenseRequest, GetUserLicenseResponse as IGetUserLicenseResponse, LicenseService as ILicenseService, } from './ts/v1/license';
22
+ export { type CopyFileMetaRequest as ICopyFileMetaRequest, type CopyFileMetaResponse as ICopyFileMetaResponse, type FetchMissingChangesetsRequest as IFetchMissingChangesetsRequest, type FetchMissingChangesetsResponse as IFetchMissingChangesetsResponse, type GetLatestCsReqIdBySidRequest as IGetLatestCsReqIdBySidRequest, type GetLatestCsReqIdBySidResponse as IGetLatestCsReqIdBySidResponse, type GetResourcesRequest as IGetResourcesRequest, type GetResourcesResponse as IGetResourcesResponse, type GetSheetBlockRequest as IGetSheetBlockRequest, type GetSheetBlockResponse as IGetSheetBlockResponse, type GetSnapshotRequest as IGetSnapshotRequest, type GetSnapshotResponse as IGetSnapshotResponse, type GetUnitOnRevRequest as IGetUnitOnRevRequest, type GetUnitOnRevResponse as IGetUnitOnRevResponse, type SaveChangesetRequest as ISaveChangesetRequest, type SaveChangesetResponse as ISaveChangesetResponse, type SaveSheetBlockRequest as ISaveSheetBlockRequest, type SaveSheetBlockResponse as ISaveSheetBlockResponse, type SaveSnapshotRequest as ISaveSnapshotRequest, type SaveSnapshotResponse as ISaveSnapshotResponse, type SnapshotService as ISnapshotService, type UpdateUnitRequest as IUpdateUnitRequest, type UpdateUnitResponse as IUpdateUnitResponse, } from './ts/v1/snapshot';
23
+ export type { GetSSRRequest as IGetSSRRequest, GetSSRResponse as IGetSSRResponse, SSRService as ISSRService, } from './ts/v1/ssr';
24
+ export type { GetUserRequest as IGetUserRequest, GetUserResponse as IGetUserResponse, ListUsersResponse as IListUsersResponse, User as IUser } from './ts/v1/user';
25
+ export { type DeleteUnitRequest as IDeleteUnitRequest, type DeleteUnitResponse as IDeleteUnitResponse, type RecentListRequest as IRecentListRequest, type RecentListResponse as IRecentListResponse, type RemoveNodeRequest as IRemoveNodeRequest, type RemoveNodeResponse as IRemoveNodeResponse, type RestoreNodeRequest as IRestoreNodeRequest, type RestoreNodeResponse as IRestoreNodeResponse, type WorkspaceService as IWorkspaceService, } from './ts/v1/workspace';
26
+ export type { RangeCompletionRequest as IRangeCompletionRequest, RangeCompletionResponse as IRangeCompletionResponse, UrlContext as IUrlContext, UrlRowContext as IUrlRowContext, YuumiService as IYuumiService, } from './ts/yuumi/v1/yuumi';
27
+ export { isError } from './utils';
@@ -23,4 +23,8 @@ export interface Changeset {
23
23
  userID: string;
24
24
  mutations: Mutation[];
25
25
  memberID: string;
26
+ /** sid works with reqId, represent the id of a unit edit session */
27
+ sid?: string | undefined;
28
+ /** reqId works with sid, should be monotonically increasing and begin with 1 in the same edit session */
29
+ reqId?: number | undefined;
26
30
  }
@@ -1,5 +1,6 @@
1
1
  import { Changeset } from './changeset';
2
- import { UnitPermissionStrategy, UnitRole, UnitShareScope, User } from './permission';
2
+ import { UniverType } from './constants/univer';
3
+ import { ObjectScope, UnitPermissionStrategy, UnitRole, UnitShareScope, User } from './permission';
3
4
  export declare const protobufPackage = "univer";
4
5
  export interface CollaMsg {
5
6
  eventID: string;
@@ -22,6 +23,8 @@ export interface CollaMsg {
22
23
  updateCollaboratorEvent?: UpdateCollaborator | undefined;
23
24
  /** eventID: "update_permission_obj" */
24
25
  updatePermissionObjEvent?: UpdatePermissionObj | undefined;
26
+ /** eventID: "changeset_should_retry" */
27
+ csShouldRetryEvent?: ChangesetShouldRetry | undefined;
25
28
  }
26
29
  export interface CollaMsgJoin {
27
30
  memberID: string;
@@ -41,6 +44,9 @@ export interface ChangesetAck {
41
44
  export interface ChangesetRej {
42
45
  cs: Changeset | undefined;
43
46
  }
47
+ export interface ChangesetShouldRetry {
48
+ cs: Changeset | undefined;
49
+ }
44
50
  export interface UpdateCursor {
45
51
  unitID: string;
46
52
  /**
@@ -133,8 +139,21 @@ export interface UpdatePermissionObj {
133
139
  objectId: string;
134
140
  strategies: UnitPermissionStrategy[];
135
141
  share: UpdatePermissionObj_Share | undefined;
142
+ scope: UpdatePermissionObj_Scope | undefined;
136
143
  }
137
144
  export interface UpdatePermissionObj_Share {
138
145
  scope: UnitShareScope;
139
146
  role: UnitRole;
140
147
  }
148
+ export interface UpdatePermissionObj_Scope {
149
+ edit: ObjectScope;
150
+ read: ObjectScope;
151
+ }
152
+ export interface CreateUnit {
153
+ type: UniverType;
154
+ unitID: string;
155
+ name: string;
156
+ }
157
+ export interface DeleteUnits {
158
+ unitIDs: string[];
159
+ }
@@ -16,6 +16,7 @@ export declare enum ErrorCode {
16
16
  /** SNAPSHOT_INVALID_SNAPSHOT - snapshotError codes with 6000 shift */
17
17
  SNAPSHOT_INVALID_SNAPSHOT = 6001,
18
18
  SNAPSHOT_HAS_BEEN_REMOVED = 6002,
19
+ ENSURE_SNAPSHOT_EXECUTION = 6003,
19
20
  /** APPLY_REJECT - apply service codes with 7000 shift */
20
21
  APPLY_REJECT = 7001,
21
22
  /** APPLY_NON_SEQUENTIAL_REVISION - apply service expects sequential revisions, otherwise return this code */
@@ -24,6 +25,8 @@ export declare enum ErrorCode {
24
25
  APPLY_REVISION_CONFILICT = 7003,
25
26
  /** APPLY_PERMISSION_DENIED - apply failed because of the user permission denied */
26
27
  APPLY_PERMISSION_DENIED = 7004,
28
+ /** APPLY_DUPLICATED - if the changeset has been applied before, return this code */
29
+ APPLY_DUPLICATED = 7005,
27
30
  /** CONNECTOR_DATA_TOO_LARGE - connector codes with 8000 shift */
28
31
  CONNECTOR_DATA_TOO_LARGE = 8001,
29
32
  /** LICENSE_MAX_UNITS_EXCEEDED - license code with 9000 shift */
@@ -0,0 +1,13 @@
1
+ import { ChangesetAck, CommentUpdate, CreateUnit, DeleteUnits, UpdatePermissionObj } from './colla_msg';
2
+ export declare const protobufPackage = "univer.v1";
3
+ export interface EventSyncData {
4
+ eventId: string;
5
+ eventType: string;
6
+ createdAt: string;
7
+ csAckEvent?: ChangesetAck | undefined;
8
+ /** eventID: "update_permission_obj" */
9
+ updatePermissionObjEvent?: UpdatePermissionObj | undefined;
10
+ commentUpdateEvent?: CommentUpdate | undefined;
11
+ createUnitEvent?: CreateUnit | undefined;
12
+ deleteUnitsEvent?: DeleteUnits | undefined;
13
+ }
@@ -72,6 +72,7 @@ export declare enum UnitAction {
72
72
  Delete = 42,
73
73
  RecoverHistory = 43,
74
74
  ViewHistory = 44,
75
+ CreatePermissionObject = 45,
75
76
  UNRECOGNIZED = -1
76
77
  }
77
78
  export declare enum UnitRole {
@@ -95,6 +96,12 @@ export declare enum UnitShareScope {
95
96
  Organization = 2,
96
97
  UNRECOGNIZED = -1
97
98
  }
99
+ export declare enum ObjectScope {
100
+ SomeCollaborator = 0,
101
+ AllCollaborator = 1,
102
+ OneSelf = 2,
103
+ UNRECOGNIZED = -1
104
+ }
98
105
  export interface UnitRoleKV {
99
106
  role: UnitRole;
100
107
  name: string;
@@ -7,6 +7,15 @@ import { InitialSheet } from '../univer/initial_sheet';
7
7
  import { Snapshot } from '../univer/snapshot';
8
8
  import { CustomCellTemplate } from '../univer/unit_template';
9
9
  export declare const protobufPackage = "univerpro.v1";
10
+ export interface ForkUnitRequest {
11
+ sourceUnitId: string;
12
+ targetUnitId: string;
13
+ type: UniverType;
14
+ }
15
+ export interface ForkUnitResponse {
16
+ error: Error | undefined;
17
+ snapshot: Snapshot | undefined;
18
+ }
10
19
  export interface GetUnitRawContentRequest {
11
20
  unitID: string;
12
21
  type: UniverType;
@@ -124,4 +133,5 @@ export interface ApplyService {
124
133
  EnsureSnapshot(request: EnsureSnapshotRequest, metadata?: Metadata): Observable<EnsureSnapshotResponse>;
125
134
  /** Used to obtain unit raw data and provide it to yuumi server */
126
135
  GetUnitRawContent(request: GetUnitRawContentRequest, metadata?: Metadata): Observable<GetUnitRawContentResponse>;
136
+ ForkUnit(request: ForkUnitRequest, metadata?: Metadata): Observable<ForkUnitResponse>;
127
137
  }
@@ -1,13 +1,17 @@
1
1
  import { Metadata } from '@grpc/grpc-js';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Error } from '../univer/constants/errors';
4
- import { UnitAction, UnitObject, UnitPermissionStrategy, UnitRole, UnitRoleKV, UnitShareScope, User } from '../univer/permission';
4
+ import { ObjectScope, UnitAction, UnitObject, UnitPermissionStrategy, UnitRole, UnitRoleKV, UnitShareScope, User } from '../univer/permission';
5
5
  export declare const protobufPackage = "universer.v1";
6
6
  export interface Collaborator {
7
7
  id: string;
8
8
  role: UnitRole;
9
9
  subject: User | undefined;
10
10
  }
11
+ export interface ObjScope {
12
+ edit: ObjectScope;
13
+ read: ObjectScope;
14
+ }
11
15
  export interface PermissionPoint {
12
16
  objectID: string;
13
17
  unitID: string;
@@ -20,30 +24,25 @@ export interface PermissionPoint {
20
24
  strategies: UnitPermissionStrategy[];
21
25
  actions: ActionInfo[];
22
26
  shareScope: UnitShareScope;
27
+ scope: ObjScope | undefined;
23
28
  }
24
29
  export interface CreateRequest {
25
30
  objectType: UnitObject;
26
31
  selectRangeObject?: CreateRequest_SelectRangeObject | undefined;
27
32
  worksheetObject?: CreateRequest_WorksheetObject | undefined;
28
33
  }
29
- export declare enum CreateRequest_WorkSheetObjectScope {
30
- SomeCollaborator = 0,
31
- AllCollaborator = 1,
32
- OneSelf = 2,
33
- UNRECOGNIZED = -1
34
- }
35
34
  export interface CreateRequest_SelectRangeObject {
36
35
  collaborators: Collaborator[];
37
36
  unitID: string;
38
37
  name: string;
39
- readScope: CreateRequest_WorkSheetObjectScope;
38
+ scope: ObjScope | undefined;
40
39
  }
41
40
  export interface CreateRequest_WorksheetObject {
42
41
  collaborators: Collaborator[];
43
42
  unitID: string;
44
43
  name: string;
45
44
  strategies: UnitPermissionStrategy[];
46
- scope: CreateRequest_WorkSheetObjectScope;
45
+ scope: ObjScope | undefined;
47
46
  }
48
47
  export interface CreateResponse {
49
48
  error: Error | undefined;
@@ -56,6 +55,8 @@ export interface UpdatePermPointRequest {
56
55
  share: UpdatePermPointRequest_Share | undefined;
57
56
  name: string;
58
57
  strategies: UnitPermissionStrategy[];
58
+ scope: ObjScope | undefined;
59
+ collaborators: UpdatePermPointRequest_Collaborators | undefined;
59
60
  }
60
61
  export interface UpdatePermPointRequest_Share {
61
62
  /** @deprecated */
@@ -63,6 +64,9 @@ export interface UpdatePermPointRequest_Share {
63
64
  role: UnitRole;
64
65
  scope: UnitShareScope;
65
66
  }
67
+ export interface UpdatePermPointRequest_Collaborators {
68
+ collaborators: Collaborator[];
69
+ }
66
70
  export interface UpdatePermPointResponse {
67
71
  error: Error | undefined;
68
72
  }
@@ -122,8 +126,8 @@ export interface AllowedRequest {
122
126
  actions: UnitAction[];
123
127
  }
124
128
  export interface ActionInfo {
125
- action: UnitAction;
126
- allowed: boolean;
129
+ action?: UnitAction | undefined;
130
+ allowed?: boolean | undefined;
127
131
  }
128
132
  export interface AllowedResponse {
129
133
  error: Error | undefined;
@@ -148,6 +152,7 @@ export interface ListRolesResponse {
148
152
  error: Error | undefined;
149
153
  roles: UnitRoleKV[];
150
154
  actions: UnitAction[];
155
+ defaultStrategies: UnitPermissionStrategy[];
151
156
  }
152
157
  export interface AuthzService {
153
158
  /** create a permission mount point for specified type of object */
@@ -31,6 +31,13 @@ export declare enum CmdRspCode {
31
31
  UNKNOWN_CODE = 0,
32
32
  OK = 1,
33
33
  FAIL = 2,
34
+ /**
35
+ * JOIN_ROOM_FULL - room related
36
+ * max room number is reached
37
+ */
38
+ JOIN_ROOM_FULL = 1001,
39
+ /** JOIN_ROOM_NOT_ALLOWED - not allowed to join the room, including permission denied, invalid roomID, etc. */
40
+ JOIN_ROOM_NOT_ALLOWED = 1002,
34
41
  UNRECOGNIZED = -1
35
42
  }
36
43
  export interface ConnectResponse {
@@ -2,17 +2,38 @@ import { Metadata } from '@grpc/grpc-js';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Error } from '../univer/constants/errors';
4
4
  export declare const protobufPackage = "universer.v1";
5
+ export declare enum FileSource {
6
+ Undefined = 0,
7
+ /** HttpImport - assign UserID */
8
+ HttpImport = 1,
9
+ /** HttpExport - assign UserID */
10
+ HttpExport = 2,
11
+ /** UnitEmbedded - assign UnitID */
12
+ UnitEmbedded = 3,
13
+ /** UnitSnapshot - assign UnitID */
14
+ UnitSnapshot = 4,
15
+ UNRECOGNIZED = -1
16
+ }
17
+ export declare enum DownloadUrlMode {
18
+ Default = 0,
19
+ UseProxy = 1,
20
+ UseDirect = 2,
21
+ UNRECOGNIZED = -1
22
+ }
5
23
  export interface SignUrlRequest {
6
24
  fileID: string;
7
25
  }
8
26
  export interface SignUrlResponse {
9
27
  error: Error | undefined;
10
28
  url: string;
29
+ mode: DownloadUrlMode;
11
30
  }
12
31
  export interface FileUploadMeta {
13
32
  fileName: string;
14
33
  fileHash: string;
15
34
  fileSize: number;
35
+ source: FileSource;
36
+ assign: string;
16
37
  }
17
38
  export interface FileUploadRequest {
18
39
  data?: Uint8Array | undefined;
@@ -10,6 +10,21 @@ import { CustomCellTemplate } from '../univer/unit_template';
10
10
  import { Unit } from '../univer/univer_file';
11
11
  import { SheetBlock } from '../univer/workbook';
12
12
  export declare const protobufPackage = "universer.v1";
13
+ export interface ForkUnitRequest {
14
+ unitId: string;
15
+ type: UniverType;
16
+ }
17
+ export interface ForkUnitResponse {
18
+ error: Error | undefined;
19
+ unitId: string;
20
+ }
21
+ export interface CopyFileMetaRequest {
22
+ fileMetaId: string;
23
+ }
24
+ export interface CopyFileMetaResponse {
25
+ error: Error | undefined;
26
+ fileMetaId: string;
27
+ }
13
28
  export interface DirectWriteRequest {
14
29
  unitID: string;
15
30
  type: UniverType;
@@ -48,6 +63,7 @@ export interface CreateUnitRequest {
48
63
  customCell?: CustomCellTemplate | undefined;
49
64
  initialSheets: InitialSheet[];
50
65
  docContent: string;
66
+ preCreateUnitId: string;
51
67
  }
52
68
  export interface CreateUnitResponse {
53
69
  error: Error | undefined;
@@ -57,12 +73,23 @@ export interface CreateUnitResponse {
57
73
  export interface SaveChangesetRequest {
58
74
  changeset: Changeset | undefined;
59
75
  type: UniverType;
76
+ originChangeset: Changeset | undefined;
60
77
  }
61
78
  export interface SaveChangesetResponse {
62
79
  error: Error | undefined;
63
80
  /** concurrent is the changesets need to follow up. */
64
81
  concurrent: Changeset[];
65
82
  }
83
+ export interface GetLatestCsReqIdBySidRequest {
84
+ sid: string;
85
+ unitID: string;
86
+ userID: string;
87
+ }
88
+ export interface GetLatestCsReqIdBySidResponse {
89
+ /** set to default -1 if has no sid yet */
90
+ latestReqID: number;
91
+ error: Error | undefined;
92
+ }
66
93
  export interface FetchMissingChangesetsRequest {
67
94
  /** unitID of the Univer document */
68
95
  unitID: string;
@@ -163,6 +190,7 @@ export interface SnapshotService {
163
190
  ListUnits(request: ListUnitsRequest, metadata?: Metadata): Observable<ListUnitsResponse>;
164
191
  DeleteUnits(request: DeleteUnitsRequest, metadata?: Metadata): Observable<DeleteUnitsResponse>;
165
192
  SaveChangeset(request: SaveChangesetRequest, metadata?: Metadata): Observable<SaveChangesetResponse>;
193
+ GetLatestCsReqIdBySid(request: GetLatestCsReqIdBySidRequest, metadata?: Metadata): Observable<GetLatestCsReqIdBySidResponse>;
166
194
  FetchMissingChangesets(request: FetchMissingChangesetsRequest, metadata?: Metadata): Observable<FetchMissingChangesetsResponse>;
167
195
  SaveSnapshot(request: SaveSnapshotRequest, metadata?: Metadata): Observable<SaveSnapshotResponse>;
168
196
  GetSnapshot(request: GetSnapshotRequest, metadata?: Metadata): Observable<GetSnapshotResponse>;
@@ -173,4 +201,6 @@ export interface SnapshotService {
173
201
  EnsureSnapshot(request: EnsureSnapshotRequest, metadata?: Metadata): Observable<EnsureSnapshotResponse>;
174
202
  /** Directly write a changeset with a user's identification to the document. */
175
203
  DirectWrite(request: DirectWriteRequest, metadata?: Metadata): Observable<DirectWriteResponse>;
204
+ CopyFileMeta(request: CopyFileMetaRequest, metadata?: Metadata): Observable<CopyFileMetaResponse>;
205
+ ForkUnit(request: ForkUnitRequest, metadata?: Metadata): Observable<ForkUnitResponse>;
176
206
  }
@@ -50,12 +50,33 @@ export interface VerifyCredentialResponse {
50
50
  error: Error | undefined;
51
51
  user: User | undefined;
52
52
  }
53
+ export interface DeleteUsersRequest {
54
+ userIds: string[];
55
+ }
56
+ export interface DeleteUsersResponse {
57
+ error: Error | undefined;
58
+ }
59
+ export interface RecoverUsersRequest {
60
+ userIds: string[];
61
+ }
62
+ export interface RecoverUsersResponse {
63
+ error: Error | undefined;
64
+ }
65
+ export interface GetSessionTicketRequest {
66
+ }
67
+ export interface GetSessionTicketResponse {
68
+ error: Error | undefined;
69
+ ticket: string;
70
+ }
53
71
  export interface UserService {
54
72
  GetUser(request: GetUserRequest, metadata?: Metadata): Observable<GetUserResponse>;
55
73
  AnonymousSignIn(request: AnonymousSignInRequest, metadata?: Metadata): Observable<AnonymousSignInResponse>;
56
74
  ListUsers(request: ListUsersRequest, metadata?: Metadata): Observable<ListUsersResponse>;
57
75
  Logout(request: LogoutRequest, metadata?: Metadata): Observable<LogoutResponse>;
58
76
  TransformUser(request: TransformUserRequest, metadata?: Metadata): Observable<TransformUserResponse>;
77
+ DeleteUsers(request: DeleteUsersRequest, metadata?: Metadata): Observable<DeleteUsersResponse>;
78
+ RecoverUsers(request: RecoverUsersRequest, metadata?: Metadata): Observable<RecoverUsersResponse>;
79
+ GetSessionTicket(request: GetSessionTicketRequest, metadata?: Metadata): Observable<GetSessionTicketResponse>;
59
80
  /** grpc only, for internal server */
60
81
  VerifyCredential(request: VerifyCredentialRequest, metadata?: Metadata): Observable<VerifyCredentialResponse>;
61
82
  }
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(N,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(N=typeof globalThis<"u"?globalThis:N||self,I(N.UniverProtocol={}))})(this,function(N){"use strict";var I=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.OK=1]="OK",E[E.INTERNAL_ERROR=2]="INTERNAL_ERROR",E[E.PERMISSION_DENIED=3]="PERMISSION_DENIED",E[E.NOT_FOUND=4]="NOT_FOUND",E[E.UNAUTHENTICATED=5]="UNAUTHENTICATED",E[E.ALREADY_EXISTS=6]="ALREADY_EXISTS",E[E.INVALID_ARGUMENT=7]="INVALID_ARGUMENT",E[E.TOO_MANY_REQUESTS=8]="TOO_MANY_REQUESTS",E[E.COMPLETION_FINISHED=9]="COMPLETION_FINISHED",E[E.CHANGESET_REVISION_CONFILICT=5001]="CHANGESET_REVISION_CONFILICT",E[E.SNAPSHOT_INVALID_SNAPSHOT=6001]="SNAPSHOT_INVALID_SNAPSHOT",E[E.SNAPSHOT_HAS_BEEN_REMOVED=6002]="SNAPSHOT_HAS_BEEN_REMOVED",E[E.APPLY_REJECT=7001]="APPLY_REJECT",E[E.APPLY_NON_SEQUENTIAL_REVISION=7002]="APPLY_NON_SEQUENTIAL_REVISION",E[E.APPLY_REVISION_CONFILICT=7003]="APPLY_REVISION_CONFILICT",E[E.APPLY_PERMISSION_DENIED=7004]="APPLY_PERMISSION_DENIED",E[E.CONNECTOR_DATA_TOO_LARGE=8001]="CONNECTOR_DATA_TOO_LARGE",E[E.LICENSE_MAX_UNITS_EXCEEDED=9001]="LICENSE_MAX_UNITS_EXCEEDED",E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED=9002]="LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED",E[E.LICENSE_IMPORT_SIZE_EXCEEDED=9003]="LICENSE_IMPORT_SIZE_EXCEEDED",E[E.LICENSE_EXPORT_SIZE_EXCEEDED=9004]="LICENSE_EXPORT_SIZE_EXCEEDED",E[E.LICENSE_DISTRO_REJECTED=9005]="LICENSE_DISTRO_REJECTED",E[E.YUUMI_UNABLE_LOAD_URL=10001]="YUUMI_UNABLE_LOAD_URL",E[E.YUUMI_URL_COL_OUT_OF_RANGE=10002]="YUUMI_URL_COL_OUT_OF_RANGE",E[E.YUUMI_RATE_OVER_LIMIT=10003]="YUUMI_RATE_OVER_LIMIT",E[E.YUUMI_SUBSCRIPTION_NOT_FOUND=10004]="YUUMI_SUBSCRIPTION_NOT_FOUND",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(I||{});function Z(E){return!!(E&&E.code&&E.code!==I.OK&&E.code!=="OK")}var O=(E=>(E[E.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",E[E.UNIVER_DOC=1]="UNIVER_DOC",E[E.UNIVER_SHEET=2]="UNIVER_SHEET",E[E.UNIVER_SLIDE=3]="UNIVER_SLIDE",E[E.UNIVER_PROJECT=4]="UNIVER_PROJECT",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(O||{}),R=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.STRING=1]="STRING",E[E.NUMBER=2]="NUMBER",E[E.BOOLEAN=3]="BOOLEAN",E[E.FORCE_STRING=4]="FORCE_STRING",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(R||{}),D=(E=>(E[E.UNKNOWN_CMD=0]="UNKNOWN_CMD",E[E.HELLO=1]="HELLO",E[E.JOIN=2]="JOIN",E[E.LEAVE=3]="LEAVE",E[E.INGEST=4]="INGEST",E[E.HEARTBEAT=5]="HEARTBEAT",E[E.RECV=6]="RECV",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(D||{}),_=(E=>(E[E.UNKNOWN_CODE=0]="UNKNOWN_CODE",E[E.OK=1]="OK",E[E.FAIL=2]="FAIL",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(_||{}),S=(E=>(E[E.OpenOrReOpen=0]="OpenOrReOpen",E[E.Solved=1]="Solved",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(S||{}),L=(E=>(E[E.Unknown=0]="Unknown",E[E.Add=1]="Add",E[E.Reply=2]="Reply",E[E.Edit=3]="Edit",E[E.Delete=4]="Delete",E[E.Solve=5]="Solve",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(L||{}),l=(E=>(E[E.SomeCollaborator=0]="SomeCollaborator",E[E.AllCollaborator=1]="AllCollaborator",E[E.OneSelf=2]="OneSelf",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(l||{}),P=(E=>(E[E.View=0]="View",E[E.Edit=1]="Edit",E[E.ManageCollaborator=2]="ManageCollaborator",E[E.Print=3]="Print",E[E.Duplicate=4]="Duplicate",E[E.Comment=5]="Comment",E[E.Copy=6]="Copy",E[E.Share=7]="Share",E[E.Export=8]="Export",E[E.MoveWorksheet=9]="MoveWorksheet",E[E.DeleteWorksheet=10]="DeleteWorksheet",E[E.HideWorksheet=11]="HideWorksheet",E[E.RenameWorksheet=12]="RenameWorksheet",E[E.CreateWorksheet=13]="CreateWorksheet",E[E.SetWorksheetStyle=14]="SetWorksheetStyle",E[E.EditWorksheetCell=15]="EditWorksheetCell",E[E.InsertHyperlink=16]="InsertHyperlink",E[E.Sort=17]="Sort",E[E.Filter=18]="Filter",E[E.PivotTable=19]="PivotTable",E[E.FloatImg=20]="FloatImg",E[E.History=21]="History",E[E.RwHgtClWdt=22]="RwHgtClWdt",E[E.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",E[E.ViewFilter=24]="ViewFilter",E[E.MoveSheet=25]="MoveSheet",E[E.DeleteSheet=26]="DeleteSheet",E[E.HideSheet=27]="HideSheet",E[E.CopySheet=28]="CopySheet",E[E.RenameSheet=29]="RenameSheet",E[E.CreateSheet=30]="CreateSheet",E[E.SelectProtectedCells=31]="SelectProtectedCells",E[E.SelectUnProtectedCells=32]="SelectUnProtectedCells",E[E.SetCellStyle=33]="SetCellStyle",E[E.SetCellValue=34]="SetCellValue",E[E.SetRowStyle=35]="SetRowStyle",E[E.SetColumnStyle=36]="SetColumnStyle",E[E.InsertRow=37]="InsertRow",E[E.InsertColumn=38]="InsertColumn",E[E.DeleteRow=39]="DeleteRow",E[E.DeleteColumn=40]="DeleteColumn",E[E.EditExtraObject=41]="EditExtraObject",E[E.Delete=42]="Delete",E[E.RecoverHistory=43]="RecoverHistory",E[E.ViewHistory=44]="ViewHistory",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(P||{}),T=(E=>(E[E.Reader=0]="Reader",E[E.Editor=1]="Editor",E[E.Owner=2]="Owner",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(T||{}),M=(E=>(E[E.Unkonwn=0]="Unkonwn",E[E.Workbook=1]="Workbook",E[E.Worksheet=2]="Worksheet",E[E.SelectRange=3]="SelectRange",E[E.Document=4]="Document",E[E.Slide=5]="Slide",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(M||{}),G=(E=>(E[E.Private=0]="Private",E[E.Public=1]="Public",E[E.Organization=2]="Organization",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(G||{}),H=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.TEXT=1]="TEXT",E[E.URL=2]="URL",E[E.IMAGE=3]="IMAGE",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(H||{});N.CellType=H,N.CellValueType=R,N.CmdRspCode=_,N.CombCmd=D,N.CommentSolvedStatus=S,N.CommentUpdateEventType=L,N.CreateRequest_WorkSheetObjectScope=l,N.ErrorCode=I,N.UnitAction=P,N.UnitObject=M,N.UnitRole=T,N.UnitShareScope=G,N.UniverType=O,N.isError=Z,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
1
+ (function(N,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(N=typeof globalThis<"u"?globalThis:N||self,I(N.UniverProtocol={}))})(this,function(N){"use strict";var I=(E=>(E[E.OpenOrReOpen=0]="OpenOrReOpen",E[E.Solved=1]="Solved",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(I||{}),_=(E=>(E[E.Unknown=0]="Unknown",E[E.Add=1]="Add",E[E.Reply=2]="Reply",E[E.Edit=3]="Edit",E[E.Delete=4]="Delete",E[E.Solve=5]="Solve",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(_||{}),O=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.OK=1]="OK",E[E.INTERNAL_ERROR=2]="INTERNAL_ERROR",E[E.PERMISSION_DENIED=3]="PERMISSION_DENIED",E[E.NOT_FOUND=4]="NOT_FOUND",E[E.UNAUTHENTICATED=5]="UNAUTHENTICATED",E[E.ALREADY_EXISTS=6]="ALREADY_EXISTS",E[E.INVALID_ARGUMENT=7]="INVALID_ARGUMENT",E[E.TOO_MANY_REQUESTS=8]="TOO_MANY_REQUESTS",E[E.COMPLETION_FINISHED=9]="COMPLETION_FINISHED",E[E.CHANGESET_REVISION_CONFILICT=5001]="CHANGESET_REVISION_CONFILICT",E[E.SNAPSHOT_INVALID_SNAPSHOT=6001]="SNAPSHOT_INVALID_SNAPSHOT",E[E.SNAPSHOT_HAS_BEEN_REMOVED=6002]="SNAPSHOT_HAS_BEEN_REMOVED",E[E.ENSURE_SNAPSHOT_EXECUTION=6003]="ENSURE_SNAPSHOT_EXECUTION",E[E.APPLY_REJECT=7001]="APPLY_REJECT",E[E.APPLY_NON_SEQUENTIAL_REVISION=7002]="APPLY_NON_SEQUENTIAL_REVISION",E[E.APPLY_REVISION_CONFILICT=7003]="APPLY_REVISION_CONFILICT",E[E.APPLY_PERMISSION_DENIED=7004]="APPLY_PERMISSION_DENIED",E[E.APPLY_DUPLICATED=7005]="APPLY_DUPLICATED",E[E.CONNECTOR_DATA_TOO_LARGE=8001]="CONNECTOR_DATA_TOO_LARGE",E[E.LICENSE_MAX_UNITS_EXCEEDED=9001]="LICENSE_MAX_UNITS_EXCEEDED",E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED=9002]="LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED",E[E.LICENSE_IMPORT_SIZE_EXCEEDED=9003]="LICENSE_IMPORT_SIZE_EXCEEDED",E[E.LICENSE_EXPORT_SIZE_EXCEEDED=9004]="LICENSE_EXPORT_SIZE_EXCEEDED",E[E.LICENSE_DISTRO_REJECTED=9005]="LICENSE_DISTRO_REJECTED",E[E.YUUMI_UNABLE_LOAD_URL=10001]="YUUMI_UNABLE_LOAD_URL",E[E.YUUMI_URL_COL_OUT_OF_RANGE=10002]="YUUMI_URL_COL_OUT_OF_RANGE",E[E.YUUMI_RATE_OVER_LIMIT=10003]="YUUMI_RATE_OVER_LIMIT",E[E.YUUMI_SUBSCRIPTION_NOT_FOUND=10004]="YUUMI_SUBSCRIPTION_NOT_FOUND",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(O||{}),D=(E=>(E[E.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",E[E.UNIVER_DOC=1]="UNIVER_DOC",E[E.UNIVER_SHEET=2]="UNIVER_SHEET",E[E.UNIVER_SLIDE=3]="UNIVER_SLIDE",E[E.UNIVER_PROJECT=4]="UNIVER_PROJECT",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(D||{}),R=(E=>(E[E.UNDEFINED=0]="UNDEFINED",E[E.TEXT=1]="TEXT",E[E.URL=2]="URL",E[E.IMAGE=3]="IMAGE",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(R||{}),S=(E=>(E[E.View=0]="View",E[E.Edit=1]="Edit",E[E.ManageCollaborator=2]="ManageCollaborator",E[E.Print=3]="Print",E[E.Duplicate=4]="Duplicate",E[E.Comment=5]="Comment",E[E.Copy=6]="Copy",E[E.Share=7]="Share",E[E.Export=8]="Export",E[E.MoveWorksheet=9]="MoveWorksheet",E[E.DeleteWorksheet=10]="DeleteWorksheet",E[E.HideWorksheet=11]="HideWorksheet",E[E.RenameWorksheet=12]="RenameWorksheet",E[E.CreateWorksheet=13]="CreateWorksheet",E[E.SetWorksheetStyle=14]="SetWorksheetStyle",E[E.EditWorksheetCell=15]="EditWorksheetCell",E[E.InsertHyperlink=16]="InsertHyperlink",E[E.Sort=17]="Sort",E[E.Filter=18]="Filter",E[E.PivotTable=19]="PivotTable",E[E.FloatImg=20]="FloatImg",E[E.History=21]="History",E[E.RwHgtClWdt=22]="RwHgtClWdt",E[E.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",E[E.ViewFilter=24]="ViewFilter",E[E.MoveSheet=25]="MoveSheet",E[E.DeleteSheet=26]="DeleteSheet",E[E.HideSheet=27]="HideSheet",E[E.CopySheet=28]="CopySheet",E[E.RenameSheet=29]="RenameSheet",E[E.CreateSheet=30]="CreateSheet",E[E.SelectProtectedCells=31]="SelectProtectedCells",E[E.SelectUnProtectedCells=32]="SelectUnProtectedCells",E[E.SetCellStyle=33]="SetCellStyle",E[E.SetCellValue=34]="SetCellValue",E[E.SetRowStyle=35]="SetRowStyle",E[E.SetColumnStyle=36]="SetColumnStyle",E[E.InsertRow=37]="InsertRow",E[E.InsertColumn=38]="InsertColumn",E[E.DeleteRow=39]="DeleteRow",E[E.DeleteColumn=40]="DeleteColumn",E[E.EditExtraObject=41]="EditExtraObject",E[E.Delete=42]="Delete",E[E.RecoverHistory=43]="RecoverHistory",E[E.ViewHistory=44]="ViewHistory",E[E.CreatePermissionObject=45]="CreatePermissionObject",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(S||{}),L=(E=>(E[E.Reader=0]="Reader",E[E.Editor=1]="Editor",E[E.Owner=2]="Owner",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(L||{}),P=(E=>(E[E.Unkonwn=0]="Unkonwn",E[E.Workbook=1]="Workbook",E[E.Worksheet=2]="Worksheet",E[E.SelectRange=3]="SelectRange",E[E.Document=4]="Document",E[E.Slide=5]="Slide",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(P||{}),M=(E=>(E[E.Private=0]="Private",E[E.Public=1]="Public",E[E.Organization=2]="Organization",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(M||{}),l=(E=>(E[E.SomeCollaborator=0]="SomeCollaborator",E[E.AllCollaborator=1]="AllCollaborator",E[E.OneSelf=2]="OneSelf",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(l||{}),G=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.STRING=1]="STRING",E[E.NUMBER=2]="NUMBER",E[E.BOOLEAN=3]="BOOLEAN",E[E.FORCE_STRING=4]="FORCE_STRING",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(G||{}),T=(E=>(E[E.Unknown=0]="Unknown",E[E.Colla=1]="Colla",E[E.Import=2]="Import",E[E.Export=3]="Export",E[E.CreateUnit=4]="CreateUnit",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(T||{}),H=(E=>(E[E.UNKNOWN_CMD=0]="UNKNOWN_CMD",E[E.HELLO=1]="HELLO",E[E.JOIN=2]="JOIN",E[E.LEAVE=3]="LEAVE",E[E.INGEST=4]="INGEST",E[E.HEARTBEAT=5]="HEARTBEAT",E[E.RECV=6]="RECV",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(H||{}),a=(E=>(E[E.UNKNOWN_CODE=0]="UNKNOWN_CODE",E[E.OK=1]="OK",E[E.FAIL=2]="FAIL",E[E.JOIN_ROOM_FULL=1001]="JOIN_ROOM_FULL",E[E.JOIN_ROOM_NOT_ALLOWED=1002]="JOIN_ROOM_NOT_ALLOWED",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(a||{}),Z=(E=>(E[E.Undefined=0]="Undefined",E[E.HttpImport=1]="HttpImport",E[E.HttpExport=2]="HttpExport",E[E.UnitEmbedded=3]="UnitEmbedded",E[E.UnitSnapshot=4]="UnitSnapshot",E[E.UNRECOGNIZED=-1]="UNRECOGNIZED",E))(Z||{});function W(E){return!!(E&&E.code&&E.code!==O.OK&&E.code!=="OK")}N.CellType=R,N.CellValueType=G,N.CmdRspCode=a,N.CombCmd=H,N.CommentSolvedStatus=I,N.CommentUpdateEventType=_,N.ErrorCode=O,N.FileSource=Z,N.IRecordType=T,N.ObjectScope=l,N.UnitAction=S,N.UnitObject=P,N.UnitRole=L,N.UnitShareScope=M,N.UniverType=D,N.isError=W,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/protocol",
3
- "version": "0.1.39-alpha.4",
3
+ "version": "0.1.39-alpha.40",
4
4
  "private": false,
5
5
  "description": "A protocol of Univer repos",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -38,9 +38,9 @@
38
38
  "rxjs": ">=7.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "typescript": "^5.5.4",
42
- "vite": "^5.3.5",
43
- "vite-plugin-dts": "^4.0.0"
41
+ "typescript": "^5.6.3",
42
+ "vite": "^5.4.8",
43
+ "vite-plugin-dts": "^4.2.4"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsc && vite build"