mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #9] [MERGED] feat: apiKey on submit/run for partner (API) node auth #19
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/9
Author: @wei-hai
Created: 7/21/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @wei-hai
Base:
main← Head:feat/extra-data-api-key📝 Commits (1)
e7b612dfeat: apiKey on submit/run for partner (API) node auth📊 Changes
11 files changed (+145 additions, -11 deletions)
View changed files
➕
.github/CODEOWNERS(+4 -0)📝
README.md(+17 -0)📝
scripts/check-public-repo-hygiene.mjs(+20 -3)📝
spec/openapi.yaml(+10 -0)📝
src/low/generated/types.gen.ts(+9 -0)📝
src/low/generated/zod.gen.ts(+4 -1)📝
src/low/transport.test.ts(+18 -0)📝
src/low/transport.ts(+15 -2)📝
src/sdk/client.test.ts(+25 -0)📝
src/sdk/client.ts(+13 -3)📝
test/support/stub-server.ts(+10 -2)📄 Description
What
Workflows that use partner/API nodes (Gemini, etc.) authenticate with a single Comfy API key carried in the
POST /api/v2/jobsbody asextra_data.api_key_comfy_org. This adds an optionalapiKeyoption tosubmit()/run()that packs the key into a typed, closedextra_dataobject sent alongside the workflow.apiKeyand noextra_datais sent (never an empty object).extra_data,additionalProperties: false) — nothing beyondapi_key_comfy_orgcan be smuggled through.apiKey(which authenticates you to the server); often the same key but conceptually distinct.Tests
New tests at both the transport and client layers prove
extra_data.api_key_comfy_orgis a sibling ofworkflowwhen a key is given and genuinely absent otherwise.vitest— 109/109 passed;typecheck,oxlint,oxfmt --check, and spec-drift all clean.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.