Skip to content

Commit 10e20c6

Browse files
authored
Merge pull request #45 from brand-dot-dev/release-please--branches--main--changes--next--components--brand.dev
release: 0.28.0
2 parents 1d97bc7 + 70c32b0 commit 10e20c6

File tree

10 files changed

+44
-18
lines changed

10 files changed

+44
-18
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.27.0"
2+
".": "0.28.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-2cdd67823c6ac9d1ab68032a695c31a098ad285ffb0c073b9dfc00afe5de9b88.yml
3-
openapi_spec_hash: ac8a965beb9b667b6204a5c573507219
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-3614380ba4315687bbaf6561e9872fd72dd876f9230ce690c35d7efc1250e808.yml
3+
openapi_spec_hash: f1aa17e08d0379766a61de68714c7c21
44
config_hash: 4cd3173ea1cce7183640aae49cfbb374

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.28.0 (2026-02-24)
4+
5+
Full Changelog: [v0.27.0...v0.28.0](https://github.com/brand-dot-dev/typescript-sdk/compare/v0.27.0...v0.28.0)
6+
7+
### Features
8+
9+
* **api:** api update ([349b511](https://github.com/brand-dot-dev/typescript-sdk/commit/349b511bc530fae82b93221aeec7032503da6a51))
10+
311
## 0.27.0 (2026-02-23)
412

513
Full Changelog: [v0.26.0...v0.27.0](https://github.com/brand-dot-dev/typescript-sdk/compare/v0.26.0...v0.27.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brand.dev",
3-
"version": "0.27.0",
3+
"version": "0.28.0",
44
"description": "The official TypeScript library for the Brand Dev API",
55
"author": "Brand Dev <hello@brand.dev>",
66
"types": "dist/index.d.ts",

packages/mcp-server/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dxt_version": "0.2",
33
"name": "brand.dev-mcp",
4-
"version": "0.27.0",
4+
"version": "0.28.0",
55
"description": "The official MCP Server for the Brand Dev API",
66
"author": {
77
"name": "Brand Dev",

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "brand.dev-mcp",
3-
"version": "0.27.0",
3+
"version": "0.28.0",
44
"description": "The official MCP Server for the Brand Dev API",
55
"author": "Brand Dev <hello@brand.dev>",
66
"types": "dist/index.d.ts",

packages/mcp-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const newMcpServer = async (stainlessApiKey: string | undefined) =>
2020
new McpServer(
2121
{
2222
name: 'brand_dev_api',
23-
version: '0.27.0',
23+
version: '0.28.0',
2424
},
2525
{
2626
instructions: await getInstructions(stainlessApiKey),

src/resources/brand.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,13 @@ export class Brand extends APIResource {
166166
/**
167167
* Automatically extract comprehensive design system information from a brand's
168168
* website including colors, typography, spacing, shadows, and UI components.
169+
* Either 'domain' or 'directUrl' must be provided as a query parameter, but not
170+
* both.
169171
*/
170-
styleguide(query: BrandStyleguideParams, options?: RequestOptions): APIPromise<BrandStyleguideResponse> {
172+
styleguide(
173+
query: BrandStyleguideParams | null | undefined = {},
174+
options?: RequestOptions,
175+
): APIPromise<BrandStyleguideResponse> {
171176
return this._client.get('/brand/styleguide', { query, ...options });
172177
}
173178

@@ -5948,11 +5953,17 @@ export interface BrandScreenshotParams {
59485953
}
59495954

59505955
export interface BrandStyleguideParams {
5956+
/**
5957+
* A specific URL to fetch the styleguide from directly, bypassing domain
5958+
* resolution (e.g., 'https://example.com/design-system').
5959+
*/
5960+
directUrl?: string;
5961+
59515962
/**
59525963
* Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
59535964
* domain will be automatically normalized and validated.
59545965
*/
5955-
domain: string;
5966+
domain?: string;
59565967

59575968
/**
59585969
* Optional parameter to prioritize screenshot capture for styleguide extraction.

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.27.0'; // x-release-please-version
1+
export const VERSION = '0.28.0'; // x-release-please-version

tests/api-resources/brand.test.ts

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ describe('resource brand', () => {
347347
});
348348

349349
// Mock server tests are disabled
350-
test.skip('styleguide: only required params', async () => {
351-
const responsePromise = client.brand.styleguide({ domain: 'domain' });
350+
test.skip('styleguide', async () => {
351+
const responsePromise = client.brand.styleguide();
352352
const rawResponse = await responsePromise.asResponse();
353353
expect(rawResponse).toBeInstanceOf(Response);
354354
const response = await responsePromise;
@@ -359,12 +359,19 @@ describe('resource brand', () => {
359359
});
360360

361361
// Mock server tests are disabled
362-
test.skip('styleguide: required and optional params', async () => {
363-
const response = await client.brand.styleguide({
364-
domain: 'domain',
365-
prioritize: 'speed',
366-
timeoutMS: 1000,
367-
});
362+
test.skip('styleguide: request options and params are passed correctly', async () => {
363+
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
364+
await expect(
365+
client.brand.styleguide(
366+
{
367+
directUrl: 'https://example.com',
368+
domain: 'domain',
369+
prioritize: 'speed',
370+
timeoutMS: 1000,
371+
},
372+
{ path: '/_stainless_unknown_path' },
373+
),
374+
).rejects.toThrow(BrandDev.NotFoundError);
368375
});
369376

370377
// Mock server tests are disabled

0 commit comments

Comments
 (0)