@superdoc/sdk 2.24.0 → 2.25.0-next.10

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 (51) hide show
  1. package/dist/agent/action-change-mode.cjs +6 -0
  2. package/dist/agent/action-change-mode.d.ts +1 -0
  3. package/dist/agent/action-change-mode.js +5 -0
  4. package/dist/agent/action-descriptors.json +2 -2
  5. package/dist/agent/actions.cjs +886 -530
  6. package/dist/agent/actions.d.ts +2 -0
  7. package/dist/agent/actions.js +887 -531
  8. package/dist/agent/catalog.cjs +5 -0
  9. package/dist/agent/catalog.js +5 -0
  10. package/dist/agent/doc-snapshot.cjs +10 -6
  11. package/dist/agent/doc-snapshot.d.ts +4 -1
  12. package/dist/agent/doc-snapshot.js +10 -6
  13. package/dist/agent/ir.d.ts +3 -0
  14. package/dist/embedded-prompts.generated.cjs +2 -1
  15. package/dist/embedded-prompts.generated.js +2 -1
  16. package/dist/embedded-tools.generated.cjs +5 -5
  17. package/dist/embedded-tools.generated.js +5 -5
  18. package/dist/generated/client.d.ts +1001 -6
  19. package/dist/generated/contract.cjs +1 -1
  20. package/dist/generated/contract.js +1 -1
  21. package/dist/presets/core.cjs +2 -1
  22. package/dist/presets/core.d.ts +1 -0
  23. package/dist/presets/core.js +2 -2
  24. package/dist/presets/full.cjs +1804 -0
  25. package/dist/presets/full.d.ts +39 -0
  26. package/dist/presets/full.js +1795 -0
  27. package/dist/presets.cjs +2 -0
  28. package/dist/presets.js +2 -0
  29. package/dist/prompts/full-addendum.md +40 -0
  30. package/dist/prompts/system-prompt.md +3 -2
  31. package/dist/runtime/document-rpc.cjs +3 -8
  32. package/dist/runtime/document-rpc.js +4 -9
  33. package/dist/runtime/host.cjs +1 -0
  34. package/dist/runtime/host.js +2 -1
  35. package/dist/runtime/sdk-version.generated.cjs +1 -1
  36. package/dist/runtime/sdk-version.generated.d.ts +1 -1
  37. package/dist/runtime/sdk-version.generated.js +1 -1
  38. package/dist/runtime/tracked-support.cjs +11 -0
  39. package/dist/runtime/tracked-support.d.ts +6 -0
  40. package/dist/runtime/tracked-support.js +7 -0
  41. package/dist/runtime/transport-common.cjs +24 -0
  42. package/dist/runtime/transport-common.d.ts +1 -0
  43. package/dist/runtime/transport-common.js +23 -0
  44. package/package.json +6 -6
  45. package/tools/catalog.json +23 -0
  46. package/tools/generation-receipt.json +20 -19
  47. package/tools/tools-policy.json +1 -1
  48. package/tools/tools.anthropic.json +23 -0
  49. package/tools/tools.generic.json +23 -0
  50. package/tools/tools.openai.json +23 -0
  51. package/tools/tools.vercel.json +23 -0
@@ -441,6 +441,37 @@ export interface DocGetNodeByIdParams {
441
441
  sessionId?: string;
442
442
  id: string;
443
443
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
444
+ story?: ({
445
+ kind: "story";
446
+ storyType: "body";
447
+ }) | ({
448
+ kind: "story";
449
+ storyType: "headerFooterSlot";
450
+ section: {
451
+ kind: "section";
452
+ sectionId: string;
453
+ };
454
+ headerFooterKind: "header" | "footer";
455
+ variant: "default" | "first" | "even";
456
+ resolution?: "effective" | "explicit";
457
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
458
+ }) | ({
459
+ kind: "story";
460
+ storyType: "headerFooterPart";
461
+ refId: string;
462
+ }) | ({
463
+ kind: "story";
464
+ storyType: "footnote";
465
+ noteId: string;
466
+ }) | ({
467
+ kind: "story";
468
+ storyType: "endnote";
469
+ noteId: string;
470
+ }) | ({
471
+ kind: "story";
472
+ storyType: "textbox";
473
+ textboxId: string;
474
+ });
444
475
  }
445
476
  export interface DocGetTextParams {
446
477
  doc?: string;
@@ -13052,6 +13083,10 @@ export interface DocStylesApplyParams {
13052
13083
  }) | ({
13053
13084
  scope: "docDefaults";
13054
13085
  channel: "paragraph";
13086
+ }) | ({
13087
+ scope: "style";
13088
+ styleId: string;
13089
+ channel: "run";
13055
13090
  });
