@superdoc-dev/sdk 1.0.0-alpha.46 → 1.0.0-alpha.48

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.
@@ -156,9 +156,37 @@ export interface DocReplaceParams {
156
156
  kind: "block";
157
157
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
158
158
  nodeId: string;
159
+ }) | ({
160
+ kind: "selection";
161
+ start: ({
162
+ kind: "text";
163
+ blockId: string;
164
+ offset: number;
165
+ }) | ({
166
+ kind: "nodeEdge";
167
+ node: {
168
+ kind: "block";
169
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
170
+ nodeId: string;
171
+ };
172
+ edge: "before" | "after";
173
+ });
174
+ end: ({
175
+ kind: "text";
176
+ blockId: string;
177
+ offset: number;
178
+ }) | ({
179
+ kind: "nodeEdge";
180
+ node: {
181
+ kind: "block";
182
+ nodeType: "paragraph" | "heading" | "table" | "tableOfContents" | "sdt" | "image";
183
+ nodeId: string;
184
+ };
185
+ edge: "before" | "after";
186
+ });
159
187
  });
160
188
  text?: string;
161
- ref?: string;
189
+ ref?: string | string;
162
190
  content?: Record<string, unknown> | Array<Record<string, unknown>>;
163
191
  nestingPolicy?: {
164
192
  tables?: "forbid" | "allow";
@@ -3381,6 +3409,58 @@ export interface DocFormatParagraphClearShadingParams {
3381
3409
  start?: number;
3382
3410
  end?: number;
3383
3411
  }
3412
+ export interface DocFormatParagraphSetDirectionParams {
3413
+ doc?: string;
3414
+ sessionId?: string;
3415
+ out?: string;
3416
+ force?: boolean;
3417
+ expectedRevision?: number;
3418
+ changeMode?: string;
3419
+ dryRun?: boolean;
3420
+ target?: ({
3421
+ kind: "block";
3422
+ nodeType: "paragraph";
3423
+ nodeId: string;
3424
+ }) | ({
3425
+ kind: "block";
3426
+ nodeType: "heading";
3427
+ nodeId: string;
3428
+ }) | ({
3429
+ kind: "block";
3430
+ nodeType: "listItem";
3431
+ nodeId: string;
3432
+ });
3433
+ direction?: string;
3434
+ alignmentPolicy?: string;
3435
+ blockId?: string;
3436
+ start?: number;
3437
+ end?: number;
3438
+ }
3439
+ export interface DocFormatParagraphClearDirectionParams {
3440
+ doc?: string;
3441
+ sessionId?: string;
3442
+ out?: string;
3443
+ force?: boolean;
3444
+ expectedRevision?: number;
3445
+ changeMode?: string;
3446
+ dryRun?: boolean;
3447
+ target?: ({
3448
+ kind: "block";
3449
+ nodeType: "paragraph";
3450
+ nodeId: string;
3451
+ }) | ({
3452
+ kind: "block";
3453
+ nodeType: "heading";
3454
+ nodeId: string;
3455
+ }) | ({
3456
+ kind: "block";
3457
+ nodeType: "listItem";
3458
+ nodeId: string;
3459
+ });
3460
+ blockId?: string;
3461
+ start?: number;
3462
+ end?: number;
3463
+ }
3384
3464
  export interface DocListsListParams {
3385
3465
  doc?: string;
3386
3466
  sessionId?: string;
@@ -3455,6 +3535,32 @@ export interface DocListsCreateParams {
3455
3535
  });
3456
3536
  kind?: string;
3457
3537
  level?: number;
3538
+ preset?: string;
3539
+ style?: {
3540
+ version: 1;
3541
+ levels: Array<{
3542
+ level: number;
3543
+ numFmt?: string;
3544
+ lvlText?: string;
3545
+ start?: number;
3546
+ alignment?: "left" | "center" | "right";
3547
+ indents?: {
3548
+ left?: number;
3549
+ hanging?: number;
3550
+ firstLine?: number;
3551
+ };
3552
+ trailingCharacter?: "tab" | "space" | "nothing";
3553
+ markerFont?: string;
3554
+ pictureBulletId?: number;
3555
+ tabStopAt?: unknown;
3556
+ }>;
3557
+ };
3558
+ sequence?: ({
3559
+ mode: "new";
3560
+ startAt?: number;
3561
+ }) | ({
3562
+ mode: "continuePrevious";
3563
+ });
3458
3564
  input?: Record<string, unknown> | unknown[];
3459
3565
  }
