Skip to content

Commit 739b7c4

Browse files
committed
create new client based on pint spec file
1 parent 8b3bcf7 commit 739b7c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+5817
-4467
lines changed

openapi.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@
219219
"id": { "type": "string" },
220220
"is_frozen": { "type": "boolean" },
221221
"privacy": { "type": "integer" },
222+
"settings": {
223+
"properties": { "use_pint": { "type": "boolean" } },
224+
"type": "object"
225+
},
222226
"tags": { "items": { "type": "string" }, "type": "array" },
223227
"title": { "nullable": true, "type": "string" },
224228
"updated_at": { "format": "date-time", "type": "string" }
@@ -229,7 +233,8 @@
229233
"is_frozen",
230234
"created_at",
231235
"updated_at",
232-
"tags"
236+
"tags",
237+
"settings"
233238
],
234239
"title": "Sandbox",
235240
"type": "object"
@@ -927,11 +932,14 @@
927932
"cluster": { "type": "string" },
928933
"id": { "type": "string" },
929934
"latest_pitcher_version": { "type": "string" },
935+
"pint_token": { "type": "string" },
936+
"pint_url": { "type": "string" },
930937
"pitcher_manager_version": { "type": "string" },
931938
"pitcher_token": { "type": "string" },
932939
"pitcher_url": { "type": "string" },
933940
"pitcher_version": { "type": "string" },
934941
"reconnect_token": { "type": "string" },
942+
"use_pint": { "type": "boolean" },
935943
"user_workspace_path": { "type": "string" },
936944
"workspace_path": { "type": "string" }
937945
},
@@ -945,6 +953,7 @@
945953
"pitcher_url",
946954
"pitcher_version",
947955
"reconnect_token",
956+
"use_pint",
948957
"user_workspace_path",
949958
"workspace_path"
950959
],
@@ -1537,11 +1546,14 @@
15371546
"cluster": { "type": "string" },
15381547
"id": { "type": "string" },
15391548
"latest_pitcher_version": { "type": "string" },
1549+
"pint_token": { "type": "string" },
1550+
"pint_url": { "type": "string" },
15401551
"pitcher_manager_version": { "type": "string" },
15411552
"pitcher_token": { "type": "string" },
15421553
"pitcher_url": { "type": "string" },
15431554
"pitcher_version": { "type": "string" },
15441555
"reconnect_token": { "type": "string" },
1556+
"use_pint": { "type": "boolean" },
15451557
"user_workspace_path": { "type": "string" },
15461558
"workspace_path": { "type": "string" }
15471559
},
@@ -1555,6 +1567,7 @@
15551567
"pitcher_url",
15561568
"pitcher_version",
15571569
"reconnect_token",
1570+
"use_pint",
15581571
"user_workspace_path",
15591572
"workspace_path"
15601573
],
@@ -2671,6 +2684,6 @@
26712684
}
26722685
},
26732686
"security": [],
2674-
"servers": [{ "url": "https://api.codesandbox.stream", "variables": {} }],
2687+
"servers": [{ "url": "https://api.codesandbox.io", "variables": {} }],
26752688
"tags": []
26762689
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"build:esbuild": "node esbuild.cjs",
4343
"build:cjs:types": "tsc -p ./tsconfig.build-cjs.json --emitDeclarationOnly",
4444
"build:esm:types": "tsc -p ./tsconfig.build-esm.json --emitDeclarationOnly",
45-
"build-openapi": "rimraf src/api-clients && curl -o openapi.json https://api.codesandbox.io/meta/openapi && npx prettier --write ./openapi.json && node_modules/.bin/openapi-ts -i ./openapi.json -o src/api-clients/client -c @hey-api/client-fetch && npm run build-openapi-rest",
45+
"build-openapi": "rimraf src/api-clients && curl -o openapi.json https://api.codesandbox.io/meta/openapi && npx prettier --write ./openapi.json && node_modules/.bin/openapi-ts -i ./openapi.json -o src/api-clients/client -c @hey-api/client-fetch && npm run build-openapi-pint",
4646
"build-openapi:staging": "rimraf src/api-clients && curl -o openapi.json https://api.codesandbox.stream/meta/openapi && npx prettier --write ./openapi.json && node_modules/.bin/openapi-ts -i ./openapi.json -o src/api-clients/client -c @hey-api/client-fetch && npm run build-openapi-rest",
4747
"build-openapi-rest": "npm run build-openapi-rest-fs && npm run build-openapi-rest-task && npm run build-openapi-rest-container && npm run build-openapi-rest-git && npm run build-openapi-rest-setup && npm run build-openapi-rest-shell && npm run build-openapi-rest-system",
4848
"build-openapi-rest-container": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-container.json -o src/api-clients/client-rest-container -c @hey-api/client-fetch",
@@ -52,6 +52,7 @@
5252
"build-openapi-rest-shell": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-shell.json -o src/api-clients/client-rest-shell -c @hey-api/client-fetch",
5353
"build-openapi-rest-system": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-system.json -o src/api-clients/client-rest-system -c @hey-api/client-fetch",
5454
"build-openapi-rest-task": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-task.json -o src/api-clients/client-rest-task -c @hey-api/client-fetch",
55+
"build-openapi-pint": "node_modules/.bin/openapi-ts -i ./pint-openapi-bundled.json -o src/api-clients/pint -c @hey-api/client-fetch",
5556
"clean": "rimraf ./dist",
5657
"test": "vitest",
5758
"typecheck": "tsc --noEmit",
@@ -73,7 +74,7 @@
7374
"README.md"
7475
],
7576
"devDependencies": {
76-
"@hey-api/openapi-ts": "^0.63.2",
77+
"@hey-api/openapi-ts": "^0.84.4",
7778
"@msgpack/msgpack": "^2.7.1",
7879
"@parcel/watcher": "^2.5.1",
7980
"@tanstack/react-query": "^5.76.1",
@@ -101,7 +102,7 @@
101102
"why-is-node-running": "^2.3.0"
102103
},
103104
"dependencies": {
104-
"@hey-api/client-fetch": "^0.7.3",
105+
"@hey-api/client-fetch": "^0.13.1",
105106
"@inkjs/ui": "^2.0.0",
106107
"@opentelemetry/api": "^1.9.0",
107108
"@xterm/addon-serialize": "^0.13.0",

src/api-clients/client-rest-container/client.gen.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/api-clients/client-rest-container/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/api-clients/client-rest-container/sdk.gen.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/api-clients/client-rest-container/types.gen.ts

Lines changed: 0 additions & 111 deletions
This file was deleted.

src/api-clients/client-rest-fs/client.gen.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/api-clients/client-rest-fs/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)