@superdoc-dev/sdk 1.0.0-alpha.2 → 1.0.0-alpha.4

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.
Files changed (52) hide show
  1. package/dist/generated/client.d.ts +1790 -0
  2. package/dist/generated/client.d.ts.map +1 -0
  3. package/dist/generated/client.js +66 -0
  4. package/dist/generated/contract.d.ts +13676 -0
  5. package/dist/generated/contract.d.ts.map +1 -0
  6. package/dist/generated/contract.js +17809 -0
  7. package/dist/index.d.ts +23 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +29 -0
  10. package/dist/runtime/embedded-cli.d.ts +5 -0
  11. package/dist/runtime/embedded-cli.d.ts.map +1 -0
  12. package/dist/runtime/embedded-cli.js +94 -0
  13. package/dist/runtime/errors.d.ts +17 -0
  14. package/dist/runtime/errors.d.ts.map +1 -0
  15. package/dist/runtime/errors.js +18 -0
  16. package/dist/runtime/host.d.ts +36 -0
  17. package/dist/runtime/host.d.ts.map +1 -0
  18. package/dist/runtime/host.js +345 -0
  19. package/dist/runtime/process.d.ts +16 -0
  20. package/dist/runtime/process.d.ts.map +1 -0
  21. package/dist/runtime/process.js +27 -0
  22. package/dist/runtime/transport-common.d.ts +44 -0
  23. package/dist/runtime/transport-common.d.ts.map +1 -0
  24. package/dist/runtime/transport-common.js +65 -0
  25. package/dist/skills.d.ts +25 -0
  26. package/dist/skills.d.ts.map +1 -0
  27. package/dist/skills.js +140 -0
  28. package/dist/tools.d.ts +113 -0
  29. package/dist/tools.d.ts.map +1 -0
  30. package/dist/tools.js +360 -0
  31. package/package.json +20 -10
  32. package/tools/catalog.json +17128 -0
  33. package/tools/tool-name-map.json +96 -0
  34. package/tools/tools-policy.json +100 -0
  35. package/tools/tools.anthropic.json +3275 -0
  36. package/tools/tools.generic.json +16573 -0
  37. package/tools/tools.openai.json +3557 -0
  38. package/tools/tools.vercel.json +3557 -0
  39. package/skills/.gitkeep +0 -0
  40. package/skills/editing-docx.md +0 -153
  41. package/src/__tests__/skills.test.ts +0 -93
  42. package/src/generated/DO_NOT_EDIT +0 -2
  43. package/src/generated/client.ts +0 -3151
  44. package/src/generated/contract.ts +0 -13396
  45. package/src/index.ts +0 -72
  46. package/src/runtime/__tests__/transport-common.test.ts +0 -151
  47. package/src/runtime/embedded-cli.ts +0 -109
  48. package/src/runtime/errors.ts +0 -30
  49. package/src/runtime/host.ts +0 -465
  50. package/src/runtime/process.ts +0 -45
  51. package/src/runtime/transport-common.ts +0 -159
  52. package/src/skills.ts +0 -91
