-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstainless.yaml
More file actions
233 lines (215 loc) · 8.07 KB
/
stainless.yaml
File metadata and controls
233 lines (215 loc) · 8.07 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
# yaml-language-server: $schema=https://app.stainless.com/config.schema.json
# The main edition for the config, see the [docs] for more information.
#
# [docs]: https://www.stainless.com/docs/reference/editions
edition: 2025-10-10
organization:
name: hypeman
# Link to your API documentation.
docs: ""
# Contact email for bug reports, questions, and support requests.
contact: ""
# `targets` define the output targets and their customization options, such as
# whether to emit the Node SDK and what its package name should be.
targets:
go:
# The edition for this target, see the [docs] for more information.
#
# [docs]: https://www.stainless.com/docs/reference/editions
edition: go.2025-10-08
package_name: hypeman
production_repo: kernel/hypeman-go
options:
enable_v2: true
typescript:
edition: typescript.2025-10-10
package_name: "@onkernel/hypeman"
production_repo: kernel/hypeman-ts
publish:
npm:
auth_method: oidc
# `environments` are a map of the name of the environment (e.g. "sandbox",
# "production") to the corresponding url to use.
environments:
production: http://localhost:8080
# `resources` define the structure and organization for your API, such as how
# methods and models are grouped together and accessed. See the [configuration
# guide] for more information.
#
# [configuration guide]: https://www.stainless.com/docs/guides/configure#resources
resources:
$shared:
models:
snapshot_compression_config: "#/components/schemas/SnapshotCompressionConfig"
health:
# Configure the methods defined in this resource. Each key in the object is the
# name of the method and the value is either an endpoint (for example, `get /foo`)
# or an object with more detail.
#
# [reference]: https://www.stainless.com/docs/reference/config#method
methods:
check: get /health
images:
# Configure the models--named types--defined in the resource. Each key in the
# object is the name of the model and the value is either the name of a schema in
# `#/components/schemas` or an object with more detail.
#
# [reference]: https://www.stainless.com/docs/reference/config#model
models:
image: "#/components/schemas/Image"
methods:
list: get /images
create: post /images
get: get /images/{name}
delete: delete /images/{name}
instances:
models:
auto_standby_policy: "#/components/schemas/AutoStandbyPolicy"
auto_standby_status: "#/components/schemas/AutoStandbyStatus"
snapshot_policy: "#/components/schemas/SnapshotPolicy"
standby_instance_request: "#/components/schemas/StandbyInstanceRequest"
snapshot_schedule: "#/components/schemas/SnapshotSchedule"
snapshot_schedule_retention: "#/components/schemas/SnapshotScheduleRetention"
set_snapshot_schedule_request: "#/components/schemas/SetSnapshotScheduleRequest"
volume_mount: "#/components/schemas/VolumeMount"
port_mapping: "#/components/schemas/PortMapping"
instance: "#/components/schemas/Instance"
path_info: "#/components/schemas/PathInfo"
instance_stats: "#/components/schemas/InstanceStats"
wait_for_state_response: "#/components/schemas/WaitForStateResponse"
methods:
list: get /instances
create: post /instances
get: get /instances/{id}
update: patch /instances/{id}
delete: delete /instances/{id}
standby: post /instances/{id}/standby
restore: post /instances/{id}/restore
fork: post /instances/{id}/fork
start: post /instances/{id}/start
stop: post /instances/{id}/stop
logs: get /instances/{id}/logs
stat: get /instances/{id}/stat
stats: get /instances/{id}/stats
wait: get /instances/{id}/wait
# Subresources define resources that are nested within another for more powerful
# logical groupings, e.g. `cards.payments`.
subresources:
auto_standby:
methods:
status: get /instances/{id}/auto-standby/status
volumes:
methods:
attach: post /instances/{id}/volumes/{volumeId}
detach: delete /instances/{id}/volumes/{volumeId}
snapshots:
methods:
create: post /instances/{id}/snapshots
restore: post /instances/{id}/snapshots/{snapshotId}/restore
snapshot_schedule:
methods:
get: get /instances/{id}/snapshot-schedule
update: put /instances/{id}/snapshot-schedule
delete: delete /instances/{id}/snapshot-schedule
snapshots:
models:
snapshot: "#/components/schemas/Snapshot"
snapshot_kind: "#/components/schemas/SnapshotKind"
methods:
list: get /snapshots
get: get /snapshots/{snapshotId}
delete: delete /snapshots/{snapshotId}
fork: post /snapshots/{snapshotId}/fork
volumes:
models:
volume: "#/components/schemas/Volume"
volume_attachment: "#/components/schemas/VolumeAttachment"
methods:
list: get /volumes
create: post /volumes
create_from_archive: post /volumes/from-archive
get: get /volumes/{id}
delete: delete /volumes/{id}
devices:
models:
device: "#/components/schemas/Device"
available_device: "#/components/schemas/AvailableDevice"
device_type: "#/components/schemas/DeviceType"
methods:
list: get /devices
create: post /devices
retrieve: get /devices/{id}
delete: delete /devices/{id}
list_available: get /devices/available
ingresses:
models:
ingress: "#/components/schemas/Ingress"
ingress_rule: "#/components/schemas/IngressRule"
ingress_match: "#/components/schemas/IngressMatch"
ingress_target: "#/components/schemas/IngressTarget"
methods:
list: get /ingresses
create: post /ingresses
get: get /ingresses/{id}
delete: delete /ingresses/{id}
resources:
models:
resources: "#/components/schemas/Resources"
resource_status: "#/components/schemas/ResourceStatus"
resource_allocation: "#/components/schemas/ResourceAllocation"
disk_breakdown: "#/components/schemas/DiskBreakdown"
gpu_resource_status: "#/components/schemas/GPUResourceStatus"
gpu_profile: "#/components/schemas/GPUProfile"
passthrough_device: "#/components/schemas/PassthroughDevice"
memory_reclaim_request: "#/components/schemas/MemoryReclaimRequest"
memory_reclaim_action: "#/components/schemas/MemoryReclaimAction"
memory_reclaim_response: "#/components/schemas/MemoryReclaimResponse"
methods:
get: get /resources
reclaim_memory: post /resources/memory/reclaim
builds:
models:
build: "#/components/schemas/Build"
build_status: "#/components/schemas/BuildStatus"
build_policy: "#/components/schemas/BuildPolicy"
build_provenance: "#/components/schemas/BuildProvenance"
build_event: "#/components/schemas/BuildEvent"
methods:
list: get /builds
create: post /builds
get: get /builds/{id}
cancel: delete /builds/{id}
events: get /builds/{id}/events
settings:
# All generated integration tests that hit the prism mock http server are marked
# as skipped. Removing this setting or setting it to false enables tests, but
# doing so may result in test failures due to bugs in the test server.
#
# [prism mock http server]: https://stoplight.io/open-source/prism
disable_mock_tests: true
license: Apache-2.0
# `client_settings` define settings for the API client, such as extra constructor
# arguments (used for authentication), retry behavior, idempotency, etc.
client_settings:
opts:
api_key:
type: string
nullable: false
auth:
security_scheme: bearerAuth
read_env: HYPEMAN_API_KEY
security:
- bearerAuth: []
# `readme` is used to configure the code snippets that will be rendered in the
# README.md of various SDKs. In particular, you can change the `headline`
# snippet's endpoint and the arguments to call it with.
readme:
example_requests:
default:
type: request
endpoint: get /health
params: {}
headline:
type: request
endpoint: get /health
params: {}