Repository navigation
Generate Deal pipeline create and update methods - #21
Merged
Merged
Conversation
Add deals.create_public_deal_pipeline_api (POST /v2/public/deals/pipelines)
and deals.update_public_deal_pipeline_api
(PATCH /v2/public/deals/pipelines/{pipeline_id}), sync and async, from the
shared SDK input, which adds only these two operations from sanka-api #4379.
Generated with scripts/generate_sdk.sh (Fern python SDK 4.34.0).
haegwan
approved these changes
Sep 28, 2026
2 tasks done
haegwan
added a commit
that referenced
this pull request
Sep 28, 2026
Bump the Python SDK from 0.2.7 to 0.2.8 so the merged sync and async deals.create_public_deal_pipeline_api and deals.update_public_deal_pipeline_api methods (#21) can be published to PyPI. The version lives only in pyproject.toml; `uv lock` updated the project's own uv.lock entry. The Fern-generated client carries no SDK version string, so no generated code changes. Co-authored-by: Haegwan Kim <haegwankim@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Generates
deals.create_public_deal_pipeline_api(POST /v2/public/deals/pipelines) anddeals.update_public_deal_pipeline_api(PATCH /v2/public/deals/pipelines/{pipeline_id}), sync and async, for the Deal pipeline write API added in sanka-api #4379 (merged as 69f649c37). Method names follow the existing operationId-derived names, such aslist_public_deal_pipelines_api.openapi/openapi.jsonis the shared SDK input (local sanka-sdks commit 80953c1), which adds only these two operations and the nine schemas they use.src/sanka_sdkisscripts/generate_sdk.shoutput (Fern python SDK 4.34.0): the two methods indeals/client.pyanddeals/raw_client.pyplus seven types. Nothing is hand-edited. The version stays 0.2.7 and nothing is published.stagesas the complete ordered list (kept stages byid, new ones without) andremoved_stages=[DealPipelineStageRemoval(id, replacement_stage_id)]; a used stage without a replacement fails with 409STAGE_IN_USE.Verified with
httpx.MockTransport(not committed): create sendsPOST /v2/public/deals/pipelines?workspace_id=...with only the set stage fields and parses the pipeline; update sendsPATCH /v2/public/deals/pipelines/{id}withremoved_stages[].replacement_stage_id; a 409 raisesApiErrorcarryingSTAGE_IN_USE. No test is added: request serialization is generator-owned, and the behaviour is tested in sanka-api #4379 and sanka-mcp #253.Line counts: test +0; non-test +1327 (generated SDK and spec).
Publish only after sanka-api #4379 is deployed; the methods 404 before that.
Audit
@haegwanSanka Change Bot76d861682793228a340ba1cd72ec3d78514bfdcdlownonePython SDK source (PyPI sanka-sdk, unpublished)Validation
env PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin uv run --frozen -- python -W error -m unittest discover -s tests-> passedenv PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin uv build-> passedMockTransport run of the generated client: POST and PATCH paths, bodies and the 409 ApiError verified.-> reported passedChange Safety
Approval And Deployment Authorization