13056
13091
  patch?: ({
13057
13092
  bold?: boolean;
@@ -13298,6 +13333,100 @@ export interface DocStylesApplyParams {
13298
13333
  leader?: string;
13299
13334
  };
13300
13335
  }>;
13336
+ }) | ({
13337
+ bold?: boolean | unknown;
13338
+ boldCs?: boolean | unknown;
13339
+ italic?: boolean | unknown;
13340
+ iCs?: boolean | unknown;
13341
+ smallCaps?: boolean | unknown;
13342
+ strike?: boolean | unknown;
13343
+ dstrike?: boolean | unknown;
13344
+ emboss?: boolean | unknown;
13345
+ imprint?: boolean | unknown;
13346
+ outline?: boolean | unknown;
13347
+ shadow?: boolean | unknown;
13348
+ vanish?: boolean | unknown;
13349
+ webHidden?: boolean | unknown;
13350
+ specVanish?: boolean | unknown;
13351
+ snapToGrid?: boolean | unknown;
13352
+ noProof?: boolean | unknown;
13353
+ fontSize?: number | unknown;
13354
+ fontSizeCs?: number | unknown;
13355
+ letterSpacing?: number | unknown;
13356
+ kern?: number | unknown;
13357
+ position?: number | unknown;
13358
+ w?: number | unknown;
13359
+ textTransform?: "uppercase" | "none" | unknown;
13360
+ vertAlign?: "superscript" | "subscript" | "baseline" | unknown;
13361
+ em?: "none" | "dot" | "comma" | "circle" | "sesame" | unknown;
13362
+ effect?: string | unknown;
13363
+ fontFamily?: ({
13364
+ hint?: string;
13365
+ ascii?: string;
13366
+ hAnsi?: string;
13367
+ eastAsia?: string;
13368
+ cs?: string;
13369
+ val?: string;
13370
+ asciiTheme?: string;
13371
+ hAnsiTheme?: string;
13372
+ eastAsiaTheme?: string;
13373
+ cstheme?: string;
13374
+ }) | unknown;
13375
+ color?: ({
13376
+ val?: string;
13377
+ themeColor?: string;
13378
+ themeTint?: string;
13379
+ themeShade?: string;
13380
+ }) | unknown;
13381
+ underline?: ({
13382
+ val?: "single" | "double" | "thick" | "dotted" | "dottedHeavy" | "dash" | "dashedHeavy" | "dashLong" | "dashLongHeavy" | "dotDash" | "dashDotHeavy" | "dotDotDash" | "dashDotDotHeavy" | "wave" | "wavyHeavy" | "wavyDouble" | "words" | "none";
13383
+ color?: string;
13384
+ themeColor?: string;
13385
+ themeTint?: string;
13386
+ themeShade?: string;
13387
+ }) | unknown;
13388
+ borders?: ({
13389
+ val?: string;
13390
+ color?: string;
13391
+ themeColor?: string;
13392
+ themeTint?: string;
13393
+ themeShade?: string;
13394
+ size?: number;
13395
+ space?: number;
13396
+ shadow?: boolean;
13397
+ frame?: boolean;
13398
+ }) | unknown;
13399
+ shading?: ({
13400
+ color?: string;
13401
+ fill?: string;
13402
+ themeColor?: string;
13403
+ themeFill?: string;
13404
+ themeFillShade?: string;
13405
+ themeFillTint?: string;
13406
+ themeShade?: string;
13407
+ themeTint?: string;
13408
+ val?: string;
13409
+ }) | unknown;
13410
+ lang?: ({
13411
+ val?: string;
13412
+ eastAsia?: string;
13413
+ bidi?: string;
13414
+ }) | unknown;
13415
+ eastAsianLayout?: ({
13416
+ id?: number;
13417
+ combine?: boolean;
13418
+ combineBrackets?: string;
13419
+ vert?: boolean;
13420
+ vertCompress?: boolean;
13421
+ }) | unknown;
13422
+ fitText?: ({
13423
+ val?: number;
13424
+ id?: number;
13425
+ }) | unknown;
13426
+ cs?: boolean | unknown;
13427
+ oMath?: boolean | unknown;
13428
+ rtl?: boolean | unknown;
13429
+ highlight?: "black" | "blue" | "cyan" | "green" | "magenta" | "red" | "yellow" | "white" | "darkBlue" | "darkCyan" | "darkGreen" | "darkMagenta" | "darkRed" | "darkYellow" | "darkGray" | "lightGray" | "none" | unknown;
13301
13430
  });
13302
13431
  }
13303
13432
  export interface DocStylesCreateParams {
@@ -21018,6 +21147,9 @@ export interface DocMutationsPreviewParams {
21018
21147
  storyType: "textbox";
21019
21148
  textboxId: string;
21020
21149
  });
21150
+ author?: {
21151
+ name: string;
21152
+ };
21021
21153
  expectedRevision?: string;
21022
21154
  atomic: boolean;
21023
21155
  changeMode: "direct" | "tracked";
@@ -21316,6 +21448,7 @@ export interface DocMutationsPreviewParams {
21316
21448
  });
21317
21449
  replacementMode?: "literal" | "regex-template";
21318
21450
  caseHandling?: "exact" | "preserve-match";
