@alvera-ai/platform-sdk 0.8.0 → 0.9.0
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 +5 -4
- package/package.json +3 -4
- package/src/generated/sdk.gen.ts +932 -932
- package/src/generated/types.gen.ts +7220 -7220
- package/src/generated/valibot.gen.ts +4108 -4100
package/README.md
CHANGED
|
@@ -10,6 +10,8 @@ tables, action status updaters, AI agents — with full type safety.
|
|
|
10
10
|
```bash
|
|
11
11
|
npm install @alvera-ai/platform-sdk
|
|
12
12
|
# or
|
|
13
|
+
bun add @alvera-ai/platform-sdk
|
|
14
|
+
# or
|
|
13
15
|
pnpm add @alvera-ai/platform-sdk
|
|
14
16
|
```
|
|
15
17
|
|
|
@@ -141,7 +143,7 @@ The CLI resolves a base URL with this precedence (highest first):
|
|
|
141
143
|
|
|
142
144
|
Adding, renaming, or removing environments happens in the platform repo (the
|
|
143
145
|
`servers/0` function in `lib/platform_api/api_spec.ex`); rerun
|
|
144
|
-
`
|
|
146
|
+
`bun run regen` in the SDK to pick up the change.
|
|
145
147
|
|
|
146
148
|
## Resources
|
|
147
149
|
|
|
@@ -295,12 +297,11 @@ git commit -am "feat(api): …"
|
|
|
295
297
|
|
|
296
298
|
# in this repo
|
|
297
299
|
cp ../platform/openapi.yaml spec/openapi.yaml
|
|
298
|
-
|
|
299
|
-
pnpm build # compile to dist/
|
|
300
|
+
bun run regen # gen-environments + codegen + check-coverage
|
|
300
301
|
git commit -am "chore: sync openapi spec"
|
|
301
302
|
```
|
|
302
303
|
|
|
303
|
-
`
|
|
304
|
+
`bun run regen` runs `gen-environments` (rebuilds
|
|
304
305
|
`src/environments.generated.ts` from `servers[]`), then `codegen`, then
|
|
305
306
|
`check-coverage`.
|
|
306
307
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alvera-ai/platform-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Typed SDK for the Alvera platform API — manage data sources, tools, generic tables, AI agents, and action status updaters.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -24,15 +24,14 @@
|
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
27
|
-
"packageManager": "pnpm@10.20.0",
|
|
28
27
|
"scripts": {
|
|
29
28
|
"gen-environments": "tsx scripts/gen-environments.ts",
|
|
30
29
|
"codegen": "openapi-ts && tsx scripts/patch-generated.ts",
|
|
31
30
|
"check-coverage": "tsx scripts/check-sdk-coverage.ts",
|
|
32
|
-
"regen": "
|
|
31
|
+
"regen": "bun run gen-environments && bun run codegen && bun run check-coverage",
|
|
33
32
|
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
34
33
|
"clean": "rm -rf src/generated src/environments.generated.ts",
|
|
35
|
-
"prepare": "
|
|
34
|
+
"prepare": "bun run gen-environments && bun run codegen && bun run check-coverage"
|
|
36
35
|
},
|
|
37
36
|
"dependencies": {
|
|
38
37
|
"commander": "14.0.3",
|