matelab-python-sdk 0.1.0a18__tar.gz → 0.1.0a19__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.
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/CHANGELOG.md +14 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/PKG-INFO +25 -28
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/README.md +24 -27
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/contracts/matelab-integration-v1.lock.json +2 -2
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/contracts/matelab-integration-v1.openapi.yaml +85 -63
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/pyproject.toml +1 -1
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/_generated/models.py +34 -33
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/records.py +7 -11
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_async_attachment_upload.py +2 -1
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_generation.py +33 -2
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_record_mutations.py +4 -11
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_transport.py +1 -1
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_uploads_and_literature.py +2 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/uv.lock +1 -1
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/.env.example +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/.github/workflows/release.yml +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/.gitignore +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/AGENTS.md +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/CONTEXT.md +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/LICENSE +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/NOTICE +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/docs/operation-coverage.yaml +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/scripts/check_installed_package.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/scripts/check_release.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/scripts/generate_models.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/__init__.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/_generated/__init__.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/_hashes.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/_transport.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/_wire_validation.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/client.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/__init__.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/_attachment_content.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/cloud_drive.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/groups.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/literature.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/notebooks.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/templates.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/uploads.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/domains/users.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/errors.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/py.typed +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/session.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/src/matelab/streaming.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/conftest.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/provider/test_provider_smoke.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_client.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_cloud_drive.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_comments_and_downloads.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_consumer_smoke.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_errors.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_extended_records.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_groups.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_notebook_lifecycle.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_notebooks.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_operation_coverage.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_record_lifecycle.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_records.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_release.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_streaming.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_template_lifecycle.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_templates.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/test_users.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/typing/consumer.py +0 -0
- {matelab_python_sdk-0.1.0a18 → matelab_python_sdk-0.1.0a19}/tests/typing/pyproject.toml +0 -0
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
This file records release-to-release changes and migration impact. It is not the authority for the current interface;
|
|
4
4
|
see [README.md](README.md) for current behavior and [AGENTS.md](AGENTS.md) for maintenance policy.
|
|
5
5
|
|
|
6
|
+
## 0.1.0a19 - 2026-08-23
|
|
7
|
+
|
|
8
|
+
- Re-adopts the force-rewritten `matelab-spec v0.4.2` at commit
|
|
9
|
+
`1a4b77721d782fccd2b1f26bcc16a7d876347686` and OpenAPI SHA-256
|
|
10
|
+
`1e737421aac636356487122ea89e20d54de07c8b9c0651cf6970a7123fe3b72b`. The published `0.1.0a18` entry below remains
|
|
11
|
+
historical evidence for the former `v0.4.2` target at `a51483f`; it is not rewritten.
|
|
12
|
+
- Aligns with current Provider evidence: comment attachment multipart uses `file`; temporary-file and comment identifiers
|
|
13
|
+
allow 100 characters; code-4 `errs` accepts opaque array or object containers; and DOI extraction validates
|
|
14
|
+
`^10\.[0-9]+/\S+$` before transport.
|
|
15
|
+
- Breaking: removes `RecordValueAddition.path` and `RecordFilesAttachmentAppend.folder_path` because the current
|
|
16
|
+
Provider's add-value shape no longer accepts `path`; files-module append now targets only the module root. Search
|
|
17
|
+
excludes encrypted records, and callers of arbitrary template-shaped imports must omit unset file-valued keys because
|
|
18
|
+
the Provider rejects their explicit `null`.
|
|
19
|
+
|
|
6
20
|
## 0.1.0a18 - 2026-08-23
|
|
7
21
|
|
|
8
22
|
- Adopts immutable `matelab-spec v0.4.2` at commit `a51483f910440fbbbc3693cc32566482064bb3ab` and OpenAPI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: matelab-python-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a19
|
|
4
4
|
Summary: Reusable async Python client for the Matelab Integration Contract
|
|
5
5
|
Author-email: 朱天念 <zhutiannian@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -35,10 +35,10 @@ This README describes the current SDK interface, integration semantics, examples
|
|
|
35
35
|
[AGENTS.md](AGENTS.md) for durable maintenance rules, and `docs/operation-coverage.yaml` for the machine-readable
|
|
36
36
|
operation inventory.
|
|
37
37
|
|
|
38
|
-
The current alpha is `0.1.
|
|
38
|
+
The current alpha is `0.1.0a19`. `[project].version` in `pyproject.toml` is the sole SDK version source;
|
|
39
39
|
`uv.lock` only mirrors that source.
|
|
40
40
|
|
|
41
|
-
The SDK is pinned to the
|
|
41
|
+
The SDK is pinned to the rewritten `matelab-spec v0.4.2` Contract Release. The sole release pin is
|
|
42
42
|
`contracts/matelab-integration-v1.lock.json`, which records
|
|
43
43
|
the source tag, commit, OpenAPI path, local snapshot path, and SHA-256.
|
|
44
44
|
|
|
@@ -64,17 +64,15 @@ To test the same artifact a downstream Consumer will install, build and install
|
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
66
|
uv build --no-build-isolation --out-dir dist/release
|
|
67
|
-
python -m pip install dist/release/matelab_python_sdk-0.1.
|
|
67
|
+
python -m pip install dist/release/matelab_python_sdk-0.1.0a19-py3-none-any.whl
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
Do not infer Provider compatibility from the SDK version alone. A release is also bound to the Contract
|
|
71
71
|
tag, commit, and checksum recorded below.
|
|
72
72
|
|
|
73
|
-
The Contract and public SDK interface
|
|
74
|
-
`
|
|
75
|
-
|
|
76
|
-
differences are documented alongside the affected interfaces below; do not treat a successful Contract adoption as
|
|
77
|
-
proof that this newer Provider revision is interchangeable.
|
|
73
|
+
The Contract and public SDK interface track the current reviewed Provider at
|
|
74
|
+
`a3e6b961800f6b1ab666f0d3f6cd4c64c2a3ce27`. Provider limitations that remain relevant to integrations are documented
|
|
75
|
+
alongside the affected interfaces below.
|
|
78
76
|
|
|
79
77
|
## Design
|
|
80
78
|
|
|
@@ -123,8 +121,8 @@ success code it does not allow raises `MatelabProtocolError` rather than assigni
|
|
|
123
121
|
`MatelabTransportError.status_code` remains available for HTTP failures. Provider response bodies, top-level `msg`,
|
|
124
122
|
legacy `errmsg`, opaque `errs`, uncontracted debug fields, and request payloads are not attached to exceptions because
|
|
125
123
|
Provider-authored diagnostics may contain stack traces, credentials, or submitted values.
|
|
126
|
-
The pinned v0.4.2 Contract also declares optional code-4 `errs`, but PVD-041 and PCG-015 record
|
|
127
|
-
|
|
124
|
+
The pinned v0.4.2 Contract also declares optional code-4 `errs`, but PVD-041 and PCG-015 record opaque array/object
|
|
125
|
+
containers and insufficient evidence for requiredness, cardinality, or exclusion from other codes. The SDK
|
|
128
126
|
therefore keeps those diagnostics wire-only and does not expose `errs` as stable public metadata. A typed detail
|
|
129
127
|
interface remains blocked until a future Contract release can define one from stronger Provider evidence. `retryable`
|
|
130
128
|
means the identical SDK call is safe to replay without further interpretation. It is conservatively `False` for every
|
|
@@ -318,8 +316,8 @@ supports one file column. A locally rejected target does not spend the handle; o
|
|
|
318
316
|
result cannot be retried through the same client.
|
|
319
317
|
|
|
320
318
|
Files-module append and table/files replacement use the general record attachment intents and may be combined with
|
|
321
|
-
other non-conflicting record changes. `RecordFilesAttachmentAppend` targets the module root
|
|
322
|
-
|
|
319
|
+
other non-conflicting record changes. `RecordFilesAttachmentAppend` targets the module root; the current Provider does
|
|
320
|
+
not accept a files-folder path (PVD-044):
|
|
323
321
|
|
|
324
322
|
```python
|
|
325
323
|
from matelab import RecordAttachmentReplacement, RecordFilesAttachmentAppend, RecordValueUpdate
|
|
@@ -544,7 +542,7 @@ relations = await client.records.relations(source)
|
|
|
544
542
|
as `modules`; it is not the template-shaped `RecordImportItem.data` accepted by record import.
|
|
545
543
|
`records.search()` maps each requested field name to a stored record path. A match exposes only Provider-returned
|
|
546
544
|
entries in `values`, so key membership distinguishes an absent result from an explicit JSON `null`.
|
|
547
|
-
The
|
|
545
|
+
The current Provider excludes encrypted records from search (PVD-043); an empty search result therefore does
|
|
548
546
|
not prove that no matching encrypted record exists.
|
|
549
547
|
|
|
550
548
|
The Provider calls its notebook directory tree `subtype`; that name remains wire-only. The SDK exposes
|
|
@@ -595,9 +593,10 @@ UID. Import validates the complete batch with generated wire models but cannot m
|
|
|
595
593
|
individual inputs or promise atomicity (PCG-008); it therefore returns only the tuple of database IDs actually
|
|
596
594
|
reported by the Provider. `RecordImportItem.keywords` is a tuple; the adapter owns the Provider's
|
|
597
595
|
legacy semicolon encoding. Folder paths are ordered existing folder titles from the notebook root; they do not create
|
|
598
|
-
missing folders. The
|
|
599
|
-
|
|
600
|
-
|
|
596
|
+
missing folders. The current Provider rejects explicit-null table-file imports (PVD-045). Because the SDK accepts
|
|
597
|
+
arbitrary template-shaped data and cannot identify file columns without the template definition, integrations must omit
|
|
598
|
+
an unset file-valued key instead of sending it as `None`. Delete means moving records into the recycle bin, not permanent
|
|
599
|
+
deletion. Delete and restore return `None`; record mutations are not automatically retried.
|
|
601
600
|
|
|
602
601
|
`records.copy()` accepts an optional `new_record_uid`; when omitted, the SDK generates one locally. The Provider
|
|
603
602
|
returns only the copied row's database ID, so retaining that UID lets the SDK return a complete `RecordLocator`
|
|
@@ -614,9 +613,8 @@ returns the acknowledgement classification
|
|
|
614
613
|
issue a post-write read. Database, active-browser, and unclassified acknowledgements remain distinct, and mutation
|
|
615
614
|
retries stay disabled. Encrypted record content is outside the SDK's public read/update interface: the list-level
|
|
616
615
|
`RecordSummary.encrypted` flag lets callers identify and skip it, while the Provider password field and frontend-only
|
|
617
|
-
password lifecycle remain unexposed.
|
|
618
|
-
(PVD-044)
|
|
619
|
-
staged attachment as indeterminate once the write has started.
|
|
616
|
+
password lifecycle remain unexposed. Files-module attachment append is root-only because the current Provider rejects
|
|
617
|
+
folder-path segments (PVD-044). A staged attachment is indeterminate once the write has started.
|
|
620
618
|
|
|
621
619
|
Relation addition reads both endpoints and checks their resolved data server before writing; this reduces PVD-019
|
|
622
620
|
risk but is not an atomic Provider authorization guarantee. It does not list relations merely to inspect the
|
|
@@ -628,8 +626,7 @@ ignores target notebook identity (PVD-020); its mutation likewise performs autho
|
|
|
628
626
|
`records.comments()`. Each returned `RecordRelationRef` carries only the relation row and declared target IDs.
|
|
629
627
|
Deletion accepts the source `RecordLocator` and one of those observed refs.
|
|
630
628
|
|
|
631
|
-
Comment upload follows the
|
|
632
|
-
that field (PVD-037), but the SDK retains the Contract-compatible `upload` encoding. Comment mutations return `None`
|
|
629
|
+
Comment upload follows the current Provider's literal one-request `file` field (PVD-037). Comment mutations return `None`
|
|
633
630
|
after acknowledgement. Edit first verifies that the selected
|
|
634
631
|
comment is currently observed and caller-owned because the Provider otherwise reports a false success for a missing or
|
|
635
632
|
other-user ID (PVD-004). Delete sends the typed ref directly because the Provider mutation itself enforces record and
|
|
@@ -709,9 +706,9 @@ The Provider's static literature form definition and extraction deployment flag
|
|
|
709
706
|
`extract_metadata()` directly and handle an unavailable or failing optional backend as a Provider error. Extraction
|
|
710
707
|
returns a `PublicationMetadataCandidate`: unstored, rich publication evidence rather than metadata already attached to
|
|
711
708
|
a literature item. Its structured authors are `PublicationAuthorCandidate` values. Extraction accepts a DOI, a
|
|
712
|
-
completed staged PDF, or both; a supplied DOI takes precedence over the staged PDF.
|
|
713
|
-
|
|
714
|
-
|
|
709
|
+
completed staged PDF, or both; a supplied DOI takes precedence over the staged PDF. A non-empty DOI must match
|
|
710
|
+
`^10\.[0-9]+/\S+$`; the generated request model rejects other values before sending them to the Provider (PVD-042).
|
|
711
|
+
Literature list
|
|
715
712
|
results likewise exclude Provider-generated citation HTML and author-highlight fragments; Consumers receive the
|
|
716
713
|
underlying citation fields instead of presentation markup. `LiteratureDetail.metadata` is `None` when invalid legacy
|
|
717
714
|
JSON produces the Provider's empty-array fallback; otherwise it contains decoded stored metadata without arbitrary
|
|
@@ -915,6 +912,6 @@ uv run python scripts/check_release.py dist/release/*.whl dist/release/*.tar.gz
|
|
|
915
912
|
```
|
|
916
913
|
|
|
917
914
|
Rebuilding the same commit with the same locked environment and `SOURCE_DATE_EPOCH` must produce
|
|
918
|
-
byte-identical wheel and source distribution hashes. The release is bound to `matelab-spec v0.4.2`,
|
|
919
|
-
commit `
|
|
920
|
-
`
|
|
915
|
+
byte-identical wheel and source distribution hashes. The release is bound to the rewritten `matelab-spec v0.4.2`,
|
|
916
|
+
commit `1a4b77721d782fccd2b1f26bcc16a7d876347686`, and OpenAPI SHA-256
|
|
917
|
+
`1e737421aac636356487122ea89e20d54de07c8b9c0651cf6970a7123fe3b72b`.
|
|
@@ -7,10 +7,10 @@ This README describes the current SDK interface, integration semantics, examples
|
|
|
7
7
|
[AGENTS.md](AGENTS.md) for durable maintenance rules, and `docs/operation-coverage.yaml` for the machine-readable
|
|
8
8
|
operation inventory.
|
|
9
9
|
|
|
10
|
-
The current alpha is `0.1.
|
|
10
|
+
The current alpha is `0.1.0a19`. `[project].version` in `pyproject.toml` is the sole SDK version source;
|
|
11
11
|
`uv.lock` only mirrors that source.
|
|
12
12
|
|
|
13
|
-
The SDK is pinned to the
|
|
13
|
+
The SDK is pinned to the rewritten `matelab-spec v0.4.2` Contract Release. The sole release pin is
|
|
14
14
|
`contracts/matelab-integration-v1.lock.json`, which records
|
|
15
15
|
the source tag, commit, OpenAPI path, local snapshot path, and SHA-256.
|
|
16
16
|
|
|
@@ -36,17 +36,15 @@ To test the same artifact a downstream Consumer will install, build and install
|
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
uv build --no-build-isolation --out-dir dist/release
|
|
39
|
-
python -m pip install dist/release/matelab_python_sdk-0.1.
|
|
39
|
+
python -m pip install dist/release/matelab_python_sdk-0.1.0a19-py3-none-any.whl
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Do not infer Provider compatibility from the SDK version alone. A release is also bound to the Contract
|
|
43
43
|
tag, commit, and checksum recorded below.
|
|
44
44
|
|
|
45
|
-
The Contract and public SDK interface
|
|
46
|
-
`
|
|
47
|
-
|
|
48
|
-
differences are documented alongside the affected interfaces below; do not treat a successful Contract adoption as
|
|
49
|
-
proof that this newer Provider revision is interchangeable.
|
|
45
|
+
The Contract and public SDK interface track the current reviewed Provider at
|
|
46
|
+
`a3e6b961800f6b1ab666f0d3f6cd4c64c2a3ce27`. Provider limitations that remain relevant to integrations are documented
|
|
47
|
+
alongside the affected interfaces below.
|
|
50
48
|
|
|
51
49
|
## Design
|
|
52
50
|
|
|
@@ -95,8 +93,8 @@ success code it does not allow raises `MatelabProtocolError` rather than assigni
|
|
|
95
93
|
`MatelabTransportError.status_code` remains available for HTTP failures. Provider response bodies, top-level `msg`,
|
|
96
94
|
legacy `errmsg`, opaque `errs`, uncontracted debug fields, and request payloads are not attached to exceptions because
|
|
97
95
|
Provider-authored diagnostics may contain stack traces, credentials, or submitted values.
|
|
98
|
-
The pinned v0.4.2 Contract also declares optional code-4 `errs`, but PVD-041 and PCG-015 record
|
|
99
|
-
|
|
96
|
+
The pinned v0.4.2 Contract also declares optional code-4 `errs`, but PVD-041 and PCG-015 record opaque array/object
|
|
97
|
+
containers and insufficient evidence for requiredness, cardinality, or exclusion from other codes. The SDK
|
|
100
98
|
therefore keeps those diagnostics wire-only and does not expose `errs` as stable public metadata. A typed detail
|
|
101
99
|
interface remains blocked until a future Contract release can define one from stronger Provider evidence. `retryable`
|
|
102
100
|
means the identical SDK call is safe to replay without further interpretation. It is conservatively `False` for every
|
|
@@ -290,8 +288,8 @@ supports one file column. A locally rejected target does not spend the handle; o
|
|
|
290
288
|
result cannot be retried through the same client.
|
|
291
289
|
|
|
292
290
|
Files-module append and table/files replacement use the general record attachment intents and may be combined with
|
|
293
|
-
other non-conflicting record changes. `RecordFilesAttachmentAppend` targets the module root
|
|
294
|
-
|
|
291
|
+
other non-conflicting record changes. `RecordFilesAttachmentAppend` targets the module root; the current Provider does
|
|
292
|
+
not accept a files-folder path (PVD-044):
|
|
295
293
|
|
|
296
294
|
```python
|
|
297
295
|
from matelab import RecordAttachmentReplacement, RecordFilesAttachmentAppend, RecordValueUpdate
|
|
@@ -516,7 +514,7 @@ relations = await client.records.relations(source)
|
|
|
516
514
|
as `modules`; it is not the template-shaped `RecordImportItem.data` accepted by record import.
|
|
517
515
|
`records.search()` maps each requested field name to a stored record path. A match exposes only Provider-returned
|
|
518
516
|
entries in `values`, so key membership distinguishes an absent result from an explicit JSON `null`.
|
|
519
|
-
The
|
|
517
|
+
The current Provider excludes encrypted records from search (PVD-043); an empty search result therefore does
|
|
520
518
|
not prove that no matching encrypted record exists.
|
|
521
519
|
|
|
522
520
|
The Provider calls its notebook directory tree `subtype`; that name remains wire-only. The SDK exposes
|
|
@@ -567,9 +565,10 @@ UID. Import validates the complete batch with generated wire models but cannot m
|
|
|
567
565
|
individual inputs or promise atomicity (PCG-008); it therefore returns only the tuple of database IDs actually
|
|
568
566
|
reported by the Provider. `RecordImportItem.keywords` is a tuple; the adapter owns the Provider's
|
|
569
567
|
legacy semicolon encoding. Folder paths are ordered existing folder titles from the notebook root; they do not create
|
|
570
|
-
missing folders. The
|
|
571
|
-
|
|
572
|
-
|
|
568
|
+
missing folders. The current Provider rejects explicit-null table-file imports (PVD-045). Because the SDK accepts
|
|
569
|
+
arbitrary template-shaped data and cannot identify file columns without the template definition, integrations must omit
|
|
570
|
+
an unset file-valued key instead of sending it as `None`. Delete means moving records into the recycle bin, not permanent
|
|
571
|
+
deletion. Delete and restore return `None`; record mutations are not automatically retried.
|
|
573
572
|
|
|
574
573
|
`records.copy()` accepts an optional `new_record_uid`; when omitted, the SDK generates one locally. The Provider
|
|
575
574
|
returns only the copied row's database ID, so retaining that UID lets the SDK return a complete `RecordLocator`
|
|
@@ -586,9 +585,8 @@ returns the acknowledgement classification
|
|
|
586
585
|
issue a post-write read. Database, active-browser, and unclassified acknowledgements remain distinct, and mutation
|
|
587
586
|
retries stay disabled. Encrypted record content is outside the SDK's public read/update interface: the list-level
|
|
588
587
|
`RecordSummary.encrypted` flag lets callers identify and skip it, while the Provider password field and frontend-only
|
|
589
|
-
password lifecycle remain unexposed.
|
|
590
|
-
(PVD-044)
|
|
591
|
-
staged attachment as indeterminate once the write has started.
|
|
588
|
+
password lifecycle remain unexposed. Files-module attachment append is root-only because the current Provider rejects
|
|
589
|
+
folder-path segments (PVD-044). A staged attachment is indeterminate once the write has started.
|
|
592
590
|
|
|
593
591
|
Relation addition reads both endpoints and checks their resolved data server before writing; this reduces PVD-019
|
|
594
592
|
risk but is not an atomic Provider authorization guarantee. It does not list relations merely to inspect the
|
|
@@ -600,8 +598,7 @@ ignores target notebook identity (PVD-020); its mutation likewise performs autho
|
|
|
600
598
|
`records.comments()`. Each returned `RecordRelationRef` carries only the relation row and declared target IDs.
|
|
601
599
|
Deletion accepts the source `RecordLocator` and one of those observed refs.
|
|
602
600
|
|
|
603
|
-
Comment upload follows the
|
|
604
|
-
that field (PVD-037), but the SDK retains the Contract-compatible `upload` encoding. Comment mutations return `None`
|
|
601
|
+
Comment upload follows the current Provider's literal one-request `file` field (PVD-037). Comment mutations return `None`
|
|
605
602
|
after acknowledgement. Edit first verifies that the selected
|
|
606
603
|
comment is currently observed and caller-owned because the Provider otherwise reports a false success for a missing or
|
|
607
604
|
other-user ID (PVD-004). Delete sends the typed ref directly because the Provider mutation itself enforces record and
|
|
@@ -681,9 +678,9 @@ The Provider's static literature form definition and extraction deployment flag
|
|
|
681
678
|
`extract_metadata()` directly and handle an unavailable or failing optional backend as a Provider error. Extraction
|
|
682
679
|
returns a `PublicationMetadataCandidate`: unstored, rich publication evidence rather than metadata already attached to
|
|
683
680
|
a literature item. Its structured authors are `PublicationAuthorCandidate` values. Extraction accepts a DOI, a
|
|
684
|
-
completed staged PDF, or both; a supplied DOI takes precedence over the staged PDF.
|
|
685
|
-
|
|
686
|
-
|
|
681
|
+
completed staged PDF, or both; a supplied DOI takes precedence over the staged PDF. A non-empty DOI must match
|
|
682
|
+
`^10\.[0-9]+/\S+$`; the generated request model rejects other values before sending them to the Provider (PVD-042).
|
|
683
|
+
Literature list
|
|
687
684
|
results likewise exclude Provider-generated citation HTML and author-highlight fragments; Consumers receive the
|
|
688
685
|
underlying citation fields instead of presentation markup. `LiteratureDetail.metadata` is `None` when invalid legacy
|
|
689
686
|
JSON produces the Provider's empty-array fallback; otherwise it contains decoded stored metadata without arbitrary
|
|
@@ -887,6 +884,6 @@ uv run python scripts/check_release.py dist/release/*.whl dist/release/*.tar.gz
|
|
|
887
884
|
```
|
|
888
885
|
|
|
889
886
|
Rebuilding the same commit with the same locked environment and `SOURCE_DATE_EPOCH` must produce
|
|
890
|
-
byte-identical wheel and source distribution hashes. The release is bound to `matelab-spec v0.4.2`,
|
|
891
|
-
commit `
|
|
892
|
-
`
|
|
887
|
+
byte-identical wheel and source distribution hashes. The release is bound to the rewritten `matelab-spec v0.4.2`,
|
|
888
|
+
commit `1a4b77721d782fccd2b1f26bcc16a7d876347686`, and OpenAPI SHA-256
|
|
889
|
+
`1e737421aac636356487122ea89e20d54de07c8b9c0651cf6970a7123fe3b72b`.
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"contract_line": "integration-v1",
|
|
4
4
|
"release": {
|
|
5
5
|
"tag": "v0.4.2",
|
|
6
|
-
"commit": "
|
|
6
|
+
"commit": "1a4b77721d782fccd2b1f26bcc16a7d876347686"
|
|
7
7
|
},
|
|
8
8
|
"openapi": {
|
|
9
9
|
"source_path": "openapi/matelab-integration-v1.openapi.yaml",
|
|
10
10
|
"snapshot": "matelab-integration-v1.openapi.yaml",
|
|
11
|
-
"sha256": "
|
|
11
|
+
"sha256": "1e737421aac636356487122ea89e20d54de07c8b9c0651cf6970a7123fe3b72b"
|
|
12
12
|
}
|
|
13
13
|
}
|