@anyformat/sdk 0.2.2 → 1.0.0-rc.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anyformat/sdk",
3
- "version": "0.2.2",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "TypeScript SDK for the AnyFormat API",
5
5
  "license": "MIT",
6
6
  "author": "Anyformat <info@anyformat.ai>",
@@ -22,17 +22,17 @@
22
22
  "node": ">=18"
23
23
  },
24
24
  "scripts": {
25
- "gen:spec": "ROOT=$(unset GIT_DIR && git rev-parse --show-toplevel) && cd \"$ROOT/anyformat/services/api\" && uv run python \"$ROOT/anyformat/libs/public/sdk-js/scripts/dump_openapi.py\" \"$ROOT/anyformat/libs/public/sdk-js/openapi/v2.json\"",
25
+ "gen:spec": "ROOT=$(unset GIT_DIR && git rev-parse --show-toplevel) && cd \"$ROOT/anyformat/services/api\" && uv run python \"$ROOT/anyformat/libs/public/sdk-js/scripts/dump_openapi.py\" \"$ROOT/anyformat/libs/public/sdk-js/openapi/v2.json\" --surface v2 && uv run python \"$ROOT/anyformat/libs/public/sdk-js/scripts/dump_openapi.py\" \"$ROOT/anyformat/libs/public/sdk-js/openapi/v3.json\" --surface v3",
26
26
  "gen:client": "openapi-ts",
27
- "gen": "npm run gen:spec && npm run gen:client",
28
- "gen:check": "npm run gen && git diff --exit-code -- openapi/v2.json src/sdk",
27
+ "gen": "bun run gen:spec && bun run gen:client",
28
+ "gen:check": "bun run gen && git diff --exit-code -- openapi src/sdk",
29
29
  "build": "tsup",
30
30
  "typecheck": "tsc --noEmit",
31
31
  "test": "vitest run",
32
- "prepublishOnly": "npm run build"
32
+ "prepublishOnly": "bun run build"
33
33
  },
34
34
  "devDependencies": {
35
- "@hey-api/openapi-ts": "^0.97.3",
35
+ "@hey-api/openapi-ts": "^0.99.0",
36
36
  "@types/node": "^25.9.1",
37
37
  "tsup": "^8.3.0",
38
38
  "typescript": "^5.6.0",