21451
+ replacementGranularity?: "word" | "phrase" | "range";
21319
21452
  style?: {
21320
21453
  inline: {
21321
21454
  mode: "preserve" | "set" | "clear" | "merge";
@@ -22932,6 +23065,9 @@ export interface DocMutationsApplyParams {
22932
23065
  storyType: "textbox";
22933
23066
  textboxId: string;
22934
23067
  });
23068
+ author?: {
23069
+ name: string;
23070
+ };
22935
23071
  atomic: boolean;
22936
23072
  steps: Array<({
22937
23073
  id: string;
@@ -23228,6 +23364,7 @@ export interface DocMutationsApplyParams {
23228
23364
  });
23229
23365
  replacementMode?: "literal" | "regex-template";
23230
23366
  caseHandling?: "exact" | "preserve-match";
23367
+ replacementGranularity?: "word" | "phrase" | "range";
23231
23368
  style?: {
23232
23369
  inline: {
23233
23370
  mode: "preserve" | "set" | "clear" | "merge";
@@ -28003,6 +28140,37 @@ export interface DocImagesRemoveCaptionParams {
28003
28140
  export interface DocHyperlinksListParams {
28004
28141
  doc?: string;
28005
28142
  sessionId?: string;
28143
+ in?: ({
28144
+ kind: "story";
28145
+ storyType: "body";
28146
+ }) | ({
28147
+ kind: "story";
28148
+ storyType: "headerFooterSlot";
28149
+ section: {
28150
+ kind: "section";
28151
+ sectionId: string;
28152
+ };
28153
+ headerFooterKind: "header" | "footer";
28154
+ variant: "default" | "first" | "even";
28155
+ resolution?: "effective" | "explicit";
28156
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
28157
+ }) | ({
28158
+ kind: "story";
28159
+ storyType: "headerFooterPart";
28160
+ refId: string;
28161
+ }) | ({
28162
+ kind: "story";
28163
+ storyType: "footnote";
28164
+ noteId: string;
28165
+ }) | ({
28166
+ kind: "story";
28167
+ storyType: "endnote";
28168
+ noteId: string;
28169
+ }) | ({
28170
+ kind: "story";
28171
+ storyType: "textbox";
28172
+ textboxId: string;
28173
+ });
28006
28174
  within?: {
28007
28175
  kind: "block";
28008
28176
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -28061,6 +28229,37 @@ export interface DocHyperlinksGetParams {
28061
28229
  offset: number;
28062
28230
  };
28063
28231
  };
28232
+ story?: ({
28233
+ kind: "story";
28234
+ storyType: "body";
28235
+ }) | ({
28236
+ kind: "story";
28237
+ storyType: "headerFooterSlot";
28238
+ section: {
28239
+ kind: "section";
28240
+ sectionId: string;
28241
+ };
28242
+ headerFooterKind: "header" | "footer";
28243
+ variant: "default" | "first" | "even";
28244
+ resolution?: "effective" | "explicit";
28245
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
28246
+ }) | ({
28247
+ kind: "story";
28248
+ storyType: "headerFooterPart";
28249
+ refId: string;
28250
+ }) | ({
28251
+ kind: "story";
28252
+ storyType: "footnote";
28253
+ noteId: string;
28254
+ }) | ({
28255
+ kind: "story";
28256
+ storyType: "endnote";
28257
+ noteId: string;
28258
+ }) | ({
28259
+ kind: "story";
28260
+ storyType: "textbox";
28261
+ textboxId: string;
28262
+ });
28064
28263
  };
28065
28264
  }
28066
28265
  export interface DocHyperlinksWrapParams {
@@ -28204,6 +28403,37 @@ export interface DocHyperlinksPatchParams {
28204
28403
  offset: number;
28205
28404
  };
28206
28405
  };
28406
+ story?: ({
28407
+ kind: "story";
28408
+ storyType: "body";
28409
+ }) | ({
28410
+ kind: "story";
28411
+ storyType: "headerFooterSlot";
28412
+ section: {
28413
+ kind: "section";
28414
+ sectionId: string;
28415
+ };
28416
+ headerFooterKind: "header" | "footer";
28417
+ variant: "default" | "first" | "even";
28418
+ resolution?: "effective" | "explicit";
28419
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
28420
+ }) | ({
28421
+ kind: "story";
28422
+ storyType: "headerFooterPart";
28423
+ refId: string;
28424
+ }) | ({
28425
+ kind: "story";
28426
+ storyType: "footnote";
28427
+ noteId: string;
28428
+ }) | ({
28429
+ kind: "story";
28430
+ storyType: "endnote";
28431
+ noteId: string;
28432
+ }) | ({
28433
+ kind: "story";
28434
+ storyType: "textbox";
28435
+ textboxId: string;
28436
+ });
28207
28437
  };
28208
28438
  patch: {
28209
28439
  href?: string | unknown;
@@ -28236,6 +28466,37 @@ export interface DocHyperlinksRemoveParams {
28236
28466
  offset: number;
28237
28467
  };
28238
28468
  };
28469
+ story?: ({
28470
+ kind: "story";
28471
+ storyType: "body";
28472
+ }) | ({
28473
+ kind: "story";
28474
+ storyType: "headerFooterSlot";
28475
+ section: {
28476
+ kind: "section";
28477
+ sectionId: string;
28478
+ };
28479
+ headerFooterKind: "header" | "footer";
28480
+ variant: "default" | "first" | "even";
28481
+ resolution?: "effective" | "explicit";
28482
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
28483
+ }) | ({
28484
+ kind: "story";
28485
+ storyType: "headerFooterPart";
28486
+ refId: string;
28487
+ }) | ({
28488
+ kind: "story";
28489
+ storyType: "footnote";
28490
+ noteId: string;
28491
+ }) | ({
28492
+ kind: "story";
28493
+ storyType: "endnote";
28494
+ noteId: string;
28495
+ }) | ({
28496
+ kind: "story";
28497
+ storyType: "textbox";
28498
+ textboxId: string;
28499
+ });
28239
28500
  };
28240
28501
  mode?: "unwrap" | "deleteText";
28241
28502
  }
@@ -28944,6 +29205,18 @@ export interface DocCreateContentControlParams {
28944
29205
  content?: string;
28945
29206
  html?: string;
28946
29207
  json?: Record<string, unknown> | Array<Record<string, unknown>>;
29208
+ inline?: {
29209
+ bold?: boolean | unknown;
29210
+ italic?: boolean | unknown;
29211
+ strike?: boolean | unknown;
29212
+ underline?: boolean | unknown | ({
29213
+ style?: string | unknown;
29214
+ color?: string | unknown;
29215
+ themeColor?: string | unknown;
29216
+ });
29217
+ fontSize?: number | unknown;
29218
+ fontFamily?: string | unknown;
29219
+ };
28947
29220
  }
28948
29221
  export interface DocContentControlsListParams {
28949
29222
  doc?: string;
@@ -33436,6 +33709,11 @@ export interface DocExportToDocxParams {
33436
33709
  doc?: string;
33437
33710
  sessionId?: string;
33438
33711
  mode?: "review-preserving" | "final" | "original";
33712
+ policies?: {
33713
+ trackedChanges?: "review-preserving" | "final" | "original";
33714
+ comments?: "preserve" | "resolve" | "remove";
33715
+ contentControls?: "preserve" | "flatten";
33716
+ };
33439
33717
  }
33440
33718
  export interface DocProtectionGetParams {
33441
33719
  doc?: string;
@@ -114008,14 +114286,21 @@ export type DocStylesApplyResult = {
114008
114286
  success: true;
114009
114287
  appliedChangeMode?: "direct" | "tracked";
114010
114288
  changed: boolean;
114011
- resolution: {
114289
+ resolution: ({
114012
114290
  scope: "docDefaults";
114013
114291
  channel: "run" | "paragraph";
114014
114292
  xmlPart: string;
114015
114293
  xmlPath: "w:styles/w:docDefaults/w:rPrDefault/w:rPr" | "w:styles/w:docDefaults/w:pPrDefault/w:pPr";
114016
- };
114294
+ }) | ({
114295
+ scope: "style";
114296
+ styleId: string;
114297
+ channel: "run";
114298
+ xmlPart: string;
114299
+ xmlPath: "w:styles/w:style/w:rPr";
114300
+ linkedStyleId?: string;
114301
+ });
114017
114302
  dryRun: boolean;
114018
- before: {
114303
+ before: ({
114019
114304
  bold?: "on" | "off" | "inherit";
114020
114305
  boldCs?: "on" | "off" | "inherit";
114021
114306
  italic?: "on" | "off" | "inherit";
@@ -114077,8 +114362,47 @@ export type DocStylesApplyResult = {
114077
114362
  numberingProperties?: Record<string, unknown> | "inherit";
114078
114363
  framePr?: Record<string, unknown> | "inherit";
114079
114364
  tabStops?: Array<unknown> | "inherit";
114080
- };
114081
- after: {
114365
+ }) | ({
114366
+ bold?: "on" | "off" | "inherit";
114367
+ boldCs?: "on" | "off" | "inherit";
114368
+ italic?: "on" | "off" | "inherit";
114369
+ iCs?: "on" | "off" | "inherit";
114370
+ smallCaps?: "on" | "off" | "inherit";
114371
+ strike?: "on" | "off" | "inherit";
114372
+ dstrike?: "on" | "off" | "inherit";
114373
+ emboss?: "on" | "off" | "inherit";
114374
+ imprint?: "on" | "off" | "inherit";
114375
+ outline?: "on" | "off" | "inherit";
114376
+ shadow?: "on" | "off" | "inherit";
114377
+ vanish?: "on" | "off" | "inherit";
114378
+ webHidden?: "on" | "off" | "inherit";
114379
+ specVanish?: "on" | "off" | "inherit";
114380
+ snapToGrid?: "on" | "off" | "inherit";
114381
+ noProof?: "on" | "off" | "inherit";
114382
+ fontSize?: number | "inherit";
114383
+ fontSizeCs?: number | "inherit";
114384
+ letterSpacing?: number | "inherit";
114385
+ kern?: number | "inherit";
114386
+ position?: number | "inherit";
114387
+ w?: number | "inherit";
114388
+ textTransform?: string | "inherit";
114389
+ vertAlign?: string | "inherit";
114390
+ em?: string | "inherit";
114391
+ effect?: string | "inherit";
114392
+ fontFamily?: Record<string, unknown> | "inherit";
114393
+ color?: Record<string, unknown> | "inherit";
114394
+ underline?: Record<string, unknown> | "inherit";
114395
+ borders?: Record<string, unknown> | "inherit";
114396
+ shading?: Record<string, unknown> | "inherit";
114397
+ lang?: Record<string, unknown> | "inherit";
114398
+ eastAsianLayout?: Record<string, unknown> | "inherit";
114399
+ fitText?: Record<string, unknown> | "inherit";
114400
+ cs?: "on" | "off" | "inherit";
114401
+ oMath?: "on" | "off" | "inherit";
114402
+ rtl?: "on" | "off" | "inherit";
114403
+ highlight?: string | "inherit";
114404
+ });
114405
+ after: ({
114082
114406
  bold?: "on" | "off" | "inherit";
114083
114407
  boldCs?: "on" | "off" | "inherit";
114084
114408
  italic?: "on" | "off" | "inherit";
@@ -114140,7 +114464,46 @@ export type DocStylesApplyResult = {
114140
114464
  numberingProperties?: Record<string, unknown> | "inherit";
114141
114465
  framePr?: Record<string, unknown> | "inherit";
114142
114466
  tabStops?: Array<unknown> | "inherit";
114143
- };
114467
+ }) | ({
114468
+ bold?: "on" | "off" | "inherit";
114469
+ boldCs?: "on" | "off" | "inherit";
114470
+ italic?: "on" | "off" | "inherit";
114471
+ iCs?: "on" | "off" | "inherit";
114472
+ smallCaps?: "on" | "off" | "inherit";
114473
+ strike?: "on" | "off" | "inherit";
114474
+ dstrike?: "on" | "off" | "inherit";
114475
+ emboss?: "on" | "off" | "inherit";
114476
+ imprint?: "on" | "off" | "inherit";
114477
+ outline?: "on" | "off" | "inherit";
114478
+ shadow?: "on" | "off" | "inherit";
114479
+ vanish?: "on" | "off" | "inherit";
114480
+ webHidden?: "on" | "off" | "inherit";
114481
+ specVanish?: "on" | "off" | "inherit";
114482
+ snapToGrid?: "on" | "off" | "inherit";
114483
+ noProof?: "on" | "off" | "inherit";
114484
+ fontSize?: number | "inherit";
114485
+ fontSizeCs?: number | "inherit";
114486
+ letterSpacing?: number | "inherit";
114487
+ kern?: number | "inherit";
114488
+ position?: number | "inherit";
114489
+ w?: number | "inherit";
114490
+ textTransform?: string | "inherit";
114491
+ vertAlign?: string | "inherit";
114492
+ em?: string | "inherit";
114493
+ effect?: string | "inherit";
114494
+ fontFamily?: Record<string, unknown> | "inherit";
114495
+ color?: Record<string, unknown> | "inherit";
114496
+ underline?: Record<string, unknown> | "inherit";
114497
+ borders?: Record<string, unknown> | "inherit";
114498
+ shading?: Record<string, unknown> | "inherit";
114499
+ lang?: Record<string, unknown> | "inherit";
114500
+ eastAsianLayout?: Record<string, unknown> | "inherit";
114501
+ fitText?: Record<string, unknown> | "inherit";
114502
+ cs?: "on" | "off" | "inherit";
114503
+ oMath?: "on" | "off" | "inherit";
114504
+ rtl?: "on" | "off" | "inherit";
114505
+ highlight?: string | "inherit";
114506
+ });
114144
114507
  };
114145
114508
  export type DocStylesCreateResult = {
114146
114509
  success: true;
@@ -175162,6 +175525,48 @@ export type DocMutationsBeginTemporaryResult = {
175162
175525
  before: string;
175163
175526
  after: string;
175164
175527
  };
175528
+ operationEffects?: Record<string, {
175529
+ inserted: Array<({
175530
+ kind: "entity";
175531
+ entityType: "comment";
175532
+ entityId: string;
175533
+ }) | ({
175534
+ kind: "entity";
175535
+ entityType: "trackedChange";
175536
+ entityId: string;
175537
+ story?: ({
175538
+ kind: "story";
175539
+ storyType: "body";
175540
+ }) | ({
175541
+ kind: "story";
175542
+ storyType: "headerFooterSlot";
175543
+ section: {
175544
+ kind: "section";
175545
+ sectionId: string;
175546
+ };
175547
+ headerFooterKind: "header" | "footer";
175548
+ variant: "default" | "first" | "even";
175549
+ resolution?: "effective" | "explicit";
175550
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
175551
+ }) | ({
175552
+ kind: "story";
175553
+ storyType: "headerFooterPart";
175554
+ refId: string;
175555
+ }) | ({
175556
+ kind: "story";
175557
+ storyType: "footnote";
175558
+ noteId: string;
175559
+ }) | ({
175560
+ kind: "story";
175561
+ storyType: "endnote";
175562
+ noteId: string;
175563
+ }) | ({
175564
+ kind: "story";
175565
+ storyType: "textbox";
175566
+ textboxId: string;
175567
+ });
175568
+ })>;
175569
+ }>;
175165
175570
  };
175166
175571
  export type DocMutationsReplaceTemporaryResult = {
175167
175572
  changeTag?: string;
@@ -176347,6 +176752,48 @@ export type DocMutationsReplaceTemporaryResult = {
176347
176752
  before: string;
176348
176753
  after: string;
176349
176754
  };
176755
+ operationEffects?: Record<string, {
176756
+ inserted: Array<({
176757
+ kind: "entity";
176758
+ entityType: "comment";
176759
+ entityId: string;
176760
+ }) | ({
176761
+ kind: "entity";
176762
+ entityType: "trackedChange";
176763
+ entityId: string;
176764
+ story?: ({
176765
+ kind: "story";
176766
+ storyType: "body";
176767
+ }) | ({
176768
+ kind: "story";
176769
+ storyType: "headerFooterSlot";
176770
+ section: {
176771
+ kind: "section";
176772
+ sectionId: string;
176773
+ };
176774
+ headerFooterKind: "header" | "footer";
176775
+ variant: "default" | "first" | "even";
176776
+ resolution?: "effective" | "explicit";
176777
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
176778
+ }) | ({
176779
+ kind: "story";
176780
+ storyType: "headerFooterPart";
176781
+ refId: string;
176782
+ }) | ({
176783
+ kind: "story";
176784
+ storyType: "footnote";
176785
+ noteId: string;
176786
+ }) | ({
176787
+ kind: "story";
176788
+ storyType: "endnote";
176789
+ noteId: string;
176790
+ }) | ({
176791
+ kind: "story";
176792
+ storyType: "textbox";
176793
+ textboxId: string;
176794
+ });
176795
+ })>;
176796
+ }>;
176350
176797
  };
176351
176798
  export type DocMutationsRollbackTemporaryResult = {
176352
176799
  changeTag?: string;
@@ -177532,6 +177979,48 @@ export type DocMutationsRollbackTemporaryResult = {
177532
177979
  before: string;
177533
177980
  after: string;
177534
177981
  };
177982
+ operationEffects?: Record<string, {
177983
+ inserted: Array<({
177984
+ kind: "entity";
177985
+ entityType: "comment";
177986
+ entityId: string;
177987
+ }) | ({
177988
+ kind: "entity";
177989
+ entityType: "trackedChange";
177990
+ entityId: string;
177991
+ story?: ({
177992
+ kind: "story";
177993
+ storyType: "body";
177994
+ }) | ({
177995
+ kind: "story";
177996
+ storyType: "headerFooterSlot";
177997
+ section: {
177998
+ kind: "section";
177999
+ sectionId: string;
178000
+ };
178001
+ headerFooterKind: "header" | "footer";
178002
+ variant: "default" | "first" | "even";
178003
+ resolution?: "effective" | "explicit";
178004
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
178005
+ }) | ({
178006
+ kind: "story";
178007
+ storyType: "headerFooterPart";
178008
+ refId: string;
178009
+ }) | ({
178010
+ kind: "story";
178011
+ storyType: "footnote";
178012
+ noteId: string;
178013
+ }) | ({
178014
+ kind: "story";
178015
+ storyType: "endnote";
178016
+ noteId: string;
178017
+ }) | ({
178018
+ kind: "story";
178019
+ storyType: "textbox";
178020
+ textboxId: string;
178021
+ });
178022
+ })>;
178023
+ }>;
177535
178024
  };
177536
178025
  export type DocMutationsCommitTemporaryResult = {
177537
178026
  changeTag?: string;
@@ -178717,6 +179206,48 @@ export type DocMutationsCommitTemporaryResult = {
178717
179206
  before: string;
178718
179207
  after: string;
178719
179208
  };
179209
+ operationEffects?: Record<string, {
179210
+ inserted: Array<({
179211
+ kind: "entity";
179212
+ entityType: "comment";
179213
+ entityId: string;
179214
+ }) | ({
179215
+ kind: "entity";
179216
+ entityType: "trackedChange";
179217
+ entityId: string;
179218
+ story?: ({
179219
+ kind: "story";
179220
+ storyType: "body";
179221
+ }) | ({
179222
+ kind: "story";
179223
+ storyType: "headerFooterSlot";
179224
+ section: {
179225
+ kind: "section";
179226
+ sectionId: string;
179227
+ };
179228
+ headerFooterKind: "header" | "footer";
179229
+ variant: "default" | "first" | "even";
179230
+ resolution?: "effective" | "explicit";
179231
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
179232
+ }) | ({
179233
+ kind: "story";
179234
+ storyType: "headerFooterPart";
179235
+ refId: string;
179236
+ }) | ({
179237
+ kind: "story";
179238
+ storyType: "footnote";
179239
+ noteId: string;
179240
+ }) | ({
179241
+ kind: "story";
179242
+ storyType: "endnote";
179243
+ noteId: string;
179244
+ }) | ({
179245
+ kind: "story";
179246
+ storyType: "textbox";
179247
+ textboxId: string;
179248
+ });
179249
+ })>;
179250
+ }>;
178720
179251
  };
178721
179252
  export type DocMutationsPreviewResult = {
178722
179253
  evaluatedRevision: string;
@@ -220397,6 +220928,37 @@ export type DocHyperlinksListResult = {
220397
220928
  offset: number;
220398
220929
  };
220399
220930
  };
220931
+ story?: ({
220932
+ kind: "story";
220933
+ storyType: "body";
220934
+ }) | ({
220935
+ kind: "story";
220936
+ storyType: "headerFooterSlot";
220937
+ section: {
220938
+ kind: "section";
220939
+ sectionId: string;
220940
+ };
220941
+ headerFooterKind: "header" | "footer";
220942
+ variant: "default" | "first" | "even";
220943
+ resolution?: "effective" | "explicit";
220944
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
220945
+ }) | ({
220946
+ kind: "story";
220947
+ storyType: "headerFooterPart";
220948
+ refId: string;
220949
+ }) | ({
220950
+ kind: "story";
220951
+ storyType: "footnote";
220952
+ noteId: string;
220953
+ }) | ({
220954
+ kind: "story";
220955
+ storyType: "endnote";
220956
+ noteId: string;
220957
+ }) | ({
220958
+ kind: "story";
220959
+ storyType: "textbox";
220960
+ textboxId: string;
220961
+ });
220400
220962
  };
220401
220963
  properties: {
220402
220964
  href?: string;
@@ -220428,6 +220990,37 @@ export type DocHyperlinksGetResult = {
220428
220990
  offset: number;
220429
220991
  };
220430
220992
  };
220993
+ story?: ({
220994
+ kind: "story";
220995
+ storyType: "body";
220996
+ }) | ({
220997
+ kind: "story";
220998
+ storyType: "headerFooterSlot";
220999
+ section: {
221000
+ kind: "section";
221001
+ sectionId: string;
221002
+ };
221003
+ headerFooterKind: "header" | "footer";
221004
+ variant: "default" | "first" | "even";
221005
+ resolution?: "effective" | "explicit";
221006
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
221007
+ }) | ({
221008
+ kind: "story";
221009
+ storyType: "headerFooterPart";
221010
+ refId: string;
221011
+ }) | ({
221012
+ kind: "story";
221013
+ storyType: "footnote";
221014
+ noteId: string;
221015
+ }) | ({
221016
+ kind: "story";
221017
+ storyType: "endnote";
221018
+ noteId: string;
221019
+ }) | ({
221020
+ kind: "story";
221021
+ storyType: "textbox";
221022
+ textboxId: string;
221023
+ });
220431
221024
  };
220432
221025
  properties: {
220433
221026
  href?: string;
@@ -221632,6 +222225,37 @@ export type DocHyperlinksWrapResult = {
221632
222225
  offset: number;
221633
222226
  };
221634
222227
  };
222228
+ story?: ({
222229
+ kind: "story";
222230
+ storyType: "body";
222231
+ }) | ({
222232
+ kind: "story";
222233
+ storyType: "headerFooterSlot";
222234
+ section: {
222235
+ kind: "section";
222236
+ sectionId: string;
222237
+ };
222238
+ headerFooterKind: "header" | "footer";
222239
+ variant: "default" | "first" | "even";
222240
+ resolution?: "effective" | "explicit";
222241
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
222242
+ }) | ({
222243
+ kind: "story";
222244
+ storyType: "headerFooterPart";
222245
+ refId: string;
222246
+ }) | ({
222247
+ kind: "story";
222248
+ storyType: "footnote";
222249
+ noteId: string;
222250
+ }) | ({
222251
+ kind: "story";
222252
+ storyType: "endnote";
222253
+ noteId: string;
222254
+ }) | ({
222255
+ kind: "story";
222256
+ storyType: "textbox";
222257
+ textboxId: string;
222258
+ });
221635
222259
  };
221636
222260
  hyperlinkNodeId?: string | null;
221637
222261
  partsCreated?: Array<string>;
@@ -222831,6 +223455,37 @@ export type DocHyperlinksInsertResult = {
222831
223455
  offset: number;
222832
223456
  };
222833
223457
  };
223458
+ story?: ({
223459
+ kind: "story";
223460
+ storyType: "body";
223461
+ }) | ({
223462
+ kind: "story";
223463
+ storyType: "headerFooterSlot";
223464
+ section: {
223465
+ kind: "section";
223466
+ sectionId: string;
223467
+ };
223468
+ headerFooterKind: "header" | "footer";
223469
+ variant: "default" | "first" | "even";
223470
+ resolution?: "effective" | "explicit";
223471
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
223472
+ }) | ({
223473
+ kind: "story";
223474
+ storyType: "headerFooterPart";
223475
+ refId: string;
223476
+ }) | ({
223477
+ kind: "story";
223478
+ storyType: "footnote";
223479
+ noteId: string;
223480
+ }) | ({
223481
+ kind: "story";
223482
+ storyType: "endnote";
223483
+ noteId: string;
223484
+ }) | ({
223485
+ kind: "story";
223486
+ storyType: "textbox";
223487
+ textboxId: string;
223488
+ });
222834
223489
  };
