@univerjs/protocol 0.1.39-alpha.14 → 0.1.39-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import { Changeset } from './changeset';
2
+ import { UniverType } from './constants/univer';
2
3
  import { ObjectScope, UnitPermissionStrategy, UnitRole, UnitShareScope, User } from './permission';
3
4
  export declare const protobufPackage = "univer";
4
5
  export interface CollaMsg {
@@ -143,3 +144,8 @@ export interface UpdatePermissionObj_Scope {
143
144
  edit: ObjectScope;
144
145
  read: ObjectScope;
145
146
  }
147
+ export interface CreateUnit {
148
+ type: UniverType;
149
+ unitID: string;
150
+ name: string;
151
+ }
@@ -0,0 +1,12 @@
1
+ import { ChangesetAck, CommentUpdate, CreateUnit, UpdatePermissionObj } from './colla_msg';
2
+ export declare const protobufPackage = "universer.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
+ }
@@ -14,12 +14,19 @@ export declare enum FileSource {
14
14
  UnitSnapshot = 4,
15
15
  UNRECOGNIZED = -1
16
16
  }
17
+ export declare enum DownloadUrlMode {
18
+ Default = 0,
19
+ UseProxy = 1,
20
+ UseDirect = 2,
21
+ UNRECOGNIZED = -1
22
+ }
17
23
  export interface SignUrlRequest {
18
24
  fileID: string;
19
25
  }
20
26
  export interface SignUrlResponse {
21
27
  error: Error | undefined;
22
28
  url: string;
29
+ mode: DownloadUrlMode;
23
30
  }
24
31
  export interface FileUploadMeta {
25
32
  fileName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/protocol",
3
- "version": "0.1.39-alpha.14",
3
+ "version": "0.1.39-alpha.16",
4
4
  "private": false,
5
5
  "description": "A protocol of Univer repos",
6
6
  "author": "DreamNum <developer@univer.ai>",