From 58b9ff187ec53f564eac747b40cfb8bdb6758874 Mon Sep 17 00:00:00 2001 From: Mohammed Odeh Date: Mon, 19 Oct 2026 10:23:05 -0400 Subject: [PATCH] release python sdk --- .changeset/.last_bumped_modules | 1 + .changeset/activity-errors.yml | 4 ---- .changeset/approval-polling.yml | 8 -------- .changeset/authenticators-needed-error.yml | 6 ------ .changeset/codegen-bump-2026-10.yml | 13 ------------- packages/http/CHANGELOG.md | 22 ++++++++++++++++++++++ packages/http/pyproject.toml | 2 +- packages/http/src/turnkey_http/version.py | 2 +- packages/sdk-types/CHANGELOG.md | 20 ++++++++++++++++++++ packages/sdk-types/pyproject.toml | 2 +- 10 files changed, 46 insertions(+), 34 deletions(-) delete mode 100644 .changeset/activity-errors.yml delete mode 100644 .changeset/approval-polling.yml delete mode 100644 .changeset/authenticators-needed-error.yml delete mode 100644 .changeset/codegen-bump-2026-10.yml diff --git a/.changeset/.last_bumped_modules b/.changeset/.last_bumped_modules index 4e76d03..14eb048 100644 --- a/.changeset/.last_bumped_modules +++ b/.changeset/.last_bumped_modules @@ -1 +1,2 @@ http +sdk-types diff --git a/.changeset/activity-errors.yml b/.changeset/activity-errors.yml deleted file mode 100644 index d7bce32..0000000 --- a/.changeset/activity-errors.yml +++ /dev/null @@ -1,4 +0,0 @@ -type: patch -packages: [ http, sdk-types ] -changelog: |- - Typed activity methods now raise `TurnkeyActivityError` or `TurnkeyActivityConsensusNeededError` when an activity does not complete, instead of a pydantic validation error. The errors carry the activity id, status, type, and failure message. `send_signed_request` now unpacks versioned result keys such as `createSubOrganizationResultV7` correctly. diff --git a/.changeset/approval-polling.yml b/.changeset/approval-polling.yml deleted file mode 100644 index 9a26612..0000000 --- a/.changeset/approval-polling.yml +++ /dev/null @@ -1,8 +0,0 @@ -type: minor -packages: [ http ] -changelog: |- - Added MFA and consensus handling for activities. - - Authenticators-needed stops polling and raises `TurnkeyActivityAuthenticatorsNeededError`. - - Added `mfa_polling` and `consensus_polling`. - - `mfa_polling` keeps polling an authenticators-needed activity until the status changes or the timeout is reached. The interval doubles on each attempt, up to 5 seconds. Omit it to raise `TurnkeyActivityAuthenticatorsNeededError` immediately. - - `consensus_polling` keeps polling a consensus-needed activity until the status changes or the timeout is reached. The interval stays fixed. Omit it to raise `TurnkeyActivityConsensusNeededError` immediately. diff --git a/.changeset/authenticators-needed-error.yml b/.changeset/authenticators-needed-error.yml deleted file mode 100644 index a01d1ca..0000000 --- a/.changeset/authenticators-needed-error.yml +++ /dev/null @@ -1,6 +0,0 @@ -type: minor -packages: [ sdk-types ] -changelog: |- - Added an error for activities that need authenticator approval. - - `TurnkeyActivityAuthenticatorsNeededError` is the exception raised when an activity is waiting on authenticator approval. - - `ACTIVITY_AUTHENTICATORS_NEEDED` is the `TurnkeyErrorCodes` value set on that exception diff --git a/.changeset/codegen-bump-2026-10.yml b/.changeset/codegen-bump-2026-10.yml deleted file mode 100644 index ed7ed1f..0000000 --- a/.changeset/codegen-bump-2026-10.yml +++ /dev/null @@ -1,13 +0,0 @@ -type: minor -packages: [ http, sdk-types ] -changelog: |- - Regenerate the SDK from the current public API schema. Main additions: send transaction V2 (eth_send_transaction and sol_send_transaction now use the V2 intents), swaps, earn, secrets, and transaction history. The default polling budget is now 10 retries at 1 second (was 3), and send_signed_request flattens versioned result keys such as ethSendTransactionResultV2. - - Breaking changes: - - EthSendTransactionBody uses the V2 intent: `to`, `value`, and `data` are gone; `calls: List[v1EthCallParams]` is required. - - SolSendTransactionBody uses the V2 intent: `signWith` is gone; `signWiths: List[str]` is required. - - CreateOauthProvidersBody.oauthProviders is `List[v1OauthProviderParamsV2]`, and the method sends V2. - - Oauth2AuthenticateBody.nonce is required. - - v1User.mfaPolicies is a required response field. - - v1FiatOnRampBlockchainNetwork no longer has FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN. - - v1CreateTvcDeploymentIntent drops pivotBindAddresses and requires healthCheckType, healthCheckPort, and publicIngressPort. diff --git a/packages/http/CHANGELOG.md b/packages/http/CHANGELOG.md index 46484a4..28b941a 100644 --- a/packages/http/CHANGELOG.md +++ b/packages/http/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 0.2.0 — 2026-10-19 + +### Minor Changes +- Added MFA and consensus handling for activities. + - Authenticators-needed stops polling and raises `TurnkeyActivityAuthenticatorsNeededError`. + - Added `mfa_polling` and `consensus_polling`. + - `mfa_polling` keeps polling an authenticators-needed activity until the status changes or the timeout is reached. The interval doubles on each attempt, up to 5 seconds. Omit it to raise `TurnkeyActivityAuthenticatorsNeededError` immediately. + - `consensus_polling` keeps polling a consensus-needed activity until the status changes or the timeout is reached. The interval stays fixed. Omit it to raise `TurnkeyActivityConsensusNeededError` immediately. +- Regenerate the SDK from the current public API schema. Main additions: send transaction V2 (eth_send_transaction and sol_send_transaction now use the V2 intents), swaps, earn, secrets, and transaction history. The default polling budget is now 10 retries at 1 second (was 3), and send_signed_request flattens versioned result keys such as ethSendTransactionResultV2. + +Breaking changes: +- EthSendTransactionBody uses the V2 intent: `to`, `value`, and `data` are gone; `calls: List[v1EthCallParams]` is required. +- SolSendTransactionBody uses the V2 intent: `signWith` is gone; `signWiths: List[str]` is required. +- CreateOauthProvidersBody.oauthProviders is `List[v1OauthProviderParamsV2]`, and the method sends V2. +- Oauth2AuthenticateBody.nonce is required. +- v1User.mfaPolicies is a required response field. +- v1FiatOnRampBlockchainNetwork no longer has FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN. +- v1CreateTvcDeploymentIntent drops pivotBindAddresses and requires healthCheckType, healthCheckPort, and publicIngressPort. + +### Patch Changes +- Typed activity methods now raise `TurnkeyActivityError` or `TurnkeyActivityConsensusNeededError` when an activity does not complete, instead of a pydantic validation error. The errors carry the activity id, status, type, and failure message. `send_signed_request` now unpacks versioned result keys such as `createSubOrganizationResultV7` correctly. + ## 0.1.0 — 2026-03-09 ### Minor Changes diff --git a/packages/http/pyproject.toml b/packages/http/pyproject.toml index 19293a9..03a8d6e 100644 --- a/packages/http/pyproject.toml +++ b/packages/http/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "turnkey-http" -version = "0.1.0" +version = "0.2.0" description = "HTTP client for Turnkey API" readme = "README.md" requires-python = ">=3.8" diff --git a/packages/http/src/turnkey_http/version.py b/packages/http/src/turnkey_http/version.py index f7ed3ce..4d0f876 100644 --- a/packages/http/src/turnkey_http/version.py +++ b/packages/http/src/turnkey_http/version.py @@ -1,3 +1,3 @@ """Auto-generated version file. Do not edit manually.""" -VERSION = "turnkey-python/0.1.0" +VERSION = "turnkey-python/0.2.0" diff --git a/packages/sdk-types/CHANGELOG.md b/packages/sdk-types/CHANGELOG.md index 46484a4..06d6065 100644 --- a/packages/sdk-types/CHANGELOG.md +++ b/packages/sdk-types/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## 0.2.0 — 2026-10-19 + +### Minor Changes +- Added an error for activities that need authenticator approval. + - `TurnkeyActivityAuthenticatorsNeededError` is the exception raised when an activity is waiting on authenticator approval. + - `ACTIVITY_AUTHENTICATORS_NEEDED` is the `TurnkeyErrorCodes` value set on that exception +- Regenerate the SDK from the current public API schema. Main additions: send transaction V2 (eth_send_transaction and sol_send_transaction now use the V2 intents), swaps, earn, secrets, and transaction history. The default polling budget is now 10 retries at 1 second (was 3), and send_signed_request flattens versioned result keys such as ethSendTransactionResultV2. + +Breaking changes: +- EthSendTransactionBody uses the V2 intent: `to`, `value`, and `data` are gone; `calls: List[v1EthCallParams]` is required. +- SolSendTransactionBody uses the V2 intent: `signWith` is gone; `signWiths: List[str]` is required. +- CreateOauthProvidersBody.oauthProviders is `List[v1OauthProviderParamsV2]`, and the method sends V2. +- Oauth2AuthenticateBody.nonce is required. +- v1User.mfaPolicies is a required response field. +- v1FiatOnRampBlockchainNetwork no longer has FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN. +- v1CreateTvcDeploymentIntent drops pivotBindAddresses and requires healthCheckType, healthCheckPort, and publicIngressPort. + +### Patch Changes +- Typed activity methods now raise `TurnkeyActivityError` or `TurnkeyActivityConsensusNeededError` when an activity does not complete, instead of a pydantic validation error. The errors carry the activity id, status, type, and failure message. `send_signed_request` now unpacks versioned result keys such as `createSubOrganizationResultV7` correctly. + ## 0.1.0 — 2026-03-09 ### Minor Changes diff --git a/packages/sdk-types/pyproject.toml b/packages/sdk-types/pyproject.toml index e716748..b388fcb 100644 --- a/packages/sdk-types/pyproject.toml +++ b/packages/sdk-types/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "turnkey-sdk-types" -version = "0.1.0" +version = "0.2.0" description = "Type definitions for Turnkey API" readme = "README.md" requires-python = ">=3.8"