222835
223490
  hyperlinkNodeId?: string | null;
222836
223491
  partsCreated?: Array<string>;
@@ -224030,6 +224685,37 @@ export type DocHyperlinksPatchResult = {
224030
224685
  offset: number;
224031
224686
  };
224032
224687
  };
224688
+ story?: ({
224689
+ kind: "story";
224690
+ storyType: "body";
224691
+ }) | ({
224692
+ kind: "story";
224693
+ storyType: "headerFooterSlot";
224694
+ section: {
224695
+ kind: "section";
224696
+ sectionId: string;
224697
+ };
224698
+ headerFooterKind: "header" | "footer";
224699
+ variant: "default" | "first" | "even";
224700
+ resolution?: "effective" | "explicit";
224701
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
224702
+ }) | ({
224703
+ kind: "story";
224704
+ storyType: "headerFooterPart";
224705
+ refId: string;
224706
+ }) | ({
224707
+ kind: "story";
224708
+ storyType: "footnote";
224709
+ noteId: string;
224710
+ }) | ({
224711
+ kind: "story";
224712
+ storyType: "endnote";
224713
+ noteId: string;
224714
+ }) | ({
224715
+ kind: "story";
224716
+ storyType: "textbox";
224717
+ textboxId: string;
224718
+ });
224033
224719
  };
