superdoc-sdk 1.6.0.dev47__tar.gz → 2.0.0.dev1__tar.gz

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 (38) hide show
  1. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/PKG-INFO +6 -6
  2. superdoc_sdk-2.0.0.dev1/pyproject.toml +34 -0
  3. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/generated/client.py +178 -12
  4. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/generated/contract.py +1 -1
  5. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/catalog.json +68 -21
  6. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/tools-policy.json +1 -1
  7. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/tools.anthropic.json +68 -21
  8. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/tools.generic.json +68 -21
  9. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/tools.openai.json +68 -21
  10. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/tools.vercel.json +68 -21
  11. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc_sdk.egg-info/PKG-INFO +6 -6
  12. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc_sdk.egg-info/requires.txt +5 -5
  13. superdoc_sdk-1.6.0.dev47/pyproject.toml +0 -34
  14. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/README.md +0 -0
  15. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/setup.cfg +0 -0
  16. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/__init__.py +0 -0
  17. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/client.py +0 -0
  18. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/embedded_cli.py +0 -0
  19. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/errors.py +0 -0
  20. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/generated/__init__.py +0 -0
  21. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/protocol.py +0 -0
  22. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/runtime.py +0 -0
  23. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/skill_api.py +0 -0
  24. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/skills/__init__.py +0 -0
  25. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/skills/editing-docx.md +0 -0
  26. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/test_parity_helper.py +0 -0
  27. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/intent_dispatch_generated.py +0 -0
  28. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/system-prompt-mcp.md +0 -0
  29. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools/system-prompt.md +0 -0
  30. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/tools_api.py +0 -0
  31. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc/transport.py +0 -0
  32. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc_sdk.egg-info/SOURCES.txt +0 -0
  33. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc_sdk.egg-info/dependency_links.txt +0 -0
  34. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/superdoc_sdk.egg-info/top_level.txt +0 -0
  35. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/tests/test_client_method_naming.py +0 -0
  36. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/tests/test_helpers_reexports.py +0 -0
  37. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/tests/test_protocol.py +0 -0
  38. {superdoc_sdk-1.6.0.dev47 → superdoc_sdk-2.0.0.dev1}/tests/test_transport.py +0 -0
@@ -1,16 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superdoc-sdk
3
- Version: 1.6.0.dev47
3
+ Version: 2.0.0.dev1
4
4
  Summary: SuperDoc SDK (CLI-backed)
5
5
  Author: SuperDoc
6
6
  License-Expression: AGPL-3.0
