Skip to content

feat: docs sdk page #386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 16, 2025
Merged

feat: docs sdk page #386

merged 4 commits into from
May 16, 2025

Conversation

leggetter
Copy link
Collaborator

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 15, 2025 22:02
Copy link

vercel bot commented May 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
outpost-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 10:03pm
outpost-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 10:03pm

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces documentation for the SDK page and updates the TypeScript example SDK along with its configuration, scripts, and authentication flows. Key changes include updating the tsconfig include pattern, adding a new "auth" script in package.json, revising resource management logic in index.ts and auth.ts, and adding new documentation pages and configuration.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
examples/sdk-typescript/tsconfig.json Updated the include pattern from "index.ts" to "*.ts" for broader matching.
examples/sdk-typescript/package.json Added a new "auth" script alongside the existing "start" script.
examples/sdk-typescript/index.ts Revised the resource management logic and simplified environment variable checks.
examples/sdk-typescript/auth.ts Added a new authentication flow example, similar to index.ts but with slight differences.
docs/zudoku.config.ts Added a new navigation entry for the SDKs documentation.
docs/pages/sdks.mdx Created a new MDX documentation page that provides an overview and usage example for the SDKs.
Comments suppressed due to low confidence (2)

examples/sdk-typescript/auth.ts:8

  • [nitpick] Consider harmonizing the approach to environment variables between auth.ts and index.ts (using a consistent tenant identifier and SERVER_URL variable naming) to reduce potential confusion.
const TENANT_ID = process.env.TENANT_ID;

examples/sdk-typescript/index.ts:21

  • [nitpick] The tenantId is hardcoded in index.ts while auth.ts retrieves TENANT_ID from the environment; consider aligning the approach for consistency across the examples.
const tenantId = `hookdeck`;

@@ -7,5 +7,5 @@
"strict": true,
"skipLibCheck": true
},
"include": ["index.ts"]
"include": ["*.ts"],
Copy link
Preview

Copilot AI May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the new include pattern ('*.ts') in tsconfig.json covers the intended files and does not unintentionally include test or support files.

Suggested change
"include": ["*.ts"],
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts", "**/*.d.ts"],

Copilot uses AI. Check for mistakes.

@leggetter leggetter merged commit 0d614ea into main May 16, 2025
3 checks passed
@leggetter leggetter deleted the feat/docs-sdk-page branch May 16, 2025 15:54
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.

1 participant