@sentry/api 0.446.0 → 1.0.1
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.
- package/README.md +13 -2
- package/dist/api-client/endpoints/index.js +383 -193
- package/dist/api-client/index.js +549 -324
- package/dist/browser.js +9 -10
- package/dist/index.js +4765 -1216
- package/dist/operations.js +5191 -5620
- package/dist/source-analysis.js +127 -465
- package/dist/valibot.js +1259 -1259
- package/dist/zod.gen.d.ts +17150 -96769
- package/dist/zod.js +4654 -4654
- package/package.json +7 -10
package/README.md
CHANGED
|
@@ -273,7 +273,7 @@ import { vGetProjectResponse } from "@sentry/api/valibot";
|
|
|
273
273
|
const project = v.parse(vGetProjectResponse, input);
|
|
274
274
|
```
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
Zod 4 runtime schemas are available through another optional entry point:
|
|
277
277
|
|
|
278
278
|
```bash
|
|
279
279
|
npm install @sentry/api zod
|
|
@@ -285,7 +285,7 @@ import { zGetProjectResponse } from "@sentry/api/zod";
|
|
|
285
285
|
const project = zGetProjectResponse.parse(input);
|
|
286
286
|
```
|
|
287
287
|
|
|
288
|
-
`valibot` and `zod` are optional peer dependencies. Install neither when you only need the generated client and TypeScript types, or install the validator used by your application. The `@sentry/api/valibot` entry requires Valibot 1; its optional peer uses a wildcard because npm applies peer constraints to the whole package, including consumers that never import this entry.
|
|
288
|
+
`valibot` and `zod` are optional peer dependencies. Install neither when you only need the generated client and TypeScript types, or install the validator used by your application. The `@sentry/api/valibot` entry requires Valibot 1; its optional peer uses a wildcard because npm applies peer constraints to the whole package, including consumers that never import this entry. The `@sentry/api/zod` entry requires Zod 4.6.6 or later.
|
|
289
289
|
|
|
290
290
|
## Error handling
|
|
291
291
|
|
|
@@ -579,6 +579,17 @@ const projects = await core.requestJson("https://sentry.example.com", "/organiza
|
|
|
579
579
|
|
|
580
580
|
The OpenAPI schema is synced from [`getsentry/sentry`](https://github.com/getsentry/sentry/tree/master/api-docs). Schema fixes belong there; build/tooling changes belong here.
|
|
581
581
|
|
|
582
|
+
## Development
|
|
583
|
+
|
|
584
|
+
The repository uses pnpm on Node.js 22.13 or later. Tests import the generated `src/` and `dist/` output, so build before testing:
|
|
585
|
+
|
|
586
|
+
```sh
|
|
587
|
+
pnpm install
|
|
588
|
+
pnpm build
|
|
589
|
+
pnpm typecheck
|
|
590
|
+
pnpm test
|
|
591
|
+
```
|
|
592
|
+
|
|
582
593
|
## License
|
|
583
594
|
|
|
584
595
|
FSL-1.1-Apache-2.0. See [LICENSE.md](LICENSE.md).
|