224034
224720
  hyperlinkNodeId?: string | null;
224035
224721
  partsCreated?: Array<string>;
@@ -225229,6 +225915,37 @@ export type DocHyperlinksRemoveResult = {
225229
225915
  offset: number;
225230
225916
  };
225231
225917
  };
225918
+ story?: ({
225919
+ kind: "story";
225920
+ storyType: "body";
225921
+ }) | ({
225922
+ kind: "story";
225923
+ storyType: "headerFooterSlot";
225924
+ section: {
225925
+ kind: "section";
225926
+ sectionId: string;
225927
+ };
225928
+ headerFooterKind: "header" | "footer";
225929
+ variant: "default" | "first" | "even";
225930
+ resolution?: "effective" | "explicit";
225931
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
225932
+ }) | ({
225933
+ kind: "story";
225934
+ storyType: "headerFooterPart";
225935
+ refId: string;
225936
+ }) | ({
225937
+ kind: "story";
225938
+ storyType: "footnote";
225939
+ noteId: string;
225940
+ }) | ({
225941
+ kind: "story";
225942
+ storyType: "endnote";
225943
+ noteId: string;
225944
+ }) | ({
225945
+ kind: "story";
225946
+ storyType: "textbox";
225947
+ textboxId: string;
225948
+ });
225232
225949
  };
