Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 52af6bf

Browse files
committed
Updated application env config
1 parent 53fe46c commit 52af6bf

File tree

3 files changed

+72
-43
lines changed

3 files changed

+72
-43
lines changed

make87/internal/models/application_env_config.py

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: application_env_config.openapi.json
3-
# timestamp: 2025-05-27T16:44:35+00:00
3+
# timestamp: 2025-07-24T23:55:09+00:00
44

55
from __future__ import annotations
66
from typing import Any, Dict, List, Optional, Union
@@ -21,12 +21,17 @@ class ApplicationInfo(BaseModel):
2121
application_name: str
2222
deployed_application_id: str
2323
deployed_application_name: str
24-
git_branch: Optional[str] = None
25-
git_url: Optional[str] = None
2624
is_release_version: bool
2725
system_id: str
2826

2927

28+
class AudioPeripheral(BaseModel):
29+
card_index: conint(ge=0)
30+
device_index: conint(ge=0)
31+
device_nodes: List[str]
32+
name: str
33+
34+
3035
class ClientServiceConfig(BaseModel):
3136
model_config = ConfigDict(
3237
extra="allow",
@@ -52,6 +57,14 @@ class I2cDetectedDevice(BaseModel):
5257
description: Optional[str] = None
5358

5459

60+
class Peripheral9(BaseModel):
61+
Speaker: AudioPeripheral
62+
63+
64+
class Peripheral14(BaseModel):
65+
Microphone: AudioPeripheral
66+
67+
5568
class PeripheralType1(Enum):
5669
Camera = "Camera"
5770

@@ -175,15 +188,15 @@ class RealSenseCameraPeripheral(BaseModel):
175188
device_nodes: List[str]
176189
model: str
177190
name: str
178-
peripheral_type: PeripheralType
191+
peripheral_type: Optional[PeripheralType] = None
179192
serial_number: str
180193

181194

182195
class RenderingPeripheral(BaseModel):
183196
device_nodes: List[str]
184197
max_performance: Optional[conint(ge=0)] = None
185198
name: str
186-
peripheral_type: PeripheralType
199+
peripheral_type: Optional[PeripheralType] = None
187200
supported_apis: List[str]
188201

189202

@@ -246,7 +259,7 @@ class CameraPeripheral(BaseModel):
246259
camera_type: Optional[str] = None
247260
device_nodes: List[str]
248261
name: str
249-
peripheral_type: PeripheralType
262+
peripheral_type: Optional[PeripheralType] = None
250263
protocol: Optional[str] = None
251264
reference: str
252265
volumes: List[List]
@@ -255,14 +268,14 @@ class CameraPeripheral(BaseModel):
255268
class CodecPeripheral(BaseModel):
256269
device_nodes: List[str]
257270
name: str
258-
peripheral_type: PeripheralType
271+
peripheral_type: Optional[PeripheralType] = None
259272
supported_codecs: List[str]
260273

261274

262275
class GenericDevicePeripheral(BaseModel):
263276
device_node: str
264277
name: str
265-
peripheral_type: PeripheralType
278+
peripheral_type: Optional[PeripheralType] = None
266279

267280

268281
class GpioPeripheral(BaseModel):
@@ -271,15 +284,15 @@ class GpioPeripheral(BaseModel):
271284
label: str
272285
lines: List[GpioLineInfo]
273286
num_lines: conint(ge=0)
274-
peripheral_type: PeripheralType
287+
peripheral_type: Optional[PeripheralType] = None
275288

276289

277290
class GpuPeripheral(BaseModel):
278291
device_nodes: List[str]
279292
index: Optional[conint(ge=0)] = None
280293
model: str
281294
name: str
282-
peripheral_type: PeripheralType
295+
peripheral_type: Optional[PeripheralType] = None
283296
vram: Optional[conint(ge=0)] = None
284297

285298

@@ -288,7 +301,7 @@ class I2cPeripheral(BaseModel):
288301
detected_devices: List[I2cDetectedDevice]
289302
device_nodes: List[str]
290303
name: str
291-
peripheral_type: PeripheralType
304+
peripheral_type: Optional[PeripheralType] = None
292305

293306

294307
class InterfaceConfig(BaseModel):
@@ -304,14 +317,14 @@ class InterfaceConfig(BaseModel):
304317
class IspPeripheral(BaseModel):
305318
device_nodes: List[str]
306319
name: str
307-
peripheral_type: PeripheralType
320+
peripheral_type: Optional[PeripheralType] = None
308321
supported_features: List[str]
309322

310323

311324
class OtherPeripheral(BaseModel):
312325
device_nodes: List[str]
313326
name: str
314-
peripheral_type: PeripheralType
327+
peripheral_type: Optional[PeripheralType] = None
315328
reference: str
316329

317330

@@ -347,10 +360,6 @@ class Peripheral8(BaseModel):
347360
Rendering: RenderingPeripheral
348361

349362

350-
class Peripheral9(BaseModel):
351-
Speaker: OtherPeripheral
352-
353-
354363
class Peripheral10(BaseModel):
355364
Keyboard: OtherPeripheral
356365

@@ -383,6 +392,7 @@ class Peripheral(
383392
Peripheral11,
384393
Peripheral12,
385394
Peripheral13,
395+
Peripheral14,
386396
]
387397
]
388398
):
@@ -400,6 +410,7 @@ class Peripheral(
400410
Peripheral11,
401411
Peripheral12,
402412
Peripheral13,
413+
Peripheral14,
403414
]
404415

