Repository navigation
refactor(core): move the generated /v2 client into tablepro-cloud-api - #4484
Merged
Merged
Conversation
AccessToken also carries the origin, account id and device id, read under the same session hold as the token.
datlechin
force-pushed
the
feat/core-cloud-api-crate
branch
from
November 25, 2026 07:39
3e9fc47 to
f8001d2
Compare
datlechin
enabled auto-merge (squash)
November 25, 2026 07:39
…rate # Conflicts: # core/crates/account/src/account/share_calls.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tablepro-cloud-api(core/crates/cloud-api), depending on no workspace crate: the vendored/v2document and its progenitorbuild.rs, theBearerhooks, the problem and 429 mapping asApiError,read_capped, and the HTTP client builder (no redirects, user agent, 15 s connect, 30 s request).tablepro-accountcalls/v2through it and mapsApiErrorintoAccountErrorwith the same variants, codes and texts as before. A 413 still reads assnapshot_too_large.SnapshotBody,SnapshotColumnBody,PublicSnapshot) move with the client; the account builds the body withsnapshot_body.tablepro_accountno longer re-exportsv2,SnapshotBodyorSnapshotColumnBody, which nothing outside it used.AccessTokengainsorigin,account_idanddevice_id, read under the same session hold as the token and session id, so a caller never pairs one sign-in's token with another's ids.linux/build-aux/update-cloud-api.shmoves tocore/scripts/update-cloud-api.sh.core/ARCHITECTURE.md,core/AGENTS.mdandcore.ymllist the crate.Test plan
every_bearer_names_the_account_device_and_session_of_its_own_sign_in_across_a_switchreads bearers while a second account signs in; every one names its own sign-in's account, device and session.a_413_with_no_problem_of_the_server_s_is_too_large.cloud_api.rsunit tests moved with the code and assertApiError; the share tests callsnapshot_body.cargo test -p tablepro-cloud-api -p tablepro-account,cargo test -p tablepro-ffi --no-default-features --test account.cargo clippy -D warningson both crates and ontablepro-ffiwithout engines;cargo fmt --check,cargo shear,cargo deny check bans licenses sources.update-third-party-licenses.shandupdate-core-licenses.sh --check: no change.verify.sh package TableProFFI: the core library and Swift bindings build, the package tests pass.