@dyno-cloud/schema 0.0.0-stage → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/budget.schema.json +239 -0
- package/json/catalogue.schema.json +2217 -0
- package/json/compare.schema.json +823 -0
- package/json/devices.json +399 -0
- package/json/doctor.schema.json +144 -0
- package/json/driver-message.schema.json +912 -0
- package/json/dyno-toml.schema.json +80 -0
- package/json/exposure-checkpoint.schema.json +97 -0
- package/json/games.schema.json +66 -0
- package/json/library-bucket.schema.json +22 -0
- package/json/library.schema.json +19 -0
- package/json/measures.json +407 -0
- package/json/probe-event.schema.json +465 -0
- package/json/result.schema.json +2140 -0
- package/json/run-request.schema.json +161 -0
- package/json/unclean-exit.schema.json +99 -0
- package/package.json +22 -4
- package/ts/AssetChange.ts +8 -0
- package/ts/AssetChangeKind.ts +6 -0
- package/ts/AssignedRole.ts +7 -0
- package/ts/AudioState.ts +6 -0
- package/ts/BrowserEngine.ts +6 -0
- package/ts/BudgetId.ts +6 -0
- package/ts/BudgetLimit.ts +8 -0
- package/ts/BudgetRef.ts +15 -0
- package/ts/BudgetVerdict.ts +22 -0
- package/ts/BuildLink.ts +6 -0
- package/ts/BuildManifest.ts +17 -0
- package/ts/CatalogueEntry.ts +7 -0
- package/ts/CatalogueResult.ts +22 -0
- package/ts/CheckResult.ts +16 -0
- package/ts/CompareDeterministic.ts +42 -0
- package/ts/CompareResult.ts +12 -0
- package/ts/CompareRun.ts +17 -0
- package/ts/ContextKind.ts +6 -0
- package/ts/Covers.ts +6 -0
- package/ts/Deterministic.ts +35 -0
- package/ts/DeviceClass.ts +6 -0
- package/ts/DeviceEntry.ts +25 -0
- package/ts/DeviceKind.ts +6 -0
- package/ts/DoctorCheck.ts +16 -0
- package/ts/DoctorCheckId.ts +6 -0
- package/ts/DoctorReport.ts +20 -0
- package/ts/DriverInfo.ts +10 -0
- package/ts/DriverMessage.ts +37 -0
- package/ts/Environment.ts +13 -0
- package/ts/EnvironmentBrowser.ts +23 -0
- package/ts/EnvironmentDevice.ts +27 -0
- package/ts/EnvironmentOs.ts +12 -0
- package/ts/Evidence.ts +11 -0
- package/ts/ExposureCheckpoint.ts +9 -0
- package/ts/ExposureSample.ts +15 -0
- package/ts/FileKind.ts +6 -0
- package/ts/Finding.ts +29 -0
- package/ts/Fix.ts +22 -0
- package/ts/FixAction.ts +7 -0
- package/ts/FrameState.ts +6 -0
- package/ts/GameHookKind.ts +6 -0
- package/ts/HostProfile.ts +47 -0
- package/ts/Inputs.ts +34 -0
- package/ts/Library.ts +6 -0
- package/ts/LibraryBucket.ts +6 -0
- package/ts/LiveFrame.ts +19 -0
- package/ts/Machine.ts +14 -0
- package/ts/ManifestFile.ts +12 -0
- package/ts/Measure.ts +50 -0
- package/ts/MeasureChange.ts +14 -0
- package/ts/MeasureEntry.ts +13 -0
- package/ts/MeasureId.ts +6 -0
- package/ts/MeasureItem.ts +15 -0
- package/ts/MeasureStatus.ts +6 -0
- package/ts/MeasureValue.ts +7 -0
- package/ts/MemorySample.ts +24 -0
- package/ts/MessageDirection.ts +6 -0
- package/ts/Method.ts +6 -0
- package/ts/OsName.ts +6 -0
- package/ts/ProbeEvent.ts +48 -0
- package/ts/ProcessMemory.ts +22 -0
- package/ts/ProcessRole.ts +6 -0
- package/ts/ProfileRef.ts +6 -0
- package/ts/Quantity.ts +7 -0
- package/ts/RelPath.ts +9 -0
- package/ts/Release.ts +12 -0
- package/ts/ResultRef.ts +15 -0
- package/ts/RuleId.ts +6 -0
- package/ts/RunCoverage.ts +8 -0
- package/ts/RunInfo.ts +56 -0
- package/ts/RunMark.ts +6 -0
- package/ts/RunRequest.ts +24 -0
- package/ts/Scenario.ts +6 -0
- package/ts/Scope.ts +12 -0
- package/ts/Severity.ts +6 -0
- package/ts/Shard.ts +17 -0
- package/ts/Source.ts +6 -0
- package/ts/SourceKind.ts +7 -0
- package/ts/Statistic.ts +7 -0
- package/ts/Status.ts +9 -0
- package/ts/Target.ts +15 -0
- package/ts/Tier.ts +9 -0
- package/ts/TierReport.ts +26 -0
- package/ts/Timeline.ts +21 -0
- package/ts/TimelineMark.ts +11 -0
- package/ts/TimelineMethod.ts +6 -0
- package/ts/TimelineProcess.ts +22 -0
- package/ts/ToolBuild.ts +14 -0
- package/ts/Uncertainty.ts +19 -0
- package/ts/UncertaintyKind.ts +6 -0
- package/ts/UncleanExit.ts +16 -0
- package/ts/Unit.ts +6 -0
- package/ts/Verdict.ts +6 -0
- package/ts/VerdictChange.ts +12 -0
- package/ts/Versions.ts +22 -0
- package/ts/Viewport.ts +6 -0
- package/ts/index.ts +97 -0
- package/README.md +0 -3
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Budget",
|
|
4
|
+
"description": "A budget file.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"audio": {
|
|
8
|
+
"$ref": "#/$defs/AudioBudget",
|
|
9
|
+
"default": {
|
|
10
|
+
"decoded_mb": null,
|
|
11
|
+
"silence_saving_mb": null,
|
|
12
|
+
"silence_share_bp": null,
|
|
13
|
+
"stereo_saving_mb": null
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": {
|
|
17
|
+
"$ref": "#/$defs/FilesBudget",
|
|
18
|
+
"default": {
|
|
19
|
+
"duplicate": null
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"name": {
|
|
23
|
+
"description": "A name to recognise the file by. The result records it.",
|
|
24
|
+
"type": [
|
|
25
|
+
"string",
|
|
26
|
+
"null"
|
|
27
|
+
],
|
|
28
|
+
"default": null
|
|
29
|
+
},
|
|
30
|
+
"render": {
|
|
31
|
+
"$ref": "#/$defs/RenderBudget",
|
|
32
|
+
"default": {
|
|
33
|
+
"antialias": null,
|
|
34
|
+
"resolution_uncapped": null
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"schema_version": {
|
|
38
|
+
"description": "The file format version. Must equal the schema version this dyno reads.",
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"format": "uint32",
|
|
41
|
+
"minimum": 0
|
|
42
|
+
},
|
|
43
|
+
"textures": {
|
|
44
|
+
"$ref": "#/$defs/TextureBudget",
|
|
45
|
+
"default": {
|
|
46
|
+
"decoded_mb": null
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": [
|
|
52
|
+
"schema_version"
|
|
53
|
+
],
|
|
54
|
+
"$defs": {
|
|
55
|
+
"AudioBudget": {
|
|
56
|
+
"description": "Audio budgets.",
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"decoded_mb": {
|
|
60
|
+
"description": "Decoded audio at 48 kHz, in MB.",
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"$ref": "#/$defs/SizeLimit"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"default": null
|
|
70
|
+
},
|
|
71
|
+
"silence_saving_mb": {
|
|
72
|
+
"description": "The `audio.silence_share` rule's threshold on the decoded MB at 48 kHz in a sprite map's\nuncovered time.",
|
|
73
|
+
"anyOf": [
|
|
74
|
+
{
|
|
75
|
+
"$ref": "#/$defs/SizeLimit"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "null"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"default": null
|
|
82
|
+
},
|
|
83
|
+
"silence_share_bp": {
|
|
84
|
+
"description": "The `audio.silence_share` rule's threshold on a sprite map's share of time that no sprite\ncovers. A map is over it only when it is also over `silence_saving_mb`.",
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"$ref": "#/$defs/ShareLimit"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "null"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"default": null
|
|
94
|
+
},
|
|
95
|
+
"stereo_saving_mb": {
|
|
96
|
+
"description": "The `audio.stereo` rule's threshold: decoded MB at 48 kHz that a mono export of every\nstereo sound would save.",
|
|
97
|
+
"anyOf": [
|
|
98
|
+
{
|
|
99
|
+
"$ref": "#/$defs/SizeLimit"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "null"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"default": null
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"additionalProperties": false
|
|
109
|
+
},
|
|
110
|
+
"FilesBudget": {
|
|
111
|
+
"description": "Rule thresholds for the build's files.",
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"duplicate": {
|
|
115
|
+
"description": "The `files.duplicate` rule's outcome when two or more files have the same SHA-256.",
|
|
116
|
+
"anyOf": [
|
|
117
|
+
{
|
|
118
|
+
"$ref": "#/$defs/Severity"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "null"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"default": null
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"additionalProperties": false
|
|
128
|
+
},
|
|
129
|
+
"RenderBudget": {
|
|
130
|
+
"description": "Render config budgets.",
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"antialias": {
|
|
134
|
+
"description": "The verdict when the bundle turns antialias on.",
|
|
135
|
+
"anyOf": [
|
|
136
|
+
{
|
|
137
|
+
"$ref": "#/$defs/Severity"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "null"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"default": null
|
|
144
|
+
},
|
|
145
|
+
"resolution_uncapped": {
|
|
146
|
+
"description": "The verdict when the bundle leaves the resolution uncapped.",
|
|
147
|
+
"anyOf": [
|
|
148
|
+
{
|
|
149
|
+
"$ref": "#/$defs/Severity"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "null"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"default": null
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"additionalProperties": false
|
|
159
|
+
},
|
|
160
|
+
"Severity": {
|
|
161
|
+
"description": "The verdict a flag gives when it is on.",
|
|
162
|
+
"type": "string",
|
|
163
|
+
"enum": [
|
|
164
|
+
"allow",
|
|
165
|
+
"warn",
|
|
166
|
+
"fail"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"ShareLimit": {
|
|
170
|
+
"description": "A share limit in basis points: 10,000 is 100%. A value above `warn` warns, and a value above\n`fail` fails.",
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"fail": {
|
|
174
|
+
"type": [
|
|
175
|
+
"integer",
|
|
176
|
+
"null"
|
|
177
|
+
],
|
|
178
|
+
"format": "uint32",
|
|
179
|
+
"default": null,
|
|
180
|
+
"minimum": 0
|
|
181
|
+
},
|
|
182
|
+
"warn": {
|
|
183
|
+
"type": [
|
|
184
|
+
"integer",
|
|
185
|
+
"null"
|
|
186
|
+
],
|
|
187
|
+
"format": "uint32",
|
|
188
|
+
"default": null,
|
|
189
|
+
"minimum": 0
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"additionalProperties": false
|
|
193
|
+
},
|
|
194
|
+
"SizeLimit": {
|
|
195
|
+
"description": "A size limit in whole MB. A value above `warn` warns, and a value above `fail` fails.",
|
|
196
|
+
"type": "object",
|
|
197
|
+
"properties": {
|
|
198
|
+
"fail": {
|
|
199
|
+
"type": [
|
|
200
|
+
"integer",
|
|
201
|
+
"null"
|
|
202
|
+
],
|
|
203
|
+
"format": "uint32",
|
|
204
|
+
"default": null,
|
|
205
|
+
"minimum": 0
|
|
206
|
+
},
|
|
207
|
+
"warn": {
|
|
208
|
+
"type": [
|
|
209
|
+
"integer",
|
|
210
|
+
"null"
|
|
211
|
+
],
|
|
212
|
+
"format": "uint32",
|
|
213
|
+
"default": null,
|
|
214
|
+
"minimum": 0
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"additionalProperties": false
|
|
218
|
+
},
|
|
219
|
+
"TextureBudget": {
|
|
220
|
+
"description": "Texture budgets.",
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"decoded_mb": {
|
|
224
|
+
"description": "Decoded textures, one copy, in MB.",
|
|
225
|
+
"anyOf": [
|
|
226
|
+
{
|
|
227
|
+
"$ref": "#/$defs/SizeLimit"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "null"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"default": null
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"additionalProperties": false
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|