Repository navigation
docs: API module definition reference + contribute how-to (2.11 / 2.12) - #723
Open
seanspeaks wants to merge 2 commits into
Open
seanspeaks wants to merge 2 commits into
seanspeaks wants to merge 2 commits into
Conversation
Align the module Definition reference with the schema on next and v1-ready fathom/hubspot examples. Replace the hidden contribute stub with a how-to for api-module-library next, gated to what validate and the library actually support today. Co-authored-by: Sean Matthews <sean.matthews@lefthook.co>
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
✅ Deploy Preview for friggframework-org canceled.
|
Avoid a hard API-key-vs-OAuth split. Map methods to redirect+code, form-based (API key common, not exclusive), and form-then-redirect. Co-authored-by: Sean Matthews <sean.matthews@lefthook.co>
|
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.



What changed (Diátaxis)
docs/reference/api-module-definition-and-functions.mdagainst the schema onnextand real v1-ready examples (Fathom ≈ form-based, HubSpot ≈ redirect + code). Fixed root-absolute / broken links.docs/api-module-library/building-your-own-module.mdwith Contribute an API Module for landing a package on api-module-librarynext.packages/v1-ready/(no empty stub fleshing).Merged sources checked
packages/schemas/schemas/api-module-definition.schema.jsonon friggnextfrigg validatevia #666 onnextnext—packages/v1-ready/fathom,hubspot@friggframework/corerangenext—.claude/skills/frigg-api-modules/SKILL.md+references/auth-testing.mdnext(not onmaintoday)modelName/getAuthorizationRequirements/setAuthParamsschema allowance and standalonefrigg validate --moduleModule Builder corrections applied (override original ASSUMPTIONs)
feat(<slug>): add <DisplayName> API modulegetToken+extensions/webhooksAPI/getName/moduleName+ entity/credential/persist/testAuth +env. Then by flow — redirect + code:getToken+redirect_uriternary; form-based:getAuthorizationRequirements+setAuthParams(API key common, not exclusive); hybrid: both.modelNameoptional in prose.redirect_uriternary; do not copy HubSpot’s always-on template stringDefinition.mappings;extensions.mappingout of scope for a minimal first contribnpm test(+ optionalfrigg auth test .); do not require unreleased validate/canaryFollow-up: auth framing (Sean)
Prose no longer frames auth as a hard API-key vs OAuth split. Docs use redirect + code / form-based / OAuth with a pre-redirect form, with the same method mapping (
getTokenfor redirect; form methods for forms; hybrid uses both). Templates stay Fathom ≈ form, HubSpot ≈ redirect.ASSUMPTIONS (still call out)
@friggframework/corepin cited as “read a siblingpackage.json”; Fathom on librarynextwas^2.0.0-next.107at write time — range may move.main, skill deep-links toblob/next/...may 404 until the skill lands onmain(called out on the contribute page).getAuthorizationRequirements/setAuthParams) remains until fix(schemas): allow modelName, setAuthParams, getAuthorizationRequirements in api-module definition #701 merges; docs label that as In review.Verification
definition.js/package.json/ file trees on librarynextvia GitHub API.nextlocally.frigg validateonnextvalidates app definitions (feat(devtools): frigg validate, and make the app-definition schema match the runtime (ADR-051) #666), not standalone module packages.Contribute an API Module preview
API Module Definition reference preview
CI note
Pre-existing red CI on
next(MongoMemoryServer / libcrypto) — docs-only PR; do not treat that failure as introduced here.Out of scope
No changes to support, hosts, OTel, or
website/.To show artifacts inline, enable in settings.
Note
Low Risk
Documentation-only changes with no runtime, auth, or data-handling code paths affected.
Reviewed by Cursor Bugbot for commit 0fa0bb5. Bugbot is set up for automated code reviews on this repo. Configure here.