docs(sdk): publish JavaScript SDK docs#600
Conversation
Developers building on @RelevanceAI/sdk had no in-house documentation, and the sdk-and-api-triggers page was still pointing at the removed @relevanceai/chain package. This commit introduces a dedicated SDK (JavaScript) product with installation, authentication, client, agents, tasks, messaging, workforces, and streaming guides, sourced from the upstream SDK docs and verified against the SDK source. Navigation is restructured from flat tabs into Mintlify Products so the SDK sits as a peer to the main platform docs rather than as a tab buried under Build. A dismissible banner flags the launch, and pre-existing JavaScript capitalization issues across the repo are corrected in the same pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This comment was marked as spam.
This comment was marked as spam.
Dropping the announcement banner before merge — we decided not to run the site-wide callout for the SDK launch. Rest of the SDK docs is unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This comment was marked as spam.
This comment was marked as spam.
Clarify the importance of persisting embed keys for session continuity and user conversation restoration.
This comment was marked as spam.
This comment was marked as spam.
Adds a persistent "JavaScript SDK" entry under the existing Community and Contact Support global anchors, giving every page a one-click route into the SDK docs regardless of which product is active. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
# Conflicts: # docs.json
This comment was marked as spam.
This comment was marked as spam.
Now that the JavaScript SDK has its own product section, the dual-purpose sdk-and-api-triggers page was duplicating coverage of installation, authentication, and event handling that already lives in /sdk/. Renames the file to api-trigger.mdx and trims it to API-only content. A Tip callout at the top points developers to the SDK docs so discoverability from "Build → Triggers" stays intact. Existing redirects pointing at the old slug now resolve to the new path, and a fresh redirect from the old sdk-and-api-triggers slug catches any external bookmarks. Addresses PR #600 review feedback from @alexrelevanceai. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This comment was marked as spam.
This comment was marked as spam.
Reshapes the page after the SDK content split: - Title and Card label use "API Triggers" (plural) to match peer trigger pages (Webhook Triggers, Scheduled Triggers). - Intro now reads as a proper one-paragraph description of what the trigger does and when to use it, mirroring the structure of the other trigger pages. - SDK redirect uses a brand-purple custom Callout instead of the default green Tip — visually distinct from the surrounding warnings without competing with them. - Restores the "officially supported" Warning at the top, slimmed to reference the API only. - Moves the "response not returned directly" Note from the top stack into the API reference section, where it's contextually relevant to the request body. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This comment was marked as outdated.
This comment was marked as outdated.
The lint check on the PR flagged the empty alt attribute on the hero image. Adds a short description so the page passes the accessibility lint rule. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
# Conflicts: # docs.json
🎯 Vibe checkReviewed: 20 files (7 with issues, 13 clean) Scores
Score key: 🟢 9–10, 🟡 6–8, 🔴 1–5. ✨ Overall vibe: The SDK documentation is the clear highlight — well-structured, consistent sentence case, good use of type reference tables, and genuinely useful gotchas (like the 🔧 Issues (10)
|
| Item | Count |
|---|---|
| Files reviewed | 20 |
| Context pages read | 2 (custom-webhook.mdx, docs.json navigation/redirects) |
| Total lines processed | ~1,870 |
Files read: _snippets/components/tools/code-javascript.mdx (1 line), _snippets/setup-code-warning.mdx (3 lines), build/agents/build-your-agent/agent-triggers/api-trigger.mdx (122 lines), build/agents/build-your-agent/triggers.mdx (119 lines), build/tools/advanced-setup/conditions.mdx (28 lines), build/tools/tool-steps/code-javascript.mdx (68 lines), build/tools/tool-steps/getting-started.mdx (56 lines), embed/embed_agents.mdx (13 lines), embed/embed_tools.mdx (13 lines), sdk/agents.mdx (115 lines), sdk/authentication.mdx (141 lines), sdk/client.mdx (95 lines), sdk/installation.mdx (178 lines), sdk/introduction.mdx (50 lines), sdk/messaging.mdx (217 lines), sdk/quickstart.mdx (77 lines), sdk/streaming.mdx (104 lines), sdk/tasks.mdx (177 lines), sdk/workforces.mdx (150 lines), docs.json (972 lines), build/agents/build-your-agent/agent-triggers/custom-webhook.mdx (38 lines, context)
Summary
tabsinto Mintlifyproductsso the SDK sits as a peer to the main platform docs. The existing tabs now live under a Product product.sdk-and-api-triggers.mdxthat still referenced the removed@relevanceai/chainpackage andpip install relevanceai.Javascript→JavaScriptcapitalization across the repo.Context
RelevanceAI/relevance-js-sdk/docsand verified against the SDK source (exports, method signatures, event names, status mappings, type guards all cross-checked).Known upstream issue
The
"update"task event has a TypeScript type mismatch in the SDK — declared as"updated"in the event map but dispatched as"update"at runtime. Our docs use the runtime-correct"update"and include a<Warning>callout noting the type checker may complain. Worth filing upstream at RelevanceAI/relevance-js-sdk.Test plan
🤖 Generated with Claude Code