Skip to content

Commit 346ee37

Browse files
authored
Merge pull request #20 from OpenRouterTeam/export-missing-sdk-types
fix: re-export missing SDK types
2 parents 8e0ce71 + c2b1364 commit 346ee37

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openrouter/agent": patch
3+
---
4+
5+
Re-export `EasyInputMessageContentInputImage`, `OutputInputImage`, and `OpenAIResponsesToolChoiceUnion` from `@openrouter/sdk/models` so consumers can use these types without a direct SDK dependency.

.claude/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"hooks": {
3+
"stop": [
4+
{
5+
"command": "pnpm run lint",
6+
"blocking": true
7+
},
8+
{
9+
"command": "pnpm run typecheck",
10+
"blocking": true
11+
}
12+
]
13+
}
14+
}

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type {
1010
ChatAssistantMessage,
1111
ChatMessages,
1212
EasyInputMessage,
13+
EasyInputMessageContentInputImage,
1314
EasyInputMessageContentUnion1,
1415
EasyInputMessageRoleUnion,
1516
// Error event
@@ -24,11 +25,13 @@ export type {
2425
InputsUnion,
2526
InputText,
2627
InputVideo,
28+
OpenAIResponsesToolChoiceUnion,
2729
OpenResponsesResult,
2830
// Output item types (StreamableOutputItem members)
2931
OutputFileSearchCallItem,
3032
OutputFunctionCallItem,
3133
OutputImageGenerationCallItem,
34+
OutputInputImage,
3235
OutputMessage,
3336
OutputReasoningItem,
3437
OutputWebSearchCallItem,

0 commit comments

Comments
 (0)