3460
3566
  export interface DocListsAttachParams {
@@ -3894,6 +4000,135 @@ export interface DocListsClearLevelOverridesParams {
3894
4000
  level?: number;
3895
4001
  input?: Record<string, unknown> | unknown[];
3896
4002
  }
4003
+ export interface DocListsGetStyleParams {
4004
+ doc?: string;
4005
+ sessionId?: string;
4006
+ target: {
4007
+ kind: "block";
4008
+ nodeType: "listItem";
4009
+ nodeId: string;
4010
+ };
4011
+ levels?: Array<number>;
4012
+ }
4013
+ export interface DocListsApplyStyleParams {
4014
+ doc?: string;
4015
+ sessionId?: string;
4016
+ out?: string;
4017
+ force?: boolean;
4018
+ expectedRevision?: number;
4019
+ changeMode?: string;
4020
+ dryRun?: boolean;
4021
+ target: {
4022
+ kind: "block";
4023
+ nodeType: "listItem";
4024
+ nodeId: string;
4025
+ };
4026
+ style: {
4027
+ version: 1;
4028
+ levels: Array<{
4029
+ level: number;
4030
+ numFmt?: string;
4031
+ lvlText?: string;
4032
+ start?: number;
4033
+ alignment?: "left" | "center" | "right";
4034
+ indents?: {
4035
+ left?: number;
4036
+ hanging?: number;
4037
+ firstLine?: number;
4038
+ };
4039
+ trailingCharacter?: "tab" | "space" | "nothing";
4040
+ markerFont?: string;
4041
+ pictureBulletId?: number;
4042
+ tabStopAt?: unknown;
4043
+ }>;
4044
+ };
4045
+ levels?: Array<number>;
4046
+ }
4047
+ export interface DocListsRestartAtParams {
4048
+ doc?: string;
4049
+ sessionId?: string;
4050
+ out?: string;
4051
+ force?: boolean;
4052
+ expectedRevision?: number;
4053
+ changeMode?: string;
4054
+ dryRun?: boolean;
4055
+ target: {
4056
+ kind: "block";
4057
+ nodeType: "listItem";
4058
+ nodeId: string;
4059
+ };
4060
+ startAt: number;
4061
+ }
4062
+ export interface DocListsSetLevelNumberStyleParams {
4063
+ doc?: string;
4064
+ sessionId?: string;
4065
+ out?: string;
4066
+ force?: boolean;
4067
+ expectedRevision?: number;
4068
+ changeMode?: string;
4069
+ dryRun?: boolean;
4070
+ target: {
4071
+ kind: "block";
4072
+ nodeType: "listItem";
4073
+ nodeId: string;
4074
+ };
4075
+ level: number;
4076
+ numberStyle: string;
4077
+ }
4078
+ export interface DocListsSetLevelTextParams {
4079
+ doc?: string;
4080
+ sessionId?: string;
4081
+ out?: string;
4082
+ force?: boolean;
4083
+ expectedRevision?: number;
4084
+ changeMode?: string;
4085
+ dryRun?: boolean;
4086
+ target: {
4087
+ kind: "block";
4088
+ nodeType: "listItem";
4089
+ nodeId: string;
4090
+ };
4091
+ level: number;
4092
+ text: string;
4093
+ }
4094
+ export interface DocListsSetLevelStartParams {
4095
+ doc?: string;
4096
+ sessionId?: string;
4097
+ out?: string;
4098
+ force?: boolean;
4099
+ expectedRevision?: number;
4100
+ changeMode?: string;
4101
+ dryRun?: boolean;
4102
+ target: {
4103
+ kind: "block";
4104
+ nodeType: "listItem";
4105
+ nodeId: string;
4106
+ };
4107
+ level: number;
4108
+ startAt: number;
4109
+ }
4110
+ export interface DocListsSetLevelLayoutParams {
4111
+ doc?: string;
4112
+ sessionId?: string;
4113
+ out?: string;
4114
+ force?: boolean;
4115
+ expectedRevision?: number;
4116
+ changeMode?: string;
4117
+ dryRun?: boolean;
4118
+ target: {
4119
+ kind: "block";
4120
+ nodeType: "listItem";
4121
+ nodeId: string;
4122
+ };
4123
+ level: number;
4124
+ layout: {
4125
+ alignment?: "left" | "center" | "right";
4126
+ alignedAt?: number;
4127
+ textIndentAt?: number;
4128
+ followCharacter?: "tab" | "space" | "nothing";
4129
+ tabStopAt?: unknown;
4130
+ };
4131
+ }
3897
4132
  export interface DocCommentsCreateParams {
3898
4133
  doc?: string;
3899
4134
  sessionId?: string;
@@ -4867,7 +5102,7 @@ export interface DocTablesDeleteParams {
4867
5102
  dryRun?: boolean;
4868
5103
  target?: {
4869
5104
  kind: "block";
4870
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5105
+ nodeType: "table";
4871
5106
  nodeId: string;
4872
5107
  };
4873
5108
  nodeId?: string;
@@ -4882,7 +5117,7 @@ export interface DocTablesClearContentsParams {
4882
5117
  dryRun?: boolean;
4883
5118
  target?: {
4884
5119
  kind: "block";
4885
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5120
+ nodeType: "table";
4886
5121
  nodeId: string;
4887
5122
  };
4888
5123
  nodeId?: string;
@@ -4897,7 +5132,7 @@ export interface DocTablesMoveParams {
4897
5132
  dryRun?: boolean;
4898
5133
  target?: {
4899
5134
  kind: "block";
4900
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5135
+ nodeType: "table";
4901
5136
  nodeId: string;
4902
5137
  };
4903
5138
  nodeId?: string;
@@ -4937,11 +5172,11 @@ export interface DocTablesSplitParams {
4937
5172
  dryRun?: boolean;
4938
5173
  target?: {
4939
5174
  kind: "block";
4940
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5175
+ nodeType: "table";
4941
5176
  nodeId: string;
4942
5177
  };
4943
5178
  nodeId?: string;
4944
- atRowIndex: number;
5179
+ rowIndex: number;
4945
5180
  }
4946
5181
  export interface DocTablesConvertToTextParams {
4947
5182
  doc?: string;
@@ -4953,7 +5188,7 @@ export interface DocTablesConvertToTextParams {
4953
5188
  dryRun?: boolean;
4954
5189
  target?: {
4955
5190
  kind: "block";
4956
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5191
+ nodeType: "table";
4957
5192
  nodeId: string;
4958
5193
  };
4959
5194
  nodeId?: string;
@@ -4969,7 +5204,7 @@ export interface DocTablesSetLayoutParams {
4969
5204
  dryRun?: boolean;
4970
5205
  target?: {
4971
5206
  kind: "block";
4972
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5207
+ nodeType: "table";
4973
5208
  nodeId: string;
4974
5209
  };
4975
5210
  nodeId?: string;
@@ -4987,21 +5222,19 @@ export interface DocTablesInsertRowParams {
4987
5222
  expectedRevision?: number;
4988
5223
  changeMode?: string;
4989
5224
  dryRun?: boolean;
4990
- target?: {
5225
+ target?: ({
4991
5226
  kind: "block";
4992
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5227
+ nodeType: "tableRow";
4993
5228
  nodeId: string;
4994
- };
4995
- nodeId?: string;
4996
- tableTarget?: {
5229
+ }) | ({
4997
5230
  kind: "block";
4998
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5231
+ nodeType: "table";
4999
5232
  nodeId: string;
5000
- };
5001
- tableNodeId?: string;
5002
- rowIndex?: number;
5233
+ });
5003
5234
  position: string;
5004
5235
  count?: number;
5236
+ rowIndex?: number;
5237
+ nodeId?: string;
5005
5238
  }
5006
5239
  export interface DocTablesDeleteRowParams {
5007
5240
  doc?: string;
@@ -5011,19 +5244,17 @@ export interface DocTablesDeleteRowParams {
5011
5244
  expectedRevision?: number;
5012
5245
  changeMode?: string;
5013
5246
  dryRun?: boolean;
5014
- target?: {
5247
+ target?: ({
5015
5248
  kind: "block";
5016
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5249
+ nodeType: "tableRow";
5017
5250
  nodeId: string;
5018
- };
5019
- nodeId?: string;
5020
- tableTarget?: {
5251
+ }) | ({
5021
5252
  kind: "block";
5022
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5253
+ nodeType: "table";
5023
5254
  nodeId: string;
5024
- };
5025
- tableNodeId?: string;
5255
+ });
5026
5256
  rowIndex?: number;
5257
+ nodeId?: string;
5027
5258
  }
5028
5259
  export interface DocTablesSetRowHeightParams {
5029
5260
  doc?: string;
@@ -5033,21 +5264,19 @@ export interface DocTablesSetRowHeightParams {
5033
5264
  expectedRevision?: number;
5034
5265
  changeMode?: string;
5035
5266
  dryRun?: boolean;
5036
- target?: {
5267
+ target?: ({
5037
5268
  kind: "block";
5038
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5269
+ nodeType: "tableRow";
5039
5270
  nodeId: string;
5040
- };
5041
- nodeId?: string;
5042
- tableTarget?: {
5271
+ }) | ({
5043
5272
  kind: "block";
5044
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5273
+ nodeType: "table";
5045
5274
  nodeId: string;
5046
- };
5047
- tableNodeId?: string;
5048
- rowIndex?: number;
5275
+ });
5049
5276
  heightPt: number;
5050
5277
  rule: string;
5278
+ rowIndex?: number;
5279
+ nodeId?: string;
5051
5280
  }
5052
5281
  export interface DocTablesDistributeRowsParams {
5053
5282
  doc?: string;
@@ -5059,7 +5288,7 @@ export interface DocTablesDistributeRowsParams {
5059
5288
  dryRun?: boolean;
5060
5289
  target?: {
5061
5290
  kind: "block";
5062
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5291
+ nodeType: "table";
5063
5292
  nodeId: string;
5064
5293
  };
5065
5294
  nodeId?: string;
@@ -5072,21 +5301,19 @@ export interface DocTablesSetRowOptionsParams {
5072
5301
  expectedRevision?: number;
5073
5302
  changeMode?: string;
5074
5303
  dryRun?: boolean;
5075
- target?: {
5304
+ target?: ({
5076
5305
  kind: "block";
5077
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5306
+ nodeType: "tableRow";
5078
5307
  nodeId: string;
5079
- };
5080
- nodeId?: string;
5081
- tableTarget?: {
5308
+ }) | ({
5082
5309
  kind: "block";
5083
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5310
+ nodeType: "table";
5084
5311
  nodeId: string;
5085
- };
5086
- tableNodeId?: string;
5087
- rowIndex?: number;
5312
+ });
5088
5313
  allowBreakAcrossPages?: boolean;
5089
5314
  repeatHeader?: boolean;
5315
+ rowIndex?: number;
5316
+ nodeId?: string;
5090
5317
  }
5091
5318
  export interface DocTablesInsertColumnParams {
5092
5319
  doc?: string;
@@ -5096,12 +5323,12 @@ export interface DocTablesInsertColumnParams {
5096
5323
  expectedRevision?: number;
5097
5324
  changeMode?: string;
5098
5325
  dryRun?: boolean;
5099
- tableTarget?: {
5326
+ target?: {
5100
5327
  kind: "block";
5101
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5328
+ nodeType: "table";
5102
5329
  nodeId: string;
5103
5330
  };
5104
- tableNodeId?: string;
5331
+ nodeId?: string;
5105
5332
  columnIndex: number;
5106
5333
  position: string;
5107
5334
  count?: number;
@@ -5114,12 +5341,12 @@ export interface DocTablesDeleteColumnParams {
5114
5341
  expectedRevision?: number;
5115
5342
  changeMode?: string;
5116
5343
  dryRun?: boolean;
5117
- tableTarget?: {
5344
+ target?: {
5118
5345
  kind: "block";
5119
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5346
+ nodeType: "table";
5120
5347
  nodeId: string;
5121
5348
  };
5122
- tableNodeId?: string;
5349
+ nodeId?: string;
5123
5350
  columnIndex: number;
5124
5351
  }
5125
5352
  export interface DocTablesSetColumnWidthParams {
@@ -5130,12 +5357,12 @@ export interface DocTablesSetColumnWidthParams {
5130
5357
  expectedRevision?: number;
5131
5358
  changeMode?: string;
5132
5359
  dryRun?: boolean;
5133
- tableTarget?: {
5360
+ target?: {
5134
5361
  kind: "block";
5135
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5362
+ nodeType: "table";
5136
5363
  nodeId: string;
5137
5364
  };
5138
- tableNodeId?: string;
5365
+ nodeId?: string;
5139
5366
  columnIndex: number;
5140
5367
  widthPt: number;
5141
5368
  }
@@ -5149,7 +5376,7 @@ export interface DocTablesDistributeColumnsParams {
5149
5376
  dryRun?: boolean;
5150
5377
  target?: {
5151
5378
  kind: "block";
5152
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5379
+ nodeType: "table";
5153
5380
  nodeId: string;
5154
5381
  };
5155
5382
  nodeId?: string;
@@ -5168,7 +5395,7 @@ export interface DocTablesInsertCellParams {
5168
5395
  dryRun?: boolean;
5169
5396
  target?: {
5170
5397
  kind: "block";
5171
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5398
+ nodeType: "tableCell";
5172
5399
  nodeId: string;
5173
5400
  };
5174
5401
  nodeId?: string;
@@ -5184,7 +5411,7 @@ export interface DocTablesDeleteCellParams {
5184
5411
  dryRun?: boolean;
5185
5412
  target?: {
5186
5413
  kind: "block";
5187
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5414
+ nodeType: "tableCell";
5188
5415
  nodeId: string;
5189
5416
  };
5190
5417
  nodeId?: string;
@@ -5198,12 +5425,12 @@ export interface DocTablesMergeCellsParams {
5198
5425
  expectedRevision?: number;
5199
5426
  changeMode?: string;
5200
5427
  dryRun?: boolean;
5201
- tableTarget?: {
5428
+ target?: {
5202
5429
  kind: "block";
5203
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5430
+ nodeType: "table";
5204
5431
  nodeId: string;
5205
5432
  };
5206
- tableNodeId?: string;
5433
+ nodeId?: string;
5207
5434
  start: {
5208
5435
  rowIndex: number;
5209
5436
  columnIndex: number;
@@ -5221,12 +5448,18 @@ export interface DocTablesUnmergeCellsParams {
5221
5448
  expectedRevision?: number;
5222
5449
  changeMode?: string;
5223
5450
  dryRun?: boolean;
5224
- target?: {
5451
+ target?: ({
5225
5452
  kind: "block";
5226
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5453
+ nodeType: "tableCell";
5227
5454
  nodeId: string;
5228
- };
5455
+ }) | ({
5456
+ kind: "block";
5457
+ nodeType: "table";
5458
+ nodeId: string;
5459
+ });
5229
5460
  nodeId?: string;
5461
+ rowIndex?: number;
5462
+ columnIndex?: number;
5230
5463
  }
5231
5464
  export interface DocTablesSplitCellParams {
5232
5465
  doc?: string;
@@ -5238,7 +5471,7 @@ export interface DocTablesSplitCellParams {
5238
5471
  dryRun?: boolean;
5239
5472
  target?: {
5240
5473
  kind: "block";
5241
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5474
+ nodeType: "tableCell";
5242
5475
  nodeId: string;
5243
5476
  };
5244
5477
  nodeId?: string;
@@ -5255,7 +5488,7 @@ export interface DocTablesSetCellPropertiesParams {
5255
5488
  dryRun?: boolean;
5256
5489
  target?: {
5257
5490
  kind: "block";
5258
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5491
+ nodeType: "tableCell";
5259
5492
  nodeId: string;
5260
5493
  };
5261
5494
  nodeId?: string;
@@ -5274,7 +5507,7 @@ export interface DocTablesSortParams {
5274
5507
  dryRun?: boolean;
5275
5508
  target?: {
5276
5509
  kind: "block";
5277
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5510
+ nodeType: "table";
5278
5511
  nodeId: string;
5279
5512
  };
5280
5513
  nodeId?: string;
@@ -5294,7 +5527,7 @@ export interface DocTablesSetAltTextParams {
5294
5527
  dryRun?: boolean;
5295
5528
  target?: {
5296
5529
  kind: "block";
5297
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5530
+ nodeType: "table";
5298
5531
  nodeId: string;
5299
5532
  };
5300
5533
  nodeId?: string;
@@ -5311,7 +5544,7 @@ export interface DocTablesSetStyleParams {
5311
5544
  dryRun?: boolean;
5312
5545
  target?: {
5313
5546
  kind: "block";
5314
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5547
+ nodeType: "table";
5315
5548
  nodeId: string;
5316
5549
  };
5317
5550
  nodeId?: string;
@@ -5327,7 +5560,7 @@ export interface DocTablesClearStyleParams {
5327
5560
  dryRun?: boolean;
5328
5561
  target?: {
5329
5562
  kind: "block";
5330
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5563
+ nodeType: "table";
5331
5564
  nodeId: string;
5332
5565
  };
5333
5566
  nodeId?: string;
@@ -5342,7 +5575,7 @@ export interface DocTablesSetStyleOptionParams {
5342
5575
  dryRun?: boolean;
5343
5576
  target?: {
5344
5577
  kind: "block";
5345
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5578
+ nodeType: "table";
5346
5579
  nodeId: string;
5347
5580
  };
5348
5581
  nodeId?: string;
@@ -5359,7 +5592,7 @@ export interface DocTablesSetBorderParams {
5359
5592
  dryRun?: boolean;
5360
5593
  target?: {
5361
5594
  kind: "block";
5362
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5595
+ nodeType: "table" | "tableCell";
5363
5596
  nodeId: string;
5364
5597
  };
5365
5598
  nodeId?: string;
@@ -5378,7 +5611,7 @@ export interface DocTablesClearBorderParams {
5378
5611
  dryRun?: boolean;
5379
5612
  target?: {
5380
5613
  kind: "block";
5381
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5614
+ nodeType: "table" | "tableCell";
5382
5615
  nodeId: string;
5383
5616
  };
5384
5617
  nodeId?: string;
@@ -5394,7 +5627,7 @@ export interface DocTablesApplyBorderPresetParams {
5394
5627
  dryRun?: boolean;
5395
5628
  target?: {
5396
5629
  kind: "block";
5397
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5630
+ nodeType: "table";
5398
5631
  nodeId: string;
5399
5632
  };
5400
5633
  nodeId?: string;
@@ -5410,7 +5643,7 @@ export interface DocTablesSetShadingParams {
5410
5643
  dryRun?: boolean;
5411
5644
  target?: {
5412
5645
  kind: "block";
5413
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5646
+ nodeType: "table" | "tableCell";
5414
5647
  nodeId: string;
5415
5648
  };
5416
5649
  nodeId?: string;
@@ -5426,7 +5659,7 @@ export interface DocTablesClearShadingParams {
5426
5659
  dryRun?: boolean;
5427
5660
  target?: {
5428
5661
  kind: "block";
5429
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5662
+ nodeType: "table" | "tableCell";
5430
5663
  nodeId: string;
5431
5664
  };
5432
5665
  nodeId?: string;
@@ -5441,7 +5674,7 @@ export interface DocTablesSetTablePaddingParams {
5441
5674
  dryRun?: boolean;
5442
5675
  target?: {
5443
5676
  kind: "block";
5444
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5677
+ nodeType: "table";
5445
5678
  nodeId: string;
5446
5679
  };
5447
5680
  nodeId?: string;
@@ -5460,7 +5693,7 @@ export interface DocTablesSetCellPaddingParams {
5460
5693
  dryRun?: boolean;
5461
5694
  target?: {
5462
5695
  kind: "block";
5463
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5696
+ nodeType: "tableCell";
5464
5697
  nodeId: string;
5465
5698
  };
5466
5699
  nodeId?: string;
@@ -5479,13 +5712,28 @@ export interface DocTablesSetCellSpacingParams {
5479
5712
  dryRun?: boolean;
5480
5713
  target?: {
5481
5714
  kind: "block";
5482
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5715
+ nodeType: "table";
5483
5716
  nodeId: string;
5484
5717
  };
5485
5718
  nodeId?: string;
5486
5719
  spacingPt: number;
5487
5720
  }
5488
5721
  export interface DocTablesClearCellSpacingParams {
5722
+ doc?: string;
5723
+ sessionId?: string;
5724
+ out?: string;
5725
+ force?: boolean;
5726
+ expectedRevision?: number;
5727
+ changeMode?: string;
5728
+ dryRun?: boolean;
5729
+ target?: {
5730
+ kind: "block";
5731
+ nodeType: "table";
5732
+ nodeId: string;
5733
+ };
5734
+ nodeId?: string;
5735
+ }
5736
+ export interface DocTablesApplyStyleParams {
5489
5737
  doc?: string;
5490
5738
  sessionId?: string;
5491
5739
  out?: string;
@@ -5499,26 +5747,112 @@ export interface DocTablesClearCellSpacingParams {
5499
5747
  nodeId: string;
5500
5748
  };
5501
5749
  nodeId?: string;
5750
+ styleId?: string;
5751
+ styleOptions?: {
5752
+ headerRow?: boolean;
5753
+ lastRow?: boolean;
5754
+ totalRow?: boolean;
5755
+ firstColumn?: boolean;
5756
+ lastColumn?: boolean;
5757
+ bandedRows?: boolean;
5758
+ bandedColumns?: boolean;
5759
+ };
5502
5760
  }
5503
- export interface DocTablesGetParams {
5761
+ export interface DocTablesSetBordersParams {
5504
5762
  doc?: string;
5505
5763
  sessionId?: string;
5764
+ out?: string;
5765
+ force?: boolean;
5766
+ expectedRevision?: number;
5767
+ changeMode?: string;
5768
+ dryRun?: boolean;
5506
5769
  target?: {
5507
5770
  kind: "block";
5508
5771
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5509
5772
  nodeId: string;
5510
5773
  };
5511
5774
  nodeId?: string;
5775
+ mode: string;
5776
+ applyTo?: string;
5777
+ border?: ({
5778
+ lineStyle: string;
5779
+ lineWeightPt: number;
5780
+ color: string;
5781
+ }) | unknown;
5782
+ edges?: {
5783
+ top?: ({
5784
+ lineStyle: string;
5785
+ lineWeightPt: number;
5786
+ color: string;
5787
+ }) | unknown;
5788
+ bottom?: ({
5789
+ lineStyle: string;
5790
+ lineWeightPt: number;
5791
+ color: string;
5792
+ }) | unknown;
5793
+ left?: ({
5794
+ lineStyle: string;
5795
+ lineWeightPt: number;
5796
+ color: string;
5797
+ }) | unknown;
5798
+ right?: ({
5799
+ lineStyle: string;
5800
+ lineWeightPt: number;
5801
+ color: string;
5802
+ }) | unknown;
5803
+ insideH?: ({
5804
+ lineStyle: string;
5805
+ lineWeightPt: number;
5806
+ color: string;
5807
+ }) | unknown;
5808
+ insideV?: ({
5809
+ lineStyle: string;
5810
+ lineWeightPt: number;
5811
+ color: string;
5812
+ }) | unknown;
5813
+ };
5512
5814
  }
5513
- export interface DocTablesGetCellsParams {
5815
+ export interface DocTablesSetTableOptionsParams {
5514
5816
  doc?: string;
5515
5817
  sessionId?: string;
5818
+ out?: string;
5819
+ force?: boolean;
5820
+ expectedRevision?: number;
5821
+ changeMode?: string;
5822
+ dryRun?: boolean;
5516
5823
  target?: {
5517
5824
  kind: "block";
5518
5825
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5519
5826
  nodeId: string;
5520
5827
  };
5521
5828
  nodeId?: string;
5829
+ defaultCellMargins?: {
5830
+ topPt: number;
5831
+ rightPt: number;
5832
+ bottomPt: number;
5833
+ leftPt: number;
5834
+ };
5835
+ cellSpacingPt?: number | unknown;
5836
+ }
5837
+ export interface DocTablesGetParams {
5838
+ doc?: string;
5839
+ sessionId?: string;
5840
+ target?: {
5841
+ kind: "block";
5842
+ nodeType: "table";
5843
+ nodeId: string;
5844
+ };
5845
+ nodeId?: string;
5846
+ }
5847
+ export interface DocTablesGetCellsParams {
5848
+ doc?: string;
5849
+ sessionId?: string;
5850
+ target?: {
5851
+ kind: "block";
5852
+ nodeType: "table";
5853
+ nodeId: string;
5854
+ };
5855
+ nodeId?: string;
5522
5856
  rowIndex?: number;
5523
5857
  columnIndex?: number;
5524
5858
  }
@@ -5527,7 +5861,7 @@ export interface DocTablesGetPropertiesParams {
5527
5861
  sessionId?: string;
5528
5862
  target?: {
5529
5863
  kind: "block";
5530
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
5864
+ nodeType: "table";
5531
5865
  nodeId: string;
5532
5866
  };
5533
5867
  nodeId?: string;
@@ -8424,11 +8758,16 @@ export type DocInfoResult = {
8424
8758
  canReplace: boolean;
8425
8759
  };
8426
8760
  counts: {
8761
+ characters: number;
8427
8762
  comments: number;
8428
8763
  headings: number;
8429
8764
  images: number;
8765
+ lists: number;
8766
+ pages?: number;
8430
8767
  paragraphs: number;
8768
+ sdtFields: number;
8431
8769
  tables: number;
8770
+ trackedChanges: number;
8432
8771
  words: number;
8433
8772
  };
8434
8773
  outline: Array<{
@@ -9014,6 +9353,20 @@ export type DocFormatParagraphClearShadingResult = {
9014
9353
  success: true;
9015
9354
  target: unknown | unknown | unknown;
9016
9355
  };
9356
+ export type DocFormatParagraphSetDirectionResult = {
9357
+ resolution: {
9358
+ target: unknown | unknown | unknown;
9359
+ };
9360
+ success: true;
9361
+ target: unknown | unknown | unknown;
9362
+ };
9363
+ export type DocFormatParagraphClearDirectionResult = {
9364
+ resolution: {
9365
+ target: unknown | unknown | unknown;
9366
+ };
9367
+ success: true;
9368
+ target: unknown | unknown | unknown;
9369
+ };
9017
9370
  export type DocListsListResult = {
9018
9371
  evaluatedRevision: string;
9019
9372
  items: Array<{
@@ -9172,6 +9525,52 @@ export type DocListsClearLevelOverridesResult = {
9172
9525
  item: unknown;
9173
9526
  success: true;
9174
9527
  };
9528
+ export type DocListsGetStyleResult = {
9529
+ style: {
9530
+ levels: Array<{
9531
+ alignment?: "left" | "center" | "right";
9532
+ indents?: {
9533
+ firstLine?: number;
9534
+ hanging?: number;
9535
+ left?: number;
9536
+ };
9537
+ level: number;
9538
+ lvlText?: string;
9539
+ markerFont?: string;
9540
+ numFmt?: string;
9541
+ pictureBulletId?: number;
9542
+ start?: number;
9543
+ tabStopAt?: unknown;
9544
+ trailingCharacter?: "tab" | "space" | "nothing";
9545
+ }>;
9546
+ version: 1;
9547
+ };
9548
+ success: true;
9549
+ };
9550
+ export type DocListsApplyStyleResult = {
9551
+ item: unknown;
9552
+ success: true;
9553
+ };
9554
+ export type DocListsRestartAtResult = {
9555
+ item: unknown;
9556
+ success: true;
9557
+ };
9558
+ export type DocListsSetLevelNumberStyleResult = {
9559
+ item: unknown;
9560
+ success: true;
9561
+ };
9562
+ export type DocListsSetLevelTextResult = {
9563
+ item: unknown;
9564
+ success: true;
9565
+ };
9566
+ export type DocListsSetLevelStartResult = {
9567
+ item: unknown;
9568
+ success: true;
9569
+ };
9570
+ export type DocListsSetLevelLayoutResult = {
9571
+ item: unknown;
9572
+ success: true;
9573
+ };
9175
9574
  export type DocCommentsCreateResult = unknown;
9176
9575
  export type DocCommentsPatchResult = unknown;
9177
9576
  export type DocCommentsDeleteResult = unknown;
@@ -10547,6 +10946,12 @@ export type DocCapabilitiesGetResult = {
10547
10946
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
10548
10947
  tracked: boolean;
10549
10948
  };
10949
+ "format.paragraph.clearDirection": {
10950
+ available: boolean;
10951
+ dryRun: boolean;
10952
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
10953
+ tracked: boolean;
10954
+ };
10550
10955
  "format.paragraph.clearIndentation": {
10551
10956
  available: boolean;
10552
10957
  dryRun: boolean;
@@ -10589,6 +10994,12 @@ export type DocCapabilitiesGetResult = {
10589
10994
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
10590
10995
  tracked: boolean;
10591
10996
  };
10997
+ "format.paragraph.setDirection": {
10998
+ available: boolean;
10999
+ dryRun: boolean;
11000
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11001
+ tracked: boolean;
11002
+ };
10592
11003
  "format.paragraph.setFlowOptions": {
10593
11004
  available: boolean;
10594
11005
  dryRun: boolean;
@@ -11111,6 +11522,12 @@ export type DocCapabilitiesGetResult = {
11111
11522
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11112
11523
  tracked: boolean;
11113
11524
  };
11525
+ "lists.applyStyle": {
11526
+ available: boolean;
11527
+ dryRun: boolean;
11528
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11529
+ tracked: boolean;
11530
+ };
11114
11531
  "lists.applyTemplate": {
11115
11532
  available: boolean;
11116
11533
  dryRun: boolean;
@@ -11177,6 +11594,12 @@ export type DocCapabilitiesGetResult = {
11177
11594
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11178
11595
  tracked: boolean;
11179
11596
  };
11597
+ "lists.getStyle": {
11598
+ available: boolean;
11599
+ dryRun: boolean;
11600
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11601
+ tracked: boolean;
11602
+ };
11180
11603
  "lists.indent": {
11181
11604
  available: boolean;
11182
11605
  dryRun: boolean;
@@ -11207,6 +11630,12 @@ export type DocCapabilitiesGetResult = {
11207
11630
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11208
11631
  tracked: boolean;
11209
11632
  };
11633
+ "lists.restartAt": {
11634
+ available: boolean;
11635
+ dryRun: boolean;
11636
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11637
+ tracked: boolean;
11638
+ };
11210
11639
  "lists.separate": {
11211
11640
  available: boolean;
11212
11641
  dryRun: boolean;
@@ -11237,6 +11666,12 @@ export type DocCapabilitiesGetResult = {
11237
11666
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11238
11667
  tracked: boolean;
11239
11668
  };
11669
+ "lists.setLevelLayout": {
11670
+ available: boolean;
11671
+ dryRun: boolean;
11672
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11673
+ tracked: boolean;
11674
+ };
11240
11675
  "lists.setLevelMarkerFont": {
11241
11676
  available: boolean;
11242
11677
  dryRun: boolean;
@@ -11249,6 +11684,12 @@ export type DocCapabilitiesGetResult = {
11249
11684
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11250
11685
  tracked: boolean;
11251
11686
  };
11687
+ "lists.setLevelNumberStyle": {
11688
+ available: boolean;
11689
+ dryRun: boolean;
11690
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11691
+ tracked: boolean;
11692
+ };
11252
11693
  "lists.setLevelPictureBullet": {
11253
11694
  available: boolean;
11254
11695
  dryRun: boolean;
@@ -11261,6 +11702,18 @@ export type DocCapabilitiesGetResult = {
11261
11702
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11262
11703
  tracked: boolean;
11263
11704
  };
11705
+ "lists.setLevelStart": {
11706
+ available: boolean;
11707
+ dryRun: boolean;
11708
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11709
+ tracked: boolean;
11710
+ };
11711
+ "lists.setLevelText": {
11712
+ available: boolean;
11713
+ dryRun: boolean;
11714
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11715
+ tracked: boolean;
11716
+ };
11264
11717
  "lists.setLevelTrailingCharacter": {
11265
11718
  available: boolean;
11266
11719
  dryRun: boolean;
@@ -11447,6 +11900,12 @@ export type DocCapabilitiesGetResult = {
11447
11900
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11448
11901
  tracked: boolean;
11449
11902
  };
11903
+ "tables.applyStyle": {
11904
+ available: boolean;
11905
+ dryRun: boolean;
11906
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11907
+ tracked: boolean;
11908
+ };
11450
11909
  "tables.clearBorder": {
11451
11910
  available: boolean;
11452
11911
  dryRun: boolean;
@@ -11597,6 +12056,12 @@ export type DocCapabilitiesGetResult = {
11597
12056
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11598
12057
  tracked: boolean;
11599
12058
  };
12059
+ "tables.setBorders": {
12060
+ available: boolean;
12061
+ dryRun: boolean;
12062
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
12063
+ tracked: boolean;
12064
+ };
11600
12065
  "tables.setCellPadding": {
11601
12066
  available: boolean;
11602
12067
  dryRun: boolean;
@@ -11663,6 +12128,12 @@ export type DocCapabilitiesGetResult = {
11663
12128
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
11664
12129
  tracked: boolean;
11665
12130
  };
12131
+ "tables.setTableOptions": {
12132
+ available: boolean;
12133
+ dryRun: boolean;
12134
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
12135
+ tracked: boolean;
12136
+ };
11666
12137
  "tables.setTablePadding": {
11667
12138
  available: boolean;
11668
12139
  dryRun: boolean;
@@ -11966,6 +12437,21 @@ export type DocTablesClearCellSpacingResult = {
11966
12437
  table?: unknown;
11967
12438
  trackedChangeRefs?: Array<unknown>;
11968
12439
  };
12440
+ export type DocTablesApplyStyleResult = {
12441
+ success: true;
12442
+ table?: unknown;
12443
+ trackedChangeRefs?: Array<unknown>;
12444
+ };
12445
+ export type DocTablesSetBordersResult = {
12446
+ success: true;
12447
+ table?: unknown;
12448
+ trackedChangeRefs?: Array<unknown>;
12449
+ };
12450
+ export type DocTablesSetTableOptionsResult = {
12451
+ success: true;
12452
+ table?: unknown;
12453
+ trackedChangeRefs?: Array<unknown>;
12454
+ };
11969
12455
  export type DocTablesGetResult = {
11970
12456
  address: unknown;
11971
12457
  columns: number;
@@ -11973,18 +12459,60 @@ export type DocTablesGetResult = {
11973
12459
  rows: number;
11974
12460
  };
11975
12461
  export type DocTablesGetCellsResult = {
12462
+ address: unknown;
11976
12463
  cells: Array<{
12464
+ address: unknown;
11977
12465
  colspan: number;
11978
12466
  columnIndex: number;
11979
12467
  nodeId: string;
11980
12468
  rowIndex: number;
11981
12469
  rowspan: number;
11982
12470
  }>;
11983
- tableNodeId: string;
12471
+ nodeId: string;
11984
12472
  };
11985
12473
  export type DocTablesGetPropertiesResult = {
12474
+ address: unknown;
11986
12475
  alignment?: "left" | "center" | "right";
11987
12476
  autoFitMode?: "fixedWidth" | "fitContents" | "fitWindow";
12477
+ borders?: {
12478
+ bottom?: ({
12479
+ color: string;
12480
+ lineStyle: string;
12481
+ lineWeightPt: number;
12482
+ }) | null;
12483
+ insideH?: ({
12484
+ color: string;
12485
+ lineStyle: string;
12486
+ lineWeightPt: number;
12487
+ }) | null;
12488
+ insideV?: ({
12489
+ color: string;
12490
+ lineStyle: string;
12491
+ lineWeightPt: number;
12492
+ }) | null;
12493
+ left?: ({
12494
+ color: string;
12495
+ lineStyle: string;
12496
+ lineWeightPt: number;
12497
+ }) | null;
12498
+ right?: ({
12499
+ color: string;
12500
+ lineStyle: string;
12501
+ lineWeightPt: number;
12502
+ }) | null;
12503
+ top?: ({
12504
+ color: string;
12505
+ lineStyle: string;
12506
+ lineWeightPt: number;
12507
+ }) | null;
12508
+ };
12509
+ cellSpacingPt?: number;
12510
+ defaultCellMargins?: {
12511
+ bottomPt?: number;
12512
+ leftPt?: number;
12513
+ rightPt?: number;
12514
+ topPt?: number;
12515
+ };
11988
12516
  direction?: "ltr" | "rtl";
11989
12517
  nodeId: string;
11990
12518
  preferredWidth?: number;
@@ -11995,7 +12523,7 @@ export type DocTablesGetPropertiesResult = {
11995
12523
  firstColumn?: boolean;
11996
12524
  headerRow?: boolean;
11997
12525
  lastColumn?: boolean;
11998
- totalRow?: boolean;
12526
+ lastRow?: boolean;
11999
12527
  };
12000
12528
  };
12001
12529
  export type DocTablesGetStylesResult = {
@@ -13624,6 +14152,8 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
13624
14152
  clearBorder: (params?: DocFormatParagraphClearBorderParams, options?: InvokeOptions) => Promise<DocFormatParagraphClearBorderResult>;
13625
14153
  setShading: (params?: DocFormatParagraphSetShadingParams, options?: InvokeOptions) => Promise<DocFormatParagraphSetShadingResult>;
13626
14154
  clearShading: (params?: DocFormatParagraphClearShadingParams, options?: InvokeOptions) => Promise<DocFormatParagraphClearShadingResult>;
14155
+ setDirection: (params?: DocFormatParagraphSetDirectionParams, options?: InvokeOptions) => Promise<DocFormatParagraphSetDirectionResult>;
14156
+ clearDirection: (params?: DocFormatParagraphClearDirectionParams, options?: InvokeOptions) => Promise<DocFormatParagraphClearDirectionResult>;
13627
14157
  };
13628
14158
  };
13629
14159
  styles: {
@@ -13692,6 +14222,13 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
13692
14222
  setLevelTrailingCharacter: (params?: DocListsSetLevelTrailingCharacterParams, options?: InvokeOptions) => Promise<DocListsSetLevelTrailingCharacterResult>;
13693
14223
  setLevelMarkerFont: (params?: DocListsSetLevelMarkerFontParams, options?: InvokeOptions) => Promise<DocListsSetLevelMarkerFontResult>;
13694
14224
  clearLevelOverrides: (params?: DocListsClearLevelOverridesParams, options?: InvokeOptions) => Promise<DocListsClearLevelOverridesResult>;
14225
+ getStyle: (params: DocListsGetStyleParams, options?: InvokeOptions) => Promise<DocListsGetStyleResult>;
14226
+ applyStyle: (params: DocListsApplyStyleParams, options?: InvokeOptions) => Promise<DocListsApplyStyleResult>;
14227
+ restartAt: (params: DocListsRestartAtParams, options?: InvokeOptions) => Promise<DocListsRestartAtResult>;
14228
+ setLevelNumberStyle: (params: DocListsSetLevelNumberStyleParams, options?: InvokeOptions) => Promise<DocListsSetLevelNumberStyleResult>;
14229
+ setLevelText: (params: DocListsSetLevelTextParams, options?: InvokeOptions) => Promise<DocListsSetLevelTextResult>;
14230
+ setLevelStart: (params: DocListsSetLevelStartParams, options?: InvokeOptions) => Promise<DocListsSetLevelStartResult>;
14231
+ setLevelLayout: (params: DocListsSetLevelLayoutParams, options?: InvokeOptions) => Promise<DocListsSetLevelLayoutResult>;
13695
14232
  };
13696
14233
  comments: {
13697
14234
  create: (params?: DocCommentsCreateParams, options?: InvokeOptions) => Promise<unknown>;
@@ -13755,6 +14292,9 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
13755
14292
  setCellPadding: (params: DocTablesSetCellPaddingParams, options?: InvokeOptions) => Promise<DocTablesSetCellPaddingResult>;
13756
14293
  setCellSpacing: (params: DocTablesSetCellSpacingParams, options?: InvokeOptions) => Promise<DocTablesSetCellSpacingResult>;
13757
14294
  clearCellSpacing: (params?: DocTablesClearCellSpacingParams, options?: InvokeOptions) => Promise<DocTablesClearCellSpacingResult>;
14295
+ applyStyle: (params?: DocTablesApplyStyleParams, options?: InvokeOptions) => Promise<DocTablesApplyStyleResult>;
14296
+ setBorders: (params: DocTablesSetBordersParams, options?: InvokeOptions) => Promise<DocTablesSetBordersResult>;
14297
+ setTableOptions: (params?: DocTablesSetTableOptionsParams, options?: InvokeOptions) => Promise<DocTablesSetTableOptionsResult>;
13758
14298
  get: (params?: DocTablesGetParams, options?: InvokeOptions) => Promise<DocTablesGetResult>;
13759
14299
  getCells: (params?: DocTablesGetCellsParams, options?: InvokeOptions) => Promise<DocTablesGetCellsResult>;
13760
14300
  getProperties: (params?: DocTablesGetPropertiesParams, options?: InvokeOptions) => Promise<DocTablesGetPropertiesResult>;