Skip to content

Commit ad3163c

Browse files
authored
Merge pull request #3264 from hyoban/1-25-orpc
feat: `orpc` plugin
2 parents d61d2b1 + 518038b commit ad3163c

65 files changed

Lines changed: 3845 additions & 423 deletions

File tree

Some content is hidden

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

.changeset/lazy-nails-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
---
4+
5+
**plugin(orpc)**: initial release

dev/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@hey-api/openapi-python": "workspace:*",
1414
"@hey-api/openapi-ts": "workspace:*",
1515
"@opencode-ai/sdk": "1.2.27",
16+
"@orpc/contract": "1.13.4",
1617
"@pinia/colada": "0.19.1",
1718
"@tanstack/angular-query-experimental": "5.90.25",
1819
"@tanstack/preact-query": "5.93.0",

dev/typescript/presets.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export const presets = {
3030
},
3131
},
3232
],
33+
rpc: () => [
34+
/** RPC-style SDK with Zod validation */
35+
'orpc',
36+
'zod',
37+
],
3338
sdk: () => [
3439
/** SDK with types */
3540
'@hey-api/typescript',

packages/codegen-core/.gitignore

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
.DS_Store
22
.idea
3-
.tsdown
43
.tmp
5-
junit.xml
4+
.tsdown
65
logs
76
node_modules
8-
npm-debug.log*
97
temp
10-
yarn-debug.log*
11-
yarn-error.log*
128

13-
*.iml
14-
dist
15-
coverage
169
.env
10+
coverage
11+
dist
12+
13+
# test files
14+
.gen
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
.DS_Store
22
.idea
3-
.tsdown
43
.tmp
5-
junit.xml
4+
.tsdown
65
logs
76
node_modules
8-
npm-debug.log*
97
temp
10-
yarn-debug.log*
11-
yarn-error.log*
128

13-
*.iml
14-
dist
15-
coverage
169
.env
10+
coverage
11+
dist
1712

1813
# test files
19-
.gen/
14+
.gen
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
.DS_Store
22
.idea
3-
.tsdown
43
.tmp
5-
junit.xml
4+
.tsdown
65
logs
76
node_modules
8-
npm-debug.log*
97
temp
10-
yarn-debug.log*
11-
yarn-error.log*
128

13-
*.iml
14-
dist
15-
coverage
169
.env
10+
coverage
11+
dist
1712

1813
# test files
19-
.gen/
14+
.gen

packages/openapi-python/src/plugins/@hey-api/client-core/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Config } from '../../../config/types';
2-
import type { PluginClientNames } from '../../../plugins/types';
2+
import type { PluginClientNames } from '../../types';
33

44
export function getClientPlugin(
55
config: Config,

packages/openapi-python/src/plugins/@hey-api/sdk/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { DefinePlugin, OperationsStrategy, Plugin } from '@hey-api/shared';
22

3-
import type { PluginClientNames } from '../../../plugins/types';
4-
// import type { PluginClientNames, PluginValidatorNames } from '../../../plugins/types';
3+
import type { PluginClientNames } from '../../types';
4+
// import type { PluginClientNames, PluginValidatorNames } from '../../types';
55
import type { ExamplesConfig, UserExamplesConfig } from './examples';
66
import type { OperationsConfig, UserOperationsConfig } from './operations';
77

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
.DS_Store
22
.idea
3-
.tsdown
43
.tmp
5-
junit.xml
4+
.tsdown
65
logs
76
node_modules
8-
npm-debug.log*
97
temp
10-
yarn-debug.log*
11-
yarn-error.log*
128

13-
*.iml
14-
dist
15-
coverage
169
.env
10+
coverage
11+
dist
1712

1813
# test files
19-
.gen/
14+
.gen
2015
test/generated
2116
generated/
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
.idea
3+
.tmp
4+
logs
5+
node_modules
6+
7+
.env
8+
coverage
9+
dist

0 commit comments

Comments
 (0)