225233
225950
  hyperlinkNodeId?: string | null;
225234
225951
  partsCreated?: Array<string>;
@@ -281774,6 +282491,37 @@ export interface DocGetNodeBoundParams {
281774
282491
  export interface DocGetNodeByIdBoundParams {
281775
282492
  id: string;
281776
282493
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
282494
+ story?: ({
282495
+ kind: "story";
282496
+ storyType: "body";
282497
+ }) | ({
282498
+ kind: "story";
282499
+ storyType: "headerFooterSlot";
282500
+ section: {
282501
+ kind: "section";
282502
+ sectionId: string;
282503
+ };
282504
+ headerFooterKind: "header" | "footer";
282505
+ variant: "default" | "first" | "even";
282506
+ resolution?: "effective" | "explicit";
282507
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
282508
+ }) | ({
282509
+ kind: "story";
282510
+ storyType: "headerFooterPart";
282511
+ refId: string;
282512
+ }) | ({
282513
+ kind: "story";
282514
+ storyType: "footnote";
282515
+ noteId: string;
282516
+ }) | ({
282517
+ kind: "story";
282518
+ storyType: "endnote";
282519
+ noteId: string;
282520
+ }) | ({
282521
+ kind: "story";
282522
+ storyType: "textbox";
282523
+ textboxId: string;
282524
+ });
281777
282525
  }
281778
282526
  export interface DocGetTextBoundParams {
281779
282527
  in?: ({
@@ -294251,6 +294999,10 @@ export interface DocStylesApplyBoundParams {
294251
294999
  }) | ({
294252
295000
  scope: "docDefaults";
294253
295001
  channel: "paragraph";
295002
+ }) | ({
295003
+ scope: "style";
295004
+ styleId: string;
295005
+ channel: "run";
294254
295006
  });
294255
295007
  patch?: ({
294256
295008
  bold?: boolean;
@@ -294497,6 +295249,100 @@ export interface DocStylesApplyBoundParams {
294497
295249
  leader?: string;
294498
295250
  };
294499
295251
  }>;
295252
+ }) | ({
295253
+ bold?: boolean | unknown;
295254
+ boldCs?: boolean | unknown;
295255
+ italic?: boolean | unknown;
295256
+ iCs?: boolean | unknown;
295257
+ smallCaps?: boolean | unknown;
295258
+ strike?: boolean | unknown;
295259
+ dstrike?: boolean | unknown;
295260
+ emboss?: boolean | unknown;
295261
+ imprint?: boolean | unknown;
295262
+ outline?: boolean | unknown;
295263
+ shadow?: boolean | unknown;
295264
+ vanish?: boolean | unknown;
295265
+ webHidden?: boolean | unknown;
295266
+ specVanish?: boolean | unknown;
295267
+ snapToGrid?: boolean | unknown;
295268
+ noProof?: boolean | unknown;
295269
+ fontSize?: number | unknown;
295270
+ fontSizeCs?: number | unknown;
295271
+ letterSpacing?: number | unknown;
295272
+ kern?: number | unknown;
295273
+ position?: number | unknown;
295274
+ w?: number | unknown;
295275
+ textTransform?: "uppercase" | "none" | unknown;
295276
+ vertAlign?: "superscript" | "subscript" | "baseline" | unknown;
295277
+ em?: "none" | "dot" | "comma" | "circle" | "sesame" | unknown;
295278
+ effect?: string | unknown;
295279
+ fontFamily?: ({
295280
+ hint?: string;
295281
+ ascii?: string;
295282
+ hAnsi?: string;
295283
+ eastAsia?: string;
295284
+ cs?: string;
295285
+ val?: string;
295286
+ asciiTheme?: string;
295287
+ hAnsiTheme?: string;
295288
+ eastAsiaTheme?: string;
295289
+ cstheme?: string;
295290
+ }) | unknown;
295291
+ color?: ({
295292
+ val?: string;
295293
+ themeColor?: string;
295294
+ themeTint?: string;
295295
+ themeShade?: string;
295296
+ }) | unknown;
295297
+ underline?: ({
295298
+ val?: "single" | "double" | "thick" | "dotted" | "dottedHeavy" | "dash" | "dashedHeavy" | "dashLong" | "dashLongHeavy" | "dotDash" | "dashDotHeavy" | "dotDotDash" | "dashDotDotHeavy" | "wave" | "wavyHeavy" | "wavyDouble" | "words" | "none";
295299
+ color?: string;
295300
+ themeColor?: string;
295301
+ themeTint?: string;
295302
+ themeShade?: string;
295303
+ }) | unknown;
295304
+ borders?: ({
295305
+ val?: string;
295306
+ color?: string;
295307
+ themeColor?: string;
295308
+ themeTint?: string;
295309
+ themeShade?: string;
295310
+ size?: number;
295311
+ space?: number;
295312
+ shadow?: boolean;
295313
+ frame?: boolean;
295314
+ }) | unknown;
295315
+ shading?: ({
295316
+ color?: string;
295317
+ fill?: string;
295318
+ themeColor?: string;
295319
+ themeFill?: string;
295320
+ themeFillShade?: string;
295321
+ themeFillTint?: string;
295322
+ themeShade?: string;
295323
+ themeTint?: string;
295324
+ val?: string;
295325
+ }) | unknown;
295326
+ lang?: ({
295327
+ val?: string;
295328
+ eastAsia?: string;
295329
+ bidi?: string;
295330
+ }) | unknown;
295331
+ eastAsianLayout?: ({
295332
+ id?: number;
295333
+ combine?: boolean;
295334
+ combineBrackets?: string;
295335
+ vert?: boolean;
295336
+ vertCompress?: boolean;
295337
+ }) | unknown;
295338
+ fitText?: ({
295339
+ val?: number;
295340
+ id?: number;
295341
+ }) | unknown;
295342
+ cs?: boolean | unknown;
295343
+ oMath?: boolean | unknown;
295344
+ rtl?: boolean | unknown;
295345
+ highlight?: "black" | "blue" | "cyan" | "green" | "magenta" | "red" | "yellow" | "white" | "darkBlue" | "darkCyan" | "darkGreen" | "darkMagenta" | "darkRed" | "darkYellow" | "darkGray" | "lightGray" | "none" | unknown;
294500
295346
  });
294501
295347
  }
294502
295348
  export interface DocStylesCreateBoundParams {
@@ -301995,6 +302841,9 @@ export interface DocMutationsPreviewBoundParams {
301995
302841
  storyType: "textbox";
301996
302842
  textboxId: string;
301997
302843
  });
302844
+ author?: {
302845
+ name: string;
302846
+ };
301998
302847
  expectedRevision?: string;
301999
302848
  atomic: boolean;
302000
302849
  changeMode: "direct" | "tracked";
@@ -302293,6 +303142,7 @@ export interface DocMutationsPreviewBoundParams {
302293
303142
  });
