API Client SDK Breaking Changes, Method Signatures, and Type Migration
How Cloudflare TypeScript and Go SDK v6–v7 breaking changes affect calls, removed types, and AI Search paths—and what to change when you upgrade.
This page summarizes Cloudflare’s published SDK changelog material for TypeScript SDK v6.0.0 (release post, beta notes) and Go SDK releases (v6.10.0, v7.0.0). If you upgraded the client and builds fail on renamed types, removed methods, or “property does not exist” errors, these entries describe what changed in the generated client—not the underlying REST API behavior in every case.
SDK v6 breaking changes: what triggers a failed upgrade
Section titled “SDK v6 breaking changes: what triggers a failed upgrade”A major SDK bump realigns TypeScript and Go types with the current OpenAPI surface. Failures usually fall into a few buckets: method signatures that no longer accept positional arguments, removed or renamed types, stricter required fields on responses, and relocated client paths (especially AI Search). The TypeScript v6.0.0 changelog and aggregated entries in the SDK product changelog document the same themes across changelog 24, 25, and 35.
24 shared types removed from root namespace (ASN, AuditLog, Member, Permission, Role, Subscription, Token, etc.). 19 response types consolidated or renamed.
— Cloudflare, Cloudflare TypeScript SDK v6.0.0 Released
If your code imported shared root types by name, expect compile errors until you switch to the replacement types named in the changelog or stop depending on removed symbols.
Method signature changes: positional arguments moved into params
Section titled “Method signature changes: positional arguments moved into params”Several methods no longer take a separate first argument for file, body, or report type; those values belong in the params object instead.
client.ai.toMarkdown.transform(file, { …params }) -> client.ai.toMarkdown.transform({ …params }) – file moved from positional arg into params body
client.radar.ai.toMarkdown.create(body, { …params }) -> client.radar.ai.toMarkdown.create({ …params }) – body moved into params
client.abuseReports.create(reportType, { …params }) -> client.abuseReports.create(reportParam, { …params }) – positional arg renamed
client.iam.userGroups.members.create(userGroupId, [ …body ]) -> client.iam.userGroups.members.create(userGroupId, [ …members ]) – body array param renamed— Cloudflare, Cloudflare TypeScript SDK v6.0.0 Released
Practical rule: search the codebase for these call sites after npm update or go get; merge the former positional value into the typed params struct your IDE suggests.
AI Search client changes: namespaces, params, and indexing
Section titled “AI Search client changes: namespaces, params, and indexing”AI Search saw the largest structural shift. Go SDK v6.10.0 and changelog 25 describe instance params, item routes, tokens, and metadata.
SearchForAgents metadata removed from instance types
Section titled “SearchForAgents metadata removed from instance types”The SearchForAgents nested type has been removed from all instance metadata structs. This field is no longer part of the API specification.
— Cloudflare, Go SDK v7.0.0 Released
Delete any code that reads or writes SearchForAgents on instance metadata; it is not in the spec anymore.
InstanceNewParams and InstanceUpdateParams restructured
Section titled “InstanceNewParams and InstanceUpdateParams restructured”The InstanceNewParams and InstanceUpdateParams types have been significantly restructured. Many fields have been moved or removed:
InstanceNewParams.TokenID, Type, CreatedFromAISearchWizard, WorkerDomain removed
InstanceUpdateParams — most configuration fields removed (including IndexMethod, IndexingOptions, MaxNumResults, Metadata, Paused, PublicEndpointParams, Reranking, …)— Cloudflare, Go SDK v6.10.0 Released
The product-side note aligns with simpler creation:
API instance creation is now simpler with optional token_id and model fields.
— Cloudflare, AI Search release note
Common mistake: assuming every former InstanceUpdateParams field still exists on the SDK type. Configuration may have moved to other APIs or fewer update surfaces—follow the types your v6 client generates, not an old wizard-oriented shape.
Instance items path: use Namespaces.Instances.Items
Section titled “Instance items path: use Namespaces.Instances.Items”The InstanceItemService type has been removed. The items sub-resource at client.AISearch.Instances.Items no longer exists in the non-namespace path. Use client.AISearch.Namespaces.Instances.Items instead.
— Cloudflare, Go SDK v6.10.0 Released
WaitForCompletion on namespace instance items
Section titled “WaitForCompletion on namespace instance items”Added WaitForCompletion parameter to NamespaceInstanceItemNewOrUpdateParams and NamespaceInstanceItemSyncParams for synchronous indexing confirmation
— Cloudflare, Go SDK v7.0.0 Released
Use WaitForCompletion when your automation must block until indexing finishes instead of polling separately.
Removed token list types and conversational search params
Section titled “Removed token list types and conversational search params”The ai_search package dropped TokenDeleteResponse, TokenListParams, and related order-by types (changelog 25). InstanceSearchParams.Messages and its message role types were removed—do not send chat-style Messages through that params type anymore.
Workers, Pages, Stream, and other services: type and API surface updates
Section titled “Workers, Pages, Stream, and other services: type and API surface updates”Beyond AI Search, v6 consolidates pagination type names, tightens response typing, and removes deprecated Cloudflared response wrappers. The following table highlights areas that often break typed client code; full lists appear in changelog 35 and the developer platform changelog.
| Area | What changed (SDK types) | Typical fix |
|---|---|---|
| Workers | ScriptsSinglePage → ScriptListResponsesSinglePage; DeploymentsSinglePage removed; WorkersBindingKindTailConsumer removed; new fields on Worker / Script (references, startup_time_ms, observability, tag, tags, placement variants, nullable tags / tail_consumers, richer telemetry) |
Rename list types; use subdomains.delete() where needed; read new observability and placement unions from generated types |
| Workers for Platforms | ScriptUpdateResponse gains entry_point, observability, tag, tags; placement is a 4-variant union; TagUpdateParams.body accepts null |
Update structs and null handling |
| Pages | DeploymentsSinglePage → DeploymentListResponsesV4PagePaginationArray; domain response fields often required; project/deployment methods return dedicated response types |
Handle non-optional domain fields; stop using generic Deployment return typing |
| Stream | Clip.New() returns shared Video; types Clip, ClipPlayback, ClipStatus, ClipWatermark removed; clip/copy params lose MaxDurationSeconds, ThumbnailTimestampPct, Watermark; webhook get/update are full structs not interface{} aliases |
Treat clips as Video; move watermark/thumbnail options to APIs that still expose them in types |
| Hyperdrive | ConfigEditParams loses MTLS and Name; HyperdriveMTLSParam loses MTLS and Host; origin Host is plain string not param.Field[string] |
Simplify host assignment; relocate mTLS config per current param shapes |
| Queues | MessageBulkPushResponseSuccess / MessagePushResponseSuccess removed; MessageAckResponse loses RetryCount and Warnings |
Stop reading removed ack fields |
| API Gateway / Schema Validation | PublicSchema renamed to OldPublicSchema; schema responses consolidate to PublicSchema; ConfigurationUpdateParams.properties removed—use normalize |
Rename imports; call normalize instead of setting properties |
| IAM resource groups | ResourceGroupCreateResponse.scope is required array; id required |
Always pass scope as an array; handle id as required |
| Zero Trust tunnels | Cloudflared*Response types and list pagination type removed; WARPConnector*Response union → interface |
Use remaining connector interfaces; drop Cloudflared-specific response types |
| Zero Trust Access AI Control MCP | Several AccessAIControlMcpPortal*Union types removed |
Rely on non-union response shapes from v6 |
| Abuse reports (registrar WHOIS) | Multiple RegWho* fields removed from registrar WHOIS report body |
Remove deprecated legal/request metadata fields from submissions |
| Browser Rendering | ContentCreateParams is discriminated union (URL vs HTML variants) |
Narrow on variant before accessing fields |
| SSL certificate packs | Responses are proper interfaces; id, certificates, hosts, status, type required |
Satisfy stricter typing when mapping responses |
| Spectrum | Union members renamed to SpectrumConfigAppConfig / SpectrumConfigPaygoAppConfig |
Update pattern matches on list responses |
| Zones | New SubscriptionCreateResponse, SubscriptionUpdateResponse, SubscriptionGetResponse |
Switch subscription calls to new response types |
Common migration mistakes after upgrading the client
Section titled “Common migration mistakes after upgrading the client”- Keeping old import paths for root-level
Token,Member, orSubscriptiontypes after the root namespace cleanup. - Calling
client.AISearch.Instances.Itemsinstead ofclient.AISearch.Namespaces.Instances.Items. - Spreading obsolete
InstanceUpdateParamsfields that the changelog lists as removed. - Expecting clip-specific TypeScript interfaces after Stream unified on the shared
Videotype. - Using
ConfigurationUpdateParams.propertieson API Gateway instead of the documentednormalizeflow (changelog 35). - Treating optional Pages domain fields as optional when v6 marks them required on responses.
Where to read release-by-release detail
Section titled “Where to read release-by-release detail”Cloudflare splits the same SDK notes across versioned and product-group pages. For a full diff while fixing compile errors, cross-check:
- Changelog 24 and core platform group 4 — early v6 TypeScript items including AI Search
WaitForCompletionand shared type removals - Changelog 25 and Go SDK product changelog — AI Search param surgery, Hyperdrive, Queues, Stream
- Changelog 35, fundamentals 2, and docs collections 2 — Workers, Pages, API Gateway, tunnels, SSL packs
- Dedicated posts: TypeScript v6.0.0, TypeScript v6.0.0-beta.1, Go v6.10.0, Go v7.0.0
How to check this on your site
Section titled “How to check this on your site”-
Pin or note your target SDK version in
package.jsonorgo.mod, then open the matching post above (for example Cloudflare TypeScript SDK v6.0.0 Released or Go SDK v7.0.0 Released). -
Run a full TypeScript or Go build and list every error involving removed types (
SearchForAgents, oldCliptypes,Cloudflared*Response, rootToken, etc.). -
For each failing call, compare your code to the quoted signature or path change in changelog 24–25 and fix params objects or client paths (especially AI Search
Namespaces.Instances.Items). -
Re-run tests against staging API credentials; confirm AI Search indexing behavior if you enabled
WaitForCompletion(Go SDK v7.0.0 Released). -
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match the linked Cloudflare changelog or your SDK version, email yimasynthetic@gmail.com with the page URL and the exact statement you believe is wrong so it can be corrected.