@defensestation/ysync-go 0.1.0-dev.3.3d87b03

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.
@@ -0,0 +1,630 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file ysync/v1/sync.proto.
5
+ */
6
+ export declare const file_ysync_v1_sync: GenFile;
7
+ /**
8
+ * @generated from message ysync.v1.SyncRequest
9
+ */
10
+ export type SyncRequest = Message<"ysync.v1.SyncRequest"> & {
11
+ /**
12
+ * @generated from field: string doc_id = 1;
13
+ */
14
+ docId: string;
15
+ /**
16
+ * @generated from field: string client_id = 2;
17
+ */
18
+ clientId: string;
19
+ /**
20
+ * @generated from oneof ysync.v1.SyncRequest.payload
21
+ */
22
+ payload: {
23
+ /**
24
+ * @generated from field: ysync.v1.SyncJoin join = 10;
25
+ */
26
+ value: SyncJoin;
27
+ case: "join";
28
+ } | {
29
+ /**
30
+ * @generated from field: bytes yjs_update = 11;
31
+ */
32
+ value: Uint8Array;
33
+ case: "yjsUpdate";
34
+ } | {
35
+ /**
36
+ * @generated from field: bytes awareness_update = 12;
37
+ */
38
+ value: Uint8Array;
39
+ case: "awarenessUpdate";
40
+ } | {
41
+ /**
42
+ * @generated from field: ysync.v1.Ping ping = 13;
43
+ */
44
+ value: Ping;
45
+ case: "ping";
46
+ } | {
47
+ /**
48
+ * @generated from field: ysync.v1.SyncLeave leave = 14;
49
+ */
50
+ value: SyncLeave;
51
+ case: "leave";
52
+ } | {
53
+ case: undefined;
54
+ value?: undefined;
55
+ };
56
+ };
57
+ /**
58
+ * Describes the message ysync.v1.SyncRequest.
59
+ * Use `create(SyncRequestSchema)` to create a new message.
60
+ */
61
+ export declare const SyncRequestSchema: GenMessage<SyncRequest>;
62
+ /**
63
+ * @generated from message ysync.v1.SyncResponse
64
+ */
65
+ export type SyncResponse = Message<"ysync.v1.SyncResponse"> & {
66
+ /**
67
+ * @generated from field: ysync.v1.ServerFrame frame = 1;
68
+ */
69
+ frame?: ServerFrame | undefined;
70
+ };
71
+ /**
72
+ * Describes the message ysync.v1.SyncResponse.
73
+ * Use `create(SyncResponseSchema)` to create a new message.
74
+ */
75
+ export declare const SyncResponseSchema: GenMessage<SyncResponse>;
76
+ /**
77
+ * @generated from message ysync.v1.SyncJoin
78
+ */
79
+ export type SyncJoin = Message<"ysync.v1.SyncJoin"> & {
80
+ /**
81
+ * @generated from field: bytes state_vector = 1;
82
+ */
83
+ stateVector: Uint8Array;
84
+ };
85
+ /**
86
+ * Describes the message ysync.v1.SyncJoin.
87
+ * Use `create(SyncJoinSchema)` to create a new message.
88
+ */
89
+ export declare const SyncJoinSchema: GenMessage<SyncJoin>;
90
+ /**
91
+ * @generated from message ysync.v1.SyncLeave
92
+ */
93
+ export type SyncLeave = Message<"ysync.v1.SyncLeave"> & {};
94
+ /**
95
+ * Describes the message ysync.v1.SyncLeave.
96
+ * Use `create(SyncLeaveSchema)` to create a new message.
97
+ */
98
+ export declare const SyncLeaveSchema: GenMessage<SyncLeave>;
99
+ /**
100
+ * @generated from message ysync.v1.ServerFrame
101
+ */
102
+ export type ServerFrame = Message<"ysync.v1.ServerFrame"> & {
103
+ /**
104
+ * @generated from field: string doc_id = 1;
105
+ */
106
+ docId: string;
107
+ /**
108
+ * @generated from field: string sender_client_id = 2;
109
+ */
110
+ senderClientId: string;
111
+ /**
112
+ * @generated from field: uint64 sequence = 3;
113
+ */
114
+ sequence: bigint;
115
+ /**
116
+ * @generated from oneof ysync.v1.ServerFrame.payload
117
+ */
118
+ payload: {
119
+ /**
120
+ * @generated from field: bytes sync_update = 10;
121
+ */
122
+ value: Uint8Array;
123
+ case: "syncUpdate";
124
+ } | {
125
+ /**
126
+ * @generated from field: bytes yjs_update = 11;
127
+ */
128
+ value: Uint8Array;
129
+ case: "yjsUpdate";
130
+ } | {
131
+ /**
132
+ * @generated from field: bytes awareness_update = 12;
133
+ */
134
+ value: Uint8Array;
135
+ case: "awarenessUpdate";
136
+ } | {
137
+ /**
138
+ * @generated from field: ysync.v1.Pong pong = 13;
139
+ */
140
+ value: Pong;
141
+ case: "pong";
142
+ } | {
143
+ /**
144
+ * @generated from field: ysync.v1.ServerError error = 14;
145
+ */
146
+ value: ServerError;
147
+ case: "error";
148
+ } | {
149
+ case: undefined;
150
+ value?: undefined;
151
+ };
152
+ };
153
+ /**
154
+ * Describes the message ysync.v1.ServerFrame.
155
+ * Use `create(ServerFrameSchema)` to create a new message.
156
+ */
157
+ export declare const ServerFrameSchema: GenMessage<ServerFrame>;
158
+ /**
159
+ * @generated from message ysync.v1.JoinDocumentRequest
160
+ */
161
+ export type JoinDocumentRequest = Message<"ysync.v1.JoinDocumentRequest"> & {
162
+ /**
163
+ * @generated from field: string doc_id = 1;
164
+ */
165
+ docId: string;
166
+ /**
167
+ * @generated from field: string client_id = 2;
168
+ */
169
+ clientId: string;
170
+ /**
171
+ * @generated from field: bytes state_vector = 3;
172
+ */
173
+ stateVector: Uint8Array;
174
+ };
175
+ /**
176
+ * Describes the message ysync.v1.JoinDocumentRequest.
177
+ * Use `create(JoinDocumentRequestSchema)` to create a new message.
178
+ */
179
+ export declare const JoinDocumentRequestSchema: GenMessage<JoinDocumentRequest>;
180
+ /**
181
+ * @generated from message ysync.v1.JoinDocumentResponse
182
+ */
183
+ export type JoinDocumentResponse = Message<"ysync.v1.JoinDocumentResponse"> & {
184
+ /**
185
+ * @generated from field: uint64 sequence = 1;
186
+ */
187
+ sequence: bigint;
188
+ /**
189
+ * @generated from field: repeated bytes sync_updates = 2;
190
+ */
191
+ syncUpdates: Uint8Array[];
192
+ /**
193
+ * Server-assigned presence identity: the display name is the server's
194
+ * sanitized view of the caller, and the color is assigned from a palette so
195
+ * concurrent participants get distinct colors. Clients should use these for
196
+ * awareness/cursor rendering instead of picking their own.
197
+ *
198
+ * @generated from field: string assigned_display_name = 3;
199
+ */
200
+ assignedDisplayName: string;
201
+ /**
202
+ * @generated from field: string assigned_color = 4;
203
+ */
204
+ assignedColor: string;
205
+ };
206
+ /**
207
+ * Describes the message ysync.v1.JoinDocumentResponse.
208
+ * Use `create(JoinDocumentResponseSchema)` to create a new message.
209
+ */
210
+ export declare const JoinDocumentResponseSchema: GenMessage<JoinDocumentResponse>;
211
+ /**
212
+ * @generated from message ysync.v1.PushYjsUpdateRequest
213
+ */
214
+ export type PushYjsUpdateRequest = Message<"ysync.v1.PushYjsUpdateRequest"> & {
215
+ /**
216
+ * @generated from field: string doc_id = 1;
217
+ */
218
+ docId: string;
219
+ /**
220
+ * @generated from field: string client_id = 2;
221
+ */
222
+ clientId: string;
223
+ /**
224
+ * @generated from field: bytes yjs_update = 3;
225
+ */
226
+ yjsUpdate: Uint8Array;
227
+ /**
228
+ * @generated from field: string idempotency_key = 4;
229
+ */
230
+ idempotencyKey: string;
231
+ };
232
+ /**
233
+ * Describes the message ysync.v1.PushYjsUpdateRequest.
234
+ * Use `create(PushYjsUpdateRequestSchema)` to create a new message.
235
+ */
236
+ export declare const PushYjsUpdateRequestSchema: GenMessage<PushYjsUpdateRequest>;
237
+ /**
238
+ * @generated from message ysync.v1.PushYjsUpdateResponse
239
+ */
240
+ export type PushYjsUpdateResponse = Message<"ysync.v1.PushYjsUpdateResponse"> & {
241
+ /**
242
+ * @generated from field: uint64 sequence = 1;
243
+ */
244
+ sequence: bigint;
245
+ };
246
+ /**
247
+ * Describes the message ysync.v1.PushYjsUpdateResponse.
248
+ * Use `create(PushYjsUpdateResponseSchema)` to create a new message.
249
+ */
250
+ export declare const PushYjsUpdateResponseSchema: GenMessage<PushYjsUpdateResponse>;
251
+ /**
252
+ * @generated from message ysync.v1.PushAwarenessUpdateRequest
253
+ */
254
+ export type PushAwarenessUpdateRequest = Message<"ysync.v1.PushAwarenessUpdateRequest"> & {
255
+ /**
256
+ * @generated from field: string doc_id = 1;
257
+ */
258
+ docId: string;
259
+ /**
260
+ * @generated from field: string client_id = 2;
261
+ */
262
+ clientId: string;
263
+ /**
264
+ * @generated from field: bytes awareness_update = 3;
265
+ */
266
+ awarenessUpdate: Uint8Array;
267
+ };
268
+ /**
269
+ * Describes the message ysync.v1.PushAwarenessUpdateRequest.
270
+ * Use `create(PushAwarenessUpdateRequestSchema)` to create a new message.
271
+ */
272
+ export declare const PushAwarenessUpdateRequestSchema: GenMessage<PushAwarenessUpdateRequest>;
273
+ /**
274
+ * @generated from message ysync.v1.PushAwarenessUpdateResponse
275
+ */
276
+ export type PushAwarenessUpdateResponse = Message<"ysync.v1.PushAwarenessUpdateResponse"> & {
277
+ /**
278
+ * @generated from field: uint64 sequence = 1;
279
+ */
280
+ sequence: bigint;
281
+ };
282
+ /**
283
+ * Describes the message ysync.v1.PushAwarenessUpdateResponse.
284
+ * Use `create(PushAwarenessUpdateResponseSchema)` to create a new message.
285
+ */
286
+ export declare const PushAwarenessUpdateResponseSchema: GenMessage<PushAwarenessUpdateResponse>;
287
+ /**
288
+ * @generated from message ysync.v1.StreamDocumentFramesRequest
289
+ */
290
+ export type StreamDocumentFramesRequest = Message<"ysync.v1.StreamDocumentFramesRequest"> & {
291
+ /**
292
+ * @generated from field: string doc_id = 1;
293
+ */
294
+ docId: string;
295
+ /**
296
+ * @generated from field: string client_id = 2;
297
+ */
298
+ clientId: string;
299
+ /**
300
+ * Replay committed document frames after this server-assigned sequence.
301
+ *
302
+ * @generated from field: uint64 after_sequence = 3;
303
+ */
304
+ afterSequence: bigint;
305
+ };
306
+ /**
307
+ * Describes the message ysync.v1.StreamDocumentFramesRequest.
308
+ * Use `create(StreamDocumentFramesRequestSchema)` to create a new message.
309
+ */
310
+ export declare const StreamDocumentFramesRequestSchema: GenMessage<StreamDocumentFramesRequest>;
311
+ /**
312
+ * @generated from message ysync.v1.StreamDocumentFramesResponse
313
+ */
314
+ export type StreamDocumentFramesResponse = Message<"ysync.v1.StreamDocumentFramesResponse"> & {
315
+ /**
316
+ * @generated from field: ysync.v1.ServerFrame frame = 1;
317
+ */
318
+ frame?: ServerFrame | undefined;
319
+ };
320
+ /**
321
+ * Describes the message ysync.v1.StreamDocumentFramesResponse.
322
+ * Use `create(StreamDocumentFramesResponseSchema)` to create a new message.
323
+ */
324
+ export declare const StreamDocumentFramesResponseSchema: GenMessage<StreamDocumentFramesResponse>;
325
+ /**
326
+ * @generated from message ysync.v1.LeaveDocumentRequest
327
+ */
328
+ export type LeaveDocumentRequest = Message<"ysync.v1.LeaveDocumentRequest"> & {
329
+ /**
330
+ * @generated from field: string doc_id = 1;
331
+ */
332
+ docId: string;
333
+ /**
334
+ * @generated from field: string client_id = 2;
335
+ */
336
+ clientId: string;
337
+ };
338
+ /**
339
+ * Describes the message ysync.v1.LeaveDocumentRequest.
340
+ * Use `create(LeaveDocumentRequestSchema)` to create a new message.
341
+ */
342
+ export declare const LeaveDocumentRequestSchema: GenMessage<LeaveDocumentRequest>;
343
+ /**
344
+ * @generated from message ysync.v1.LeaveDocumentResponse
345
+ */
346
+ export type LeaveDocumentResponse = Message<"ysync.v1.LeaveDocumentResponse"> & {
347
+ /**
348
+ * @generated from field: uint64 sequence = 1;
349
+ */
350
+ sequence: bigint;
351
+ };
352
+ /**
353
+ * Describes the message ysync.v1.LeaveDocumentResponse.
354
+ * Use `create(LeaveDocumentResponseSchema)` to create a new message.
355
+ */
356
+ export declare const LeaveDocumentResponseSchema: GenMessage<LeaveDocumentResponse>;
357
+ /**
358
+ * @generated from message ysync.v1.ListDocumentUpdatesRequest
359
+ */
360
+ export type ListDocumentUpdatesRequest = Message<"ysync.v1.ListDocumentUpdatesRequest"> & {
361
+ /**
362
+ * @generated from field: string doc_id = 1;
363
+ */
364
+ docId: string;
365
+ /**
366
+ * Return updates with sequence strictly greater than this.
367
+ *
368
+ * @generated from field: uint64 after_sequence = 2;
369
+ */
370
+ afterSequence: bigint;
371
+ /**
372
+ * Maximum entries to return; 0 means no limit.
373
+ *
374
+ * @generated from field: uint32 limit = 3;
375
+ */
376
+ limit: number;
377
+ };
378
+ /**
379
+ * Describes the message ysync.v1.ListDocumentUpdatesRequest.
380
+ * Use `create(ListDocumentUpdatesRequestSchema)` to create a new message.
381
+ */
382
+ export declare const ListDocumentUpdatesRequestSchema: GenMessage<ListDocumentUpdatesRequest>;
383
+ /**
384
+ * @generated from message ysync.v1.ListDocumentUpdatesResponse
385
+ */
386
+ export type ListDocumentUpdatesResponse = Message<"ysync.v1.ListDocumentUpdatesResponse"> & {
387
+ /**
388
+ * @generated from field: repeated ysync.v1.DocumentUpdateRecord updates = 1;
389
+ */
390
+ updates: DocumentUpdateRecord[];
391
+ };
392
+ /**
393
+ * Describes the message ysync.v1.ListDocumentUpdatesResponse.
394
+ * Use `create(ListDocumentUpdatesResponseSchema)` to create a new message.
395
+ */
396
+ export declare const ListDocumentUpdatesResponseSchema: GenMessage<ListDocumentUpdatesResponse>;
397
+ /**
398
+ * @generated from message ysync.v1.DocumentUpdateRecord
399
+ */
400
+ export type DocumentUpdateRecord = Message<"ysync.v1.DocumentUpdateRecord"> & {
401
+ /**
402
+ * @generated from field: uint64 sequence = 1;
403
+ */
404
+ sequence: bigint;
405
+ /**
406
+ * @generated from field: string client_id = 2;
407
+ */
408
+ clientId: string;
409
+ /**
410
+ * @generated from field: string actor_user_id = 3;
411
+ */
412
+ actorUserId: string;
413
+ /**
414
+ * @generated from field: string actor_display_name = 4;
415
+ */
416
+ actorDisplayName: string;
417
+ /**
418
+ * Milliseconds since the Unix epoch. Zero for a snapshot record whose
419
+ * compaction time is unknown (e.g. after a server restart).
420
+ *
421
+ * @generated from field: int64 created_at_ms = 5;
422
+ */
423
+ createdAtMs: bigint;
424
+ /**
425
+ * @generated from field: bytes yjs_update = 6;
426
+ */
427
+ yjsUpdate: Uint8Array;
428
+ /**
429
+ * True for the compacted baseline: a merged snapshot of all history
430
+ * through `sequence`, with no single actor.
431
+ *
432
+ * @generated from field: bool is_snapshot = 7;
433
+ */
434
+ isSnapshot: boolean;
435
+ };
436
+ /**
437
+ * Describes the message ysync.v1.DocumentUpdateRecord.
438
+ * Use `create(DocumentUpdateRecordSchema)` to create a new message.
439
+ */
440
+ export declare const DocumentUpdateRecordSchema: GenMessage<DocumentUpdateRecord>;
441
+ /**
442
+ * @generated from message ysync.v1.CompactDocumentRequest
443
+ */
444
+ export type CompactDocumentRequest = Message<"ysync.v1.CompactDocumentRequest"> & {
445
+ /**
446
+ * @generated from field: string doc_id = 1;
447
+ */
448
+ docId: string;
449
+ /**
450
+ * Merged Yjs update encoding the full document state at
451
+ * compact_through_sequence.
452
+ *
453
+ * @generated from field: bytes compact_update = 2;
454
+ */
455
+ compactUpdate: Uint8Array;
456
+ /**
457
+ * @generated from field: uint64 compact_through_sequence = 3;
458
+ */
459
+ compactThroughSequence: bigint;
460
+ };
461
+ /**
462
+ * Describes the message ysync.v1.CompactDocumentRequest.
463
+ * Use `create(CompactDocumentRequestSchema)` to create a new message.
464
+ */
465
+ export declare const CompactDocumentRequestSchema: GenMessage<CompactDocumentRequest>;
466
+ /**
467
+ * @generated from message ysync.v1.CompactDocumentResponse
468
+ */
469
+ export type CompactDocumentResponse = Message<"ysync.v1.CompactDocumentResponse"> & {
470
+ /**
471
+ * Head sequence of the document after compaction.
472
+ *
473
+ * @generated from field: uint64 sequence = 1;
474
+ */
475
+ sequence: bigint;
476
+ };
477
+ /**
478
+ * Describes the message ysync.v1.CompactDocumentResponse.
479
+ * Use `create(CompactDocumentResponseSchema)` to create a new message.
480
+ */
481
+ export declare const CompactDocumentResponseSchema: GenMessage<CompactDocumentResponse>;
482
+ /**
483
+ * @generated from message ysync.v1.Ping
484
+ */
485
+ export type Ping = Message<"ysync.v1.Ping"> & {
486
+ /**
487
+ * @generated from field: string nonce = 1;
488
+ */
489
+ nonce: string;
490
+ };
491
+ /**
492
+ * Describes the message ysync.v1.Ping.
493
+ * Use `create(PingSchema)` to create a new message.
494
+ */
495
+ export declare const PingSchema: GenMessage<Ping>;
496
+ /**
497
+ * @generated from message ysync.v1.Pong
498
+ */
499
+ export type Pong = Message<"ysync.v1.Pong"> & {
500
+ /**
501
+ * @generated from field: string nonce = 1;
502
+ */
503
+ nonce: string;
504
+ };
505
+ /**
506
+ * Describes the message ysync.v1.Pong.
507
+ * Use `create(PongSchema)` to create a new message.
508
+ */
509
+ export declare const PongSchema: GenMessage<Pong>;
510
+ /**
511
+ * @generated from message ysync.v1.ServerError
512
+ */
513
+ export type ServerError = Message<"ysync.v1.ServerError"> & {
514
+ /**
515
+ * @generated from field: string code = 1;
516
+ */
517
+ code: string;
518
+ /**
519
+ * @generated from field: string message = 2;
520
+ */
521
+ message: string;
522
+ };
523
+ /**
524
+ * Describes the message ysync.v1.ServerError.
525
+ * Use `create(ServerErrorSchema)` to create a new message.
526
+ */
527
+ export declare const ServerErrorSchema: GenMessage<ServerError>;
528
+ /**
529
+ * YjsSyncService is the public Connect RPC contract for synchronizing
530
+ * Yjs documents. Yjs updates remain the canonical document state; projections,
531
+ * imports, exports, AI, search, and editor-specific formats belong outside this
532
+ * wire API.
533
+ *
534
+ * @generated from service ysync.v1.YjsSyncService
535
+ */
536
+ export declare const YjsSyncService: GenService<{
537
+ /**
538
+ * Sync is for clients that can keep a bidirectional stream open.
539
+ *
540
+ * @generated from rpc ysync.v1.YjsSyncService.Sync
541
+ */
542
+ sync: {
543
+ methodKind: "bidi_streaming";
544
+ input: typeof SyncRequestSchema;
545
+ output: typeof SyncResponseSchema;
546
+ };
547
+ /**
548
+ * JoinDocument returns the Yjs updates a client needs after sending its local
549
+ * state vector.
550
+ *
551
+ * @generated from rpc ysync.v1.YjsSyncService.JoinDocument
552
+ */
553
+ joinDocument: {
554
+ methodKind: "unary";
555
+ input: typeof JoinDocumentRequestSchema;
556
+ output: typeof JoinDocumentResponseSchema;
557
+ };
558
+ /**
559
+ * PushYjsUpdate appends one canonical Yjs document update.
560
+ *
561
+ * @generated from rpc ysync.v1.YjsSyncService.PushYjsUpdate
562
+ */
563
+ pushYjsUpdate: {
564
+ methodKind: "unary";
565
+ input: typeof PushYjsUpdateRequestSchema;
566
+ output: typeof PushYjsUpdateResponseSchema;
567
+ };
568
+ /**
569
+ * PushAwarenessUpdate broadcasts transient Yjs awareness data. Awareness is
570
+ * not persisted as document state.
571
+ *
572
+ * @generated from rpc ysync.v1.YjsSyncService.PushAwarenessUpdate
573
+ */
574
+ pushAwarenessUpdate: {
575
+ methodKind: "unary";
576
+ input: typeof PushAwarenessUpdateRequestSchema;
577
+ output: typeof PushAwarenessUpdateResponseSchema;
578
+ };
579
+ /**
580
+ * StreamDocumentFrames is the server-streaming half of the unary/browser
581
+ * workflow for clients that cannot use Sync.
582
+ *
583
+ * @generated from rpc ysync.v1.YjsSyncService.StreamDocumentFrames
584
+ */
585
+ streamDocumentFrames: {
586
+ methodKind: "server_streaming";
587
+ input: typeof StreamDocumentFramesRequestSchema;
588
+ output: typeof StreamDocumentFramesResponseSchema;
589
+ };
590
+ /**
591
+ * LeaveDocument removes a client from transient room presence.
592
+ *
593
+ * @generated from rpc ysync.v1.YjsSyncService.LeaveDocument
594
+ */
595
+ leaveDocument: {
596
+ methodKind: "unary";
597
+ input: typeof LeaveDocumentRequestSchema;
598
+ output: typeof LeaveDocumentResponseSchema;
599
+ };
600
+ /**
601
+ * ListDocumentUpdates returns the stored update log with actor metadata for
602
+ * audit and change-history features. Update payloads are included so
603
+ * clients can rebuild the document state at any sequence.
604
+ *
605
+ * @generated from rpc ysync.v1.YjsSyncService.ListDocumentUpdates
606
+ */
607
+ listDocumentUpdates: {
608
+ methodKind: "unary";
609
+ input: typeof ListDocumentUpdatesRequestSchema;
610
+ output: typeof ListDocumentUpdatesResponseSchema;
611
+ };
612
+ /**
613
+ * CompactDocument folds the stored update log through
614
+ * compact_through_sequence into the provided merged snapshot update, which
615
+ * must be a valid Yjs update encoding the full document state at that
616
+ * sequence (build it with a real Yjs implementation, e.g.
617
+ * Y.encodeStateAsUpdate). Updates after that sequence keep their per-edit
618
+ * attribution; earlier history collapses into one snapshot record. This is
619
+ * an admin/sidecar operation gated by Authz.CanCompact, not something
620
+ * regular editing clients should call.
621
+ *
622
+ * @generated from rpc ysync.v1.YjsSyncService.CompactDocument
623
+ */
624
+ compactDocument: {
625
+ methodKind: "unary";
626
+ input: typeof CompactDocumentRequestSchema;
627
+ output: typeof CompactDocumentResponseSchema;
628
+ };
629
+ }>;
630
+ //# sourceMappingURL=sync_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync_pb.d.ts","sourceRoot":"","sources":["../../../../src/gen/ysync/v1/sync_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,OACo/G,CAAC;AAEthH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,sBAAsB,CAAC,GAAG;IAC1D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE;QACP;;WAEG;QACH,KAAK,EAAE,QAAQ,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG;QACF;;WAEG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,WAAW,CAAC;KACnB,GAAG;QACF;;WAEG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,iBAAiB,CAAC;KACzB,GAAG;QACF;;WAEG;QACH,KAAK,EAAE,IAAI,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,GAAG;QACF;;WAEG;QACH,KAAK,EAAE,SAAS,CAAC;QACjB,IAAI,EAAE,OAAO,CAAC;KACf,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AAC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