@mesadev/rest 0.3.3 → 0.4.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.
Files changed (43) hide show
  1. package/README.md +9 -16
  2. package/dist/index.d.mts +3361 -0
  3. package/dist/index.d.mts.map +1 -0
  4. package/dist/index.mjs +944 -0
  5. package/dist/index.mjs.map +1 -0
  6. package/package.json +17 -10
  7. package/src/client.gen.ts +1 -1
  8. package/src/index.ts +144 -2
  9. package/src/sdk.gen.ts +68 -31
  10. package/src/types.gen.ts +451 -89
  11. package/LICENSE +0 -201
  12. package/dist/client/client.gen.d.ts +0 -2
  13. package/dist/client/client.gen.js +0 -234
  14. package/dist/client/index.d.ts +0 -8
  15. package/dist/client/index.js +0 -6
  16. package/dist/client/types.gen.d.ts +0 -117
  17. package/dist/client/types.gen.js +0 -2
  18. package/dist/client/utils.gen.d.ts +0 -33
  19. package/dist/client/utils.gen.js +0 -228
  20. package/dist/client.gen.d.ts +0 -12
  21. package/dist/client.gen.js +0 -3
  22. package/dist/core/auth.gen.d.ts +0 -18
  23. package/dist/core/auth.gen.js +0 -14
  24. package/dist/core/bodySerializer.gen.d.ts +0 -25
  25. package/dist/core/bodySerializer.gen.js +0 -57
  26. package/dist/core/params.gen.d.ts +0 -43
  27. package/dist/core/params.gen.js +0 -100
  28. package/dist/core/pathSerializer.gen.d.ts +0 -33
  29. package/dist/core/pathSerializer.gen.js +0 -106
  30. package/dist/core/queryKeySerializer.gen.d.ts +0 -18
  31. package/dist/core/queryKeySerializer.gen.js +0 -92
  32. package/dist/core/serverSentEvents.gen.d.ts +0 -71
  33. package/dist/core/serverSentEvents.gen.js +0 -133
  34. package/dist/core/types.gen.d.ts +0 -78
  35. package/dist/core/types.gen.js +0 -2
  36. package/dist/core/utils.gen.d.ts +0 -19
  37. package/dist/core/utils.gen.js +0 -87
  38. package/dist/index.d.ts +0 -2
  39. package/dist/index.js +0 -2
  40. package/dist/sdk.gen.d.ts +0 -135
  41. package/dist/sdk.gen.js +0 -226
  42. package/dist/types.gen.d.ts +0 -2547
  43. package/dist/types.gen.js +0 -2
package/README.md CHANGED
@@ -1,28 +1,21 @@
1
1
  # @mesadev/rest
2
2
 
3
- TypeScript REST SDK for the [Mesa](https://mesa.dev) API.
3
+ TypeScript REST SDK for the Mesa API.
4
4
 
5
- Generated from the OpenAPI specification using [@hey-api/openapi-ts](https://heyapi.dev).
5
+ This package is generated from the OpenAPI schema and mirrored to the public `mesa-dot-dev/ts-rest` repository.
6
6
 
7
- ## Installation
7
+ ## Install
8
8
 
9
9
  ```bash
10
- npm install @mesadev/rest
10
+ bun add @mesadev/rest
11
11
  ```
12
12
 
13
- ## Usage
13
+ ## Regenerate from OpenAPI
14
14
 
15
- ```typescript
16
- import { createClient } from "@mesadev/rest";
15
+ From the monorepo root:
17
16
 
18
- const client = createClient({
19
- baseUrl: "https://depot.mesa.dev/api/v1",
20
- headers: {
21
- Authorization: "Bearer YOUR_API_KEY",
22
- },
23
- });
17
+ ```bash
18
+ bun run sdk:generate:typescript
24
19
  ```
25
20
 
26
- ## License
27
-
28
- Apache-2.0
21
+ `sdk:sync:typescript-rest` remains available as an alias when you want to run the sync step explicitly.