superdoc-sdk 1.4.0__tar.gz → 1.5.1.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.
Potentially problematic release.
This version of superdoc-sdk might be problematic. Click here for more details.
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/PKG-INFO +6 -6
- superdoc_sdk-1.5.1.dev1/pyproject.toml +34 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/generated/client.py +87 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/generated/contract.py +1 -1
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools/catalog.json +6 -1
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools/intent_dispatch_generated.py +2 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools/tools-policy.json +1 -1
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools/tools.anthropic.json +2 -1
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools/tools.generic.json +4 -2
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools/tools.openai.json +2 -1
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools/tools.vercel.json +2 -1
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc_sdk.egg-info/PKG-INFO +6 -6
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc_sdk.egg-info/requires.txt +5 -5
- superdoc_sdk-1.4.0/pyproject.toml +0 -34
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/README.md +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/setup.cfg +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/__init__.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/client.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/embedded_cli.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/errors.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/generated/__init__.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/protocol.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/runtime.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/skill_api.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/skills/__init__.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/skills/editing-docx.md +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/test_parity_helper.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools/system-prompt.md +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/tools_api.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc/transport.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc_sdk.egg-info/SOURCES.txt +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc_sdk.egg-info/dependency_links.txt +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/superdoc_sdk.egg-info/top_level.txt +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/tests/test_client_method_naming.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/tests/test_helpers_reexports.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.dev1}/tests/test_protocol.py +0 -0
- {superdoc_sdk-1.4.0 → superdoc_sdk-1.5.1.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.
|
|
3
|
+
Version: 1.5.1.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.
|
|
10
|
-
Requires-Dist: superdoc-sdk-cli-darwin-x64==1.
|
|
11
|
-
Requires-Dist: superdoc-sdk-cli-linux-x64==1.
|
|
12
|
-
Requires-Dist: superdoc-sdk-cli-linux-arm64==1.
|
|
13
|
-
Requires-Dist: superdoc-sdk-cli-windows-x64==1.
|
|
9
|
+
Requires-Dist: superdoc-sdk-cli-darwin-arm64==1.5.1.dev1; platform_system == "Darwin" and (platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ARM64")
|
|
10
|
+
Requires-Dist: superdoc-sdk-cli-darwin-x64==1.5.1.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==1.5.1.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==1.5.1.dev1; platform_system == "Linux" and (platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ARM64")
|
|
13
|
+
Requires-Dist: superdoc-sdk-cli-windows-x64==1.5.1.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 = "1.5.1.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==1.5.1.dev1; platform_system == 'Darwin' and (platform_machine == 'arm64' or platform_machine == 'aarch64' or platform_machine == 'ARM64')",
|
|
15
|
+
"superdoc-sdk-cli-darwin-x64==1.5.1.dev1; platform_system == 'Darwin' and (platform_machine == 'x86_64' or platform_machine == 'AMD64' or platform_machine == 'amd64')",
|
|
16
|
+
"superdoc-sdk-cli-linux-x64==1.5.1.dev1; platform_system == 'Linux' and (platform_machine == 'x86_64' or platform_machine == 'AMD64' or platform_machine == 'amd64')",
|
|
17
|
+
"superdoc-sdk-cli-linux-arm64==1.5.1.dev1; platform_system == 'Linux' and (platform_machine == 'arm64' or platform_machine == 'aarch64' or platform_machine == 'ARM64')",
|
|
18
|
+
"superdoc-sdk-cli-windows-x64==1.5.1.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
|
+
]
|
|
@@ -351,6 +351,53 @@ DocInfoResult = TypedDict(
|
|
|
351
351
|
total=False,
|
|
352
352
|
)
|
|
353
353
|
|
|
354
|
+
DocExtractResultBlocksItem = TypedDict(
|
|
355
|
+
"DocExtractResultBlocksItem",
|
|
356
|
+
{
|
|
357
|
+
"nodeId": str,
|
|
358
|
+
"type": str,
|
|
359
|
+
"text": str,
|
|
360
|
+
"headingLevel": int | float,
|
|
361
|
+
},
|
|
362
|
+
total=False,
|
|
363
|
+
)
|
|
364
|
+
|
|
365
|
+
DocExtractResultCommentsItem = TypedDict(
|
|
366
|
+
"DocExtractResultCommentsItem",
|
|
367
|
+
{
|
|
368
|
+
"entityId": str,
|
|
369
|
+
"text": str,
|
|
370
|
+
"anchoredText": str,
|
|
371
|
+
"blockId": str,
|
|
372
|
+
"status": Literal["open"] | Literal["resolved"],
|
|
373
|
+
"author": str,
|
|
374
|
+
},
|
|
375
|
+
total=False,
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
DocExtractResultTrackedChangesItem = TypedDict(
|
|
379
|
+
"DocExtractResultTrackedChangesItem",
|
|
380
|
+
{
|
|
381
|
+
"entityId": str,
|
|
382
|
+
"type": Literal["insert"] | Literal["delete"] | Literal["format"],
|
|
383
|
+
"excerpt": str,
|
|
384
|
+
"author": str,
|
|
385
|
+
"date": str,
|
|
386
|
+
},
|
|
387
|
+
total=False,
|
|
388
|
+
)
|
|
389
|
+
|
|
390
|
+
DocExtractResult = TypedDict(
|
|
391
|
+
"DocExtractResult",
|
|
392
|
+
{
|
|
393
|
+
"blocks": list[DocExtractResultBlocksItem],
|
|
394
|
+
"comments": list[DocExtractResultCommentsItem],
|
|
395
|
+
"trackedChanges": list[DocExtractResultTrackedChangesItem],
|
|
396
|
+
"revision": str,
|
|
397
|
+
},
|
|
398
|
+
total=False,
|
|
399
|
+
)
|
|
400
|
+
|
|
354
401
|
DocClearContentResultInsertedItemVariant1 = TypedDict(
|
|
355
402
|
"DocClearContentResultInsertedItemVariant1",
|
|
356
403
|
{
|
|
@@ -15037,6 +15084,17 @@ DocCapabilitiesGetResultOperationsInfo = TypedDict(
|
|
|
15037
15084
|
total=False,
|
|
15038
15085
|
)
|
|
15039
15086
|
|
|
15087
|
+
DocCapabilitiesGetResultOperationsExtract = TypedDict(
|
|
15088
|
+
"DocCapabilitiesGetResultOperationsExtract",
|
|
15089
|
+
{
|
|
15090
|
+
"available": bool,
|
|
15091
|
+
"tracked": bool,
|
|
15092
|
+
"dryRun": bool,
|
|
15093
|
+
"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"]],
|
|
15094
|
+
},
|
|
15095
|
+
total=False,
|
|
15096
|
+
)
|
|
15097
|
+
|
|
15040
15098
|
DocCapabilitiesGetResultOperationsClearContent = TypedDict(
|
|
15041
15099
|
"DocCapabilitiesGetResultOperationsClearContent",
|
|
15042
15100
|
{
|
|
@@ -19185,6 +19243,7 @@ DocCapabilitiesGetResultOperations = TypedDict(
|
|
|
19185
19243
|
"getHtml": DocCapabilitiesGetResultOperationsGetHtml,
|
|
19186
19244
|
"markdownToFragment": DocCapabilitiesGetResultOperationsMarkdownToFragment,
|
|
19187
19245
|
"info": DocCapabilitiesGetResultOperationsInfo,
|
|
19246
|
+
"extract": DocCapabilitiesGetResultOperationsExtract,
|
|
19188
19247
|
"clearContent": DocCapabilitiesGetResultOperationsClearContent,
|
|
19189
19248
|
"insert": DocCapabilitiesGetResultOperationsInsert,
|
|
19190
19249
|
"replace": DocCapabilitiesGetResultOperationsReplace,
|
|
@@ -26596,6 +26655,15 @@ DocInfoParams = TypedDict(
|
|
|
26596
26655
|
total=False,
|
|
26597
26656
|
)
|
|
26598
26657
|
|
|
26658
|
+
DocExtractParams = TypedDict(
|
|
26659
|
+
"DocExtractParams",
|
|
26660
|
+
{
|
|
26661
|
+
"doc": str,
|
|
26662
|
+
"sessionId": str,
|
|
26663
|
+
},
|
|
26664
|
+
total=False,
|
|
26665
|
+
)
|
|
26666
|
+
|
|
26599
26667
|
DocClearContentParams = TypedDict(
|
|
26600
26668
|
"DocClearContentParams",
|
|
26601
26669
|
{
|
|
@@ -45152,6 +45220,13 @@ DocInfoBoundParams = TypedDict(
|
|
|
45152
45220
|
total=False,
|
|
45153
45221
|
)
|
|
45154
45222
|
|
|
45223
|
+
DocExtractBoundParams = TypedDict(
|
|
45224
|
+
"DocExtractBoundParams",
|
|
45225
|
+
{
|
|
45226
|
+
},
|
|
45227
|
+
total=False,
|
|
45228
|
+
)
|
|
45229
|
+
|
|
45155
45230
|
DocClearContentBoundParams = TypedDict(
|
|
45156
45231
|
"DocClearContentBoundParams",
|
|
45157
45232
|
{
|
|
@@ -62471,6 +62546,9 @@ class _SyncDocApi:
|
|
|
62471
62546
|
def info(self, params: DocInfoParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocInfoResult:
|
|
62472
62547
|
return self._runtime.invoke("doc.info", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
62473
62548
|
|
|
62549
|
+
def extract(self, params: DocExtractParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocExtractResult:
|
|
62550
|
+
return self._runtime.invoke("doc.extract", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
62551
|
+
|
|
62474
62552
|
def clear_content(self, params: DocClearContentParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocClearContentResult:
|
|
62475
62553
|
raw = self._runtime.invoke("doc.clearContent", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
62476
62554
|
return _unwrap_envelope(raw, "receipt")
|
|
@@ -64841,6 +64919,9 @@ class _AsyncDocApi:
|
|
|
64841
64919
|
async def info(self, params: DocInfoParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocInfoResult:
|
|
64842
64920
|
return await self._runtime.invoke("doc.info", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
64843
64921
|
|
|
64922
|
+
async def extract(self, params: DocExtractParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocExtractResult:
|
|
64923
|
+
return await self._runtime.invoke("doc.extract", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
64924
|
+
|
|
64844
64925
|
async def clear_content(self, params: DocClearContentParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocClearContentResult:
|
|
64845
64926
|
raw = await self._runtime.invoke("doc.clearContent", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
64846
64927
|
return _unwrap_envelope(raw, "receipt")
|
|
@@ -67215,6 +67296,9 @@ class _SyncBoundDocApi:
|
|
|
67215
67296
|
def info(self, params: DocInfoBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocInfoResult:
|
|
67216
67297
|
return self._runtime.invoke("doc.info", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
67217
67298
|
|
|
67299
|
+
def extract(self, params: DocExtractBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocExtractResult:
|
|
67300
|
+
return self._runtime.invoke("doc.extract", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
67301
|
+
|
|
67218
67302
|
def clear_content(self, params: DocClearContentBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocClearContentResult:
|
|
67219
67303
|
raw = self._runtime.invoke("doc.clearContent", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
67220
67304
|
return _unwrap_envelope(raw, "receipt")
|
|
@@ -69547,6 +69631,9 @@ class _AsyncBoundDocApi:
|
|
|
69547
69631
|
async def info(self, params: DocInfoBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocInfoResult:
|
|
69548
69632
|
return await self._runtime.invoke("doc.info", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
69549
69633
|
|
|
69634
|
+
async def extract(self, params: DocExtractBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocExtractResult:
|
|
69635
|
+
return await self._runtime.invoke("doc.extract", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
69636
|
+
|
|
69550
69637
|
async def clear_content(self, params: DocClearContentBoundParams | None = None, *, timeout_ms=None, stdin_bytes=None) -> DocClearContentResult:
|
|
69551
69638
|
raw = await self._runtime.invoke("doc.clearContent", params or {}, timeout_ms=timeout_ms, stdin_bytes=stdin_bytes)
|
|
69552
69639
|
return _unwrap_envelope(raw, "receipt")
|