@superdoc/sdk 2.9.1-next.2 → 2.10.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 (57) hide show
  1. package/README.md +45 -0
  2. package/dist/action-primitives/doc-index.cjs +6 -4
  3. package/dist/action-primitives/doc-index.js +6 -4
  4. package/dist/action-primitives/engine.cjs +6 -2
  5. package/dist/action-primitives/engine.js +6 -2
  6. package/dist/action-primitives/receipt.d.ts +4 -0
  7. package/dist/action-primitives/tools/structure-insert.d.ts +1 -1
  8. package/dist/agent/actions.cjs +384 -373
  9. package/dist/agent/actions.d.ts +5 -0
  10. package/dist/agent/actions.js +385 -374
  11. package/dist/agent/catalog.cjs +15 -0
  12. package/dist/agent/catalog.js +15 -0
  13. package/dist/agent/doc-snapshot.cjs +205 -86
  14. package/dist/agent/doc-snapshot.d.ts +11 -0
  15. package/dist/agent/doc-snapshot.js +203 -86
  16. package/dist/agent/execution-context.cjs +385 -0
  17. package/dist/agent/execution-context.d.ts +97 -0
  18. package/dist/agent/execution-context.js +376 -0
  19. package/dist/agent/runtime.cjs +123 -117
  20. package/dist/agent/runtime.d.ts +3 -0
  21. package/dist/agent/runtime.js +124 -118
  22. package/dist/agent/v2-preset-compat.cjs +5 -1
  23. package/dist/agent/v2-preset-compat.js +4 -1
  24. package/dist/embedded-tools.generated.cjs +5 -5
  25. package/dist/embedded-tools.generated.js +5 -5
  26. package/dist/generated/client.cjs +2 -0
  27. package/dist/generated/client.d.ts +85 -0
  28. package/dist/generated/client.js +2 -0
  29. package/dist/generated/contract.cjs +1796 -1297
  30. package/dist/generated/contract.js +1797 -1297
  31. package/dist/index.cjs +23 -0
  32. package/dist/index.d.ts +7 -2
  33. package/dist/index.js +23 -0
  34. package/dist/presets/core.cjs +1 -1
  35. package/dist/presets/core.js +1 -1
  36. package/dist/runtime/document-evidence.cjs +40 -0
  37. package/dist/runtime/document-evidence.d.ts +13 -0
  38. package/dist/runtime/document-evidence.js +30 -0
  39. package/dist/runtime/document-rpc.cjs +27 -0
  40. package/dist/runtime/document-rpc.d.ts +2 -0
  41. package/dist/runtime/document-rpc.js +25 -0
  42. package/dist/runtime/host.cjs +65 -4
  43. package/dist/runtime/host.d.ts +3 -0
  44. package/dist/runtime/host.js +66 -5
  45. package/dist/runtime/process.cjs +38 -0
  46. package/dist/runtime/process.d.ts +16 -0
  47. package/dist/runtime/process.js +38 -0
  48. package/dist/runtime/sdk-version.generated.cjs +1 -1
  49. package/dist/runtime/sdk-version.generated.d.ts +1 -1
  50. package/dist/runtime/sdk-version.generated.js +1 -1
  51. package/package.json +10 -8
  52. package/tools/catalog.json +89 -0
  53. package/tools/tools-policy.json +1 -1
  54. package/tools/tools.anthropic.json +89 -0
  55. package/tools/tools.generic.json +89 -0
  56. package/tools/tools.openai.json +89 -0
  57. package/tools/tools.vercel.json +89 -0
