@bugbug-io/api-schema 14.0.4 → 14.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -28
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,39 +1,32 @@
1
- <div align="center">
2
-
3
- ![BugBug Logo](https://bugbug.io/favicon-96x96.png)
1
+ ![BugBug logo](https://bugbug.io/favicon-96x96.png)
4
2
 
5
3
  # BugBug API Schema
6
4
 
7
- **Generated API types and schemas for BugBug**
8
-
9
- TypeScript types and Zod schemas for the [BugBug](https://bugbug.io) API, generated from the OpenAPI specification.
10
-
11
- </div>
5
+ `@bugbug-io/api-schema` provides published TypeScript types and Zod schemas for
6
+ building BugBug integrations.
12
7
 
13
- ## Features
8
+ ```sh
9
+ npm install @bugbug-io/api-schema
10
+ ```
14
11
 
15
- - **OpenAPI-derived types**: TypeScript types generated from the BugBug API schema
16
- - **Zod schemas**: Runtime validation for tests, suites, runs, profiles, steps, selectors, and enums
17
- - **Single source of truth**: Shared contracts consumed by the SDK, CLI, and MCP server
12
+ ## Use it when
18
13
 
19
- ## Schemas
14
+ - You need TypeScript types generated from BugBug's OpenAPI contract.
15
+ - You want to validate BugBug tests, suites, runs, profiles, steps, selectors,
16
+ or enums at runtime with Zod.
17
+ - You are building tooling that needs the same API shapes as the official SDK.
20
18
 
21
- Import grouped schemas via subpath exports:
19
+ ## Schema imports
22
20
 
23
- - `@bugbug-io/api-schema/schemas/steps`
24
- - `@bugbug-io/api-schema/schemas/selectors`
25
- - `@bugbug-io/api-schema/schemas/tests`
26
- - `@bugbug-io/api-schema/schemas/suites`
27
- - `@bugbug-io/api-schema/schemas/profiles`
28
- - `@bugbug-io/api-schema/schemas/runs`
29
- - `@bugbug-io/api-schema/schemas/enums`
21
+ Import grouped schemas from subpath exports:
30
22
 
31
- ## Syncing
23
+ ```ts
24
+ import { TestSchema } from '@bugbug-io/api-schema/schemas/tests';
25
+ import { StepSchema } from '@bugbug-io/api-schema/schemas/steps';
26
+ ```
32
27
 
33
- Regenerate types and schemas from the API:
28
+ Other available groups are `selectors`, `suites`, `profiles`, `runs`, and
29
+ `enums`.
34
30
 
35
- - `npm run sync` — sync OpenAPI schema from production
36
- - `npm run sync:stage` — sync from staging
37
- - `npm run sync:dev` — sync from local backend
38
- - `npm run sync:step-error-codes` — sync step error codes
39
- - `npm run sync:all` — sync everything
31
+ For a higher-level API client, use [@bugbug-io/sdk](../sdk). Using the SDK access requires
32
+ a BugBug Business plan.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@bugbug-io/api-schema",
3
- "version": "14.0.4",
3
+ "version": "14.0.8",
4
+ "description": "Published TypeScript types and Zod schemas for the BugBug API",
4
5
  "private": false,
5
6
  "type": "module",
6
7
  "main": "dist/index.js",