Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/hub-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: '10.30.1'

Expand All @@ -48,15 +48,15 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: '10.30.1'

Expand All @@ -71,7 +71,7 @@ jobs:
github.repository == 'stainless-sdks/hub-typescript' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: core.setOutput('github_token', await core.getIDToken());

Expand Down Expand Up @@ -101,15 +101,15 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/hub-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: '10.30.1'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: '20'

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'formbricks/hub-typescript' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Check release environment
run: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.5.0"
".": "0.5.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 14
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/formbricks/hub-526ed49a32284f5c56e7964aece117e0c86e33ebb59fee0bfd690e115b7357a9.yml
openapi_spec_hash: ee1c213d7b857cdc4dfc2c6374043b78
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/formbricks/hub-a15df7247ac26379b3d0764da9c01194bb4abbd10be218a8ab688d6b487df877.yml
openapi_spec_hash: 6b3734b7fb4f5fc7421fd9651ca3c023
config_hash: 192df2ec8dde2ae4b7e328b5ac557cb8
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## 0.5.1 (2026-05-19)

Full Changelog: [v0.5.0...v0.5.1](https://github.com/formbricks/hub-typescript/compare/v0.5.0...v0.5.1)

### Bug Fixes

* **typescript:** upgrade tsc-multi so that it works with Node 26 ([2f297fe](https://github.com/formbricks/hub-typescript/commit/2f297fe027beb4a94ae15c757d8a29acd29fc403))


### Chores

* redact api-key headers in debug logs ([1c84b35](https://github.com/formbricks/hub-typescript/commit/1c84b35f6ea1f1b93211ec7172e6d7f5d2cd7ab9))
* **tests:** remove redundant File import ([1edb70a](https://github.com/formbricks/hub-typescript/commit/1edb70ac156b1fdbba00ea6bb0346ee18b282c91))


### Documentation

* update http mcp docs ([98b71ae](https://github.com/formbricks/hub-typescript/commit/98b71aeddc2307c2608413237357b4e42be2930c))

## 0.5.0 (2026-05-01)

Full Changelog: [v0.4.4...v0.5.0](https://github.com/formbricks/hub-typescript/compare/v0.4.4...v0.5.0)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@formbricks/hub",
"version": "0.5.0",
"version": "0.5.1",
"description": "The official TypeScript library for the Formbricks Hub API",
"author": "Formbricks Hub <hola@formbricks.com>",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -43,7 +43,7 @@
"publint": "^0.2.12",
"ts-jest": "^29.1.0",
"ts-node": "^10.5.0",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.11/tsc-multi.tgz",
"tsconfig-paths": "^4.0.0",
"tslib": "^2.8.1",
"typescript": "5.8.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dxt_version": "0.2",
"name": "@formbricks/hub-mcp",
"version": "0.5.0",
"version": "0.5.1",
"description": "The official MCP Server for the Formbricks Hub API",
"author": {
"name": "Formbricks Hub",
Expand Down
4 changes: 2 additions & 2 deletions packages/mcp-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@formbricks/hub-mcp",
"version": "0.5.0",
"version": "0.5.1",
"description": "The official MCP Server for the Formbricks Hub API",
"author": "Formbricks Hub <hola@formbricks.com>",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -73,7 +73,7 @@
"ts-jest": "^29.1.0",
"ts-morph": "^19.0.0",
"ts-node": "^10.5.0",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.11/tsc-multi.tgz",
"tsconfig-paths": "^4.0.0"
},
"imports": {
Expand Down
6 changes: 3 additions & 3 deletions packages/mcp-server/src/local-docs-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
},
http: {
example:
'curl http://localhost:8080/v1/feedback-records \\\n -H \'Content-Type: application/json\' \\\n -H "Authorization: Bearer $HUB_API_KEY" \\\n -d \'{\n "field_id": "q1",\n "field_type": "rating",\n "source_type": "survey",\n "submission_id": "550e8400-e29b-41d4-a716-446655440000",\n "tenant_id": "org-123"\n }\'',
'curl http://localhost:8080/v1/feedback-records \\\n -H \'Content-Type: application/json\' \\\n -H "Authorization: Bearer $HUB_API_KEY" \\\n -d \'{\n "field_id": "q1",\n "field_type": "rating",\n "source_type": "survey",\n "submission_id": "550e8400-e29b-41d4-a716-446655440000",\n "tenant_id": "org-123",\n "field_group_id": "feature_priority",\n "field_group_label": "Rank these features by importance",\n "field_label": "How satisfied are you?",\n "language": "en",\n "source_id": "survey-123",\n "source_name": "Q1 NPS Survey",\n "user_id": "user-abc-123",\n "value_boolean": true,\n "value_number": 9,\n "value_text": "Great service!"\n }\'',
},
},
},
Expand Down Expand Up @@ -258,7 +258,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
},
http: {
example:
"curl http://localhost:8080/v1/feedback-records/$ID \\\n -X PATCH \\\n -H 'Content-Type: application/json' \\\n -H \"Authorization: Bearer $HUB_API_KEY\" \\\n -d '{}'",
'curl http://localhost:8080/v1/feedback-records/$ID \\\n -X PATCH \\\n -H \'Content-Type: application/json\' \\\n -H "Authorization: Bearer $HUB_API_KEY" \\\n -d \'{\n "value_text": "Updated feedback text"\n }\'',
},
},
},
Expand Down Expand Up @@ -378,7 +378,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
},
http: {
example:
'curl http://localhost:8080/v1/webhooks \\\n -H \'Content-Type: application/json\' \\\n -H "Authorization: Bearer $HUB_API_KEY" \\\n -d \'{\n "tenant_id": "org-123",\n "url": "https://example.com/hub-events",\n "signing_key": "whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"\n }\'',
'curl http://localhost:8080/v1/webhooks \\\n -H \'Content-Type: application/json\' \\\n -H "Authorization: Bearer $HUB_API_KEY" \\\n -d \'{\n "tenant_id": "org-123",\n "url": "https://example.com/hub-events",\n "enabled": true,\n "event_types": [\n "feedback_record.created",\n "feedback_record.updated",\n "feedback_record.deleted"\n ],\n "signing_key": "whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"\n }\'',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const newMcpServer = async ({
new McpServer(
{
name: 'formbricks_hub_api',
version: '0.5.0',
version: '0.5.1',
},
{
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/internal/utils/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ export const formatRequestDetails = (details: {
name,
(
name.toLowerCase() === 'authorization' ||
name.toLowerCase() === 'api-key' ||
name.toLowerCase() === 'x-api-key' ||
name.toLowerCase() === 'cookie' ||
name.toLowerCase() === 'set-cookie'
) ?
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.5.0'; // x-release-please-version
export const VERSION = '0.5.1'; // x-release-please-version
1 change: 0 additions & 1 deletion tests/uploads.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fs from 'fs';
import type { ResponseLike } from '@formbricks/hub/internal/to-file';
import { toFile } from '@formbricks/hub/core/uploads';
import { File } from 'node:buffer';

class MyClass {
name: string = 'foo';
Expand Down
Loading