@@ -29,6 +29,7 @@ function createDocApi(runtime) {
29
29
  delete: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.delete"], params, options),
30
30
  formatRange: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.formatRange"], params, options),
31
31
  blocks: {
32
+ findText: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.findText"], params, options),
32
33
  list: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.list"], params, options),
33
34
  delete: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.delete"], params, options),
34
35
  deleteRange: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.deleteRange"], params, options),
@@ -591,6 +592,7 @@ function createBoundDocApi(runtime) {
591
592
  delete: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.delete"], params, options),
592
593
  formatRange: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.formatRange"], params, options),
593
594
  blocks: {
595
+ findText: (params, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.findText"], params, options),
594
596
  list: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.list"], params, options),
595
597
  delete: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.delete"], params, options),
596
598
  deleteRange: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.blocks.deleteRange"], params, options),
@@ -3027,9 +3027,21 @@ export interface DocFormatRangeParams {
3027
3027
  };
3028
3028
  ref?: string;
3029
3029
  }
3030
+ export interface DocBlocksFindTextParams {
3031
+ doc?: string;
3032
+ sessionId?: string;
3033
+ text: string;
3034
+ limit?: number;
3035
+ }
3030
3036
  export interface DocBlocksListParams {
3031
3037
  doc?: string;
3032
3038
  sessionId?: string;
3039
+ nodeIds?: string[];
3040
+ textSearch?: {
3041
+ terms: Array<string>;
3042
+ match?: "all" | "any";
3043
+ caseSensitive?: boolean;
3044
+ };
3033
3045
  in?: ({
3034
3046
  kind: "story";
3035
3047
  storyType: "body";
@@ -19289,6 +19301,7 @@ export interface DocQueryMatchParams {
19289
19301
  mode?: "contains" | "regex";
19290
19302
  caseSensitive?: boolean;
19291
19303
  wholeWord?: boolean;
19304
+ includeDeletedText?: boolean;
19292
19305
  }) | ({
19293
19306
  type: "node";
19294
19307
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -19595,6 +19608,7 @@ export interface DocMutationsPreviewParams {
19595
19608
  mode?: "contains" | "regex";
19596
19609
  caseSensitive?: boolean;
19597
19610
  wholeWord?: boolean;
19611
+ includeDeletedText?: boolean;
19598
19612
  }) | ({
19599
19613
  type: "node";
19600
19614
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -19876,6 +19890,8 @@ export interface DocMutationsPreviewParams {
19876
19890
  text: string;
19877
19891
  }>;
19878
19892
  });
19893
+ replacementMode?: "literal" | "regex-template";
19894
+ caseHandling?: "exact" | "preserve-match";
19879
19895
  style?: {
19880
19896
  inline: {
19881
19897
  mode: "preserve" | "set" | "clear" | "merge";
@@ -19904,6 +19920,7 @@ export interface DocMutationsPreviewParams {
19904
19920
  mode?: "contains" | "regex";
19905
19921
  caseSensitive?: boolean;
19906
19922
  wholeWord?: boolean;
19923
+ includeDeletedText?: boolean;
19907
19924
  }) | ({
19908
19925
  type: "node";
19909
19926
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -20205,6 +20222,7 @@ export interface DocMutationsPreviewParams {
20205
20222
  mode?: "contains" | "regex";
20206
20223
  caseSensitive?: boolean;
20207
20224
  wholeWord?: boolean;
20225
+ includeDeletedText?: boolean;
20208
20226
  }) | ({
20209
20227
  type: "node";
20210
20228
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -20492,6 +20510,7 @@ export interface DocMutationsPreviewParams {
20492
20510
  mode?: "contains" | "regex";
20493
20511
  caseSensitive?: boolean;
20494
20512
  wholeWord?: boolean;
20513
+ includeDeletedText?: boolean;
20495
20514
  }) | ({
20496
20515
  type: "node";
20497
20516
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -20864,6 +20883,7 @@ export interface DocMutationsPreviewParams {
20864
20883
  mode?: "contains" | "regex";
20865
20884
  caseSensitive?: boolean;
20866
20885
  wholeWord?: boolean;
20886
+ includeDeletedText?: boolean;
20867
20887
  }) | ({
20868
20888
  type: "node";
20869
20889
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -20910,6 +20930,10 @@ export interface DocMutationsPreviewParams {
20910
20930
  expectCount: number;
20911
20931
  };
20912
20932
  })>;
20933
+ detail?: {
20934
+ offset?: number;
20935
+ limit?: number;
20936
+ };
20913
20937
  }
20914
20938
  export interface DocMutationsApplyParams {
20915
20939
  doc?: string;
@@ -20961,6 +20985,7 @@ export interface DocMutationsApplyParams {
20961
20985
  mode?: "contains" | "regex";
20962
20986
  caseSensitive?: boolean;
20963
20987
  wholeWord?: boolean;
20988
+ includeDeletedText?: boolean;
20964
20989
  }) | ({
20965
20990
  type: "node";
20966
20991
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -21242,6 +21267,8 @@ export interface DocMutationsApplyParams {
21242
21267
  text: string;
21243
21268
  }>;
21244
21269
  });
21270
+ replacementMode?: "literal" | "regex-template";
21271
+ caseHandling?: "exact" | "preserve-match";
21245
21272
  style?: {
21246
21273
  inline: {
21247
21274
  mode: "preserve" | "set" | "clear" | "merge";
@@ -21270,6 +21297,7 @@ export interface DocMutationsApplyParams {
21270
21297
  mode?: "contains" | "regex";
21271
21298
  caseSensitive?: boolean;
21272
21299
  wholeWord?: boolean;
21300
+ includeDeletedText?: boolean;
21273
21301
  }) | ({
21274
21302
  type: "node";
21275
21303
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -21571,6 +21599,7 @@ export interface DocMutationsApplyParams {
21571
21599
  mode?: "contains" | "regex";
21572
21600
  caseSensitive?: boolean;
21573
21601
  wholeWord?: boolean;
21602
+ includeDeletedText?: boolean;
21574
21603
  }) | ({
21575
21604
  type: "node";
21576
21605
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -21858,6 +21887,7 @@ export interface DocMutationsApplyParams {
21858
21887
  mode?: "contains" | "regex";
21859
21888
  caseSensitive?: boolean;
21860
21889
  wholeWord?: boolean;
21890
+ includeDeletedText?: boolean;
21861
21891
  }) | ({
21862
21892
  type: "node";
21863
21893
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -22230,6 +22260,7 @@ export interface DocMutationsApplyParams {
22230
22260
  mode?: "contains" | "regex";
22231
22261
  caseSensitive?: boolean;
22232
22262
  wholeWord?: boolean;
22263
+ includeDeletedText?: boolean;
22233
22264
  }) | ({
22234
22265
  type: "node";
22235
22266
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -39134,6 +39165,22 @@ export type DocFormatRangeResult = {
39134
39165
  }>;
39135
39166
  };
39136
39167
  };
39168
+ export type DocBlocksFindTextResult = {
39169
+ total: number;
39170
+ matches: Array<{
39171
+ ordinal: number;
39172
+ nodeId: string;
39173
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
39174
+ preview: string;
39175
+ }>;
39176
+ firstMatchOrdinal?: number;
39177
+ scanError?: {
39178
+ message: string;
39179
+ };
39180
+ scannedBlocks: number;
39181
+ truncated: boolean;
39182
+ revision: string;
39183
+ };
39137
39184
  export type DocBlocksListResult = {
39138
39185
  total: number;
39139
39186
  blocks: Array<{
@@ -103335,6 +103382,12 @@ export type DocCapabilitiesGetResult = {
103335
103382
  dryRun: boolean;
103336
103383
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
103337
103384
  };
103385
+ "blocks.findText": {
103386
+ available: boolean;
103387
+ tracked: boolean;
103388
+ dryRun: boolean;
103389
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
103390
+ };
103338
103391
  "blocks.list": {
103339
103392
  available: boolean;
103340
103393
  tracked: boolean;
@@ -110004,6 +110057,7 @@ export type DocTablesGetCellsResult = {
110004
110057
  nodeId: string;
110005
110058
  };
110006
110059
  cells: Array<{
110060
+ firstParagraphNodeId?: string;
110007
110061
  nodeId: string;
110008
110062
  address: {
110009
110063
  kind: "block";
@@ -121672,7 +121726,17 @@ export interface DocFormatRangeBoundParams {
121672
121726
  };
121673
121727
  ref?: string;
121674
121728
  }
121729
+ export interface DocBlocksFindTextBoundParams {
121730
+ text: string;
121731
+ limit?: number;
121732
+ }
121675
121733
  export interface DocBlocksListBoundParams {
121734
+ nodeIds?: string[];
121735
+ textSearch?: {
121736
+ terms: Array<string>;
121737
+ match?: "all" | "any";
121738
+ caseSensitive?: boolean;
121739
+ };
121676
121740
  in?: ({
121677
121741
  kind: "story";
121678
121742
  storyType: "body";
@@ -137632,6 +137696,7 @@ export interface DocQueryMatchBoundParams {
137632
137696
  mode?: "contains" | "regex";
137633
137697
  caseSensitive?: boolean;
137634
137698
  wholeWord?: boolean;
137699
+ includeDeletedText?: boolean;
137635
137700
  }) | ({
137636
137701
  type: "node";
137637
137702
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -137932,6 +137997,7 @@ export interface DocMutationsPreviewBoundParams {
137932
137997
  mode?: "contains" | "regex";
137933
137998
  caseSensitive?: boolean;
137934
137999
  wholeWord?: boolean;
138000
+ includeDeletedText?: boolean;
137935
138001
  }) | ({
137936
138002
  type: "node";
137937
138003
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -138213,6 +138279,8 @@ export interface DocMutationsPreviewBoundParams {
138213
138279
  text: string;
138214
138280
  }>;
138215
138281
  });
138282
+ replacementMode?: "literal" | "regex-template";
138283
+ caseHandling?: "exact" | "preserve-match";
138216
138284
  style?: {
138217
138285
  inline: {
138218
138286
  mode: "preserve" | "set" | "clear" | "merge";
@@ -138241,6 +138309,7 @@ export interface DocMutationsPreviewBoundParams {
138241
138309
  mode?: "contains" | "regex";
138242
138310
  caseSensitive?: boolean;
138243
138311
  wholeWord?: boolean;
138312
+ includeDeletedText?: boolean;
138244
138313
  }) | ({
138245
138314
  type: "node";
138246
138315
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -138542,6 +138611,7 @@ export interface DocMutationsPreviewBoundParams {
138542
138611
  mode?: "contains" | "regex";
138543
138612
  caseSensitive?: boolean;
138544
138613
  wholeWord?: boolean;
138614
+ includeDeletedText?: boolean;
138545
138615
  }) | ({
138546
138616
  type: "node";
138547
138617
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -138829,6 +138899,7 @@ export interface DocMutationsPreviewBoundParams {
138829
138899
  mode?: "contains" | "regex";
138830
138900
  caseSensitive?: boolean;
138831
138901
  wholeWord?: boolean;
138902
+ includeDeletedText?: boolean;
138832
138903
  }) | ({
138833
138904
  type: "node";
138834
138905
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -139201,6 +139272,7 @@ export interface DocMutationsPreviewBoundParams {
139201
139272
  mode?: "contains" | "regex";
139202
139273
  caseSensitive?: boolean;
139203
139274
  wholeWord?: boolean;
139275
+ includeDeletedText?: boolean;
139204
139276
  }) | ({
139205
139277
  type: "node";
139206
139278
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -139247,6 +139319,10 @@ export interface DocMutationsPreviewBoundParams {
139247
139319
  expectCount: number;
139248
139320
  };
139249
139321
  })>;
139322
+ detail?: {
139323
+ offset?: number;
139324
+ limit?: number;
139325
+ };
139250
139326
  }
139251
139327
  export interface DocMutationsApplyBoundParams {
139252
139328
  out?: string;
@@ -139296,6 +139372,7 @@ export interface DocMutationsApplyBoundParams {
139296
139372
  mode?: "contains" | "regex";
139297
139373
  caseSensitive?: boolean;
139298
139374
  wholeWord?: boolean;
139375
+ includeDeletedText?: boolean;
139299
139376
  }) | ({
139300
139377
  type: "node";
139301
139378
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -139577,6 +139654,8 @@ export interface DocMutationsApplyBoundParams {
139577
139654
  text: string;
139578
139655
  }>;
139579
139656
  });
139657
+ replacementMode?: "literal" | "regex-template";
139658
+ caseHandling?: "exact" | "preserve-match";
139580
139659
  style?: {
139581
139660
  inline: {
139582
139661
  mode: "preserve" | "set" | "clear" | "merge";
@@ -139605,6 +139684,7 @@ export interface DocMutationsApplyBoundParams {
139605
139684
  mode?: "contains" | "regex";
139606
139685
  caseSensitive?: boolean;
139607
139686
  wholeWord?: boolean;
139687
+ includeDeletedText?: boolean;
139608
139688
  }) | ({
139609
139689
  type: "node";
139610
139690
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -139906,6 +139986,7 @@ export interface DocMutationsApplyBoundParams {
139906
139986
  mode?: "contains" | "regex";
139907
139987
  caseSensitive?: boolean;
139908
139988
  wholeWord?: boolean;
139989
+ includeDeletedText?: boolean;
139909
139990
  }) | ({
139910
139991
  type: "node";
139911
139992
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -140193,6 +140274,7 @@ export interface DocMutationsApplyBoundParams {
140193
140274
  mode?: "contains" | "regex";
140194
140275
  caseSensitive?: boolean;
140195
140276
  wholeWord?: boolean;
140277
+ includeDeletedText?: boolean;
140196
140278
  }) | ({
140197
140279
  type: "node";
140198
140280
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -140565,6 +140647,7 @@ export interface DocMutationsApplyBoundParams {
140565
140647
  mode?: "contains" | "regex";
140566
140648
  caseSensitive?: boolean;
140567
140649
  wholeWord?: boolean;
140650
+ includeDeletedText?: boolean;
140568
140651
  }) | ({
140569
140652
  type: "node";
140570
140653
  nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
@@ -148939,6 +149022,7 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
148939
149022
  delete: (params?: DocDeleteParams, options?: InvokeOptions) => Promise<DocDeleteResult>;
148940
149023
  formatRange: (params: DocFormatRangeParams, options?: InvokeOptions) => Promise<DocFormatRangeResult>;
148941
149024
  blocks: {
149025
+ findText: (params: DocBlocksFindTextParams, options?: InvokeOptions) => Promise<DocBlocksFindTextResult>;
148942
149026
  list: (params?: DocBlocksListParams, options?: InvokeOptions) => Promise<DocBlocksListResult>;
148943
149027
  delete: (params?: DocBlocksDeleteParams, options?: InvokeOptions) => Promise<DocBlocksDeleteResult>;
148944
149028
  deleteRange: (params?: DocBlocksDeleteRangeParams, options?: InvokeOptions) => Promise<DocBlocksDeleteRangeResult>;
@@ -149497,6 +149581,7 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
149497
149581
  delete: (params?: DocDeleteBoundParams, options?: InvokeOptions) => Promise<DocDeleteResult>;
149498
149582
  formatRange: (params: DocFormatRangeBoundParams, options?: InvokeOptions) => Promise<DocFormatRangeResult>;
149499
149583
  blocks: {
149584
+ findText: (params: DocBlocksFindTextBoundParams, options?: InvokeOptions) => Promise<DocBlocksFindTextResult>;
149500
149585
  list: (params?: DocBlocksListBoundParams, options?: InvokeOptions) => Promise<DocBlocksListResult>;
149501
149586
  delete: (params?: DocBlocksDeleteBoundParams, options?: InvokeOptions) => Promise<DocBlocksDeleteResult>;
149502
149587
  deleteRange: (params?: DocBlocksDeleteRangeBoundParams, options?: InvokeOptions) => Promise<DocBlocksDeleteRangeResult>;
@@ -26,6 +26,7 @@ export function createDocApi(runtime) {
26
26
  delete: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.delete"], params, options),
27
27
  formatRange: (params, options) => runtime.invoke(CONTRACT.operations["doc.formatRange"], params, options),
28
28
  blocks: {
29
+ findText: (params, options) => runtime.invoke(CONTRACT.operations["doc.blocks.findText"], params, options),
29
30
  list: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.blocks.list"], params, options),
30
31
  delete: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.blocks.delete"], params, options),
31
32
  deleteRange: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.blocks.deleteRange"], params, options),
@@ -588,6 +589,7 @@ export function createBoundDocApi(runtime) {
588
589
  delete: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.delete"], params, options),
589
590
  formatRange: (params, options) => runtime.invoke(CONTRACT.operations["doc.formatRange"], params, options),
590
591
  blocks: {
592
+ findText: (params, options) => runtime.invoke(CONTRACT.operations["doc.blocks.findText"], params, options),
591
593
  list: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.blocks.list"], params, options),
592
594
  delete: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.blocks.delete"], params, options),
593
595
  deleteRange: (params = {}, options) => runtime.invoke(CONTRACT.operations["doc.blocks.deleteRange"], params, options),