Skip to content

Update generated code for private-preview - #1989

Open
stripe-openapi[bot] wants to merge 8 commits into
private-previewfrom
latest-codegen-private-preview
Open

stripe-openapi[bot] wants to merge 8 commits into
private-previewfrom
latest-codegen-private-preview

Conversation

@stripe-openapi

@stripe-openapi stripe-openapi Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codegen for openapi v2600 and v2 openapi 087107391e4d36a11e317f83346d27cabfa71bb8.

Changelog

  • Release specs are identical.

zacchua-stripe and others added 6 commits November 10, 2026 13:54
…g 🪿✨ (#1959)

* [🪿] Omit API keys from StripeObject pickles

Prevent credentials from leaking into pickle-backed caches and queues.
Add graph-wide set_api_key() binding so consumers can supply their own
credentials while preserving routing and destination-global fallback.

Include regression tests and v16 migration guidance. Existing stored
pickles remain sensitive and are not sanitized by this change.

Committed-By-Agent: goose
Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280

* [🪿] try to deslop

Consolidate overlapping pickle round-trip and credential-rebinding tests to remove duplicate setup and serialization. Retain coverage for supported pickle protocols, destination-global fallback, nested rebinding, routing preservation, and credential-free re-pickling without changing implementation behavior.

Verified 172 targeted tests pass, along with formatting, linting, and git diff whitespace checks.

Committed-By-Agent: goose
Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280

* [🪿] Align pickle credential migration with v17

Document global fallback and explicit recursive key rebinding. Strengthen
nested requestor preservation coverage and remove task-specific README edits.

Committed-By-Agent: goose
Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280

* [🪿] try to deslop

Remove redundant nested-resource serialization and assertions already covered by payload equality and credential-absence checks on re-pickled bytes. Recursive rebinding, cycle handling, routing preservation, standalone metadata serialization, and request-boundary coverage remain intact.

Validated with 101 passing StripeObject tests, formatting, linting, and git diff --check.

Committed-By-Agent: goose
Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280

* [🪿] Update PyPI publishing action to v1.14.3

Fix the workflow security check failing on GHSA-5xjx-3w67-w9x9.
Pin the patched release to its verified commit SHA.

https: //github.com/advisories/GHSA-5xjx-3w67-w9x9
Committed-By-Agent: goose
Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280

* [🪿] Revert unrelated PyPI publishing action upgrade

Keep CI configuration unchanged to scope this branch to pickle credentials.

Committed-By-Agent: goose
Orbit-Session-Id: 6c16ab70-1263-4d0e-a050-72c9b9f30280

* [🪿] Update pickle credential changefile wording and filename

* [🪿] Simplify v17 pickle migration guidance

Use concise examples to explain explicit API-key rebinding and global fallback.
Clarify that rebinding preserves current requestor configuration, not the
producer's custom HTTP client.

* [🪿] Replace set_api_key with per-call API keys on instance methods

Remove StripeObject.set_api_key() and instead accept an api_key on the
instance methods that previously could not take one: refresh(),
refresh_async(), save(), and auto_paging_iter() on ListObject,
SearchResultObject, and their V2 equivalents. delete() and generated
instance methods already accept per-call request options.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude

* [🪿] Trim pickle credential changefile wording

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Require explicit API key reattachment after unpickling

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Keep serialized placeholders in requestors and guard requests centrally

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Clarify API key reattachment wording in changefile

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Clarify API key reattachment migration guidance

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Address serialization documentation review feedback

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Make migration guide before/after examples equivalent

Keep the Before and After snippets identical apart from the reattach step,
and move the list/event usage into a separate example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: codex <noreply@openai.com>
PycurlClient created one pycurl.Curl handle in its constructor and
reconfigured it for every request with no synchronization. When one
client was shared across threads, concurrent requests could overwrite
each other's URL, body, and headers, sending one request with another
request's API key and Stripe-Account.

Each thread now lazily creates its own handle in the client's existing
thread-local storage, so connections are still reused within a thread.
close() closes the current thread's handle.

Closes RUN_DEVSDK-3704


Committed-By-Agent: claude

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Point the major changefile's migration guide link at the published wiki
page and rebuild CHANGELOG.md. The previous link pointed at a branch or
repo path that can move or be deleted.


Committed-By-Agent: claude

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@stripe-openapi
stripe-openapi Bot requested a review from a team as a code owner November 12, 2026 18:37
@stripe-openapi
stripe-openapi Bot requested review from jar-stripe and removed request for a team November 12, 2026 18:37
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-private-preview branch from 4e4a910 to d7ad84f Compare November 12, 2026 18:37
@stripe-openapi
stripe-openapi Bot removed the request for review from jar-stripe November 12, 2026 18:37
@stripe-openapi
stripe-openapi Bot enabled auto-merge November 12, 2026 18:37
* fix: make PycurlClient timeouts configurable

PycurlClient hardcoded CONNECTTIMEOUT=30 and TIMEOUT=80 on every request,
unlike RequestsClient, HTTPXClient and AIOHTTPClient, which accept a
`timeout` constructor argument. Add keyword-only `timeout` and
`connect_timeout` arguments (defaults 80 and 30) after the existing
parameters so positional callers are unaffected.

Fixes #1962

* Remove unnecessary PycurlClient constructor docstring
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-private-preview branch from d7ad84f to cb38740 Compare November 13, 2026 22:49
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-private-preview branch from cb38740 to f349f1b Compare November 13, 2026 22:49

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants