-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathgen.yaml
More file actions
112 lines (112 loc) · 2.89 KB
/
gen.yaml
File metadata and controls
112 lines (112 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
configVersion: 2.0.0
generation:
devContainers:
enabled: true
schemaPath: .speakeasy/out.openapi.yaml
sdkClassName: OpenRouter
maintainOpenAPIOrder: true
usageSnippets:
optionalPropertyRendering: never
sdkInitStyle: constructor
useClassNamesForArrayFields: true
fixes:
nameResolutionDec2023: true
nameResolutionFeb2025: true
parameterOrderingFeb2024: true
requestResponseComponentNamesFeb2024: true
securityFeb2025: true
sharedErrorComponentsApr2025: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
hoistGlobalSecurity: true
inferSSEOverload: true
sdkHooksConfigAccess: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
persistentEdits:
enabled: "true"
tests:
generateTests: false
generateNewTests: true
skipResponseBodyAssertions: false
preApplyUnionDiscriminators: true
typescript:
version: 0.7.2
acceptHeaderEnum: false
additionalDependencies:
dependencies:
zod: ^3.25.0 || ^4.0.0
devDependencies:
'@types/node': ^22.13.12
dotenv: ^16.4.7
vitest: ^3.2.4
peerDependencies: {}
additionalPackageJSON:
description: The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.
keywords:
- openrouter
- sdk
- typescript
- api
- client
- library
- rest
- http
- agent
- ai
- openai
- models
- llm
license: Apache-2.0
additionalScripts: {}
alwaysIncludeInboundAndOutbound: false
author: OpenRouter
baseErrorName: OpenRouterError
clientServerStatusCodesAsErrors: true
compileCommand:
- pnpm
- install
constFieldsAlwaysOptional: false
defaultErrorName: OpenRouterDefaultError
enableCustomCodeRegions: true
enableMCPServer: false
enableReactQuery: false
enumFormat: union
envVarPrefix: OPENROUTER
exportZodModelNamespace: false
flattenGlobalSecurity: true
flatteningOrder: parameters-first
formStringArrayEncodeMode: encoded-string
forwardCompatibleEnumsByDefault: false
forwardCompatibleUnionsByDefault: "false"
generateExamples: true
imports:
option: openapi
paths:
callbacks: models/callbacks
errors: models/errors
operations: models/operations
shared: models
webhooks: models/webhooks
inferSSEOverload: true
inferUnionDiscriminators: true
inputModelSuffix: input
jsonpath: rfc9535
laxMode: strict
maxMethodParams: 0
methodArguments: infer-optional-args
modelPropertyCasing: camel
moduleFormat: esm
multipartArrayFormat: legacy
outputModelSuffix: output
packageName: '@openrouter/sdk'
preApplyUnionDiscriminators: true
responseFormat: flat
sseFlatResponse: true
templateVersion: v2
unionStrategy: left-to-right
usageSDKInitImports: []
useIndexModules: true
zodVersion: v4