@@ -0,0 +1,1790 @@
1
+ import type { SuperDocRuntime, InvokeOptions } from '../runtime/process.js';
2
+ export interface DocFindParams {
3
+ doc?: string;
4
+ sessionId?: string;
5
+ within?: ({
6
+ kind: "block";
7
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt";
8
+ nodeId: string;
9
+ }) | ({
10
+ kind: "inline";
11
+ nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "tab" | "lineBreak";
12
+ anchor: {
13
+ start: {
14
+ blockId: string;
15
+ offset: number;
16
+ };
17
+ end: {
18
+ blockId: string;
19
+ offset: number;
20
+ };
21
+ };
22
+ });
23
+ limit?: number;
24
+ offset?: number;
25
+ includeNodes?: boolean;
26
+ includeUnknown?: boolean;
27
+ type?: string;
28
+ nodeType?: string;
29
+ kind?: string;
30
+ pattern?: string;
31
+ mode?: string;
32
+ caseSensitive?: boolean;
33
+ query?: Record<string, unknown> | unknown[];
34
+ }
35
+ export interface DocGetNodeParams {
36
+ doc?: string;
37
+ sessionId?: string;
38
+ address?: Record<string, unknown> | unknown[];
39
+ }
40
+ export interface DocGetNodeByIdParams {
41
+ doc?: string;
42
+ sessionId?: string;
43
+ id: string;
44
+ nodeType?: string;
45
+ }
46
+ export interface DocInfoParams {
47
+ doc?: string;
48
+ sessionId?: string;
49
+ }
50
+ export interface DocInsertParams {
51
+ doc?: string;
52
+ sessionId?: string;
53
+ out?: string;
54
+ force?: boolean;
55
+ expectedRevision?: number;
56
+ changeMode?: string;
57
+ dryRun?: boolean;
58
+ target?: {
59
+ kind: "text";
60
+ blockId: string;
61
+ range: {
62
+ start: number;
63
+ end: number;
64
+ };
65
+ };
66
+ text: string;
67
+ }
68
+ export interface DocReplaceParams {
69
+ doc?: string;
70
+ sessionId?: string;
71
+ out?: string;
72
+ force?: boolean;
73
+ expectedRevision?: number;
74
+ changeMode?: string;
75
+ dryRun?: boolean;
76
+ target: {
77
+ kind: "text";
78
+ blockId: string;
79
+ range: {
80
+ start: number;
81
+ end: number;
82
+ };
83
+ };
84
+ text: string;
85
+ }
86
+ export interface DocDeleteParams {
87
+ doc?: string;
88
+ sessionId?: string;
89
+ out?: string;
90
+ force?: boolean;
91
+ expectedRevision?: number;
92
+ changeMode?: string;
93
+ dryRun?: boolean;
94
+ target: {
95
+ kind: "text";
96
+ blockId: string;
97
+ range: {
98
+ start: number;
99
+ end: number;
100
+ };
101
+ };
102
+ }
103
+ export interface DocFormatBoldParams {
104
+ doc?: string;
105
+ sessionId?: string;
106
+ out?: string;
107
+ force?: boolean;
108
+ expectedRevision?: number;
109
+ changeMode?: string;
110
+ dryRun?: boolean;
111
+ target: {
112
+ kind: "text";
113
+ blockId: string;
114
+ range: {
115
+ start: number;
116
+ end: number;
117
+ };
118
+ };
119
+ }
120
+ export interface DocFormatItalicParams {
121
+ doc?: string;
122
+ sessionId?: string;
123
+ out?: string;
124
+ force?: boolean;
125
+ expectedRevision?: number;
126
+ changeMode?: string;
127
+ dryRun?: boolean;
128
+ target: {
129
+ kind: "text";
130
+ blockId: string;
131
+ range: {
132
+ start: number;
133
+ end: number;
134
+ };
135
+ };
136
+ }
137
+ export interface DocFormatUnderlineParams {
138
+ doc?: string;
139
+ sessionId?: string;
140
+ out?: string;
141
+ force?: boolean;
142
+ expectedRevision?: number;
143
+ changeMode?: string;
144
+ dryRun?: boolean;
145
+ target: {
146
+ kind: "text";
147
+ blockId: string;
148
+ range: {
149
+ start: number;
150
+ end: number;
151
+ };
152
+ };
153
+ }
154
+ export interface DocFormatStrikethroughParams {
155
+ doc?: string;
156
+ sessionId?: string;
157
+ out?: string;
158
+ force?: boolean;
159
+ expectedRevision?: number;
160
+ changeMode?: string;
161
+ dryRun?: boolean;
162
+ target: {
163
+ kind: "text";
164
+ blockId: string;
165
+ range: {
166
+ start: number;
167
+ end: number;
168
+ };
169
+ };
170
+ }
171
+ export interface DocCreateParagraphParams {
172
+ doc?: string;
173
+ sessionId?: string;
174
+ out?: string;
175
+ force?: boolean;
176
+ expectedRevision?: number;
177
+ changeMode?: string;
178
+ dryRun?: boolean;
179
+ at?: ({
180
+ kind: "documentStart";
181
+ }) | ({
182
+ kind: "documentEnd";
183
+ }) | ({
184
+ kind: "before";
185
+ target: {
186
+ kind: "block";
187
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt";
188
+ nodeId: string;
189
+ };
190
+ }) | ({
191
+ kind: "after";
192
+ target: {
193
+ kind: "block";
194
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt";
195
+ nodeId: string;
196
+ };
197
+ });
198
+ text?: string;
199
+ input?: Record<string, unknown> | unknown[];
200
+ }
201
+ export interface DocListsListParams {
202
+ doc?: string;
203
+ sessionId?: string;
204
+ within?: {
205
+ kind: "block";
206
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt";
207
+ nodeId: string;
208
+ };
209
+ limit?: number;
210
+ offset?: number;
211
+ kind?: string;
212
+ level?: number;
213
+ ordinal?: number;
214
+ query?: Record<string, unknown> | unknown[];
215
+ }
216
+ export interface DocListsGetParams {
217
+ doc?: string;
218
+ sessionId?: string;
219
+ address: {
220
+ kind: "block";
221
+ nodeType: "listItem";
222
+ nodeId: string;
223
+ };
224
+ }
225
+ export interface DocListsInsertParams {
226
+ doc?: string;
227
+ sessionId?: string;
228
+ out?: string;
229
+ force?: boolean;
230
+ expectedRevision?: number;
231
+ changeMode?: string;
232
+ dryRun?: boolean;
233
+ target?: {
234
+ kind: "block";
235
+ nodeType: "listItem";
236
+ nodeId: string;
237
+ };
238
+ position?: string;
239
+ text?: string;
240
+ input?: Record<string, unknown> | unknown[];
241
+ }
242
+ export interface DocListsSetTypeParams {
243
+ doc?: string;
244
+ sessionId?: string;
245
+ out?: string;
246
+ force?: boolean;
247
+ expectedRevision?: number;
248
+ changeMode?: string;
249
+ dryRun?: boolean;
250
+ target?: {
251
+ kind: "block";
252
+ nodeType: "listItem";
253
+ nodeId: string;
254
+ };
255
+ kind?: string;
256
+ input?: Record<string, unknown> | unknown[];
257
+ }
258
+ export interface DocListsIndentParams {
259
+ doc?: string;
260
+ sessionId?: string;
261
+ out?: string;
262
+ force?: boolean;
263
+ expectedRevision?: number;
264
+ changeMode?: string;
265
+ dryRun?: boolean;
266
+ target?: {
267
+ kind: "block";
268
+ nodeType: "listItem";
269
+ nodeId: string;
270
+ };
271
+ input?: Record<string, unknown> | unknown[];
272
+ }
273
+ export interface DocListsOutdentParams {
274
+ doc?: string;
275
+ sessionId?: string;
276
+ out?: string;
277
+ force?: boolean;
278
+ expectedRevision?: number;
279
+ changeMode?: string;
280
+ dryRun?: boolean;
281
+ target?: {
282
+ kind: "block";
283
+ nodeType: "listItem";
284
+ nodeId: string;
285
+ };
286
+ input?: Record<string, unknown> | unknown[];
287
+ }
288
+ export interface DocListsRestartParams {
289
+ doc?: string;
290
+ sessionId?: string;
291
+ out?: string;
292
+ force?: boolean;
293
+ expectedRevision?: number;
294
+ changeMode?: string;
295
+ dryRun?: boolean;
296
+ target?: {
297
+ kind: "block";
298
+ nodeType: "listItem";
299
+ nodeId: string;
300
+ };
301
+ input?: Record<string, unknown> | unknown[];
302
+ }
303
+ export interface DocListsExitParams {
304
+ doc?: string;
305
+ sessionId?: string;
306
+ out?: string;
307
+ force?: boolean;
308
+ expectedRevision?: number;
309
+ changeMode?: string;
310
+ dryRun?: boolean;
311
+ target?: {
312
+ kind: "block";
313
+ nodeType: "listItem";
314
+ nodeId: string;
315
+ };
316
+ input?: Record<string, unknown> | unknown[];
317
+ }
318
+ export interface DocCommentsAddParams {
319
+ doc?: string;
320
+ sessionId?: string;
321
+ out?: string;
322
+ force?: boolean;
323
+ expectedRevision?: number;
324
+ changeMode?: string;
325
+ target: {
326
+ kind: "text";
327
+ blockId: string;
328
+ range: {
329
+ start: number;
330
+ end: number;
331
+ };
332
+ };
333
+ text: string;
334
+ }
335
+ export interface DocCommentsEditParams {
336
+ doc?: string;
337
+ sessionId?: string;
338
+ out?: string;
339
+ force?: boolean;
340
+ expectedRevision?: number;
341
+ changeMode?: string;
342
+ id: string;
343
+ text: string;
344
+ }
345
+ export interface DocCommentsReplyParams {
346
+ doc?: string;
347
+ sessionId?: string;
348
+ out?: string;
349
+ force?: boolean;
350
+ expectedRevision?: number;
351
+ changeMode?: string;
352
+ parentId: string;
353
+ text: string;
354
+ }
355
+ export interface DocCommentsMoveParams {
356
+ doc?: string;
357
+ sessionId?: string;
358
+ out?: string;
359
+ force?: boolean;
360
+ expectedRevision?: number;
361
+ changeMode?: string;
362
+ id: string;
363
+ target: {
364
+ kind: "text";
365
+ blockId: string;
366
+ range: {
367
+ start: number;
368
+ end: number;
369
+ };
370
+ };
371
+ }
372
+ export interface DocCommentsResolveParams {
373
+ doc?: string;
374
+ sessionId?: string;
375
+ out?: string;
376
+ force?: boolean;
377
+ expectedRevision?: number;
378
+ changeMode?: string;
379
+ id: string;
380
+ }
381
+ export interface DocCommentsRemoveParams {
382
+ doc?: string;
383
+ sessionId?: string;
384
+ out?: string;
385
+ force?: boolean;
386
+ expectedRevision?: number;
387
+ changeMode?: string;
388
+ id: string;
389
+ }
390
+ export interface DocCommentsSetInternalParams {
391
+ doc?: string;
392
+ sessionId?: string;
393
+ out?: string;
394
+ force?: boolean;
395
+ expectedRevision?: number;
396
+ changeMode?: string;
397
+ id: string;
398
+ isInternal: boolean;
399
+ }
400
+ export interface DocCommentsSetActiveParams {
401
+ doc?: string;
402
+ sessionId?: string;
403
+ out?: string;
404
+ force?: boolean;
405
+ expectedRevision?: number;
406
+ changeMode?: string;
407
+ commentId?: unknown;
408
+ id?: string;
409
+ clear?: boolean;
410
+ }
411
+ export interface DocCommentsGoToParams {
412
+ doc?: string;
413
+ sessionId?: string;
414
+ id: string;
415
+ }
416
+ export interface DocCommentsGetParams {
417
+ doc?: string;
418
+ sessionId?: string;
419
+ id: string;
420
+ }
421
+ export interface DocCommentsListParams {
422
+ doc?: string;
423
+ sessionId?: string;
424
+ includeResolved?: boolean;
425
+ }
426
+ export interface DocTrackChangesListParams {
427
+ doc?: string;
428
+ sessionId?: string;
429
+ limit?: number;
430
+ offset?: number;
431
+ type?: string;
432
+ }
433
+ export interface DocTrackChangesGetParams {
434
+ doc?: string;
435
+ sessionId?: string;
436
+ id: string;
437
+ }
438
+ export interface DocTrackChangesAcceptParams {
439
+ doc?: string;
440
+ sessionId?: string;
441
+ out?: string;
442
+ force?: boolean;
443
+ expectedRevision?: number;
444
+ changeMode?: string;
445
+ id: string;
446
+ }
447
+ export interface DocTrackChangesRejectParams {
448
+ doc?: string;
449
+ sessionId?: string;
450
+ out?: string;
451
+ force?: boolean;
452
+ expectedRevision?: number;
453
+ changeMode?: string;
454
+ id: string;
455
+ }
456
+ export interface DocTrackChangesAcceptAllParams {
457
+ doc?: string;
458
+ sessionId?: string;
459
+ out?: string;
460
+ force?: boolean;
461
+ expectedRevision?: number;
462
+ changeMode?: string;
463
+ }
464
+ export interface DocTrackChangesRejectAllParams {
465
+ doc?: string;
466
+ sessionId?: string;
467
+ out?: string;
468
+ force?: boolean;
469
+ expectedRevision?: number;
470
+ changeMode?: string;
471
+ }
472
+ export interface DocOpenParams {
473
+ doc: string;
474
+ sessionId?: string;
475
+ collaboration?: Record<string, unknown> | unknown[];
476
+ collabDocumentId?: string;
477
+ collabUrl?: string;
478
+ }
479
+ export interface DocSaveParams {
480
+ sessionId?: string;
481
+ out?: string;
482
+ force?: boolean;
483
+ inPlace?: boolean;
484
+ }
485
+ export interface DocCloseParams {
486
+ sessionId?: string;
487
+ discard?: boolean;
488
+ }
489
+ export interface DocStatusParams {
490
+ sessionId?: string;
491
+ }
492
+ export interface DocDescribeParams {
493
+ }
494
+ export interface DocDescribeCommandParams {
495
+ operationId: string;
496
+ }
497
+ export interface DocSessionListParams {
498
+ }
499
+ export interface DocSessionSaveParams {
500
+ sessionId: string;
501
+ out?: string;
502
+ force?: boolean;
503
+ inPlace?: boolean;
504
+ }
505
+ export interface DocSessionCloseParams {
506
+ sessionId: string;
507
+ discard?: boolean;
508
+ }
509
+ export interface DocSessionSetDefaultParams {
510
+ sessionId: string;
511
+ }
512
+ export type DocFindResult = {
513
+ context?: Array<{
514
+ address: ({
515
+ kind: "block";
516
+ nodeId: string;
517
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt";
518
+ }) | ({
519
+ anchor: {
520
+ end: {
521
+ blockId: string;
522
+ offset: number;
523
+ };
524
+ start: {
525
+ blockId: string;
526
+ offset: number;
527
+ };
528
+ };
529
+ kind: "inline";
530
+ nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "tab" | "lineBreak";
531
+ });
532
+ highlightRange: {
533
+ end: number;
534
+ start: number;
535
+ };
536
+ snippet: string;
537
+ textRanges?: Array<{
538
+ blockId: string;
539
+ kind: "text";
540
+ range: {
541
+ end: number;
542
+ start: number;
543
+ };
544
+ }>;
545
+ }>;
546
+ diagnostics?: Array<{
547
+ address?: ({
548
+ kind: "block";
549
+ nodeId: string;
550
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt";
551
+ }) | ({
552
+ anchor: {
553
+ end: {
554
+ blockId: string;
555
+ offset: number;
556
+ };
557
+ start: {
558
+ blockId: string;
559
+ offset: number;
560
+ };
561
+ };
562
+ kind: "inline";
563
+ nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "tab" | "lineBreak";
564
+ });
565
+ hint?: string;
566
+ message: string;
567
+ }>;
568
+ matches: Array<({
569
+ kind: "block";
570
+ nodeId: string;
571
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt";
572
+ }) | ({
573
+ anchor: {
574
+ end: {
575
+ blockId: string;
576
+ offset: number;
577
+ };
578
+ start: {
579
+ blockId: string;
580
+ offset: number;
581
+ };
582
+ };
583
+ kind: "inline";
584
+ nodeType: "run" | "bookmark" | "comment" | "hyperlink" | "sdt" | "image" | "footnoteRef" | "tab" | "lineBreak";
585
+ })>;
586
+ nodes?: Array<{
587
+ bodyNodes?: Array<Record<string, unknown>>;
588
+ bodyText?: string;
589
+ kind: "block" | "inline";
590
+ nodes?: Array<Record<string, unknown>>;
591
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "tab" | "lineBreak";
592
+ properties?: Record<string, unknown>;
593
+ summary?: {
594
+ label?: string;
595
+ text?: string;
596
+ };
597
+ text?: string;
598
+ }>;
599
+ total: number;
600
+ };
601
+ export type DocGetNodeResult = {
602
+ bodyNodes?: Array<Record<string, unknown>>;
603
+ bodyText?: string;
604
+ kind: "block" | "inline";
605
+ nodes?: Array<Record<string, unknown>>;
606
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "tab" | "lineBreak";
607
+ properties?: Record<string, unknown>;
608
+ summary?: {
609
+ label?: string;
610
+ text?: string;
611
+ };
612
+ text?: string;
613
+ };
614
+ export type DocGetNodeByIdResult = {
615
+ bodyNodes?: Array<Record<string, unknown>>;
616
+ bodyText?: string;
617
+ kind: "block" | "inline";
618
+ nodes?: Array<Record<string, unknown>>;
619
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "tab" | "lineBreak";
620
+ properties?: Record<string, unknown>;
621
+ summary?: {
622
+ label?: string;
623
+ text?: string;
624
+ };
625
+ text?: string;
626
+ };
627
+ export type DocInfoResult = {
628
+ capabilities: {
629
+ canComment: boolean;
630
+ canFind: boolean;
631
+ canGetNode: boolean;
632
+ canReplace: boolean;
633
+ };
634
+ counts: {
635
+ comments: number;
636
+ headings: number;
637
+ images: number;
638
+ paragraphs: number;
639
+ tables: number;
640
+ words: number;
641
+ };
642
+ outline: Array<{
643
+ level: number;
644
+ nodeId: string;
645
+ text: string;
646
+ }>;
647
+ };
648
+ export type DocInsertResult = {
649
+ inserted?: Array<({
650
+ entityId: string;
651
+ entityType: "comment";
652
+ kind: "entity";
653
+ }) | ({
654
+ entityId: string;
655
+ entityType: "trackedChange";
656
+ kind: "entity";
657
+ })>;
658
+ removed?: Array<({
659
+ entityId: string;
660
+ entityType: "comment";
661
+ kind: "entity";
662
+ }) | ({
663
+ entityId: string;
664
+ entityType: "trackedChange";
665
+ kind: "entity";
666
+ })>;
667
+ resolution: {
668
+ range: {
669
+ from: number;
670
+ to: number;
671
+ };
672
+ requestedTarget?: {
673
+ blockId: string;
674
+ kind: "text";
675
+ range: {
676
+ end: number;
677
+ start: number;
678
+ };
679
+ };
680
+ target: {
681
+ blockId: string;
682
+ kind: "text";
683
+ range: {
684
+ end: number;
685
+ start: number;
686
+ };
687
+ };
688
+ text: string;
689
+ };
690
+ success: true;
691
+ updated?: Array<({
692
+ entityId: string;
693
+ entityType: "comment";
694
+ kind: "entity";
695
+ }) | ({
696
+ entityId: string;
697
+ entityType: "trackedChange";
698
+ kind: "entity";
699
+ })>;
700
+ };
701
+ export type DocReplaceResult = {
702
+ inserted?: Array<({
703
+ entityId: string;
704
+ entityType: "comment";
705
+ kind: "entity";
706
+ }) | ({
707
+ entityId: string;
708
+ entityType: "trackedChange";
709
+ kind: "entity";
710
+ })>;
711
+ removed?: Array<({
712
+ entityId: string;
713
+ entityType: "comment";
714
+ kind: "entity";
715
+ }) | ({
716
+ entityId: string;
717
+ entityType: "trackedChange";
718
+ kind: "entity";
719
+ })>;
720
+ resolution: {
721
+ range: {
722
+ from: number;
723
+ to: number;
724
+ };
725
+ requestedTarget?: {
726
+ blockId: string;
727
+ kind: "text";
728
+ range: {
729
+ end: number;
730
+ start: number;
731
+ };
732
+ };
733
+ target: {
734
+ blockId: string;
735
+ kind: "text";
736
+ range: {
737
+ end: number;
738
+ start: number;
739
+ };
740
+ };
741
+ text: string;
742
+ };
743
+ success: true;
744
+ updated?: Array<({
745
+ entityId: string;
746
+ entityType: "comment";
747
+ kind: "entity";
748
+ }) | ({
749
+ entityId: string;
750
+ entityType: "trackedChange";
751
+ kind: "entity";
752
+ })>;
753
+ };
754
+ export type DocDeleteResult = {
755
+ inserted?: Array<({
756
+ entityId: string;
757
+ entityType: "comment";
758
+ kind: "entity";
759
+ }) | ({
760
+ entityId: string;
761
+ entityType: "trackedChange";
762
+ kind: "entity";
763
+ })>;
764
+ removed?: Array<({
765
+ entityId: string;
766
+ entityType: "comment";
767
+ kind: "entity";
768
+ }) | ({
769
+ entityId: string;
770
+ entityType: "trackedChange";
771
+ kind: "entity";
772
+ })>;
773
+ resolution: {
774
+ range: {
775
+ from: number;
776
+ to: number;
777
+ };
778
+ requestedTarget?: {
779
+ blockId: string;
780
+ kind: "text";
781
+ range: {
782
+ end: number;
783
+ start: number;
784
+ };
785
+ };
786
+ target: {
787
+ blockId: string;
788
+ kind: "text";
789
+ range: {
790
+ end: number;
791
+ start: number;
792
+ };
793
+ };
794
+ text: string;
795
+ };
796
+ success: true;
797
+ updated?: Array<({
798
+ entityId: string;
799
+ entityType: "comment";
800
+ kind: "entity";
801
+ }) | ({
802
+ entityId: string;
803
+ entityType: "trackedChange";
804
+ kind: "entity";
805
+ })>;
806
+ };
807
+ export type DocFormatBoldResult = {
808
+ inserted?: Array<({
809
+ entityId: string;
810
+ entityType: "comment";
811
+ kind: "entity";
812
+ }) | ({
813
+ entityId: string;
814
+ entityType: "trackedChange";
815
+ kind: "entity";
816
+ })>;
817
+ removed?: Array<({
818
+ entityId: string;
819
+ entityType: "comment";
820
+ kind: "entity";
821
+ }) | ({
822
+ entityId: string;
823
+ entityType: "trackedChange";
824
+ kind: "entity";
825
+ })>;
826
+ resolution: {
827
+ range: {
828
+ from: number;
829
+ to: number;
830
+ };
831
+ requestedTarget?: {
832
+ blockId: string;
833
+ kind: "text";
834
+ range: {
835
+ end: number;
836
+ start: number;
837
+ };
838
+ };
839
+ target: {
840
+ blockId: string;
841
+ kind: "text";
842
+ range: {
843
+ end: number;
844
+ start: number;
845
+ };
846
+ };
847
+ text: string;
848
+ };
849
+ success: true;
850
+ updated?: Array<({
851
+ entityId: string;
852
+ entityType: "comment";
853
+ kind: "entity";
854
+ }) | ({
855
+ entityId: string;
856
+ entityType: "trackedChange";
857
+ kind: "entity";
858
+ })>;
859
+ };
860
+ export type DocFormatItalicResult = {
861
+ inserted?: Array<({
862
+ entityId: string;
863
+ entityType: "comment";
864
+ kind: "entity";
865
+ }) | ({
866
+ entityId: string;
867
+ entityType: "trackedChange";
868
+ kind: "entity";
869
+ })>;
870
+ removed?: Array<({
871
+ entityId: string;
872
+ entityType: "comment";
873
+ kind: "entity";
874
+ }) | ({
875
+ entityId: string;
876
+ entityType: "trackedChange";
877
+ kind: "entity";
878
+ })>;
879
+ resolution: {
880
+ range: {
881
+ from: number;
882
+ to: number;
883
+ };
884
+ requestedTarget?: {
885
+ blockId: string;
886
+ kind: "text";
887
+ range: {
888
+ end: number;
889
+ start: number;
890
+ };
891
+ };
892
+ target: {
893
+ blockId: string;
894
+ kind: "text";
895
+ range: {
896
+ end: number;
897
+ start: number;
898
+ };
899
+ };
900
+ text: string;
901
+ };
902
+ success: true;
903
+ updated?: Array<({
904
+ entityId: string;
905
+ entityType: "comment";
906
+ kind: "entity";
907
+ }) | ({
908
+ entityId: string;
909
+ entityType: "trackedChange";
910
+ kind: "entity";
911
+ })>;
912
+ };
913
+ export type DocFormatUnderlineResult = {
914
+ inserted?: Array<({
915
+ entityId: string;
916
+ entityType: "comment";
917
+ kind: "entity";
918
+ }) | ({
919
+ entityId: string;
920
+ entityType: "trackedChange";
921
+ kind: "entity";
922
+ })>;
923
+ removed?: Array<({
924
+ entityId: string;
925
+ entityType: "comment";
926
+ kind: "entity";
927
+ }) | ({
928
+ entityId: string;
929
+ entityType: "trackedChange";
930
+ kind: "entity";
931
+ })>;
932
+ resolution: {
933
+ range: {
934
+ from: number;
935
+ to: number;
936
+ };
937
+ requestedTarget?: {
938
+ blockId: string;
939
+ kind: "text";
940
+ range: {
941
+ end: number;
942
+ start: number;
943
+ };
944
+ };
945
+ target: {
946
+ blockId: string;
947
+ kind: "text";
948
+ range: {
949
+ end: number;
950
+ start: number;
951
+ };
952
+ };
953
+ text: string;
954
+ };
955
+ success: true;
956
+ updated?: Array<({
957
+ entityId: string;
958
+ entityType: "comment";
959
+ kind: "entity";
960
+ }) | ({
961
+ entityId: string;
962
+ entityType: "trackedChange";
963
+ kind: "entity";
964
+ })>;
965
+ };
966
+ export type DocFormatStrikethroughResult = {
967
+ inserted?: Array<({
968
+ entityId: string;
969
+ entityType: "comment";
970
+ kind: "entity";
971
+ }) | ({
972
+ entityId: string;
973
+ entityType: "trackedChange";
974
+ kind: "entity";
975
+ })>;
976
+ removed?: Array<({
977
+ entityId: string;
978
+ entityType: "comment";
979
+ kind: "entity";
980
+ }) | ({
981
+ entityId: string;
982
+ entityType: "trackedChange";
983
+ kind: "entity";
984
+ })>;
985
+ resolution: {
986
+ range: {
987
+ from: number;
988
+ to: number;
989
+ };
990
+ requestedTarget?: {
991
+ blockId: string;
992
+ kind: "text";
993
+ range: {
994
+ end: number;
995
+ start: number;
996
+ };
997
+ };
998
+ target: {
999
+ blockId: string;
1000
+ kind: "text";
1001
+ range: {
1002
+ end: number;
1003
+ start: number;
1004
+ };
1005
+ };
1006
+ text: string;
1007
+ };
1008
+ success: true;
1009
+ updated?: Array<({
1010
+ entityId: string;
1011
+ entityType: "comment";
1012
+ kind: "entity";
1013
+ }) | ({
1014
+ entityId: string;
1015
+ entityType: "trackedChange";
1016
+ kind: "entity";
1017
+ })>;
1018
+ };
1019
+ export type DocCreateParagraphResult = {
1020
+ insertionPoint: {
1021
+ blockId: string;
1022
+ kind: "text";
1023
+ range: {
1024
+ end: number;
1025
+ start: number;
1026
+ };
1027
+ };
1028
+ paragraph: {
1029
+ kind: "block";
1030
+ nodeId: string;
1031
+ nodeType: "paragraph";
1032
+ };
1033
+ success: true;
1034
+ trackedChangeRefs?: Array<{
1035
+ entityId: string;
1036
+ entityType: "trackedChange";
1037
+ kind: "entity";
1038
+ }>;
1039
+ };
1040
+ export type DocListsListResult = {
1041
+ items: Array<{
1042
+ address: {
1043
+ kind: "block";
1044
+ nodeId: string;
1045
+ nodeType: "listItem";
1046
+ };
1047
+ kind?: "ordered" | "bullet";
1048
+ level?: number;
1049
+ marker?: string;
1050
+ ordinal?: number;
1051
+ path?: Array<number>;
1052
+ text?: string;
1053
+ }>;
1054
+ matches: Array<{
1055
+ kind: "block";
1056
+ nodeId: string;
1057
+ nodeType: "listItem";
1058
+ }>;
1059
+ total: number;
1060
+ };
1061
+ export type DocListsGetResult = {
1062
+ address: {
1063
+ kind: "block";
1064
+ nodeId: string;
1065
+ nodeType: "listItem";
1066
+ };
1067
+ kind?: "ordered" | "bullet";
1068
+ level?: number;
1069
+ marker?: string;
1070
+ ordinal?: number;
1071
+ path?: Array<number>;
1072
+ text?: string;
1073
+ };
1074
+ export type DocListsInsertResult = {
1075
+ insertionPoint: {
1076
+ blockId: string;
1077
+ kind: "text";
1078
+ range: {
1079
+ end: number;
1080
+ start: number;
1081
+ };
1082
+ };
1083
+ item: {
1084
+ kind: "block";
1085
+ nodeId: string;
1086
+ nodeType: "listItem";
1087
+ };
1088
+ success: true;
1089
+ trackedChangeRefs?: Array<{
1090
+ entityId: string;
1091
+ entityType: "trackedChange";
1092
+ kind: "entity";
1093
+ }>;
1094
+ };
1095
+ export type DocListsSetTypeResult = {
1096
+ item: {
1097
+ kind: "block";
1098
+ nodeId: string;
1099
+ nodeType: "listItem";
1100
+ };
1101
+ success: true;
1102
+ };
1103
+ export type DocListsIndentResult = {
1104
+ item: {
1105
+ kind: "block";
1106
+ nodeId: string;
1107
+ nodeType: "listItem";
1108
+ };
1109
+ success: true;
1110
+ };
1111
+ export type DocListsOutdentResult = {
1112
+ item: {
1113
+ kind: "block";
1114
+ nodeId: string;
1115
+ nodeType: "listItem";
1116
+ };
1117
+ success: true;
1118
+ };
1119
+ export type DocListsRestartResult = {
1120
+ item: {
1121
+ kind: "block";
1122
+ nodeId: string;
1123
+ nodeType: "listItem";
1124
+ };
1125
+ success: true;
1126
+ };
1127
+ export type DocListsExitResult = {
1128
+ paragraph: {
1129
+ kind: "block";
1130
+ nodeId: string;
1131
+ nodeType: "paragraph";
1132
+ };
1133
+ success: true;
1134
+ };
1135
+ export type DocCommentsAddResult = {
1136
+ inserted?: Array<({
1137
+ entityId: string;
1138
+ entityType: "comment";
1139
+ kind: "entity";
1140
+ }) | ({
1141
+ entityId: string;
1142
+ entityType: "trackedChange";
1143
+ kind: "entity";
1144
+ })>;
1145
+ removed?: Array<({
1146
+ entityId: string;
1147
+ entityType: "comment";
1148
+ kind: "entity";
1149
+ }) | ({
1150
+ entityId: string;
1151
+ entityType: "trackedChange";
1152
+ kind: "entity";
1153
+ })>;
1154
+ success: true;
1155
+ updated?: Array<({
1156
+ entityId: string;
1157
+ entityType: "comment";
1158
+ kind: "entity";
1159
+ }) | ({
1160
+ entityId: string;
1161
+ entityType: "trackedChange";
1162
+ kind: "entity";
1163
+ })>;
1164
+ };
1165
+ export type DocCommentsEditResult = {
1166
+ inserted?: Array<({
1167
+ entityId: string;
1168
+ entityType: "comment";
1169
+ kind: "entity";
1170
+ }) | ({
1171
+ entityId: string;
1172
+ entityType: "trackedChange";
1173
+ kind: "entity";
1174
+ })>;
1175
+ removed?: Array<({
1176
+ entityId: string;
1177
+ entityType: "comment";
1178
+ kind: "entity";
1179
+ }) | ({
1180
+ entityId: string;
1181
+ entityType: "trackedChange";
1182
+ kind: "entity";
1183
+ })>;
1184
+ success: true;
1185
+ updated?: Array<({
1186
+ entityId: string;
1187
+ entityType: "comment";
1188
+ kind: "entity";
1189
+ }) | ({
1190
+ entityId: string;
1191
+ entityType: "trackedChange";
1192
+ kind: "entity";
1193
+ })>;
1194
+ };
1195
+ export type DocCommentsReplyResult = {
1196
+ inserted?: Array<({
1197
+ entityId: string;
1198
+ entityType: "comment";
1199
+ kind: "entity";
1200
+ }) | ({
1201
+ entityId: string;
1202
+ entityType: "trackedChange";
1203
+ kind: "entity";
1204
+ })>;
1205
+ removed?: Array<({
1206
+ entityId: string;
1207
+ entityType: "comment";
1208
+ kind: "entity";
1209
+ }) | ({
1210
+ entityId: string;
1211
+ entityType: "trackedChange";
1212
+ kind: "entity";
1213
+ })>;
1214
+ success: true;
1215
+ updated?: Array<({
1216
+ entityId: string;
1217
+ entityType: "comment";
1218
+ kind: "entity";
1219
+ }) | ({
1220
+ entityId: string;
1221
+ entityType: "trackedChange";
1222
+ kind: "entity";
1223
+ })>;
1224
+ };
1225
+ export type DocCommentsMoveResult = {
1226
+ inserted?: Array<({
1227
+ entityId: string;
1228
+ entityType: "comment";
1229
+ kind: "entity";
1230
+ }) | ({
1231
+ entityId: string;
1232
+ entityType: "trackedChange";
1233
+ kind: "entity";
1234
+ })>;
1235
+ removed?: Array<({
1236
+ entityId: string;
1237
+ entityType: "comment";
1238
+ kind: "entity";
1239
+ }) | ({
1240
+ entityId: string;
1241
+ entityType: "trackedChange";
1242
+ kind: "entity";
1243
+ })>;
1244
+ success: true;
1245
+ updated?: Array<({
1246
+ entityId: string;
1247
+ entityType: "comment";
1248
+ kind: "entity";
1249
+ }) | ({
1250
+ entityId: string;
1251
+ entityType: "trackedChange";
1252
+ kind: "entity";
1253
+ })>;
1254
+ };
1255
+ export type DocCommentsResolveResult = {
1256
+ inserted?: Array<({
1257
+ entityId: string;
1258
+ entityType: "comment";
1259
+ kind: "entity";
1260
+ }) | ({
1261
+ entityId: string;
1262
+ entityType: "trackedChange";
1263
+ kind: "entity";
1264
+ })>;
1265
+ removed?: Array<({
1266
+ entityId: string;
1267
+ entityType: "comment";
1268
+ kind: "entity";
1269
+ }) | ({
1270
+ entityId: string;
1271
+ entityType: "trackedChange";
1272
+ kind: "entity";
1273
+ })>;
1274
+ success: true;
1275
+ updated?: Array<({
1276
+ entityId: string;
1277
+ entityType: "comment";
1278
+ kind: "entity";
1279
+ }) | ({
1280
+ entityId: string;
1281
+ entityType: "trackedChange";
1282
+ kind: "entity";
1283
+ })>;
1284
+ };
1285
+ export type DocCommentsRemoveResult = {
1286
+ inserted?: Array<({
1287
+ entityId: string;
1288
+ entityType: "comment";
1289
+ kind: "entity";
1290
+ }) | ({
1291
+ entityId: string;
1292
+ entityType: "trackedChange";
1293
+ kind: "entity";
1294
+ })>;
1295
+ removed?: Array<({
1296
+ entityId: string;
1297
+ entityType: "comment";
1298
+ kind: "entity";
1299
+ }) | ({
1300
+ entityId: string;
1301
+ entityType: "trackedChange";
1302
+ kind: "entity";
1303
+ })>;
1304
+ success: true;
1305
+ updated?: Array<({
1306
+ entityId: string;
1307
+ entityType: "comment";
1308
+ kind: "entity";
1309
+ }) | ({
1310
+ entityId: string;
1311
+ entityType: "trackedChange";
1312
+ kind: "entity";
1313
+ })>;
1314
+ };
1315
+ export type DocCommentsSetInternalResult = {
1316
+ inserted?: Array<({
1317
+ entityId: string;
1318
+ entityType: "comment";
1319
+ kind: "entity";
1320
+ }) | ({
1321
+ entityId: string;
1322
+ entityType: "trackedChange";
1323
+ kind: "entity";
1324
+ })>;
1325
+ removed?: Array<({
1326
+ entityId: string;
1327
+ entityType: "comment";
1328
+ kind: "entity";
1329
+ }) | ({
1330
+ entityId: string;
1331
+ entityType: "trackedChange";
1332
+ kind: "entity";
1333
+ })>;
1334
+ success: true;
1335
+ updated?: Array<({
1336
+ entityId: string;
1337
+ entityType: "comment";
1338
+ kind: "entity";
1339
+ }) | ({
1340
+ entityId: string;
1341
+ entityType: "trackedChange";
1342
+ kind: "entity";
1343
+ })>;
1344
+ };
1345
+ export type DocCommentsSetActiveResult = {
1346
+ inserted?: Array<({
1347
+ entityId: string;
1348
+ entityType: "comment";
1349
+ kind: "entity";
1350
+ }) | ({
1351
+ entityId: string;
1352
+ entityType: "trackedChange";
1353
+ kind: "entity";
1354
+ })>;
1355
+ removed?: Array<({
1356
+ entityId: string;
1357
+ entityType: "comment";
1358
+ kind: "entity";
1359
+ }) | ({
1360
+ entityId: string;
1361
+ entityType: "trackedChange";
1362
+ kind: "entity";
1363
+ })>;
1364
+ success: true;
1365
+ updated?: Array<({
1366
+ entityId: string;
1367
+ entityType: "comment";
1368
+ kind: "entity";
1369
+ }) | ({
1370
+ entityId: string;
1371
+ entityType: "trackedChange";
1372
+ kind: "entity";
1373
+ })>;
1374
+ };
1375
+ export type DocCommentsGoToResult = {
1376
+ inserted?: Array<({
1377
+ entityId: string;
1378
+ entityType: "comment";
1379
+ kind: "entity";
1380
+ }) | ({
1381
+ entityId: string;
1382
+ entityType: "trackedChange";
1383
+ kind: "entity";
1384
+ })>;
1385
+ removed?: Array<({
1386
+ entityId: string;
1387
+ entityType: "comment";
1388
+ kind: "entity";
1389
+ }) | ({
1390
+ entityId: string;
1391
+ entityType: "trackedChange";
1392
+ kind: "entity";
1393
+ })>;
1394
+ success: true;
1395
+ updated?: Array<({
1396
+ entityId: string;
1397
+ entityType: "comment";
1398
+ kind: "entity";
1399
+ }) | ({
1400
+ entityId: string;
1401
+ entityType: "trackedChange";
1402
+ kind: "entity";
1403
+ })>;
1404
+ };
1405
+ export type DocCommentsGetResult = {
1406
+ address: {
1407
+ entityId: string;
1408
+ entityType: "comment";
1409
+ kind: "entity";
1410
+ };
1411
+ commentId: string;
1412
+ createdTime?: number;
1413
+ creatorEmail?: string;
1414
+ creatorName?: string;
1415
+ importedId?: string;
1416
+ isInternal?: boolean;
1417
+ parentCommentId?: string;
1418
+ status: "open" | "resolved";
1419
+ target?: {
1420
+ blockId: string;
1421
+ kind: "text";
1422
+ range: {
1423
+ end: number;
1424
+ start: number;
1425
+ };
1426
+ };
1427
+ text?: string;
1428
+ };
1429
+ export type DocCommentsListResult = {
1430
+ matches: Array<{
1431
+ address: {
1432
+ entityId: string;
1433
+ entityType: "comment";
1434
+ kind: "entity";
1435
+ };
1436
+ commentId: string;
1437
+ createdTime?: number;
1438
+ creatorEmail?: string;
1439
+ creatorName?: string;
1440
+ importedId?: string;
1441
+ isInternal?: boolean;
1442
+ parentCommentId?: string;
1443
+ status: "open" | "resolved";
1444
+ target?: {
1445
+ blockId: string;
1446
+ kind: "text";
1447
+ range: {
1448
+ end: number;
1449
+ start: number;
1450
+ };
1451
+ };
1452
+ text?: string;
1453
+ }>;
1454
+ total: number;
1455
+ };
1456
+ export type DocTrackChangesListResult = {
1457
+ changes?: Array<{
1458
+ address: {
1459
+ entityId: string;
1460
+ entityType: "trackedChange";
1461
+ kind: "entity";
1462
+ };
1463
+ author?: string;
1464
+ authorEmail?: string;
1465
+ authorImage?: string;
1466
+ date?: string;
1467
+ excerpt?: string;
1468
+ id: string;
1469
+ type: "insert" | "delete" | "format";
1470
+ }>;
1471
+ matches: Array<{
1472
+ entityId: string;
1473
+ entityType: "trackedChange";
1474
+ kind: "entity";
1475
+ }>;
1476
+ total: number;
1477
+ };
1478
+ export type DocTrackChangesGetResult = {
1479
+ address: {
1480
+ entityId: string;
1481
+ entityType: "trackedChange";
1482
+ kind: "entity";
1483
+ };
1484
+ author?: string;
1485
+ authorEmail?: string;
1486
+ authorImage?: string;
1487
+ date?: string;
1488
+ excerpt?: string;
1489
+ id: string;
1490
+ type: "insert" | "delete" | "format";
1491
+ };
1492
+ export type DocTrackChangesAcceptResult = {
1493
+ inserted?: Array<({
1494
+ entityId: string;
1495
+ entityType: "comment";
1496
+ kind: "entity";
1497
+ }) | ({
1498
+ entityId: string;
1499
+ entityType: "trackedChange";
1500
+ kind: "entity";
1501
+ })>;
1502
+ removed?: Array<({
1503
+ entityId: string;
1504
+ entityType: "comment";
1505
+ kind: "entity";
1506
+ }) | ({
1507
+ entityId: string;
1508
+ entityType: "trackedChange";
1509
+ kind: "entity";
1510
+ })>;
1511
+ success: true;
1512
+ updated?: Array<({
1513
+ entityId: string;
1514
+ entityType: "comment";
1515
+ kind: "entity";
1516
+ }) | ({
1517
+ entityId: string;
1518
+ entityType: "trackedChange";
1519
+ kind: "entity";
1520
+ })>;
1521
+ };
1522
+ export type DocTrackChangesRejectResult = {
1523
+ inserted?: Array<({
1524
+ entityId: string;
1525
+ entityType: "comment";
1526
+ kind: "entity";
1527
+ }) | ({
1528
+ entityId: string;
1529
+ entityType: "trackedChange";
1530
+ kind: "entity";
1531
+ })>;
1532
+ removed?: Array<({
1533
+ entityId: string;
1534
+ entityType: "comment";
1535
+ kind: "entity";
1536
+ }) | ({
1537
+ entityId: string;
1538
+ entityType: "trackedChange";
1539
+ kind: "entity";
1540
+ })>;
1541
+ success: true;
1542
+ updated?: Array<({
1543
+ entityId: string;
1544
+ entityType: "comment";
1545
+ kind: "entity";
1546
+ }) | ({
1547
+ entityId: string;
1548
+ entityType: "trackedChange";
1549
+ kind: "entity";
1550
+ })>;
1551
+ };
1552
+ export type DocTrackChangesAcceptAllResult = {
1553
+ inserted?: Array<({
1554
+ entityId: string;
1555
+ entityType: "comment";
1556
+ kind: "entity";
1557
+ }) | ({
1558
+ entityId: string;
1559
+ entityType: "trackedChange";
1560
+ kind: "entity";
1561
+ })>;
1562
+ removed?: Array<({
1563
+ entityId: string;
1564
+ entityType: "comment";
1565
+ kind: "entity";
1566
+ }) | ({
1567
+ entityId: string;
1568
+ entityType: "trackedChange";
1569
+ kind: "entity";
1570
+ })>;
1571
+ success: true;
1572
+ updated?: Array<({
1573
+ entityId: string;
1574
+ entityType: "comment";
1575
+ kind: "entity";
1576
+ }) | ({
1577
+ entityId: string;
1578
+ entityType: "trackedChange";
1579
+ kind: "entity";
1580
+ })>;
1581
+ };
1582
+ export type DocTrackChangesRejectAllResult = {
1583
+ inserted?: Array<({
1584
+ entityId: string;
1585
+ entityType: "comment";
1586
+ kind: "entity";
1587
+ }) | ({
1588
+ entityId: string;
1589
+ entityType: "trackedChange";
1590
+ kind: "entity";
1591
+ })>;
1592
+ removed?: Array<({
1593
+ entityId: string;
1594
+ entityType: "comment";
1595
+ kind: "entity";
1596
+ }) | ({
1597
+ entityId: string;
1598
+ entityType: "trackedChange";
1599
+ kind: "entity";
1600
+ })>;
1601
+ success: true;
1602
+ updated?: Array<({
1603
+ entityId: string;
1604
+ entityType: "comment";
1605
+ kind: "entity";
1606
+ }) | ({
1607
+ entityId: string;
1608
+ entityType: "trackedChange";
1609
+ kind: "entity";
1610
+ })>;
1611
+ };
1612
+ export type DocOpenResult = {
1613
+ contextId: string;
1614
+ sessionType: string;
1615
+ document?: {
1616
+ path?: string;
1617
+ source?: string;
1618
+ revision?: number;
1619
+ };
1620
+ collaboration?: {
1621
+ documentId?: string;
1622
+ url?: string;
1623
+ };
1624
+ };
1625
+ export type DocSaveResult = {
1626
+ contextId: string;
1627
+ saved: boolean;
1628
+ inPlace?: boolean;
1629
+ document?: {
1630
+ path?: string;
1631
+ source?: string;
1632
+ revision?: number;
1633
+ };
1634
+ context?: {
1635
+ dirty?: boolean;
1636
+ revision?: number;
1637
+ lastSavedAt?: string;
1638
+ };
1639
+ output?: {
1640
+ path?: string;
1641
+ byteLength?: number;
1642
+ };
1643
+ };
1644
+ export type DocCloseResult = {
1645
+ contextId: string;
1646
+ closed: boolean;
1647
+ saved?: boolean;
1648
+ discarded?: boolean;
1649
+ defaultSessionCleared?: boolean;
1650
+ wasDirty?: boolean;
1651
+ document?: {
1652
+ path?: string;
1653
+ source?: string;
1654
+ revision?: number;
1655
+ };
1656
+ };
1657
+ export type DocStatusResult = {
1658
+ contextId: string;
1659
+ sessionType?: string;
1660
+ dirty?: boolean;
1661
+ revision?: number;
1662
+ document?: {
1663
+ path?: string;
1664
+ source?: string;
1665
+ };
1666
+ };
1667
+ export type DocDescribeResult = {
1668
+ contractVersion?: string;
1669
+ operations?: Array<{
1670
+ operationId?: string;
1671
+ command?: string;
1672
+ category?: string;
1673
+ description?: string;
1674
+ mutates?: boolean;
1675
+ }>;
1676
+ };
1677
+ export type DocDescribeCommandResult = {
1678
+ operationId?: string;
1679
+ command?: string;
1680
+ category?: string;
1681
+ description?: string;
1682
+ mutates?: boolean;
1683
+ params?: Array<unknown>;
1684
+ constraints?: unknown;
1685
+ };
1686
+ export type DocSessionListResult = {
1687
+ activeSessionId?: string;
1688
+ sessions?: Array<{
1689
+ sessionId?: string;
1690
+ sessionType?: string;
1691
+ dirty?: boolean;
1692
+ revision?: number;
1693
+ }>;
1694
+ total?: number;
1695
+ };
1696
+ export type DocSessionSaveResult = {
1697
+ sessionId: string;
1698
+ contextId?: string;
1699
+ saved?: boolean;
1700
+ inPlace?: boolean;
1701
+ document?: {
1702
+ path?: string;
1703
+ source?: string;
1704
+ revision?: number;
1705
+ };
1706
+ output?: {
1707
+ path?: string;
1708
+ byteLength?: number;
1709
+ };
1710
+ };
1711
+ export type DocSessionCloseResult = {
1712
+ sessionId: string;
1713
+ contextId?: string;
1714
+ closed?: boolean;
1715
+ saved?: boolean;
1716
+ discarded?: boolean;
1717
+ defaultSessionCleared?: boolean;
1718
+ wasDirty?: boolean;
1719
+ document?: {
1720
+ path?: string;
1721
+ source?: string;
1722
+ revision?: number;
1723
+ };
1724
+ };
1725
+ export type DocSessionSetDefaultResult = {
1726
+ activeSessionId: string;
1727
+ };
1728
+ export declare function createDocApi(runtime: SuperDocRuntime): {
1729
+ find: (params?: DocFindParams, options?: InvokeOptions) => Promise<DocFindResult>;
1730
+ getNode: (params?: DocGetNodeParams, options?: InvokeOptions) => Promise<DocGetNodeResult>;
1731
+ getNodeById: (params: DocGetNodeByIdParams, options?: InvokeOptions) => Promise<DocGetNodeByIdResult>;
1732
+ info: (params?: DocInfoParams, options?: InvokeOptions) => Promise<DocInfoResult>;
1733
+ insert: (params: DocInsertParams, options?: InvokeOptions) => Promise<DocInsertResult>;
1734
+ replace: (params: DocReplaceParams, options?: InvokeOptions) => Promise<DocReplaceResult>;
1735
+ delete: (params: DocDeleteParams, options?: InvokeOptions) => Promise<DocDeleteResult>;
1736
+ format: {
1737
+ bold: (params: DocFormatBoldParams, options?: InvokeOptions) => Promise<DocFormatBoldResult>;
1738
+ italic: (params: DocFormatItalicParams, options?: InvokeOptions) => Promise<DocFormatItalicResult>;
1739
+ underline: (params: DocFormatUnderlineParams, options?: InvokeOptions) => Promise<DocFormatUnderlineResult>;
1740
+ strikethrough: (params: DocFormatStrikethroughParams, options?: InvokeOptions) => Promise<DocFormatStrikethroughResult>;
1741
+ };
1742
+ create: {
1743
+ paragraph: (params?: DocCreateParagraphParams, options?: InvokeOptions) => Promise<DocCreateParagraphResult>;
1744
+ };
1745
+ lists: {
1746
+ list: (params?: DocListsListParams, options?: InvokeOptions) => Promise<DocListsListResult>;
1747
+ get: (params: DocListsGetParams, options?: InvokeOptions) => Promise<DocListsGetResult>;
1748
+ insert: (params?: DocListsInsertParams, options?: InvokeOptions) => Promise<DocListsInsertResult>;
1749
+ setType: (params?: DocListsSetTypeParams, options?: InvokeOptions) => Promise<DocListsSetTypeResult>;
1750
+ indent: (params?: DocListsIndentParams, options?: InvokeOptions) => Promise<DocListsIndentResult>;
1751
+ outdent: (params?: DocListsOutdentParams, options?: InvokeOptions) => Promise<DocListsOutdentResult>;
1752
+ restart: (params?: DocListsRestartParams, options?: InvokeOptions) => Promise<DocListsRestartResult>;
1753
+ exit: (params?: DocListsExitParams, options?: InvokeOptions) => Promise<DocListsExitResult>;
1754
+ };
1755
+ comments: {
1756
+ add: (params: DocCommentsAddParams, options?: InvokeOptions) => Promise<DocCommentsAddResult>;
1757
+ edit: (params: DocCommentsEditParams, options?: InvokeOptions) => Promise<DocCommentsEditResult>;
1758
+ reply: (params: DocCommentsReplyParams, options?: InvokeOptions) => Promise<DocCommentsReplyResult>;
1759
+ move: (params: DocCommentsMoveParams, options?: InvokeOptions) => Promise<DocCommentsMoveResult>;
1760
+ resolve: (params: DocCommentsResolveParams, options?: InvokeOptions) => Promise<DocCommentsResolveResult>;
1761
+ remove: (params: DocCommentsRemoveParams, options?: InvokeOptions) => Promise<DocCommentsRemoveResult>;
1762
+ setInternal: (params: DocCommentsSetInternalParams, options?: InvokeOptions) => Promise<DocCommentsSetInternalResult>;
1763
+ setActive: (params?: DocCommentsSetActiveParams, options?: InvokeOptions) => Promise<DocCommentsSetActiveResult>;
1764
+ goTo: (params: DocCommentsGoToParams, options?: InvokeOptions) => Promise<DocCommentsGoToResult>;
1765
+ get: (params: DocCommentsGetParams, options?: InvokeOptions) => Promise<DocCommentsGetResult>;
1766
+ list: (params?: DocCommentsListParams, options?: InvokeOptions) => Promise<DocCommentsListResult>;
1767
+ };
1768
+ trackChanges: {
1769
+ list: (params?: DocTrackChangesListParams, options?: InvokeOptions) => Promise<DocTrackChangesListResult>;
1770
+ get: (params: DocTrackChangesGetParams, options?: InvokeOptions) => Promise<DocTrackChangesGetResult>;
1771
+ accept: (params: DocTrackChangesAcceptParams, options?: InvokeOptions) => Promise<DocTrackChangesAcceptResult>;
1772
+ reject: (params: DocTrackChangesRejectParams, options?: InvokeOptions) => Promise<DocTrackChangesRejectResult>;
1773
+ acceptAll: (params?: DocTrackChangesAcceptAllParams, options?: InvokeOptions) => Promise<DocTrackChangesAcceptAllResult>;
1774
+ rejectAll: (params?: DocTrackChangesRejectAllParams, options?: InvokeOptions) => Promise<DocTrackChangesRejectAllResult>;
1775
+ };
1776
+ open: (params: DocOpenParams, options?: InvokeOptions) => Promise<DocOpenResult>;
1777
+ save: (params?: DocSaveParams, options?: InvokeOptions) => Promise<DocSaveResult>;
1778
+ close: (params?: DocCloseParams, options?: InvokeOptions) => Promise<DocCloseResult>;
1779
+ status: (params?: DocStatusParams, options?: InvokeOptions) => Promise<DocStatusResult>;
1780
+ describe: (params?: DocDescribeParams, options?: InvokeOptions) => Promise<DocDescribeResult>;
1781
+ describeCommand: (params: DocDescribeCommandParams, options?: InvokeOptions) => Promise<DocDescribeCommandResult>;
1782
+ session: {
1783
+ list: (params?: DocSessionListParams, options?: InvokeOptions) => Promise<DocSessionListResult>;
1784
+ save: (params: DocSessionSaveParams, options?: InvokeOptions) => Promise<DocSessionSaveResult>;
1785
+ close: (params: DocSessionCloseParams, options?: InvokeOptions) => Promise<DocSessionCloseResult>;
1786
+ setDefault: (params: DocSessionSetDefaultParams, options?: InvokeOptions) => Promise<DocSessionSetDefaultResult>;
1787
+ };
1788
+ };
1789
+ export type SuperDocDocApi = ReturnType<typeof createDocApi>;
1790
+ //# sourceMappingURL=client.d.ts.map