405416

make87/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from make87.internal.models.application_env_config import Peripheral11 as MousePeripheral
3434
from make87.internal.models.application_env_config import Peripheral12 as GenericDevicePeripheral
3535
from make87.internal.models.application_env_config import Peripheral13 as OtherPeripheral
36+
from make87.internal.models.application_env_config import Peripheral14 as MicrophonePeripheral
3637

3738

3839
__all__ = [
@@ -54,6 +55,7 @@
5455
"InterfaceConfig",
5556
"IspPeripheral",
5657
"KeyboardPeripheral",
58+
"MicrophonePeripheral",
5759
"MountedPeripheral",
5860
"MountedPeripherals",
5961
"MousePeripheral",

schemas/application_env_config.openapi.json

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"info": {
44
"title": "m87_core",
55
"description": "",
6-
"license": {
7-
"name": ""
8-
},
96
"version": "0.0.0"
107
},
118
"paths": {},
@@ -106,18 +103,6 @@
106103
"deployed_application_name": {
107104
"type": "string"
108105
},
109-
"git_branch": {
110-
"type": [
111-
"string",
112-
"null"
113-
]
114-
},
115-
"git_url": {
116-
"type": [
117-
"string",
118-
"null"
119-
]
120-
},
121106
"is_release_version": {
122107
"type": "boolean"
123108
},
@@ -126,6 +111,36 @@
126111
}
127112
}
128113
},
114+
"AudioPeripheral": {
115+
"type": "object",
116+
"required": [
117+
"card_index",
118+
"device_index",
119+
"name",
120+
"device_nodes"
121+
],
122+
"properties": {
123+
"card_index": {
124+
"type": "integer",
125+
"format": "int32",
126+
"minimum": 0
127+
},
128+
"device_index": {
129+
"type": "integer",
130+
"format": "int32",
131+
"minimum": 0
132+
},
133+
"device_nodes": {
134+
"type": "array",
135+
"items": {
136+
"type": "string"
137+
}
138+
},
139+
"name": {
140+
"type": "string"
141+
}
142+
}
143+
},
129144
"BoundClient": {
130145
"allOf": [
131146
{
@@ -169,7 +184,6 @@
169184
"type": "object",
170185
"required": [
171186
"reference",
172-
"peripheral_type",
173187
"name",
174188
"device_nodes",
175189
"volumes"
@@ -248,7 +262,6 @@
248262
"CodecPeripheral": {
249263
"type": "object",
250264
"required": [
251-
"peripheral_type",
252265
"name",
253266
"supported_codecs",
254267
"device_nodes"
@@ -277,7 +290,6 @@
277290
"GenericDevicePeripheral": {
278291
"type": "object",
279292
"required": [
280-
"peripheral_type",
281293
"name",
282294
"device_node"
283295
],
@@ -333,7 +345,6 @@
333345
"GpioPeripheral": {
334346
"type": "object",
335347
"required": [
336-
"peripheral_type",
337348
"chip_name",
338349
"label",
339350
"num_lines",
@@ -372,7 +383,6 @@
372383
"GpuPeripheral": {
373384
"type": "object",
374385
"required": [
375-
"peripheral_type",
376386
"name",
377387
"model",
378388
"device_nodes"
@@ -431,7 +441,6 @@
431441
"I2cPeripheral": {
432442
"type": "object",
433443
"required": [
434-
"peripheral_type",
435444
"bus_number",
436445
"name",
437446
"device_nodes",
@@ -537,7 +546,6 @@
537546
"IspPeripheral": {
538547
"type": "object",
539548
"required": [
540-
"peripheral_type",
541549
"name",
542550
"supported_features",
543551
"device_nodes"
@@ -597,7 +605,6 @@
597605
"type": "object",
598606
"required": [
599607
"reference",
600-
"peripheral_type",
601608
"name",
602609
"device_nodes"
603610
],
@@ -716,7 +723,7 @@
716723
],
717724
"properties": {
718725
"Speaker": {
719-
"$ref": "#/components/schemas/OtherPeripheral"
726+
"$ref": "#/components/schemas/AudioPeripheral"
720727
}
721728
}
722729
},
@@ -763,6 +770,17 @@
763770
"$ref": "#/components/schemas/OtherPeripheral"
764771
}
765772
}
773+
},
774+
{
775+
"type": "object",
776+
"required": [
777+
"Microphone"
778+
],
779+
"properties": {
780+
"Microphone": {
781+
"$ref": "#/components/schemas/AudioPeripheral"
782+
}
783+
}
766784
}
767785
]
768786
},
@@ -930,7 +948,6 @@
930948
"RealSenseCameraPeripheral": {
931949
"type": "object",
932950
"required": [
933-
"peripheral_type",
934951
"name",
935952
"device_nodes",
936953
"serial_number",
@@ -960,7 +977,6 @@
960977
"RenderingPeripheral": {
961978
"type": "object",
962979
"required": [
963-
"peripheral_type",
964980
"name",
965981
"supported_apis",
966982
"device_nodes"

0 commit comments

Comments
 (0)