Skip to content

chore(sdk): hoist publish and retry to SDK root#889

Merged
alexluong merged 3 commits into
mainfrom
experiment/sdk-hoist-publish-retry
May 1, 2026
Merged

chore(sdk): hoist publish and retry to SDK root#889
alexluong merged 3 commits into
mainfrom
experiment/sdk-hoist-publish-retry

Conversation

@alexluong

Copy link
Copy Markdown
Collaborator

Summary

  • Add x-speakeasy-group: \"\" to /publish and /retry POST overlays so single-operation namespaces collapse to root methods.
  • Updated x-speakeasy-name-override for /publish from event to publish to match new shape.
  • Caller migration: sdk.Publish.Event(...) / sdk.Retry.Retry(...)sdk.Publish(...) / sdk.Retry(...).

Why

After #883 retagged /retry to its own Retry tag (1.1.0), Speakeasy generated stuttering sdk.retry.retry(). Both /publish and /retry are single-operation tags — hoisting to root is more idiomatic and removes the stutter.

Verification

Tested locally with speakeasy run -t outpost-go:

  • publish.go and retry.go namespace files removed
  • Publish and Retry become methods on the root Outpost struct
  • docs/sdks/publish/ and docs/sdks/retry/ removed; methods documented in new docs/sdks/outpost/README.md
  • No collision with WithRetryConfig HTTP retry option
  • Build, tests, and staticcheck all pass

Test plan

  • Merge spec change
  • Trigger SDK regeneration as 1.2.0 (Go → Python → TS)
  • Verify each SDK exposes root-level publish / retry
  • Confirm no Speakeasy linting regressions

Use x-speakeasy-group: "" to lift /publish and /retry off their
single-operation namespaces, so callers can use sdk.publish() and
sdk.retry() directly instead of sdk.Publish.Event() / sdk.Retry.Retry().

Verified locally with speakeasy run -t outpost-go: publish.go and
retry.go namespace files are removed and Publish/Retry become methods
on the root Outpost client.

Spec-only change; SDKs will regenerate on the next 1.2.0 release.
alexluong and others added 2 commits May 1, 2026 23:35
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alexluong alexluong merged commit fa79e0a into main May 1, 2026
1 of 2 checks passed
@alexluong alexluong deleted the experiment/sdk-hoist-publish-retry branch May 1, 2026 16:37
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