Skip to content

Codegen: Guzzle 8 Compatibility - #626

Merged
camden11 merged 5 commits into
masterfrom
codegen/prune-orphans-and-custom-objects
Sep 24, 2026
Merged

camden11 merged 5 commits into
masterfrom
codegen/prune-orphans-and-custom-objects

Conversation

@camden11

@camden11 camden11 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor
  • Remove 108 orphaned generated files left behind when APIs were retagged (e.g. Webhooks SubscriptionsApi/SettingsApi → BasicApi/BatchApi; CMS AuditLogs, SiteSearch, UrlRedirects, SourceCode; CRM Associations V4 stale models, etc.)
  • Guzzle 8 fixes (Utils::jsonEncode, RequestException::getResponse, ConnectException → NetworkException) now propagate to all 156+ generated clients
  • Restore crm/objects generation from the surviving Custom Objects spec (rollout 424); adds AdvancedApi + two new models (PublicMergeInput, PublicObjectWarning)

…estore crm/objects

- Remove 108 orphaned generated files left behind when APIs were retagged (e.g.
  Webhooks SubscriptionsApi/SettingsApi → BasicApi/BatchApi; CMS AuditLogs,
  SiteSearch, UrlRedirects, SourceCode; CRM Associations V4 stale models, etc.)
- Guzzle 8 fixes (Utils::jsonEncode, RequestException::getResponse,
  ConnectException → NetworkException) now propagate to all 156+ generated clients
- Restore crm/objects generation from the surviving Custom Objects spec (rollout 424);
  adds AdvancedApi + two new models (PublicMergeInput, PublicObjectWarning)

Generator: HubSpotEngineering/api-clients #376 (Guzzle fixes) + #377 (pruning)
Registry: crm/objects entry repointed from retired "Objects" to "Custom Objects"

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@camden11 camden11 changed the title Regenerate codegen: prune orphan files, fix Guzzle 8 compatibility, r… Guzzle 8 compatibility Sep 22, 2026
camden11 and others added 4 commits September 22, 2026 14:31
…InFiles

The July 2026 "lazy function replacements" change wrapped string replacements
in () => replacement, which prevents JavaScript's $1 capture group expansion.
This caused json_encode($1, ...) to appear literally in generated PHP, breaking
all clients. Pass string replacements directly to String.replace() so $1 expands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… classes

Repoints 25 Discovery classes and their PHPSpec tests to match the API
class renames and removals from the codegen regen (orphan pruning + Custom
Objects registry fix). Old names like CardsApi, CoreApi, SettingsApi, etc.
are replaced with BasicApi/AdvancedApi/BatchApi per the new generator output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Cms/Hubdb: remove deleted RowsBatchApi
- Cms/Pages: remove deleted SitePagesApi, add 7 new APIs from regen
- Crm/Lists: replace 5 deleted APIs with BasicApi/BatchApi/SearchApi
- Marketing/Emails: remove deleted StatisticsApi, add BasicApi

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
DiscoveryBase::__call resolves via ucfirst(), so abTestsApi() becomes
AbTestsApi, which doesn't match the actual class ABTestsApi. Add an
explicit method to bypass __call for this one accessor.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@camden11 camden11 changed the title Guzzle 8 compatibility Codegen: Guzzle 8 Compatibility Sep 23, 2026
@camden11
camden11 marked this pull request as ready for review September 23, 2026 18:39
@camden11
camden11 merged commit ad1a840 into master Sep 24, 2026
2 checks passed
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