@amigo-ai/platform-sdk 0.5.10 → 0.6.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/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@amigo-ai/platform-sdk",
3
- "version": "0.5.10",
3
+ "version": "0.6.1",
4
4
  "description": "Official TypeScript SDK for the Amigo Platform API",
5
5
  "publishConfig": {
6
- "access": "public"
6
+ "access": "public",
7
+ "provenance": true
7
8
  },
8
9
  "keywords": [
9
10
  "amigo",
@@ -27,8 +28,14 @@
27
28
  "exports": {
28
29
  ".": {
29
30
  "types": "./dist/types/index.d.ts",
30
- "import": "./dist/index.mjs",
31
- "require": "./dist/index.cjs"
31
+ "import": {
32
+ "types": "./dist/types/index.d.ts",
33
+ "default": "./dist/index.mjs"
34
+ },
35
+ "require": {
36
+ "types": "./dist/types/index.d.cts",
37
+ "default": "./dist/index.cjs"
38
+ }
32
39
  },
33
40
  "./package.json": "./package.json"
34
41
  },
@@ -46,7 +53,7 @@
46
53
  "clean": "node scripts/clean.mjs",
47
54
  "gen-types": "node scripts/gen-types.mjs",
48
55
  "openapi:sync": "node scripts/sync-openapi.mjs",
49
- "build": "npm run clean && npm run gen-types && npm run esbuild && tsc --project tsconfig.build.json",
56
+ "build": "npm run clean && npm run gen-types && npm run esbuild && tsc --project tsconfig.build.json && node scripts/prepare-cjs-types.mjs",
50
57
  "esbuild": "node scripts/build.mjs",
51
58
  "docs:api": "node scripts/gen-api-docs.mjs",
52
59
  "docs:check": "node scripts/gen-api-docs.mjs --check",
@@ -59,6 +66,7 @@
59
66
  "test": "vitest run --project unit",
60
67
  "test:dist": "vitest run --project dist",
61
68
  "test:tarball": "node scripts/test-tarball.mjs",
69
+ "test:reviewer": "python -m unittest scripts.pr_review.test_main",
62
70
  "test:integration": "vitest run --project integration",
63
71
  "test:all": "vitest run",
64
72
  "test:watch": "vitest",
@@ -69,7 +77,8 @@
69
77
  },
70
78
  "sideEffects": false,
71
79
  "dependencies": {
72
- "openapi-fetch": "^0.17.0"
80
+ "openapi-fetch": "^0.17.0",
81
+ "openapi-typescript-helpers": "^0.1.0"
73
82
  },
74
83
  "devDependencies": {
75
84
  "@eslint/js": "^9.0.0",
@@ -112,8 +121,5 @@
112
121
  },
113
122
  "engines": {
114
123
  "node": ">=20.0.0"
115
- },
116
- "optionalDependencies": {
117
- "@rollup/rollup-darwin-arm64": "^4.60.2"
118
124
  }
119
125
  }