7
7
  Requires-Python: >=3.9
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: superdoc-sdk-cli-darwin-arm64==1.6.0.dev47; platform_system == "Darwin" and (platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ARM64")
10
- Requires-Dist: superdoc-sdk-cli-darwin-x64==1.6.0.dev47; platform_system == "Darwin" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
11
- Requires-Dist: superdoc-sdk-cli-linux-x64==1.6.0.dev47; platform_system == "Linux" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
12
- Requires-Dist: superdoc-sdk-cli-linux-arm64==1.6.0.dev47; platform_system == "Linux" and (platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ARM64")
13
- Requires-Dist: superdoc-sdk-cli-windows-x64==1.6.0.dev47; platform_system == "Windows" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
9
+ Requires-Dist: superdoc-sdk-cli-darwin-arm64==2.0.0.dev1; platform_system == "Darwin" and (platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ARM64")
10
+ Requires-Dist: superdoc-sdk-cli-darwin-x64==2.0.0.dev1; platform_system == "Darwin" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
11
+ Requires-Dist: superdoc-sdk-cli-linux-x64==2.0.0.dev1; platform_system == "Linux" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
12
+ Requires-Dist: superdoc-sdk-cli-linux-arm64==2.0.0.dev1; platform_system == "Linux" and (platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ARM64")
13
+ Requires-Dist: superdoc-sdk-cli-windows-x64==2.0.0.dev1; platform_system == "Windows" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
14
14
 
15
15
  # superdoc-sdk
16
16
 
@@ -0,0 +1,34 @@
1
+ [build-system]
2
+ requires = ["setuptools>=70.1", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "superdoc-sdk"
7
+ version = "2.0.0.dev1"
8
+ description = "SuperDoc SDK (CLI-backed)"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = "AGPL-3.0"
12
+ authors = [{ name = "SuperDoc" }]
13
+ dependencies = [
14
+ "superdoc-sdk-cli-darwin-arm64==2.0.0.dev1; platform_system == 'Darwin' and (platform_machine == 'arm64' or platform_machine == 'aarch64' or platform_machine == 'ARM64')",
15
+ "superdoc-sdk-cli-darwin-x64==2.0.0.dev1; platform_system == 'Darwin' and (platform_machine == 'x86_64' or platform_machine == 'AMD64' or platform_machine == 'amd64')",
16
+ "superdoc-sdk-cli-linux-x64==2.0.0.dev1; platform_system == 'Linux' and (platform_machine == 'x86_64' or platform_machine == 'AMD64' or platform_machine == 'amd64')",
17
+ "superdoc-sdk-cli-linux-arm64==2.0.0.dev1; platform_system == 'Linux' and (platform_machine == 'arm64' or platform_machine == 'aarch64' or platform_machine == 'ARM64')",
18
+ "superdoc-sdk-cli-windows-x64==2.0.0.dev1; platform_system == 'Windows' and (platform_machine == 'x86_64' or platform_machine == 'AMD64' or platform_machine == 'amd64')",
19
+ ]
20
+
21
+ [tool.setuptools]
22
+ packages = [
23
+ "superdoc",
24
+ "superdoc.generated",
25
+ "superdoc.skills",
26
+ "superdoc.tools",
27
+ ]
28
+
29
+ [tool.setuptools.package-data]
30
+ superdoc = [
31
+ "skills/*.md",
32
+ "tools/*.md",
33
+ "tools/*.json",
34
+ ]
@@ -24119,6 +24119,44 @@ DocRangesResolveResult = TypedDict(
24119
24119
  total=False,
24120
24120
  )
24121
24121
 
24122
+ DocSelectionCurrentResultTargetVariant1SegmentsItemRange = TypedDict(
24123
+ "DocSelectionCurrentResultTargetVariant1SegmentsItemRange",
24124
+ {
24125
+ "start": int | float,
24126
+ "end": int | float,
24127
+ },
24128
+ total=False,
24129
+ )
24130
+
24131
+ DocSelectionCurrentResultTargetVariant1SegmentsItem = TypedDict(
24132
+ "DocSelectionCurrentResultTargetVariant1SegmentsItem",
24133
+ {
24134
+ "blockId": str,
24135
+ "range": DocSelectionCurrentResultTargetVariant1SegmentsItemRange,
24136
+ },
24137
+ total=False,
24138
+ )
24139
+
24140
+ DocSelectionCurrentResultTargetVariant1 = TypedDict(
24141
+ "DocSelectionCurrentResultTargetVariant1",
24142
+ {
24143
+ "kind": Literal["text"],
24144
+ "segments": list[DocSelectionCurrentResultTargetVariant1SegmentsItem],
24145
+ },
24146
+ total=False,
24147
+ )
24148
+
24149
+ DocSelectionCurrentResult = TypedDict(
24150
+ "DocSelectionCurrentResult",
24151
+ {
24152
+ "empty": bool,
24153
+ "target": DocSelectionCurrentResultTargetVariant1 | None,
24154
+ "activeMarks": list[str],
24155
+ "text": str,
24156
+ },
24157
+ total=False,
24158
+ )
24159
+
24122
24160
  DocMutationsPreviewResultStepsItem = TypedDict(
24123
24161
  "DocMutationsPreviewResultStepsItem",
24124
24162
  {
@@ -26417,6 +26455,17 @@ DocCapabilitiesGetResultOperationsRangesResolve = TypedDict(
26417
26455
  total=False,
26418
26456
  )
26419
26457
 
26458
+ DocCapabilitiesGetResultOperationsSelectionCurrent = TypedDict(
26459
+ "DocCapabilitiesGetResultOperationsSelectionCurrent",
26460
+ {
26461
+ "available": bool,
26462
+ "tracked": bool,
26463
+ "dryRun": bool,
26464
+ "reasons": list[Literal["COMMAND_UNAVAILABLE"] | Literal["HELPER_UNAVAILABLE"] | Literal["OPERATION_UNAVAILABLE"] | Literal["TRACKED_MODE_UNAVAILABLE"] | Literal["DRY_RUN_UNAVAILABLE"] | Literal["NAMESPACE_UNAVAILABLE"] | Literal["STYLES_PART_MISSING"] | Literal["COLLABORATION_ACTIVE"]],
26465
+ },
26466
+ total=False,
26467
+ )
26468
+
26420
26469
  DocCapabilitiesGetResultOperationsMutationsPreview = TypedDict(
26421
26470
  "DocCapabilitiesGetResultOperationsMutationsPreview",
26422
26471
  {
@@ -29166,6 +29215,7 @@ DocCapabilitiesGetResultOperations = TypedDict(
29166
29215
  "trackChanges.decide": DocCapabilitiesGetResultOperationsTrackChangesDecide,
29167
29216
  "query.match": DocCapabilitiesGetResultOperationsQueryMatch,
29168
29217
  "ranges.resolve": DocCapabilitiesGetResultOperationsRangesResolve,
29218
+ "selection.current": DocCapabilitiesGetResultOperationsSelectionCurrent,
29169
29219
  "mutations.preview": DocCapabilitiesGetResultOperationsMutationsPreview,
29170
29220
  "mutations.apply": DocCapabilitiesGetResultOperationsMutationsApply,
29171
29221
  "capabilities.get": DocCapabilitiesGetResultOperationsCapabilitiesGet,
@@ -47344,8 +47394,8 @@ DocListsSetLevelLayoutParams = TypedDict(
47344
47394
  total=False,
47345
47395
  )
47346
47396
 
47347
- DocCommentsCreateParamsTargetRange = TypedDict(
47348
- "DocCommentsCreateParamsTargetRange",
47397
+ DocCommentsCreateParamsTargetVariant1Range = TypedDict(
47398
+ "DocCommentsCreateParamsTargetVariant1Range",
47349
47399
  {
47350
47400
  "start": int | float,
47351
47401
  "end": int | float,
@@ -47353,12 +47403,39 @@ DocCommentsCreateParamsTargetRange = TypedDict(
47353
47403
  total=False,
47354
47404
  )
47355
47405
 
47356
- DocCommentsCreateParamsTarget = TypedDict(
47357
- "DocCommentsCreateParamsTarget",
47406
+ DocCommentsCreateParamsTargetVariant1 = TypedDict(
47407
+ "DocCommentsCreateParamsTargetVariant1",
47358
47408
  {
47359
47409
  "kind": Literal["text"],
47360
47410
  "blockId": str,
47361
- "range": DocCommentsCreateParamsTargetRange,
47411
+ "range": DocCommentsCreateParamsTargetVariant1Range,
47412
+ },
47413
+ total=False,
47414
+ )
47415
+
47416
+ DocCommentsCreateParamsTargetVariant2SegmentsItemRange = TypedDict(
47417
+ "DocCommentsCreateParamsTargetVariant2SegmentsItemRange",
47418
+ {
47419
+ "start": int | float,
47420
+ "end": int | float,
47421
+ },
47422
+ total=False,
47423
+ )
47424
+
47425
+ DocCommentsCreateParamsTargetVariant2SegmentsItem = TypedDict(
47426
+ "DocCommentsCreateParamsTargetVariant2SegmentsItem",
47427
+ {
47428
+ "blockId": str,
47429
+ "range": DocCommentsCreateParamsTargetVariant2SegmentsItemRange,
47430
+ },
47431
+ total=False,
47432
+ )
47433
+
47434
+ DocCommentsCreateParamsTargetVariant2 = TypedDict(
47435
+ "DocCommentsCreateParamsTargetVariant2",
47436
+ {
47437
+ "kind": Literal["text"],
47438
+ "segments": list[DocCommentsCreateParamsTargetVariant2SegmentsItem],
47362
47439
  },
47363
47440
  total=False,
47364
47441
  )
@@ -47373,7 +47450,7 @@ DocCommentsCreateParams = TypedDict(
47373
47450
  "expectedRevision": int | float,
47374
47451
  "changeMode": str,
47375
47452
  "text": str,
47376
- "target": DocCommentsCreateParamsTarget,
47453
+ "target": DocCommentsCreateParamsTargetVariant1 | DocCommentsCreateParamsTargetVariant2,
47377
47454
  "parentId": str,
47378
47455
  "blockId": str,
47379
47456
  "start": int | float,
@@ -47938,6 +48015,16 @@ DocRangesResolveParams = TypedDict(
47938
48015
  total=False,
47939
48016
  )
47940
48017
 
48018
+ DocSelectionCurrentParams = TypedDict(
48019
+ "DocSelectionCurrentParams",
48020
+ {
48021
+ "doc": str,
48022
+ "sessionId": str,
48023
+ "includeText": bool,
48024
+ },
48025
+ total=False,
48026
+ )
48027
+
47941
48028
  DocMutationsPreviewParamsInVariant1 = TypedDict(
47942
48029
  "DocMutationsPreviewParamsInVariant1",
47943
48030
  {
@@ -66198,8 +66285,8 @@ DocListsSetLevelLayoutBoundParams = TypedDict(
66198
66285
  total=False,
66199
66286
  )
66200
66287
 
66201
- DocCommentsCreateBoundParamsTargetRange = TypedDict(
66202
- "DocCommentsCreateBoundParamsTargetRange",
66288
+ DocCommentsCreateBoundParamsTargetVariant1Range = TypedDict(
66289
+ "DocCommentsCreateBoundParamsTargetVariant1Range",
66203
66290
  {
66204
66291
  "start": int | float,
66205
66292
  "end": int | float,
@@ -66207,12 +66294,39 @@ DocCommentsCreateBoundParamsTargetRange = TypedDict(
66207
66294
  total=False,
66208
66295
  )
66209
66296
 
66210
- DocCommentsCreateBoundParamsTarget = TypedDict(
66211
- "DocCommentsCreateBoundParamsTarget",
66297
+ DocCommentsCreateBoundParamsTargetVariant1 = TypedDict(
66298
+ "DocCommentsCreateBoundParamsTargetVariant1",
66212
66299
  {
66213
66300
  "kind": Literal["text"],
66214
66301
  "blockId": str,
66215
- "range": DocCommentsCreateBoundParamsTargetRange,
66302
+ "range": DocCommentsCreateBoundParamsTargetVariant1Range,
66303
+ },
66304
+ total=False,
66305
+ )
66306
+
66307
+ DocCommentsCreateBoundParamsTargetVariant2SegmentsItemRange = TypedDict(
66308
+ "DocCommentsCreateBoundParamsTargetVariant2SegmentsItemRange",
66309
+ {
66310
+ "start": int | float,
66311
+ "end": int | float,
66312
+ },
66313
+ total=False,
66314
+ )
66315
+
66316
+ DocCommentsCreateBoundParamsTargetVariant2SegmentsItem = TypedDict(
66317
+ "DocCommentsCreateBoundParamsTargetVariant2SegmentsItem",
66318
+ {
66319
+ "blockId": str,
66320
+ "range": DocCommentsCreateBoundParamsTargetVariant2SegmentsItemRange,
66321
+ },
66322
+ total=False,
66323
+ )
66324
+
66325
+ DocCommentsCreateBoundParamsTargetVariant2 = TypedDict(
66326
+ "DocCommentsCreateBoundParamsTargetVariant2",
66327
+ {
66328
+ "kind": Literal["text"],
66329
+ "segments": list[DocCommentsCreateBoundParamsTargetVariant2SegmentsItem],
66216
66330
  },
66217
66331
  total=False,
66218
66332
  )
@@ -66225,7 +66339,7 @@ DocCommentsCreateBoundParams = TypedDict(
66225
66339
  "expectedRevision": int | float,
66226
66340
  "changeMode": str,
66227
66341
  "text": str,
66228
- "target": DocCommentsCreateBoundParamsTarget,
66342
+ "target": DocCommentsCreateBoundParamsTargetVariant1 | DocCommentsCreateBoundParamsTargetVariant2,
66229
66343
  "parentId": str,
66230
66344
  "blockId": str,
66231
66345
  "start": int | float,
@@ -66772,6 +66886,14 @@ DocRangesResolveBoundParams = TypedDict(
66772
66886
  total=False,
66773
66887
  )
66774
66888
 
66889
+ DocSelectionCurrentBoundParams = TypedDict(
66890
+ "DocSelectionCurrentBoundParams",
66891
+ {
66892
+ "includeText": bool,
66893
+ },
66894
+ total=False,
66895
+ )
66896
+
66775
66897
  DocMutationsPreviewBoundParamsInVariant1 = TypedDict(
66776
66898
  "DocMutationsPreviewBoundParamsInVariant1",
66777
66899
  {
@@ -76005,6 +76127,10 @@ class _SyncDocApi:
76005
76127
  def ranges(self):
76006
76128
  return _SyncDocRangesApi(self._runtime)
76007
76129
 
76130
+ @property
76131
+ def selection(self):
76132
+ return _SyncDocSelectionApi(self._runtime)
76133
+
76008
76134
  @property
76009
76135
  def mutations(self):
76010
76136
  return _SyncDocMutationsApi(self._runtime)
@@ -76943,6 +77069,13 @@ class _SyncDocRangesApi:
76943
77069
  def resolve(self, params: DocRangesResolveParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocRangesResolveResult:
76944
77070
  return self._runtime.invoke("doc.ranges.resolve", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
76945
77071
 
77072
+ class _SyncDocSelectionApi:
77073
+ def __init__(self, runtime):
77074
+ self._runtime = runtime
77075
+
77076
+ def current(self, params: DocSelectionCurrentParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocSelectionCurrentResult:
77077
+ return self._runtime.invoke("doc.selection.current", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
77078
+
76946
77079
  class _SyncDocMutationsApi:
76947
77080
  def __init__(self, runtime):
76948
77081
  self._runtime = runtime
@@ -78378,6 +78511,10 @@ class _AsyncDocApi:
78378
78511
  def ranges(self):
78379
78512
  return _AsyncDocRangesApi(self._runtime)
78380
78513
 
78514
+ @property
78515
+ def selection(self):
78516
+ return _AsyncDocSelectionApi(self._runtime)
78517
+
78381
78518
  @property
78382
78519
  def mutations(self):
78383
78520
  return _AsyncDocMutationsApi(self._runtime)
@@ -79316,6 +79453,13 @@ class _AsyncDocRangesApi:
79316
79453
  async def resolve(self, params: DocRangesResolveParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocRangesResolveResult:
79317
79454
  return await self._runtime.invoke("doc.ranges.resolve", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
79318
79455
 
79456
+ class _AsyncDocSelectionApi:
79457
+ def __init__(self, runtime):
79458
+ self._runtime = runtime
79459
+
79460
+ async def current(self, params: DocSelectionCurrentParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocSelectionCurrentResult:
79461
+ return await self._runtime.invoke("doc.selection.current", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
79462
+
79319
79463
  class _AsyncDocMutationsApi:
79320
79464
  def __init__(self, runtime):
79321
79465
  self._runtime = runtime
@@ -80755,6 +80899,10 @@ class _SyncBoundDocApi:
80755
80899
  def ranges(self):
80756
80900
  return _SyncBoundDocRangesApi(self._runtime)
80757
80901
 
80902
+ @property
80903
+ def selection(self):
80904
+ return _SyncBoundDocSelectionApi(self._runtime)
80905
+
80758
80906
  @property
80759
80907
  def mutations(self):
80760
80908
  return _SyncBoundDocMutationsApi(self._runtime)
@@ -81674,6 +81822,13 @@ class _SyncBoundDocRangesApi:
81674
81822
  def resolve(self, params: DocRangesResolveBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocRangesResolveResult:
81675
81823
  return self._runtime.invoke("doc.ranges.resolve", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
81676
81824
 
81825
+ class _SyncBoundDocSelectionApi:
81826
+ def __init__(self, runtime):
81827
+ self._runtime = runtime
81828
+
81829
+ def current(self, params: DocSelectionCurrentBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocSelectionCurrentResult:
81830
+ return self._runtime.invoke("doc.selection.current", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
81831
+
81677
81832
  class _SyncBoundDocMutationsApi:
81678
81833
  def __init__(self, runtime):
81679
81834
  self._runtime = runtime
@@ -83090,6 +83245,10 @@ class _AsyncBoundDocApi:
83090
83245
  def ranges(self):
83091
83246
  return _AsyncBoundDocRangesApi(self._runtime)
83092
83247
 
83248
+ @property
83249
+ def selection(self):
83250
+ return _AsyncBoundDocSelectionApi(self._runtime)
83251
+
83093
83252
  @property
83094
83253
  def mutations(self):
83095
83254
  return _AsyncBoundDocMutationsApi(self._runtime)
@@ -84009,6 +84168,13 @@ class _AsyncBoundDocRangesApi:
84009
84168
  async def resolve(self, params: DocRangesResolveBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocRangesResolveResult:
84010
84169
  return await self._runtime.invoke("doc.ranges.resolve", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
84011
84170
 
84171
+ class _AsyncBoundDocSelectionApi:
84172
+ def __init__(self, runtime):
84173
+ self._runtime = runtime
84174
+
84175
+ async def current(self, params: DocSelectionCurrentBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocSelectionCurrentResult:
84176
+ return await self._runtime.invoke("doc.selection.current", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
84177
+
84012
84178
  class _AsyncBoundDocMutationsApi:
84013
84179
  def __init__(self, runtime):
84014
84180
  self._runtime = runtime