302294
303143
  replacementMode?: "literal" | "regex-template";
302295
303144
  caseHandling?: "exact" | "preserve-match";
303145
+ replacementGranularity?: "word" | "phrase" | "range";
302296
303146
  style?: {
302297
303147
  inline: {
302298
303148
  mode: "preserve" | "set" | "clear" | "merge";
@@ -303907,6 +304757,9 @@ export interface DocMutationsApplyBoundParams {
303907
304757
  storyType: "textbox";
303908
304758
  textboxId: string;
303909
304759
  });
304760
+ author?: {
304761
+ name: string;
304762
+ };
303910
304763
  atomic: boolean;
303911
304764
  steps: Array<({
303912
304765
  id: string;
@@ -304203,6 +305056,7 @@ export interface DocMutationsApplyBoundParams {
304203
305056
  });
304204
305057
  replacementMode?: "literal" | "regex-template";
304205
305058
  caseHandling?: "exact" | "preserve-match";
305059
+ replacementGranularity?: "word" | "phrase" | "range";
304206
305060
  style?: {
304207
305061
  inline: {
304208
305062
  mode: "preserve" | "set" | "clear" | "merge";
@@ -308785,6 +309639,37 @@ export interface DocImagesRemoveCaptionBoundParams {
308785
309639
  imageId: string;
308786
309640
  }
308787
309641
  export interface DocHyperlinksListBoundParams {
309642
+ in?: ({
309643
+ kind: "story";
309644
+ storyType: "body";
309645
+ }) | ({
309646
+ kind: "story";
309647
+ storyType: "headerFooterSlot";
309648
+ section: {
309649
+ kind: "section";
309650
+ sectionId: string;
309651
+ };
309652
+ headerFooterKind: "header" | "footer";
309653
+ variant: "default" | "first" | "even";
309654
+ resolution?: "effective" | "explicit";
309655
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
309656
+ }) | ({
309657
+ kind: "story";
309658
+ storyType: "headerFooterPart";
309659
+ refId: string;
309660
+ }) | ({
309661
+ kind: "story";
309662
+ storyType: "footnote";
309663
+ noteId: string;
309664
+ }) | ({
309665
+ kind: "story";
309666
+ storyType: "endnote";
309667
+ noteId: string;
309668
+ }) | ({
309669
+ kind: "story";
309670
+ storyType: "textbox";
309671
+ textboxId: string;
309672
+ });
308788
309673
  within?: {
308789
309674
  kind: "block";
308790
309675
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
@@ -308841,6 +309726,37 @@ export interface DocHyperlinksGetBoundParams {
308841
309726
  offset: number;
308842
309727
  };
308843
309728
  };
309729
+ story?: ({
309730
+ kind: "story";
309731
+ storyType: "body";
309732
+ }) | ({
309733
+ kind: "story";
309734
+ storyType: "headerFooterSlot";
309735
+ section: {
309736
+ kind: "section";
309737
+ sectionId: string;
309738
+ };
309739
+ headerFooterKind: "header" | "footer";
309740
+ variant: "default" | "first" | "even";
309741
+ resolution?: "effective" | "explicit";
309742
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
309743
+ }) | ({
309744
+ kind: "story";
309745
+ storyType: "headerFooterPart";
309746
+ refId: string;
309747
+ }) | ({
309748
+ kind: "story";
309749
+ storyType: "footnote";
309750
+ noteId: string;
309751
+ }) | ({
309752
+ kind: "story";
309753
+ storyType: "endnote";
309754
+ noteId: string;
309755
+ }) | ({
309756
+ kind: "story";
309757
+ storyType: "textbox";
309758
+ textboxId: string;
309759
+ });
308844
309760
  };
308845
309761
  }
308846
309762
  export interface DocHyperlinksWrapBoundParams {
@@ -308978,6 +309894,37 @@ export interface DocHyperlinksPatchBoundParams {
308978
309894
  offset: number;
308979
309895
  };
308980
309896
  };
309897
+ story?: ({
309898
+ kind: "story";
309899
+ storyType: "body";
309900
+ }) | ({
309901
+ kind: "story";
309902
+ storyType: "headerFooterSlot";
309903
+ section: {
309904
+ kind: "section";
309905
+ sectionId: string;
309906
+ };
309907
+ headerFooterKind: "header" | "footer";
309908
+ variant: "default" | "first" | "even";
309909
+ resolution?: "effective" | "explicit";
309910
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
309911
+ }) | ({
309912
+ kind: "story";
309913
+ storyType: "headerFooterPart";
309914
+ refId: string;
309915
+ }) | ({
309916
+ kind: "story";
309917
+ storyType: "footnote";
309918
+ noteId: string;
309919
+ }) | ({
309920
+ kind: "story";
309921
+ storyType: "endnote";
309922
+ noteId: string;
309923
+ }) | ({
309924
+ kind: "story";
309925
+ storyType: "textbox";
309926
+ textboxId: string;
309927
+ });
308981
309928
  };
308982
309929
  patch: {
308983
309930
  href?: string | unknown;
@@ -309008,6 +309955,37 @@ export interface DocHyperlinksRemoveBoundParams {
309008
309955
  offset: number;
309009
309956
  };
309010
309957
  };
309958
+ story?: ({
309959
+ kind: "story";
309960
+ storyType: "body";
309961
+ }) | ({
309962
+ kind: "story";
309963
+ storyType: "headerFooterSlot";
309964
+ section: {
309965
+ kind: "section";
309966
+ sectionId: string;
309967
+ };
309968
+ headerFooterKind: "header" | "footer";
309969
+ variant: "default" | "first" | "even";
309970
+ resolution?: "effective" | "explicit";
309971
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
309972
+ }) | ({
309973
+ kind: "story";
309974
+ storyType: "headerFooterPart";
309975
+ refId: string;
309976
+ }) | ({
309977
+ kind: "story";
309978
+ storyType: "footnote";
309979
+ noteId: string;
309980
+ }) | ({
309981
+ kind: "story";
309982
+ storyType: "endnote";
309983
+ noteId: string;
309984
+ }) | ({
309985
+ kind: "story";
309986
+ storyType: "textbox";
309987
+ textboxId: string;
309988
+ });
309011
309989
  };
309012
309990
  mode?: "unwrap" | "deleteText";
309013
309991
  }
