Skip to content

docs(product): sync organization feature name to dir_sync (SDK ref + OpenAPI) - #938

Merged
saif-at-scalekit merged 2 commits into
mainfrom
docs/sdk-sync-org-settings-dir-sync
Aug 14, 2026
Merged

docs(product): sync organization feature name to dir_sync (SDK ref + OpenAPI)#938
saif-at-scalekit merged 2 commits into
mainfrom
docs/sdk-sync-org-settings-dir-sync

Conversation

@saif-at-scalekit

@saif-at-scalekit saif-at-scalekit commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Why: Shipped change in scalekit-inc/scalekit@b194c6bb (PR #2489, merged to main) corrected the organization feature identifier from directory_sync to dir_sync in the proto/OpenAPI contract. developer-docs still taught directory_sync — a value the API does not recognize (a copy-paste sets an unrecognized/no-op feature) — across both the Node SDK reference and the landed OpenAPI spec.

What: Surgical directory_syncdir_sync sync, no other changes:

  • Node SDK reference examples (updateOrganizationSettings): src/content/docs/saaskit/sdks/node/organizations.mdx, src/components/sdk-reference/saaskit/node/Organizations.mdx
  • OpenAPI working root openapi/scalekit.yaml: org-settings schema examples + the OrganizationSettingsFeature.name description enum (4 occurrences)
  • Regenerated OpenAPI outputs kept in sync (same deterministic token): public/api/scalekit.scalar.{json,yaml}, public/api/saaskit.scalar.{json,yaml}

Skills: docs-engineering, scalekit-code-doctor, api-reference, docs-writing-style.

Evidence: Backend source of truth db/environment_setting.goFeatureDirectorySync = "dir_sync" (@ c368c6f0). Contract correction: scalekit#2489 proto diff (proto/scalekit/v1/organizations/organizations.proto) and its generated OpenAPI (third_party/OpenAPI/scalekit.scalar.*). OpenAPI/proto compared: yes. Verified there is no legitimate organization.directory_sync event-name usage in these spec files, so the token swap is safe; repo-wide search now returns zero directory_sync.

Check: grep -rn directory_sync openapi/ public/api/ src/ returns no matches; both public/api/*.scalar.json re-parse as valid JSON. Preview: https://deploy-preview-{PR_NUMBER}--scalekit-starlight.netlify.app/saaskit/sdks/node/organizations/. verification: values verified against BE constant + proto/OpenAPI diff at SHA. Generated public/api/*.scalar.* were synced by the identical deterministic token replacement rather than a full rebuild — a maintainer should re-run pnpm run bundle:apis && pnpm run validate-api-split to confirm no other spec drift (redocly is not installed in this environment). verification: needs-human for the bundle re-run.

Summary by CodeRabbit

  • Documentation
    • Updated organization settings examples and feature descriptions to use the dir_sync identifier.
    • Synchronized the identifier across API references and Node.js SDK documentation.
    • Corrected supported feature values in published API specifications.

…ample

The updateOrganizationSettings examples used directory_sync, which the API
does not recognize. The backend feature identifier is dir_sync
(db/environment_setting.go: FeatureDirectorySync = "dir_sync"). Aligns the
Node SDK reference with the corrected proto/OpenAPI contract from
scalekit#2489.
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: dce33d40-6d0f-4730-8ef4-e45f3074ae57

📥 Commits

Reviewing files that changed from the base of the PR and between 53cb316 and b173cdf.

📒 Files selected for processing (7)
  • openapi/scalekit.yaml
  • public/api/saaskit.scalar.json
  • public/api/saaskit.scalar.yaml
  • public/api/scalekit.scalar.json
  • public/api/scalekit.scalar.yaml
  • src/components/sdk-reference/saaskit/node/Organizations.mdx
  • src/content/docs/saaskit/sdks/node/organizations.mdx

Walkthrough

The organization feature identifier changes from directory_sync to dir_sync across OpenAPI specifications, Scalar API references, and Node.js organization settings examples.

Changes

Organization feature identifier

Layer / File(s) Summary
Update API specification identifiers
openapi/scalekit.yaml, public/api/saaskit.scalar.*, public/api/scalekit.scalar.*
Organization settings examples and supported feature descriptions now use dir_sync.
Update SDK examples
src/components/sdk-reference/saaskit/node/Organizations.mdx, src/content/docs/saaskit/sdks/node/organizations.mdx
Node.js organization settings examples now enable dir_sync.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: amitash1912, ravibits

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/sdk-sync-org-settings-dir-sync
  • 🛠️ fix frontmatter
  • 🛠️ fix internal links

Comment @coderabbitai help to get the list of available commands.

The organization settings schema examples and the OrganizationSettingsFeature
name description in the landed OpenAPI spec still taught directory_sync, which
the API does not recognize. The backend feature identifier is dir_sync
(db/environment_setting.go: FeatureDirectorySync = "dir_sync"). Syncs the docs
OpenAPI root and its generated public/api/*.scalar.* outputs with the corrected
proto/OpenAPI contract from scalekit#2489.
@saif-at-scalekit saif-at-scalekit changed the title docs(product): update Node SDK reference for organization feature name (dir_sync) docs(product): sync organization feature name to dir_sync (SDK ref + OpenAPI) Aug 10, 2026
@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for scalekit-starlight ready!

Name Link
🔨 Latest commit 29658ac
🔍 Latest deploy log https://app.netlify.com/projects/scalekit-starlight/deploys/6a79ead81b38280008b2d099
😎 Deploy Preview https://deploy-preview-938--scalekit-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 74 (🟢 up 16 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for scalekit-starlight ready!

Name Link
🔨 Latest commit b173cdf
🔍 Latest deploy log https://app.netlify.com/projects/scalekit-starlight/deploys/6a79ec31eb29f90007d3c6bb
😎 Deploy Preview https://deploy-preview-938--scalekit-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 72 (🟢 up 14 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@saif-at-scalekit
saif-at-scalekit marked this pull request as ready for review August 14, 2026 10:19
@saif-at-scalekit
saif-at-scalekit merged commit 1212c98 into main Aug 14, 2026
4 of 5 checks passed
@saif-at-scalekit
saif-at-scalekit deleted the docs/sdk-sync-org-settings-dir-sync branch August 14, 2026 10:20
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.

3 participants