@@ -309678,6 +310656,18 @@ export interface DocCreateContentControlBoundParams {
309678
310656
  content?: string;
309679
310657
  html?: string;
309680
310658
  json?: Record<string, unknown> | Array<Record<string, unknown>>;
310659
+ inline?: {
310660
+ bold?: boolean | unknown;
310661
+ italic?: boolean | unknown;
310662
+ strike?: boolean | unknown;
310663
+ underline?: boolean | unknown | ({
310664
+ style?: string | unknown;
310665
+ color?: string | unknown;
310666
+ themeColor?: string | unknown;
310667
+ });
310668
+ fontSize?: number | unknown;
310669
+ fontFamily?: string | unknown;
310670
+ };
309681
310671
  }
309682
310672
  export interface DocContentControlsListBoundParams {
309683
310673
  controlType?: string;
@@ -313920,6 +314910,11 @@ export interface DocDiffApplyBoundParams {
313920
314910
  }
313921
314911
  export interface DocExportToDocxBoundParams {
313922
314912
  mode?: "review-preserving" | "final" | "original";
314913
+ policies?: {
314914
+ trackedChanges?: "review-preserving" | "final" | "original";
314915
+ comments?: "preserve" | "resolve" | "remove";
314916
+ contentControls?: "preserve" | "flatten";
314917
+ };
313923
314918
  }
313924
314919
  export interface DocProtectionGetBoundParams {
313925
314920
  }