@rentnerproxy/app-contracts 0.0.0-stage → 1.1.0
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/LICENSE +21 -0
- package/README.md +39 -2
- package/contracts.schema.json +4007 -0
- package/dist/Types/contract.types.d.ts +15 -0
- package/dist/Types/contract.types.js +1 -0
- package/dist/catalog.d.ts +352 -0
- package/dist/catalog.js +54 -0
- package/dist/client.d.ts +31 -0
- package/dist/client.js +66 -0
- package/dist/http-operations.d.ts +333 -0
- package/dist/http-operations.generated.d.ts +299 -0
- package/dist/http-operations.generated.js +300 -0
- package/dist/http-operations.js +17 -0
- package/dist/http.d.ts +127 -0
- package/dist/http.js +142 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -0
- package/dist/manifest.d.ts +90 -0
- package/dist/manifest.js +106 -0
- package/dist/platform-api.d.ts +282 -0
- package/dist/platform-api.js +287 -0
- package/dist/primitives.d.ts +33 -0
- package/dist/primitives.js +87 -0
- package/dist/provider-api.d.ts +221 -0
- package/dist/provider-api.js +227 -0
- package/dist/public-schemas.d.ts +4 -0
- package/dist/public-schemas.js +6 -0
- package/dist/publication.d.ts +410 -0
- package/dist/publication.js +50 -0
- package/dist/runtime.d.ts +75 -0
- package/dist/runtime.js +88 -0
- package/dist/schemas.d.ts +926 -0
- package/dist/schemas.js +114 -0
- package/dist/ui-bridge.d.ts +81 -0
- package/dist/ui-bridge.js +92 -0
- package/dist/validation.d.ts +784 -0
- package/dist/validation.js +245 -0
- package/dist/wire.d.ts +31 -0
- package/dist/wire.js +54 -0
- package/fixtures.json +1094 -0
- package/http-fixtures.json +829 -0
- package/openapi.json +2557 -0
- package/package.json +60 -5
- package/protocol-fixtures.json +1804 -0
- package/upstream-probe-fixtures.json +852 -0
|
@@ -0,0 +1,4007 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "urn:rentnerproxy:app-contracts:1.1.0",
|
|
4
|
+
"title": "RentnerProxy App Contracts",
|
|
5
|
+
"description": "Enable JSON Schema format assertions when validating these documents. The SDK validates formats including IP addresses and timestamps.",
|
|
6
|
+
"$ref": "#/$defs/Catalog",
|
|
7
|
+
"$defs": {
|
|
8
|
+
"JsonValue": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "number"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "null"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"$ref": "#/$defs/JsonValue"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "object",
|
|
30
|
+
"propertyNames": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"additionalProperties": {
|
|
34
|
+
"$ref": "#/$defs/JsonValue"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"SourceIdentity": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"repositoryId": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"pattern": "^[1-9][0-9]{0,19}$"
|
|
45
|
+
},
|
|
46
|
+
"commit": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"repositoryId",
|
|
53
|
+
"commit"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"description": "Immutable GitHub repository ID and exact source commit."
|
|
57
|
+
},
|
|
58
|
+
"AppManifest": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"formatVersion": {
|
|
62
|
+
"type": "number",
|
|
63
|
+
"const": 1,
|
|
64
|
+
"description": "Wire version. Readers reject unknown versions and unknown fields. Changes to a closed shape, allowed value, or meaning require a new wire version after v1 stabilizes."
|
|
65
|
+
},
|
|
66
|
+
"id": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"pattern": "^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?\\.[a-z](?:[a-z0-9-]{0,62}[a-z0-9])?$"
|
|
69
|
+
},
|
|
70
|
+
"version": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"maxLength": 64,
|
|
73
|
+
"pattern": "^(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})(?:-(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*)?$"
|
|
74
|
+
},
|
|
75
|
+
"target": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"enum": [
|
|
78
|
+
"linux-amd64",
|
|
79
|
+
"linux-arm64"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"source": {
|
|
83
|
+
"$ref": "#/$defs/SourceIdentity"
|
|
84
|
+
},
|
|
85
|
+
"display": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"name": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}]{1,80}$"
|
|
91
|
+
},
|
|
92
|
+
"summary": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}]{1,400}$"
|
|
95
|
+
},
|
|
96
|
+
"license": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9.+-]{0,63}$"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": [
|
|
102
|
+
"name",
|
|
103
|
+
"summary",
|
|
104
|
+
"license"
|
|
105
|
+
],
|
|
106
|
+
"additionalProperties": false
|
|
107
|
+
},
|
|
108
|
+
"requires": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"runtimeProfile": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"const": "rentnerproxy-linux-v1",
|
|
114
|
+
"description": "Native Linux appliance profile exercised on AMD64 and ARM64. Runtime compatibility is checked against the supported appliance profile at installation."
|
|
115
|
+
},
|
|
116
|
+
"platformApi": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"pattern": "^>=1\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5}) <(?:1\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})|2\\.0\\.0)$",
|
|
119
|
+
"description": "Inclusive minimum and exclusive maximum within protocol major 1. The minimum must be less than the maximum."
|
|
120
|
+
},
|
|
121
|
+
"appProtocol": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"pattern": "^>=1\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5}) <(?:1\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})|2\\.0\\.0)$",
|
|
124
|
+
"description": "Inclusive minimum and exclusive maximum within protocol major 1. The minimum must be less than the maximum."
|
|
125
|
+
},
|
|
126
|
+
"uiBridge": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"pattern": "^>=1\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5}) <(?:1\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})|2\\.0\\.0)$",
|
|
129
|
+
"description": "Inclusive minimum and exclusive maximum within protocol major 1. The minimum must be less than the maximum."
|
|
130
|
+
},
|
|
131
|
+
"engineCapabilities": {
|
|
132
|
+
"maxItems": 2,
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"enum": [
|
|
137
|
+
"caddy.load-balancing.v1",
|
|
138
|
+
"caddy.crowdsec.v1"
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"runtimeProfile",
|
|
145
|
+
"platformApi",
|
|
146
|
+
"appProtocol",
|
|
147
|
+
"engineCapabilities"
|
|
148
|
+
],
|
|
149
|
+
"additionalProperties": false
|
|
150
|
+
},
|
|
151
|
+
"entrypoint": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"const": "bin/app"
|
|
154
|
+
},
|
|
155
|
+
"api": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"const": "api/openapi.json"
|
|
158
|
+
},
|
|
159
|
+
"configSchema": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"maxLength": 240,
|
|
162
|
+
"pattern": "^schemas\\/(?:[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*\\/)*[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*\\.(?:json)$"
|
|
163
|
+
},
|
|
164
|
+
"ui": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"entrypoint": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"maxLength": 240,
|
|
170
|
+
"pattern": "^ui\\/(?:[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*\\/)*[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*\\.(?:html)$"
|
|
171
|
+
},
|
|
172
|
+
"slots": {
|
|
173
|
+
"maxItems": 4,
|
|
174
|
+
"type": "array",
|
|
175
|
+
"items": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"enum": [
|
|
178
|
+
"navigation",
|
|
179
|
+
"proxyHostTab",
|
|
180
|
+
"dashboardWidget",
|
|
181
|
+
"search"
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"entrypoint",
|
|
188
|
+
"slots"
|
|
189
|
+
],
|
|
190
|
+
"additionalProperties": false
|
|
191
|
+
},
|
|
192
|
+
"providers": {
|
|
193
|
+
"maxItems": 6,
|
|
194
|
+
"type": "array",
|
|
195
|
+
"items": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"enum": [
|
|
198
|
+
"monitoring",
|
|
199
|
+
"docker-discovery",
|
|
200
|
+
"load-balancer",
|
|
201
|
+
"dns",
|
|
202
|
+
"oidc",
|
|
203
|
+
"crowdsec"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"capabilities": {
|
|
208
|
+
"maxItems": 12,
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"anyOf": [
|
|
212
|
+
{
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"id": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"const": "proxy.hosts.read.v1"
|
|
218
|
+
},
|
|
219
|
+
"scope": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"const": "proxyHosts"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"id",
|
|
226
|
+
"scope"
|
|
227
|
+
],
|
|
228
|
+
"additionalProperties": false
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"type": "object",
|
|
232
|
+
"properties": {
|
|
233
|
+
"id": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"const": "proxy.hosts.manage-owned.v1"
|
|
236
|
+
},
|
|
237
|
+
"scope": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"const": "ownedProxyHosts"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"required": [
|
|
243
|
+
"id",
|
|
244
|
+
"scope"
|
|
245
|
+
],
|
|
246
|
+
"additionalProperties": false
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "object",
|
|
250
|
+
"properties": {
|
|
251
|
+
"id": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"const": "diagnostics.upstream.probe.v1"
|
|
254
|
+
},
|
|
255
|
+
"scope": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"const": "proxyHosts"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"required": [
|
|
261
|
+
"id",
|
|
262
|
+
"scope"
|
|
263
|
+
],
|
|
264
|
+
"additionalProperties": false
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "object",
|
|
268
|
+
"properties": {
|
|
269
|
+
"id": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"const": "diagnostics.upstream.probe.v2"
|
|
272
|
+
},
|
|
273
|
+
"scope": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"const": "proxyHosts"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"required": [
|
|
279
|
+
"id",
|
|
280
|
+
"scope"
|
|
281
|
+
],
|
|
282
|
+
"additionalProperties": false
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"type": "object",
|
|
286
|
+
"properties": {
|
|
287
|
+
"id": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"const": "notifications.publish.v1"
|
|
290
|
+
},
|
|
291
|
+
"scope": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"const": "installation"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"required": [
|
|
297
|
+
"id",
|
|
298
|
+
"scope"
|
|
299
|
+
],
|
|
300
|
+
"additionalProperties": false
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "object",
|
|
304
|
+
"properties": {
|
|
305
|
+
"id": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"const": "notifications.incidents.manage.v1"
|
|
308
|
+
},
|
|
309
|
+
"scope": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"const": "installation"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"required": [
|
|
315
|
+
"id",
|
|
316
|
+
"scope"
|
|
317
|
+
],
|
|
318
|
+
"additionalProperties": false
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"type": "object",
|
|
322
|
+
"properties": {
|
|
323
|
+
"id": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"const": "docker.inventory.observe.v1"
|
|
326
|
+
},
|
|
327
|
+
"scope": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"const": "dockerConnections"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": [
|
|
333
|
+
"id",
|
|
334
|
+
"scope"
|
|
335
|
+
],
|
|
336
|
+
"additionalProperties": false
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"type": "object",
|
|
340
|
+
"properties": {
|
|
341
|
+
"id": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"const": "dns.challenge.manage.v1"
|
|
344
|
+
},
|
|
345
|
+
"scope": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"const": "dnsZones"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"required": [
|
|
351
|
+
"id",
|
|
352
|
+
"scope"
|
|
353
|
+
],
|
|
354
|
+
"additionalProperties": false
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"type": "object",
|
|
358
|
+
"properties": {
|
|
359
|
+
"id": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"const": "engine.contributions.submit.v1"
|
|
362
|
+
},
|
|
363
|
+
"scope": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"const": "ownedEngineResources"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"required": [
|
|
369
|
+
"id",
|
|
370
|
+
"scope"
|
|
371
|
+
],
|
|
372
|
+
"additionalProperties": false
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"type": "object",
|
|
376
|
+
"properties": {
|
|
377
|
+
"id": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"const": "identity.provider.register.v1"
|
|
380
|
+
},
|
|
381
|
+
"scope": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"const": "identityProviders"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"required": [
|
|
387
|
+
"id",
|
|
388
|
+
"scope"
|
|
389
|
+
],
|
|
390
|
+
"additionalProperties": false
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"type": "object",
|
|
394
|
+
"properties": {
|
|
395
|
+
"id": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"const": "access.logs.read.v1"
|
|
398
|
+
},
|
|
399
|
+
"scope": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"const": "proxyHosts"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"required": [
|
|
405
|
+
"id",
|
|
406
|
+
"scope"
|
|
407
|
+
],
|
|
408
|
+
"additionalProperties": false
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"type": "object",
|
|
412
|
+
"properties": {
|
|
413
|
+
"id": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"const": "security.enforcement.contribute.v1"
|
|
416
|
+
},
|
|
417
|
+
"scope": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"const": "ownedEngineResources"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"required": [
|
|
423
|
+
"id",
|
|
424
|
+
"scope"
|
|
425
|
+
],
|
|
426
|
+
"additionalProperties": false
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"description": "Requested resource scope type. Grants and resource IDs are assigned by the local administrator."
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"permissions": {
|
|
433
|
+
"maxItems": 64,
|
|
434
|
+
"type": "array",
|
|
435
|
+
"items": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"pattern": "^[a-z][a-z0-9-]{0,31}$"
|
|
438
|
+
},
|
|
439
|
+
"description": "App-owned permission keys. The platform qualifies keys with the app ID."
|
|
440
|
+
},
|
|
441
|
+
"data": {
|
|
442
|
+
"type": "object",
|
|
443
|
+
"properties": {
|
|
444
|
+
"targetVersion": {
|
|
445
|
+
"type": "integer",
|
|
446
|
+
"minimum": 1,
|
|
447
|
+
"maximum": 2147483647
|
|
448
|
+
},
|
|
449
|
+
"readVersions": {
|
|
450
|
+
"minItems": 1,
|
|
451
|
+
"maxItems": 64,
|
|
452
|
+
"type": "array",
|
|
453
|
+
"items": {
|
|
454
|
+
"type": "integer",
|
|
455
|
+
"minimum": 1,
|
|
456
|
+
"maximum": 2147483647
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"writeVersions": {
|
|
460
|
+
"minItems": 1,
|
|
461
|
+
"maxItems": 64,
|
|
462
|
+
"type": "array",
|
|
463
|
+
"items": {
|
|
464
|
+
"type": "integer",
|
|
465
|
+
"minimum": 1,
|
|
466
|
+
"maximum": 2147483647
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"migrations": {
|
|
470
|
+
"maxItems": 64,
|
|
471
|
+
"type": "array",
|
|
472
|
+
"items": {
|
|
473
|
+
"type": "object",
|
|
474
|
+
"properties": {
|
|
475
|
+
"fromVersion": {
|
|
476
|
+
"type": "integer",
|
|
477
|
+
"minimum": 0,
|
|
478
|
+
"maximum": 2147483646
|
|
479
|
+
},
|
|
480
|
+
"toVersion": {
|
|
481
|
+
"type": "integer",
|
|
482
|
+
"minimum": 1,
|
|
483
|
+
"maximum": 2147483647
|
|
484
|
+
},
|
|
485
|
+
"path": {
|
|
486
|
+
"type": "string",
|
|
487
|
+
"maxLength": 240,
|
|
488
|
+
"pattern": "^migrations\\/(?:[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*\\/)*[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*\\.(?:sql|json)$"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"required": [
|
|
492
|
+
"fromVersion",
|
|
493
|
+
"toVersion",
|
|
494
|
+
"path"
|
|
495
|
+
],
|
|
496
|
+
"additionalProperties": false
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"required": [
|
|
501
|
+
"targetVersion",
|
|
502
|
+
"readVersions",
|
|
503
|
+
"writeVersions",
|
|
504
|
+
"migrations"
|
|
505
|
+
],
|
|
506
|
+
"additionalProperties": false,
|
|
507
|
+
"description": "Write versions must be readable and include the target version. Order migrations by source version. Every declared forward migration must lead to the target, with one outgoing step per source version. Zero denotes fresh state."
|
|
508
|
+
},
|
|
509
|
+
"incidentCategories": {
|
|
510
|
+
"description": "Incident categories the app opens with notifications.incidents.manage.v1. Users subscribe to each category. The SDK checks unique IDs, and that the categories and the capability are declared together.",
|
|
511
|
+
"minItems": 1,
|
|
512
|
+
"maxItems": 16,
|
|
513
|
+
"type": "array",
|
|
514
|
+
"items": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"id": {
|
|
518
|
+
"description": "App-local category ID. Keep it stable across releases: subscriptions refer to it together with the app ID.",
|
|
519
|
+
"$ref": "#/$defs/RecordId"
|
|
520
|
+
},
|
|
521
|
+
"name": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}\\p{Cf}\\p{Zl}\\p{Zp}]{1,80}$",
|
|
524
|
+
"description": "Name users see when they subscribe and in notifications: one line of plain text without format characters."
|
|
525
|
+
},
|
|
526
|
+
"resource": {
|
|
527
|
+
"type": "string",
|
|
528
|
+
"enum": [
|
|
529
|
+
"proxyHost",
|
|
530
|
+
"none"
|
|
531
|
+
],
|
|
532
|
+
"description": "What each incident of the category refers to. A proxyHost incident names a host the app may read or probe, and only users who may view that host receive it."
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"required": [
|
|
536
|
+
"id",
|
|
537
|
+
"name",
|
|
538
|
+
"resource"
|
|
539
|
+
],
|
|
540
|
+
"additionalProperties": false
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"resources": {
|
|
544
|
+
"type": "object",
|
|
545
|
+
"properties": {
|
|
546
|
+
"startupTimeoutMs": {
|
|
547
|
+
"type": "integer",
|
|
548
|
+
"minimum": 100,
|
|
549
|
+
"maximum": 120000
|
|
550
|
+
},
|
|
551
|
+
"drainTimeoutMs": {
|
|
552
|
+
"type": "integer",
|
|
553
|
+
"minimum": 100,
|
|
554
|
+
"maximum": 120000
|
|
555
|
+
},
|
|
556
|
+
"memoryMiB": {
|
|
557
|
+
"type": "integer",
|
|
558
|
+
"minimum": 16,
|
|
559
|
+
"maximum": 16384
|
|
560
|
+
},
|
|
561
|
+
"processLimit": {
|
|
562
|
+
"type": "integer",
|
|
563
|
+
"minimum": 1,
|
|
564
|
+
"maximum": 64
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
"required": [
|
|
568
|
+
"startupTimeoutMs",
|
|
569
|
+
"drainTimeoutMs",
|
|
570
|
+
"memoryMiB",
|
|
571
|
+
"processLimit"
|
|
572
|
+
],
|
|
573
|
+
"additionalProperties": false
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"required": [
|
|
577
|
+
"formatVersion",
|
|
578
|
+
"id",
|
|
579
|
+
"version",
|
|
580
|
+
"target",
|
|
581
|
+
"source",
|
|
582
|
+
"display",
|
|
583
|
+
"requires",
|
|
584
|
+
"entrypoint",
|
|
585
|
+
"api",
|
|
586
|
+
"providers",
|
|
587
|
+
"capabilities",
|
|
588
|
+
"permissions",
|
|
589
|
+
"resources"
|
|
590
|
+
],
|
|
591
|
+
"additionalProperties": false,
|
|
592
|
+
"description": "app.json inside a self-contained tar.zst. Omitted optional blocks are absent, never null. Runtime compatibility, safe extraction, and signed approval are independent checks."
|
|
593
|
+
},
|
|
594
|
+
"PackageArtifact": {
|
|
595
|
+
"type": "object",
|
|
596
|
+
"properties": {
|
|
597
|
+
"manifest": {
|
|
598
|
+
"$ref": "#/$defs/AppManifest"
|
|
599
|
+
},
|
|
600
|
+
"archive": {
|
|
601
|
+
"type": "object",
|
|
602
|
+
"properties": {
|
|
603
|
+
"sha256": {
|
|
604
|
+
"type": "string",
|
|
605
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
606
|
+
},
|
|
607
|
+
"sizeBytes": {
|
|
608
|
+
"type": "integer",
|
|
609
|
+
"minimum": 1,
|
|
610
|
+
"maximum": 2147483647
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"required": [
|
|
614
|
+
"sha256",
|
|
615
|
+
"sizeBytes"
|
|
616
|
+
],
|
|
617
|
+
"additionalProperties": false
|
|
618
|
+
},
|
|
619
|
+
"manifestSha256": {
|
|
620
|
+
"type": "string",
|
|
621
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
622
|
+
"description": "SHA-256 of the exact app.json bytes inside the archive."
|
|
623
|
+
},
|
|
624
|
+
"sbom": {
|
|
625
|
+
"type": "object",
|
|
626
|
+
"properties": {
|
|
627
|
+
"sha256": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
630
|
+
},
|
|
631
|
+
"sizeBytes": {
|
|
632
|
+
"type": "integer",
|
|
633
|
+
"minimum": 1,
|
|
634
|
+
"maximum": 16777216
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"required": [
|
|
638
|
+
"sha256",
|
|
639
|
+
"sizeBytes"
|
|
640
|
+
],
|
|
641
|
+
"additionalProperties": false,
|
|
642
|
+
"description": "Release asset <archive filename>.sbom.json."
|
|
643
|
+
},
|
|
644
|
+
"provenance": {
|
|
645
|
+
"type": "object",
|
|
646
|
+
"properties": {
|
|
647
|
+
"sha256": {
|
|
648
|
+
"type": "string",
|
|
649
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
650
|
+
},
|
|
651
|
+
"sizeBytes": {
|
|
652
|
+
"type": "integer",
|
|
653
|
+
"minimum": 1,
|
|
654
|
+
"maximum": 16777216
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"required": [
|
|
658
|
+
"sha256",
|
|
659
|
+
"sizeBytes"
|
|
660
|
+
],
|
|
661
|
+
"additionalProperties": false,
|
|
662
|
+
"description": "Release asset <archive filename>.provenance.json."
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"required": [
|
|
666
|
+
"manifest",
|
|
667
|
+
"archive",
|
|
668
|
+
"manifestSha256",
|
|
669
|
+
"sbom",
|
|
670
|
+
"provenance"
|
|
671
|
+
],
|
|
672
|
+
"additionalProperties": false
|
|
673
|
+
},
|
|
674
|
+
"CatalogRelease": {
|
|
675
|
+
"type": "object",
|
|
676
|
+
"properties": {
|
|
677
|
+
"appId": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"pattern": "^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?\\.[a-z](?:[a-z0-9-]{0,62}[a-z0-9])?$"
|
|
680
|
+
},
|
|
681
|
+
"version": {
|
|
682
|
+
"type": "string",
|
|
683
|
+
"maxLength": 64,
|
|
684
|
+
"pattern": "^(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})(?:-(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*)?$"
|
|
685
|
+
},
|
|
686
|
+
"source": {
|
|
687
|
+
"$ref": "#/$defs/SourceIdentity"
|
|
688
|
+
},
|
|
689
|
+
"publisher": {
|
|
690
|
+
"type": "object",
|
|
691
|
+
"properties": {
|
|
692
|
+
"namespace": {
|
|
693
|
+
"type": "string",
|
|
694
|
+
"pattern": "^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?$"
|
|
695
|
+
},
|
|
696
|
+
"name": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}]{1,80}$"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"required": [
|
|
702
|
+
"namespace",
|
|
703
|
+
"name"
|
|
704
|
+
],
|
|
705
|
+
"additionalProperties": false,
|
|
706
|
+
"description": "Signed public display identity. The namespace must match the app ID. Only the trusted RentnerProxy publisher owns rentnerproxy."
|
|
707
|
+
},
|
|
708
|
+
"packages": {
|
|
709
|
+
"minItems": 1,
|
|
710
|
+
"maxItems": 2,
|
|
711
|
+
"type": "array",
|
|
712
|
+
"items": {
|
|
713
|
+
"$ref": "#/$defs/PackageArtifact"
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
"icon": {
|
|
717
|
+
"type": "object",
|
|
718
|
+
"properties": {
|
|
719
|
+
"format": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"enum": [
|
|
722
|
+
"png",
|
|
723
|
+
"webp"
|
|
724
|
+
]
|
|
725
|
+
},
|
|
726
|
+
"sha256": {
|
|
727
|
+
"type": "string",
|
|
728
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
729
|
+
},
|
|
730
|
+
"sizeBytes": {
|
|
731
|
+
"type": "integer",
|
|
732
|
+
"minimum": 1,
|
|
733
|
+
"maximum": 2097152
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
"required": [
|
|
737
|
+
"format",
|
|
738
|
+
"sha256",
|
|
739
|
+
"sizeBytes"
|
|
740
|
+
],
|
|
741
|
+
"additionalProperties": false,
|
|
742
|
+
"description": "Verified catalog target at assets/<sha256>.<format>, relative to the catalog repository."
|
|
743
|
+
},
|
|
744
|
+
"notes": {
|
|
745
|
+
"type": "string",
|
|
746
|
+
"pattern": "^(?:[^\\p{Cc}\\p{Cs}]|\\n){1,2000}$"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"required": [
|
|
750
|
+
"appId",
|
|
751
|
+
"version",
|
|
752
|
+
"source",
|
|
753
|
+
"publisher",
|
|
754
|
+
"packages"
|
|
755
|
+
],
|
|
756
|
+
"additionalProperties": false,
|
|
757
|
+
"description": "Public install/display data for one version. Each target has its own manifest and archive identity. The release tag is <appId>-v<version> and the asset is <appId>-<version>-<target>.tar.zst in RentnerProxy/app-catalog."
|
|
758
|
+
},
|
|
759
|
+
"Revocation": {
|
|
760
|
+
"type": "object",
|
|
761
|
+
"properties": {
|
|
762
|
+
"appId": {
|
|
763
|
+
"type": "string",
|
|
764
|
+
"pattern": "^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?\\.[a-z](?:[a-z0-9-]{0,62}[a-z0-9])?$"
|
|
765
|
+
},
|
|
766
|
+
"version": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"maxLength": 64,
|
|
769
|
+
"pattern": "^(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})\\.(?:0|[1-9][0-9]{0,5})(?:-(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*)?$"
|
|
770
|
+
},
|
|
771
|
+
"revokedAt": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"format": "date-time",
|
|
774
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
775
|
+
"description": "UTC timestamp with exactly three fractional digits. Time and actor authority are verified by the caller."
|
|
776
|
+
},
|
|
777
|
+
"reason": {
|
|
778
|
+
"type": "string",
|
|
779
|
+
"enum": [
|
|
780
|
+
"withdrawn",
|
|
781
|
+
"security",
|
|
782
|
+
"invalidPublication"
|
|
783
|
+
]
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"required": [
|
|
787
|
+
"appId",
|
|
788
|
+
"version",
|
|
789
|
+
"revokedAt",
|
|
790
|
+
"reason"
|
|
791
|
+
],
|
|
792
|
+
"additionalProperties": false,
|
|
793
|
+
"description": "Revocation applies to all targets of the specified app version."
|
|
794
|
+
},
|
|
795
|
+
"Catalog": {
|
|
796
|
+
"type": "object",
|
|
797
|
+
"properties": {
|
|
798
|
+
"formatVersion": {
|
|
799
|
+
"type": "number",
|
|
800
|
+
"const": 1,
|
|
801
|
+
"description": "Wire version. Readers reject unknown versions and unknown fields. Changes to a closed shape, allowed value, or meaning require a new wire version after v1 stabilizes."
|
|
802
|
+
},
|
|
803
|
+
"revision": {
|
|
804
|
+
"$ref": "#/$defs/Generation"
|
|
805
|
+
},
|
|
806
|
+
"releases": {
|
|
807
|
+
"maxItems": 4096,
|
|
808
|
+
"type": "array",
|
|
809
|
+
"items": {
|
|
810
|
+
"$ref": "#/$defs/CatalogRelease"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"revocations": {
|
|
814
|
+
"maxItems": 4096,
|
|
815
|
+
"type": "array",
|
|
816
|
+
"items": {
|
|
817
|
+
"$ref": "#/$defs/Revocation"
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"required": [
|
|
822
|
+
"formatVersion",
|
|
823
|
+
"revision",
|
|
824
|
+
"releases",
|
|
825
|
+
"revocations"
|
|
826
|
+
],
|
|
827
|
+
"additionalProperties": false,
|
|
828
|
+
"description": "Catalog target payload for TUF. Verify its bytes and metadata before use. Releases and revocations are unique by app ID and version and disjoint. Website account, rating, and statistics data are outside this contract."
|
|
829
|
+
},
|
|
830
|
+
"Candidate": {
|
|
831
|
+
"type": "object",
|
|
832
|
+
"properties": {
|
|
833
|
+
"formatVersion": {
|
|
834
|
+
"type": "number",
|
|
835
|
+
"const": 1,
|
|
836
|
+
"description": "Wire version. Readers reject unknown versions and unknown fields. Changes to a closed shape, allowed value, or meaning require a new wire version after v1 stabilizes."
|
|
837
|
+
},
|
|
838
|
+
"id": {
|
|
839
|
+
"$ref": "#/$defs/RecordId"
|
|
840
|
+
},
|
|
841
|
+
"revision": {
|
|
842
|
+
"$ref": "#/$defs/Generation"
|
|
843
|
+
},
|
|
844
|
+
"source": {
|
|
845
|
+
"$ref": "#/$defs/SourceIdentity"
|
|
846
|
+
},
|
|
847
|
+
"build": {
|
|
848
|
+
"type": "object",
|
|
849
|
+
"properties": {
|
|
850
|
+
"repositoryId": {
|
|
851
|
+
"type": "string",
|
|
852
|
+
"pattern": "^[1-9][0-9]{0,19}$"
|
|
853
|
+
},
|
|
854
|
+
"workflowCommit": {
|
|
855
|
+
"type": "string",
|
|
856
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
857
|
+
},
|
|
858
|
+
"workflowPath": {
|
|
859
|
+
"type": "string",
|
|
860
|
+
"maxLength": 160,
|
|
861
|
+
"pattern": "^\\.github\\/workflows\\/[a-zA-Z0-9_-]+\\.ya?ml$"
|
|
862
|
+
},
|
|
863
|
+
"runId": {
|
|
864
|
+
"type": "string",
|
|
865
|
+
"pattern": "^[1-9][0-9]{0,19}$"
|
|
866
|
+
},
|
|
867
|
+
"attempt": {
|
|
868
|
+
"$ref": "#/$defs/Generation"
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
"required": [
|
|
872
|
+
"repositoryId",
|
|
873
|
+
"workflowCommit",
|
|
874
|
+
"workflowPath",
|
|
875
|
+
"runId",
|
|
876
|
+
"attempt"
|
|
877
|
+
],
|
|
878
|
+
"additionalProperties": false
|
|
879
|
+
},
|
|
880
|
+
"evidence": {
|
|
881
|
+
"type": "object",
|
|
882
|
+
"properties": {
|
|
883
|
+
"revision": {
|
|
884
|
+
"$ref": "#/$defs/Generation"
|
|
885
|
+
},
|
|
886
|
+
"report": {
|
|
887
|
+
"type": "object",
|
|
888
|
+
"properties": {
|
|
889
|
+
"sha256": {
|
|
890
|
+
"type": "string",
|
|
891
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
892
|
+
},
|
|
893
|
+
"sizeBytes": {
|
|
894
|
+
"type": "integer",
|
|
895
|
+
"minimum": 1,
|
|
896
|
+
"maximum": 2147483647
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"required": [
|
|
900
|
+
"sha256",
|
|
901
|
+
"sizeBytes"
|
|
902
|
+
],
|
|
903
|
+
"additionalProperties": false
|
|
904
|
+
},
|
|
905
|
+
"result": {
|
|
906
|
+
"type": "string",
|
|
907
|
+
"const": "passed"
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"required": [
|
|
911
|
+
"revision",
|
|
912
|
+
"report",
|
|
913
|
+
"result"
|
|
914
|
+
],
|
|
915
|
+
"additionalProperties": false
|
|
916
|
+
},
|
|
917
|
+
"release": {
|
|
918
|
+
"$ref": "#/$defs/CatalogRelease"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"required": [
|
|
922
|
+
"formatVersion",
|
|
923
|
+
"id",
|
|
924
|
+
"revision",
|
|
925
|
+
"source",
|
|
926
|
+
"build",
|
|
927
|
+
"evidence",
|
|
928
|
+
"release"
|
|
929
|
+
],
|
|
930
|
+
"additionalProperties": false,
|
|
931
|
+
"description": "Private candidate snapshot. The validation report and each target archive have their own byte identity. A record claiming success does not establish trusted validation evidence."
|
|
932
|
+
},
|
|
933
|
+
"Approval": {
|
|
934
|
+
"type": "object",
|
|
935
|
+
"properties": {
|
|
936
|
+
"formatVersion": {
|
|
937
|
+
"type": "number",
|
|
938
|
+
"const": 1,
|
|
939
|
+
"description": "Wire version. Readers reject unknown versions and unknown fields. Changes to a closed shape, allowed value, or meaning require a new wire version after v1 stabilizes."
|
|
940
|
+
},
|
|
941
|
+
"id": {
|
|
942
|
+
"$ref": "#/$defs/RecordId"
|
|
943
|
+
},
|
|
944
|
+
"revision": {
|
|
945
|
+
"$ref": "#/$defs/Generation"
|
|
946
|
+
},
|
|
947
|
+
"actorId": {
|
|
948
|
+
"$ref": "#/$defs/RecordId"
|
|
949
|
+
},
|
|
950
|
+
"approvedAt": {
|
|
951
|
+
"type": "string",
|
|
952
|
+
"format": "date-time",
|
|
953
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
954
|
+
"description": "UTC timestamp with exactly three fractional digits. Time and actor authority are verified by the caller."
|
|
955
|
+
},
|
|
956
|
+
"candidate": {
|
|
957
|
+
"$ref": "#/$defs/Candidate"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"required": [
|
|
961
|
+
"formatVersion",
|
|
962
|
+
"id",
|
|
963
|
+
"revision",
|
|
964
|
+
"actorId",
|
|
965
|
+
"approvedAt",
|
|
966
|
+
"candidate"
|
|
967
|
+
],
|
|
968
|
+
"additionalProperties": false,
|
|
969
|
+
"description": "Private approval for the entire candidate snapshot, including ordered arrays. Resolve actor permissions and current approval state at the trusted publication boundary."
|
|
970
|
+
},
|
|
971
|
+
"Publication": {
|
|
972
|
+
"type": "object",
|
|
973
|
+
"properties": {
|
|
974
|
+
"formatVersion": {
|
|
975
|
+
"type": "number",
|
|
976
|
+
"const": 1,
|
|
977
|
+
"description": "Wire version. Readers reject unknown versions and unknown fields. Changes to a closed shape, allowed value, or meaning require a new wire version after v1 stabilizes."
|
|
978
|
+
},
|
|
979
|
+
"id": {
|
|
980
|
+
"$ref": "#/$defs/RecordId"
|
|
981
|
+
},
|
|
982
|
+
"approvalId": {
|
|
983
|
+
"$ref": "#/$defs/RecordId"
|
|
984
|
+
},
|
|
985
|
+
"approvalRevision": {
|
|
986
|
+
"$ref": "#/$defs/Generation"
|
|
987
|
+
},
|
|
988
|
+
"catalogRevision": {
|
|
989
|
+
"$ref": "#/$defs/Generation"
|
|
990
|
+
},
|
|
991
|
+
"publishedAt": {
|
|
992
|
+
"type": "string",
|
|
993
|
+
"format": "date-time",
|
|
994
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
995
|
+
"description": "UTC timestamp with exactly three fractional digits. Time and actor authority are verified by the caller."
|
|
996
|
+
},
|
|
997
|
+
"run": {
|
|
998
|
+
"type": "object",
|
|
999
|
+
"properties": {
|
|
1000
|
+
"repositoryId": {
|
|
1001
|
+
"type": "string",
|
|
1002
|
+
"pattern": "^[1-9][0-9]{0,19}$"
|
|
1003
|
+
},
|
|
1004
|
+
"workflowCommit": {
|
|
1005
|
+
"type": "string",
|
|
1006
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1007
|
+
},
|
|
1008
|
+
"workflowPath": {
|
|
1009
|
+
"type": "string",
|
|
1010
|
+
"maxLength": 160,
|
|
1011
|
+
"pattern": "^\\.github\\/workflows\\/[a-zA-Z0-9_-]+\\.ya?ml$"
|
|
1012
|
+
},
|
|
1013
|
+
"runId": {
|
|
1014
|
+
"type": "string",
|
|
1015
|
+
"pattern": "^[1-9][0-9]{0,19}$"
|
|
1016
|
+
},
|
|
1017
|
+
"attempt": {
|
|
1018
|
+
"$ref": "#/$defs/Generation"
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
"required": [
|
|
1022
|
+
"repositoryId",
|
|
1023
|
+
"workflowCommit",
|
|
1024
|
+
"workflowPath",
|
|
1025
|
+
"runId",
|
|
1026
|
+
"attempt"
|
|
1027
|
+
],
|
|
1028
|
+
"additionalProperties": false
|
|
1029
|
+
},
|
|
1030
|
+
"release": {
|
|
1031
|
+
"$ref": "#/$defs/CatalogRelease"
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
"required": [
|
|
1035
|
+
"formatVersion",
|
|
1036
|
+
"id",
|
|
1037
|
+
"approvalId",
|
|
1038
|
+
"approvalRevision",
|
|
1039
|
+
"catalogRevision",
|
|
1040
|
+
"publishedAt",
|
|
1041
|
+
"run",
|
|
1042
|
+
"release"
|
|
1043
|
+
],
|
|
1044
|
+
"additionalProperties": false,
|
|
1045
|
+
"description": "Private publication receipt. Reconcile by immutable approval revision and exact release contents. Record publication only after the unchanged package bytes and matching signed catalog are available."
|
|
1046
|
+
},
|
|
1047
|
+
"RecordId": {
|
|
1048
|
+
"type": "string",
|
|
1049
|
+
"pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
|
|
1050
|
+
},
|
|
1051
|
+
"Generation": {
|
|
1052
|
+
"type": "integer",
|
|
1053
|
+
"minimum": 1,
|
|
1054
|
+
"maximum": 9007199254740991
|
|
1055
|
+
},
|
|
1056
|
+
"BootstrapDescriptor": {
|
|
1057
|
+
"type": "object",
|
|
1058
|
+
"properties": {
|
|
1059
|
+
"formatVersion": {
|
|
1060
|
+
"type": "number",
|
|
1061
|
+
"const": 1,
|
|
1062
|
+
"description": "Wire version. Readers reject unknown versions and unknown fields. Changes to a closed shape, allowed value, or meaning require a new wire version after v1 stabilizes."
|
|
1063
|
+
},
|
|
1064
|
+
"appId": {
|
|
1065
|
+
"type": "string",
|
|
1066
|
+
"pattern": "^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?\\.[a-z](?:[a-z0-9-]{0,62}[a-z0-9])?$"
|
|
1067
|
+
},
|
|
1068
|
+
"installationId": {
|
|
1069
|
+
"$ref": "#/$defs/RecordId"
|
|
1070
|
+
},
|
|
1071
|
+
"generation": {
|
|
1072
|
+
"$ref": "#/$defs/Generation"
|
|
1073
|
+
},
|
|
1074
|
+
"runtimeProfile": {
|
|
1075
|
+
"type": "string",
|
|
1076
|
+
"const": "rentnerproxy-linux-v1",
|
|
1077
|
+
"description": "Native Linux appliance profile exercised on AMD64 and ARM64. Runtime compatibility is checked against the supported appliance profile at installation."
|
|
1078
|
+
},
|
|
1079
|
+
"versions": {
|
|
1080
|
+
"type": "object",
|
|
1081
|
+
"properties": {
|
|
1082
|
+
"appProtocol": {
|
|
1083
|
+
"type": "string",
|
|
1084
|
+
"const": "1.0.0"
|
|
1085
|
+
},
|
|
1086
|
+
"platformApi": {
|
|
1087
|
+
"type": "string",
|
|
1088
|
+
"const": "1.0.0"
|
|
1089
|
+
},
|
|
1090
|
+
"uiBridge": {
|
|
1091
|
+
"type": "string",
|
|
1092
|
+
"const": "1.0.0"
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
"required": [
|
|
1096
|
+
"appProtocol",
|
|
1097
|
+
"platformApi"
|
|
1098
|
+
],
|
|
1099
|
+
"additionalProperties": false
|
|
1100
|
+
},
|
|
1101
|
+
"appSocket": {
|
|
1102
|
+
"type": "string",
|
|
1103
|
+
"maxLength": 107,
|
|
1104
|
+
"pattern": "^(?:\\/[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*)+\\/app\\.sock$"
|
|
1105
|
+
},
|
|
1106
|
+
"coreSocket": {
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"maxLength": 107,
|
|
1109
|
+
"pattern": "^(?:\\/[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*)+\\/core\\.sock$"
|
|
1110
|
+
},
|
|
1111
|
+
"appCredential": {
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
"pattern": "^[a-zA-Z0-9_-]{32,128}$",
|
|
1114
|
+
"description": "Opaque credential issued for one socket direction and installation generation."
|
|
1115
|
+
},
|
|
1116
|
+
"coreCredential": {
|
|
1117
|
+
"type": "string",
|
|
1118
|
+
"pattern": "^[a-zA-Z0-9_-]{32,128}$",
|
|
1119
|
+
"description": "Opaque credential issued for one socket direction and installation generation."
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
"required": [
|
|
1123
|
+
"formatVersion",
|
|
1124
|
+
"appId",
|
|
1125
|
+
"installationId",
|
|
1126
|
+
"generation",
|
|
1127
|
+
"runtimeProfile",
|
|
1128
|
+
"versions",
|
|
1129
|
+
"appSocket",
|
|
1130
|
+
"coreSocket",
|
|
1131
|
+
"appCredential",
|
|
1132
|
+
"coreCredential"
|
|
1133
|
+
],
|
|
1134
|
+
"additionalProperties": false,
|
|
1135
|
+
"description": "The manager hands this descriptor to the restricted app process through a private inherited file descriptor. The SDK rejects reuse of a credential across socket directions. Keep the descriptor and credentials out of command lines, process environments, browser messages, and logs. The manager verifies socket ownership and the private run directory."
|
|
1136
|
+
},
|
|
1137
|
+
"AppHealth": {
|
|
1138
|
+
"type": "object",
|
|
1139
|
+
"properties": {
|
|
1140
|
+
"healthy": {
|
|
1141
|
+
"type": "boolean",
|
|
1142
|
+
"const": true
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
"required": [
|
|
1146
|
+
"healthy"
|
|
1147
|
+
],
|
|
1148
|
+
"additionalProperties": {}
|
|
1149
|
+
},
|
|
1150
|
+
"AppReadiness": {
|
|
1151
|
+
"type": "object",
|
|
1152
|
+
"properties": {
|
|
1153
|
+
"ready": {
|
|
1154
|
+
"type": "boolean",
|
|
1155
|
+
"const": true
|
|
1156
|
+
},
|
|
1157
|
+
"protocolVersion": {
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"const": "1.0.0"
|
|
1160
|
+
},
|
|
1161
|
+
"dataVersion": {
|
|
1162
|
+
"type": "integer",
|
|
1163
|
+
"minimum": 1,
|
|
1164
|
+
"maximum": 2147483647
|
|
1165
|
+
},
|
|
1166
|
+
"providers": {
|
|
1167
|
+
"maxItems": 32,
|
|
1168
|
+
"type": "array",
|
|
1169
|
+
"items": {
|
|
1170
|
+
"$ref": "#/$defs/ProviderRegistration"
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
"required": [
|
|
1175
|
+
"ready",
|
|
1176
|
+
"protocolVersion",
|
|
1177
|
+
"providers"
|
|
1178
|
+
],
|
|
1179
|
+
"additionalProperties": {},
|
|
1180
|
+
"description": "An absent dataVersion denotes an app without persisted data. The SDK checks unique provider registration IDs. Advertised providers become live only after the manager activates this generation."
|
|
1181
|
+
},
|
|
1182
|
+
"PlatformContext": {
|
|
1183
|
+
"type": "object",
|
|
1184
|
+
"properties": {
|
|
1185
|
+
"appId": {
|
|
1186
|
+
"type": "string",
|
|
1187
|
+
"pattern": "^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?\\.[a-z](?:[a-z0-9-]{0,62}[a-z0-9])?$"
|
|
1188
|
+
},
|
|
1189
|
+
"installationId": {
|
|
1190
|
+
"$ref": "#/$defs/RecordId"
|
|
1191
|
+
},
|
|
1192
|
+
"generation": {
|
|
1193
|
+
"$ref": "#/$defs/Generation"
|
|
1194
|
+
},
|
|
1195
|
+
"runtimeProfile": {
|
|
1196
|
+
"type": "string",
|
|
1197
|
+
"const": "rentnerproxy-linux-v1",
|
|
1198
|
+
"description": "Native Linux appliance profile exercised on AMD64 and ARM64. Runtime compatibility is checked against the supported appliance profile at installation."
|
|
1199
|
+
},
|
|
1200
|
+
"versions": {
|
|
1201
|
+
"type": "object",
|
|
1202
|
+
"properties": {
|
|
1203
|
+
"appProtocol": {
|
|
1204
|
+
"type": "string",
|
|
1205
|
+
"const": "1.0.0"
|
|
1206
|
+
},
|
|
1207
|
+
"platformApi": {
|
|
1208
|
+
"type": "string",
|
|
1209
|
+
"const": "1.0.0"
|
|
1210
|
+
},
|
|
1211
|
+
"uiBridge": {
|
|
1212
|
+
"type": "string",
|
|
1213
|
+
"const": "1.0.0"
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"required": [
|
|
1217
|
+
"appProtocol",
|
|
1218
|
+
"platformApi"
|
|
1219
|
+
],
|
|
1220
|
+
"additionalProperties": false
|
|
1221
|
+
},
|
|
1222
|
+
"capabilities": {
|
|
1223
|
+
"maxItems": 32,
|
|
1224
|
+
"type": "array",
|
|
1225
|
+
"items": {
|
|
1226
|
+
"anyOf": [
|
|
1227
|
+
{
|
|
1228
|
+
"type": "object",
|
|
1229
|
+
"properties": {
|
|
1230
|
+
"id": {
|
|
1231
|
+
"type": "string",
|
|
1232
|
+
"const": "proxy.hosts.read.v1"
|
|
1233
|
+
},
|
|
1234
|
+
"scope": {
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"const": "proxyHosts"
|
|
1237
|
+
}
|
|
1238
|
+
},
|
|
1239
|
+
"required": [
|
|
1240
|
+
"id",
|
|
1241
|
+
"scope"
|
|
1242
|
+
],
|
|
1243
|
+
"additionalProperties": false
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"type": "object",
|
|
1247
|
+
"properties": {
|
|
1248
|
+
"id": {
|
|
1249
|
+
"type": "string",
|
|
1250
|
+
"const": "proxy.hosts.manage-owned.v1"
|
|
1251
|
+
},
|
|
1252
|
+
"scope": {
|
|
1253
|
+
"type": "string",
|
|
1254
|
+
"const": "ownedProxyHosts"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"required": [
|
|
1258
|
+
"id",
|
|
1259
|
+
"scope"
|
|
1260
|
+
],
|
|
1261
|
+
"additionalProperties": false
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"type": "object",
|
|
1265
|
+
"properties": {
|
|
1266
|
+
"id": {
|
|
1267
|
+
"type": "string",
|
|
1268
|
+
"const": "diagnostics.upstream.probe.v1"
|
|
1269
|
+
},
|
|
1270
|
+
"scope": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"const": "proxyHosts"
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
"required": [
|
|
1276
|
+
"id",
|
|
1277
|
+
"scope"
|
|
1278
|
+
],
|
|
1279
|
+
"additionalProperties": false
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"type": "object",
|
|
1283
|
+
"properties": {
|
|
1284
|
+
"id": {
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"const": "diagnostics.upstream.probe.v2"
|
|
1287
|
+
},
|
|
1288
|
+
"scope": {
|
|
1289
|
+
"type": "string",
|
|
1290
|
+
"const": "proxyHosts"
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
"required": [
|
|
1294
|
+
"id",
|
|
1295
|
+
"scope"
|
|
1296
|
+
],
|
|
1297
|
+
"additionalProperties": false
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"type": "object",
|
|
1301
|
+
"properties": {
|
|
1302
|
+
"id": {
|
|
1303
|
+
"type": "string",
|
|
1304
|
+
"const": "notifications.publish.v1"
|
|
1305
|
+
},
|
|
1306
|
+
"scope": {
|
|
1307
|
+
"type": "string",
|
|
1308
|
+
"const": "installation"
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
"required": [
|
|
1312
|
+
"id",
|
|
1313
|
+
"scope"
|
|
1314
|
+
],
|
|
1315
|
+
"additionalProperties": false
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"type": "object",
|
|
1319
|
+
"properties": {
|
|
1320
|
+
"id": {
|
|
1321
|
+
"type": "string",
|
|
1322
|
+
"const": "notifications.incidents.manage.v1"
|
|
1323
|
+
},
|
|
1324
|
+
"scope": {
|
|
1325
|
+
"type": "string",
|
|
1326
|
+
"const": "installation"
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
"required": [
|
|
1330
|
+
"id",
|
|
1331
|
+
"scope"
|
|
1332
|
+
],
|
|
1333
|
+
"additionalProperties": false
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"type": "object",
|
|
1337
|
+
"properties": {
|
|
1338
|
+
"id": {
|
|
1339
|
+
"type": "string",
|
|
1340
|
+
"const": "docker.inventory.observe.v1"
|
|
1341
|
+
},
|
|
1342
|
+
"scope": {
|
|
1343
|
+
"type": "string",
|
|
1344
|
+
"const": "dockerConnections"
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
"required": [
|
|
1348
|
+
"id",
|
|
1349
|
+
"scope"
|
|
1350
|
+
],
|
|
1351
|
+
"additionalProperties": false
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"type": "object",
|
|
1355
|
+
"properties": {
|
|
1356
|
+
"id": {
|
|
1357
|
+
"type": "string",
|
|
1358
|
+
"const": "dns.challenge.manage.v1"
|
|
1359
|
+
},
|
|
1360
|
+
"scope": {
|
|
1361
|
+
"type": "string",
|
|
1362
|
+
"const": "dnsZones"
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
"required": [
|
|
1366
|
+
"id",
|
|
1367
|
+
"scope"
|
|
1368
|
+
],
|
|
1369
|
+
"additionalProperties": false
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"type": "object",
|
|
1373
|
+
"properties": {
|
|
1374
|
+
"id": {
|
|
1375
|
+
"type": "string",
|
|
1376
|
+
"const": "engine.contributions.submit.v1"
|
|
1377
|
+
},
|
|
1378
|
+
"scope": {
|
|
1379
|
+
"type": "string",
|
|
1380
|
+
"const": "ownedEngineResources"
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
"required": [
|
|
1384
|
+
"id",
|
|
1385
|
+
"scope"
|
|
1386
|
+
],
|
|
1387
|
+
"additionalProperties": false
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"type": "object",
|
|
1391
|
+
"properties": {
|
|
1392
|
+
"id": {
|
|
1393
|
+
"type": "string",
|
|
1394
|
+
"const": "identity.provider.register.v1"
|
|
1395
|
+
},
|
|
1396
|
+
"scope": {
|
|
1397
|
+
"type": "string",
|
|
1398
|
+
"const": "identityProviders"
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
"required": [
|
|
1402
|
+
"id",
|
|
1403
|
+
"scope"
|
|
1404
|
+
],
|
|
1405
|
+
"additionalProperties": false
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"type": "object",
|
|
1409
|
+
"properties": {
|
|
1410
|
+
"id": {
|
|
1411
|
+
"type": "string",
|
|
1412
|
+
"const": "access.logs.read.v1"
|
|
1413
|
+
},
|
|
1414
|
+
"scope": {
|
|
1415
|
+
"type": "string",
|
|
1416
|
+
"const": "proxyHosts"
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
"required": [
|
|
1420
|
+
"id",
|
|
1421
|
+
"scope"
|
|
1422
|
+
],
|
|
1423
|
+
"additionalProperties": false
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"type": "object",
|
|
1427
|
+
"properties": {
|
|
1428
|
+
"id": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"const": "security.enforcement.contribute.v1"
|
|
1431
|
+
},
|
|
1432
|
+
"scope": {
|
|
1433
|
+
"type": "string",
|
|
1434
|
+
"const": "ownedEngineResources"
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1437
|
+
"required": [
|
|
1438
|
+
"id",
|
|
1439
|
+
"scope"
|
|
1440
|
+
],
|
|
1441
|
+
"additionalProperties": false
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
"description": "Requested resource scope type. Grants and resource IDs are assigned by the local administrator."
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
"required": [
|
|
1449
|
+
"appId",
|
|
1450
|
+
"installationId",
|
|
1451
|
+
"generation",
|
|
1452
|
+
"runtimeProfile",
|
|
1453
|
+
"versions",
|
|
1454
|
+
"capabilities"
|
|
1455
|
+
],
|
|
1456
|
+
"additionalProperties": {},
|
|
1457
|
+
"description": "The platform derives this context from the authenticated installation. For each operation the platform rechecks current grants, actor permissions, resource scope, and generation."
|
|
1458
|
+
},
|
|
1459
|
+
"AuthorizationRequest": {
|
|
1460
|
+
"type": "object",
|
|
1461
|
+
"properties": {
|
|
1462
|
+
"capability": {
|
|
1463
|
+
"anyOf": [
|
|
1464
|
+
{
|
|
1465
|
+
"type": "object",
|
|
1466
|
+
"properties": {
|
|
1467
|
+
"id": {
|
|
1468
|
+
"type": "string",
|
|
1469
|
+
"const": "proxy.hosts.read.v1"
|
|
1470
|
+
},
|
|
1471
|
+
"scope": {
|
|
1472
|
+
"type": "string",
|
|
1473
|
+
"const": "proxyHosts"
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
"required": [
|
|
1477
|
+
"id",
|
|
1478
|
+
"scope"
|
|
1479
|
+
],
|
|
1480
|
+
"additionalProperties": false
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"type": "object",
|
|
1484
|
+
"properties": {
|
|
1485
|
+
"id": {
|
|
1486
|
+
"type": "string",
|
|
1487
|
+
"const": "proxy.hosts.manage-owned.v1"
|
|
1488
|
+
},
|
|
1489
|
+
"scope": {
|
|
1490
|
+
"type": "string",
|
|
1491
|
+
"const": "ownedProxyHosts"
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
"required": [
|
|
1495
|
+
"id",
|
|
1496
|
+
"scope"
|
|
1497
|
+
],
|
|
1498
|
+
"additionalProperties": false
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"type": "object",
|
|
1502
|
+
"properties": {
|
|
1503
|
+
"id": {
|
|
1504
|
+
"type": "string",
|
|
1505
|
+
"const": "diagnostics.upstream.probe.v1"
|
|
1506
|
+
},
|
|
1507
|
+
"scope": {
|
|
1508
|
+
"type": "string",
|
|
1509
|
+
"const": "proxyHosts"
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"required": [
|
|
1513
|
+
"id",
|
|
1514
|
+
"scope"
|
|
1515
|
+
],
|
|
1516
|
+
"additionalProperties": false
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"type": "object",
|
|
1520
|
+
"properties": {
|
|
1521
|
+
"id": {
|
|
1522
|
+
"type": "string",
|
|
1523
|
+
"const": "diagnostics.upstream.probe.v2"
|
|
1524
|
+
},
|
|
1525
|
+
"scope": {
|
|
1526
|
+
"type": "string",
|
|
1527
|
+
"const": "proxyHosts"
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
"required": [
|
|
1531
|
+
"id",
|
|
1532
|
+
"scope"
|
|
1533
|
+
],
|
|
1534
|
+
"additionalProperties": false
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"type": "object",
|
|
1538
|
+
"properties": {
|
|
1539
|
+
"id": {
|
|
1540
|
+
"type": "string",
|
|
1541
|
+
"const": "notifications.publish.v1"
|
|
1542
|
+
},
|
|
1543
|
+
"scope": {
|
|
1544
|
+
"type": "string",
|
|
1545
|
+
"const": "installation"
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
"required": [
|
|
1549
|
+
"id",
|
|
1550
|
+
"scope"
|
|
1551
|
+
],
|
|
1552
|
+
"additionalProperties": false
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"type": "object",
|
|
1556
|
+
"properties": {
|
|
1557
|
+
"id": {
|
|
1558
|
+
"type": "string",
|
|
1559
|
+
"const": "notifications.incidents.manage.v1"
|
|
1560
|
+
},
|
|
1561
|
+
"scope": {
|
|
1562
|
+
"type": "string",
|
|
1563
|
+
"const": "installation"
|
|
1564
|
+
}
|
|
1565
|
+
},
|
|
1566
|
+
"required": [
|
|
1567
|
+
"id",
|
|
1568
|
+
"scope"
|
|
1569
|
+
],
|
|
1570
|
+
"additionalProperties": false
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
"type": "object",
|
|
1574
|
+
"properties": {
|
|
1575
|
+
"id": {
|
|
1576
|
+
"type": "string",
|
|
1577
|
+
"const": "docker.inventory.observe.v1"
|
|
1578
|
+
},
|
|
1579
|
+
"scope": {
|
|
1580
|
+
"type": "string",
|
|
1581
|
+
"const": "dockerConnections"
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1584
|
+
"required": [
|
|
1585
|
+
"id",
|
|
1586
|
+
"scope"
|
|
1587
|
+
],
|
|
1588
|
+
"additionalProperties": false
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"type": "object",
|
|
1592
|
+
"properties": {
|
|
1593
|
+
"id": {
|
|
1594
|
+
"type": "string",
|
|
1595
|
+
"const": "dns.challenge.manage.v1"
|
|
1596
|
+
},
|
|
1597
|
+
"scope": {
|
|
1598
|
+
"type": "string",
|
|
1599
|
+
"const": "dnsZones"
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
"required": [
|
|
1603
|
+
"id",
|
|
1604
|
+
"scope"
|
|
1605
|
+
],
|
|
1606
|
+
"additionalProperties": false
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"type": "object",
|
|
1610
|
+
"properties": {
|
|
1611
|
+
"id": {
|
|
1612
|
+
"type": "string",
|
|
1613
|
+
"const": "engine.contributions.submit.v1"
|
|
1614
|
+
},
|
|
1615
|
+
"scope": {
|
|
1616
|
+
"type": "string",
|
|
1617
|
+
"const": "ownedEngineResources"
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
"required": [
|
|
1621
|
+
"id",
|
|
1622
|
+
"scope"
|
|
1623
|
+
],
|
|
1624
|
+
"additionalProperties": false
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"type": "object",
|
|
1628
|
+
"properties": {
|
|
1629
|
+
"id": {
|
|
1630
|
+
"type": "string",
|
|
1631
|
+
"const": "identity.provider.register.v1"
|
|
1632
|
+
},
|
|
1633
|
+
"scope": {
|
|
1634
|
+
"type": "string",
|
|
1635
|
+
"const": "identityProviders"
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
"required": [
|
|
1639
|
+
"id",
|
|
1640
|
+
"scope"
|
|
1641
|
+
],
|
|
1642
|
+
"additionalProperties": false
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"type": "object",
|
|
1646
|
+
"properties": {
|
|
1647
|
+
"id": {
|
|
1648
|
+
"type": "string",
|
|
1649
|
+
"const": "access.logs.read.v1"
|
|
1650
|
+
},
|
|
1651
|
+
"scope": {
|
|
1652
|
+
"type": "string",
|
|
1653
|
+
"const": "proxyHosts"
|
|
1654
|
+
}
|
|
1655
|
+
},
|
|
1656
|
+
"required": [
|
|
1657
|
+
"id",
|
|
1658
|
+
"scope"
|
|
1659
|
+
],
|
|
1660
|
+
"additionalProperties": false
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"type": "object",
|
|
1664
|
+
"properties": {
|
|
1665
|
+
"id": {
|
|
1666
|
+
"type": "string",
|
|
1667
|
+
"const": "security.enforcement.contribute.v1"
|
|
1668
|
+
},
|
|
1669
|
+
"scope": {
|
|
1670
|
+
"type": "string",
|
|
1671
|
+
"const": "ownedEngineResources"
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
"required": [
|
|
1675
|
+
"id",
|
|
1676
|
+
"scope"
|
|
1677
|
+
],
|
|
1678
|
+
"additionalProperties": false
|
|
1679
|
+
}
|
|
1680
|
+
],
|
|
1681
|
+
"description": "Requested resource scope type. Grants and resource IDs are assigned by the local administrator."
|
|
1682
|
+
},
|
|
1683
|
+
"resourceId": {
|
|
1684
|
+
"$ref": "#/$defs/RecordId"
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1687
|
+
"required": [
|
|
1688
|
+
"capability",
|
|
1689
|
+
"resourceId"
|
|
1690
|
+
],
|
|
1691
|
+
"additionalProperties": false,
|
|
1692
|
+
"description": "Check a specific capability and resource. For installation scope resourceId is the verified installation ID. The platform derives actor identity from its issued delegation."
|
|
1693
|
+
},
|
|
1694
|
+
"AuthorizationResult": {
|
|
1695
|
+
"type": "object",
|
|
1696
|
+
"properties": {
|
|
1697
|
+
"allowed": {
|
|
1698
|
+
"type": "boolean"
|
|
1699
|
+
}
|
|
1700
|
+
},
|
|
1701
|
+
"required": [
|
|
1702
|
+
"allowed"
|
|
1703
|
+
],
|
|
1704
|
+
"additionalProperties": {},
|
|
1705
|
+
"description": "A point-in-time check. Mutating operations authorize the actor and resource again."
|
|
1706
|
+
},
|
|
1707
|
+
"EventCursor": {
|
|
1708
|
+
"type": "string",
|
|
1709
|
+
"pattern": "^[a-zA-Z0-9_-]{1,256}$",
|
|
1710
|
+
"description": "Opaque resume cursor. Reconnect with the cursor from the last processed event."
|
|
1711
|
+
},
|
|
1712
|
+
"PlatformEvent": {
|
|
1713
|
+
"type": "object",
|
|
1714
|
+
"properties": {
|
|
1715
|
+
"id": {
|
|
1716
|
+
"$ref": "#/$defs/RecordId"
|
|
1717
|
+
},
|
|
1718
|
+
"cursor": {
|
|
1719
|
+
"$ref": "#/$defs/EventCursor"
|
|
1720
|
+
},
|
|
1721
|
+
"type": {
|
|
1722
|
+
"type": "string",
|
|
1723
|
+
"pattern": "^[a-z][a-zA-Z0-9]{0,63}$"
|
|
1724
|
+
},
|
|
1725
|
+
"occurredAt": {
|
|
1726
|
+
"type": "string",
|
|
1727
|
+
"format": "date-time",
|
|
1728
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
1729
|
+
"description": "UTC timestamp with exactly three fractional digits. Time and actor authority are verified by the caller."
|
|
1730
|
+
},
|
|
1731
|
+
"resourceId": {
|
|
1732
|
+
"$ref": "#/$defs/RecordId"
|
|
1733
|
+
},
|
|
1734
|
+
"revision": {
|
|
1735
|
+
"$ref": "#/$defs/RecordId"
|
|
1736
|
+
}
|
|
1737
|
+
},
|
|
1738
|
+
"required": [
|
|
1739
|
+
"id",
|
|
1740
|
+
"cursor",
|
|
1741
|
+
"type",
|
|
1742
|
+
"occurredAt"
|
|
1743
|
+
],
|
|
1744
|
+
"additionalProperties": {},
|
|
1745
|
+
"description": "Durable authorized event data delivered at least once. Deduplicate by id. An absent resourceId or revision means the event carries no corresponding resource or revision."
|
|
1746
|
+
},
|
|
1747
|
+
"ProviderRegistration": {
|
|
1748
|
+
"type": "object",
|
|
1749
|
+
"properties": {
|
|
1750
|
+
"id": {
|
|
1751
|
+
"$ref": "#/$defs/RecordId"
|
|
1752
|
+
},
|
|
1753
|
+
"profile": {
|
|
1754
|
+
"type": "string",
|
|
1755
|
+
"enum": [
|
|
1756
|
+
"monitoring",
|
|
1757
|
+
"docker-discovery",
|
|
1758
|
+
"load-balancer",
|
|
1759
|
+
"dns",
|
|
1760
|
+
"oidc",
|
|
1761
|
+
"crowdsec"
|
|
1762
|
+
]
|
|
1763
|
+
},
|
|
1764
|
+
"version": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"const": "1.0.0"
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
"required": [
|
|
1770
|
+
"id",
|
|
1771
|
+
"profile",
|
|
1772
|
+
"version"
|
|
1773
|
+
],
|
|
1774
|
+
"additionalProperties": false
|
|
1775
|
+
},
|
|
1776
|
+
"ProviderRequest": {
|
|
1777
|
+
"oneOf": [
|
|
1778
|
+
{
|
|
1779
|
+
"type": "object",
|
|
1780
|
+
"properties": {
|
|
1781
|
+
"profile": {
|
|
1782
|
+
"type": "string",
|
|
1783
|
+
"enum": [
|
|
1784
|
+
"monitoring"
|
|
1785
|
+
]
|
|
1786
|
+
},
|
|
1787
|
+
"payload": {
|
|
1788
|
+
"type": "object",
|
|
1789
|
+
"properties": {
|
|
1790
|
+
"limit": {
|
|
1791
|
+
"type": "integer",
|
|
1792
|
+
"minimum": 1,
|
|
1793
|
+
"maximum": 100
|
|
1794
|
+
}
|
|
1795
|
+
},
|
|
1796
|
+
"required": [
|
|
1797
|
+
"limit"
|
|
1798
|
+
],
|
|
1799
|
+
"additionalProperties": false
|
|
1800
|
+
}
|
|
1801
|
+
},
|
|
1802
|
+
"required": [
|
|
1803
|
+
"profile",
|
|
1804
|
+
"payload"
|
|
1805
|
+
],
|
|
1806
|
+
"additionalProperties": false
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"type": "object",
|
|
1810
|
+
"properties": {
|
|
1811
|
+
"profile": {
|
|
1812
|
+
"type": "string",
|
|
1813
|
+
"enum": [
|
|
1814
|
+
"docker-discovery"
|
|
1815
|
+
]
|
|
1816
|
+
},
|
|
1817
|
+
"payload": {
|
|
1818
|
+
"type": "object",
|
|
1819
|
+
"properties": {
|
|
1820
|
+
"connectionId": {
|
|
1821
|
+
"$ref": "#/$defs/RecordId"
|
|
1822
|
+
},
|
|
1823
|
+
"limit": {
|
|
1824
|
+
"type": "integer",
|
|
1825
|
+
"minimum": 1,
|
|
1826
|
+
"maximum": 100
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
"required": [
|
|
1830
|
+
"connectionId",
|
|
1831
|
+
"limit"
|
|
1832
|
+
],
|
|
1833
|
+
"additionalProperties": false,
|
|
1834
|
+
"description": "The connection must be assigned to the installation by the platform."
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
"required": [
|
|
1838
|
+
"profile",
|
|
1839
|
+
"payload"
|
|
1840
|
+
],
|
|
1841
|
+
"additionalProperties": false
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"type": "object",
|
|
1845
|
+
"properties": {
|
|
1846
|
+
"profile": {
|
|
1847
|
+
"type": "string",
|
|
1848
|
+
"enum": [
|
|
1849
|
+
"load-balancer"
|
|
1850
|
+
]
|
|
1851
|
+
},
|
|
1852
|
+
"payload": {
|
|
1853
|
+
"oneOf": [
|
|
1854
|
+
{
|
|
1855
|
+
"type": "object",
|
|
1856
|
+
"properties": {
|
|
1857
|
+
"action": {
|
|
1858
|
+
"type": "string",
|
|
1859
|
+
"const": "apply"
|
|
1860
|
+
},
|
|
1861
|
+
"contributionId": {
|
|
1862
|
+
"$ref": "#/$defs/RecordId"
|
|
1863
|
+
},
|
|
1864
|
+
"revision": {
|
|
1865
|
+
"type": "string",
|
|
1866
|
+
"pattern": "^[1-9][0-9]{0,19}$",
|
|
1867
|
+
"description": "Canonical positive decimal revision, ordered numerically within a contribution."
|
|
1868
|
+
},
|
|
1869
|
+
"policy": {
|
|
1870
|
+
"type": "string",
|
|
1871
|
+
"enum": [
|
|
1872
|
+
"roundRobin",
|
|
1873
|
+
"leastConnections"
|
|
1874
|
+
]
|
|
1875
|
+
},
|
|
1876
|
+
"upstreams": {
|
|
1877
|
+
"minItems": 1,
|
|
1878
|
+
"maxItems": 64,
|
|
1879
|
+
"type": "array",
|
|
1880
|
+
"items": {
|
|
1881
|
+
"type": "object",
|
|
1882
|
+
"properties": {
|
|
1883
|
+
"address": {
|
|
1884
|
+
"anyOf": [
|
|
1885
|
+
{
|
|
1886
|
+
"type": "string",
|
|
1887
|
+
"format": "ipv4",
|
|
1888
|
+
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"type": "string",
|
|
1892
|
+
"format": "ipv6"
|
|
1893
|
+
}
|
|
1894
|
+
]
|
|
1895
|
+
},
|
|
1896
|
+
"port": {
|
|
1897
|
+
"type": "integer",
|
|
1898
|
+
"minimum": 1,
|
|
1899
|
+
"maximum": 65535
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
"required": [
|
|
1903
|
+
"address",
|
|
1904
|
+
"port"
|
|
1905
|
+
],
|
|
1906
|
+
"additionalProperties": false
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
},
|
|
1910
|
+
"required": [
|
|
1911
|
+
"action",
|
|
1912
|
+
"contributionId",
|
|
1913
|
+
"revision",
|
|
1914
|
+
"policy",
|
|
1915
|
+
"upstreams"
|
|
1916
|
+
],
|
|
1917
|
+
"additionalProperties": false
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
"type": "object",
|
|
1921
|
+
"properties": {
|
|
1922
|
+
"action": {
|
|
1923
|
+
"type": "string",
|
|
1924
|
+
"const": "readStatus"
|
|
1925
|
+
},
|
|
1926
|
+
"contributionId": {
|
|
1927
|
+
"$ref": "#/$defs/RecordId"
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
"required": [
|
|
1931
|
+
"action",
|
|
1932
|
+
"contributionId"
|
|
1933
|
+
],
|
|
1934
|
+
"additionalProperties": false
|
|
1935
|
+
}
|
|
1936
|
+
]
|
|
1937
|
+
}
|
|
1938
|
+
},
|
|
1939
|
+
"required": [
|
|
1940
|
+
"profile",
|
|
1941
|
+
"payload"
|
|
1942
|
+
],
|
|
1943
|
+
"additionalProperties": false
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
"type": "object",
|
|
1947
|
+
"properties": {
|
|
1948
|
+
"profile": {
|
|
1949
|
+
"type": "string",
|
|
1950
|
+
"enum": [
|
|
1951
|
+
"dns"
|
|
1952
|
+
]
|
|
1953
|
+
},
|
|
1954
|
+
"payload": {
|
|
1955
|
+
"oneOf": [
|
|
1956
|
+
{
|
|
1957
|
+
"type": "object",
|
|
1958
|
+
"properties": {
|
|
1959
|
+
"action": {
|
|
1960
|
+
"type": "string",
|
|
1961
|
+
"const": "present"
|
|
1962
|
+
},
|
|
1963
|
+
"challengeId": {
|
|
1964
|
+
"$ref": "#/$defs/RecordId"
|
|
1965
|
+
},
|
|
1966
|
+
"zoneId": {
|
|
1967
|
+
"$ref": "#/$defs/RecordId"
|
|
1968
|
+
},
|
|
1969
|
+
"name": {
|
|
1970
|
+
"type": "string",
|
|
1971
|
+
"maxLength": 253,
|
|
1972
|
+
"pattern": "^(?:[a-z0-9_](?:[a-z0-9_-]{0,61}[a-z0-9_])?\\.)+[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$"
|
|
1973
|
+
},
|
|
1974
|
+
"value": {
|
|
1975
|
+
"type": "string",
|
|
1976
|
+
"pattern": "^[\\x20-\\x7e]{1,255}$"
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"required": [
|
|
1980
|
+
"action",
|
|
1981
|
+
"challengeId",
|
|
1982
|
+
"zoneId",
|
|
1983
|
+
"name",
|
|
1984
|
+
"value"
|
|
1985
|
+
],
|
|
1986
|
+
"additionalProperties": false
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
"type": "object",
|
|
1990
|
+
"properties": {
|
|
1991
|
+
"action": {
|
|
1992
|
+
"type": "string",
|
|
1993
|
+
"const": "check"
|
|
1994
|
+
},
|
|
1995
|
+
"challengeId": {
|
|
1996
|
+
"$ref": "#/$defs/RecordId"
|
|
1997
|
+
}
|
|
1998
|
+
},
|
|
1999
|
+
"required": [
|
|
2000
|
+
"action",
|
|
2001
|
+
"challengeId"
|
|
2002
|
+
],
|
|
2003
|
+
"additionalProperties": false
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"type": "object",
|
|
2007
|
+
"properties": {
|
|
2008
|
+
"action": {
|
|
2009
|
+
"type": "string",
|
|
2010
|
+
"const": "cleanup"
|
|
2011
|
+
},
|
|
2012
|
+
"challengeId": {
|
|
2013
|
+
"$ref": "#/$defs/RecordId"
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
2016
|
+
"required": [
|
|
2017
|
+
"action",
|
|
2018
|
+
"challengeId"
|
|
2019
|
+
],
|
|
2020
|
+
"additionalProperties": false
|
|
2021
|
+
}
|
|
2022
|
+
]
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
"required": [
|
|
2026
|
+
"profile",
|
|
2027
|
+
"payload"
|
|
2028
|
+
],
|
|
2029
|
+
"additionalProperties": false
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
"type": "object",
|
|
2033
|
+
"properties": {
|
|
2034
|
+
"profile": {
|
|
2035
|
+
"type": "string",
|
|
2036
|
+
"enum": [
|
|
2037
|
+
"oidc"
|
|
2038
|
+
]
|
|
2039
|
+
},
|
|
2040
|
+
"payload": {
|
|
2041
|
+
"type": "object",
|
|
2042
|
+
"properties": {
|
|
2043
|
+
"transactionId": {
|
|
2044
|
+
"$ref": "#/$defs/RecordId"
|
|
2045
|
+
}
|
|
2046
|
+
},
|
|
2047
|
+
"required": [
|
|
2048
|
+
"transactionId"
|
|
2049
|
+
],
|
|
2050
|
+
"additionalProperties": false,
|
|
2051
|
+
"description": "Resolve only the platform-brokered transaction bound to this installation."
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
"required": [
|
|
2055
|
+
"profile",
|
|
2056
|
+
"payload"
|
|
2057
|
+
],
|
|
2058
|
+
"additionalProperties": false
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"type": "object",
|
|
2062
|
+
"properties": {
|
|
2063
|
+
"profile": {
|
|
2064
|
+
"type": "string",
|
|
2065
|
+
"enum": [
|
|
2066
|
+
"crowdsec"
|
|
2067
|
+
]
|
|
2068
|
+
},
|
|
2069
|
+
"payload": {
|
|
2070
|
+
"oneOf": [
|
|
2071
|
+
{
|
|
2072
|
+
"type": "object",
|
|
2073
|
+
"properties": {
|
|
2074
|
+
"action": {
|
|
2075
|
+
"type": "string",
|
|
2076
|
+
"const": "consumeLogs"
|
|
2077
|
+
},
|
|
2078
|
+
"batchId": {
|
|
2079
|
+
"$ref": "#/$defs/RecordId"
|
|
2080
|
+
},
|
|
2081
|
+
"entries": {
|
|
2082
|
+
"minItems": 1,
|
|
2083
|
+
"maxItems": 100,
|
|
2084
|
+
"type": "array",
|
|
2085
|
+
"items": {
|
|
2086
|
+
"type": "object",
|
|
2087
|
+
"properties": {
|
|
2088
|
+
"proxyHostId": {
|
|
2089
|
+
"$ref": "#/$defs/RecordId"
|
|
2090
|
+
},
|
|
2091
|
+
"observedAt": {
|
|
2092
|
+
"type": "string",
|
|
2093
|
+
"format": "date-time",
|
|
2094
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
2095
|
+
"description": "UTC timestamp with exactly three fractional digits. Time and actor authority are verified by the caller."
|
|
2096
|
+
},
|
|
2097
|
+
"clientAddress": {
|
|
2098
|
+
"anyOf": [
|
|
2099
|
+
{
|
|
2100
|
+
"type": "string",
|
|
2101
|
+
"format": "ipv4",
|
|
2102
|
+
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"type": "string",
|
|
2106
|
+
"format": "ipv6"
|
|
2107
|
+
}
|
|
2108
|
+
]
|
|
2109
|
+
},
|
|
2110
|
+
"status": {
|
|
2111
|
+
"type": "integer",
|
|
2112
|
+
"minimum": 100,
|
|
2113
|
+
"maximum": 599
|
|
2114
|
+
}
|
|
2115
|
+
},
|
|
2116
|
+
"required": [
|
|
2117
|
+
"proxyHostId",
|
|
2118
|
+
"observedAt",
|
|
2119
|
+
"clientAddress",
|
|
2120
|
+
"status"
|
|
2121
|
+
],
|
|
2122
|
+
"additionalProperties": false
|
|
2123
|
+
},
|
|
2124
|
+
"description": "Platform-projected access events for proxy hosts granted to this installation."
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
"required": [
|
|
2128
|
+
"action",
|
|
2129
|
+
"batchId",
|
|
2130
|
+
"entries"
|
|
2131
|
+
],
|
|
2132
|
+
"additionalProperties": false
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"type": "object",
|
|
2136
|
+
"properties": {
|
|
2137
|
+
"action": {
|
|
2138
|
+
"type": "string",
|
|
2139
|
+
"const": "evaluate"
|
|
2140
|
+
},
|
|
2141
|
+
"proxyHostId": {
|
|
2142
|
+
"$ref": "#/$defs/RecordId"
|
|
2143
|
+
},
|
|
2144
|
+
"clientAddress": {
|
|
2145
|
+
"anyOf": [
|
|
2146
|
+
{
|
|
2147
|
+
"type": "string",
|
|
2148
|
+
"format": "ipv4",
|
|
2149
|
+
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
"type": "string",
|
|
2153
|
+
"format": "ipv6"
|
|
2154
|
+
}
|
|
2155
|
+
]
|
|
2156
|
+
}
|
|
2157
|
+
},
|
|
2158
|
+
"required": [
|
|
2159
|
+
"action",
|
|
2160
|
+
"proxyHostId",
|
|
2161
|
+
"clientAddress"
|
|
2162
|
+
],
|
|
2163
|
+
"additionalProperties": false
|
|
2164
|
+
}
|
|
2165
|
+
]
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
"required": [
|
|
2169
|
+
"profile",
|
|
2170
|
+
"payload"
|
|
2171
|
+
],
|
|
2172
|
+
"additionalProperties": false
|
|
2173
|
+
}
|
|
2174
|
+
]
|
|
2175
|
+
},
|
|
2176
|
+
"ProviderResult": {
|
|
2177
|
+
"oneOf": [
|
|
2178
|
+
{
|
|
2179
|
+
"type": "object",
|
|
2180
|
+
"properties": {
|
|
2181
|
+
"profile": {
|
|
2182
|
+
"type": "string",
|
|
2183
|
+
"enum": [
|
|
2184
|
+
"monitoring"
|
|
2185
|
+
]
|
|
2186
|
+
},
|
|
2187
|
+
"payload": {
|
|
2188
|
+
"type": "object",
|
|
2189
|
+
"properties": {
|
|
2190
|
+
"samples": {
|
|
2191
|
+
"maxItems": 100,
|
|
2192
|
+
"type": "array",
|
|
2193
|
+
"items": {
|
|
2194
|
+
"type": "object",
|
|
2195
|
+
"properties": {
|
|
2196
|
+
"serviceId": {
|
|
2197
|
+
"$ref": "#/$defs/RecordId"
|
|
2198
|
+
},
|
|
2199
|
+
"observedAt": {
|
|
2200
|
+
"type": "string",
|
|
2201
|
+
"format": "date-time",
|
|
2202
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
2203
|
+
"description": "UTC timestamp with exactly three fractional digits. Time and actor authority are verified by the caller."
|
|
2204
|
+
},
|
|
2205
|
+
"healthy": {
|
|
2206
|
+
"type": "boolean"
|
|
2207
|
+
}
|
|
2208
|
+
},
|
|
2209
|
+
"required": [
|
|
2210
|
+
"serviceId",
|
|
2211
|
+
"observedAt",
|
|
2212
|
+
"healthy"
|
|
2213
|
+
],
|
|
2214
|
+
"additionalProperties": {}
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
2218
|
+
"required": [
|
|
2219
|
+
"samples"
|
|
2220
|
+
],
|
|
2221
|
+
"additionalProperties": {},
|
|
2222
|
+
"description": "Read-only health samples up to the requested limit."
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
"required": [
|
|
2226
|
+
"profile",
|
|
2227
|
+
"payload"
|
|
2228
|
+
],
|
|
2229
|
+
"additionalProperties": {}
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"type": "object",
|
|
2233
|
+
"properties": {
|
|
2234
|
+
"profile": {
|
|
2235
|
+
"type": "string",
|
|
2236
|
+
"enum": [
|
|
2237
|
+
"docker-discovery"
|
|
2238
|
+
]
|
|
2239
|
+
},
|
|
2240
|
+
"payload": {
|
|
2241
|
+
"type": "object",
|
|
2242
|
+
"properties": {
|
|
2243
|
+
"connectionId": {
|
|
2244
|
+
"$ref": "#/$defs/RecordId"
|
|
2245
|
+
},
|
|
2246
|
+
"observations": {
|
|
2247
|
+
"maxItems": 100,
|
|
2248
|
+
"type": "array",
|
|
2249
|
+
"items": {
|
|
2250
|
+
"type": "object",
|
|
2251
|
+
"properties": {
|
|
2252
|
+
"workloadId": {
|
|
2253
|
+
"$ref": "#/$defs/RecordId"
|
|
2254
|
+
},
|
|
2255
|
+
"observedAt": {
|
|
2256
|
+
"type": "string",
|
|
2257
|
+
"format": "date-time",
|
|
2258
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
2259
|
+
"description": "UTC timestamp with exactly three fractional digits. Time and actor authority are verified by the caller."
|
|
2260
|
+
},
|
|
2261
|
+
"address": {
|
|
2262
|
+
"anyOf": [
|
|
2263
|
+
{
|
|
2264
|
+
"type": "string",
|
|
2265
|
+
"format": "ipv4",
|
|
2266
|
+
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
"type": "string",
|
|
2270
|
+
"format": "ipv6"
|
|
2271
|
+
}
|
|
2272
|
+
]
|
|
2273
|
+
},
|
|
2274
|
+
"port": {
|
|
2275
|
+
"type": "integer",
|
|
2276
|
+
"minimum": 1,
|
|
2277
|
+
"maximum": 65535
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
"required": [
|
|
2281
|
+
"workloadId",
|
|
2282
|
+
"observedAt",
|
|
2283
|
+
"address",
|
|
2284
|
+
"port"
|
|
2285
|
+
],
|
|
2286
|
+
"additionalProperties": {}
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2290
|
+
"required": [
|
|
2291
|
+
"connectionId",
|
|
2292
|
+
"observations"
|
|
2293
|
+
],
|
|
2294
|
+
"additionalProperties": {},
|
|
2295
|
+
"description": "Observations apply only to records owned by this installation and connection."
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
"required": [
|
|
2299
|
+
"profile",
|
|
2300
|
+
"payload"
|
|
2301
|
+
],
|
|
2302
|
+
"additionalProperties": {}
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"type": "object",
|
|
2306
|
+
"properties": {
|
|
2307
|
+
"profile": {
|
|
2308
|
+
"type": "string",
|
|
2309
|
+
"enum": [
|
|
2310
|
+
"load-balancer"
|
|
2311
|
+
]
|
|
2312
|
+
},
|
|
2313
|
+
"payload": {
|
|
2314
|
+
"type": "object",
|
|
2315
|
+
"properties": {
|
|
2316
|
+
"contributionId": {
|
|
2317
|
+
"$ref": "#/$defs/RecordId"
|
|
2318
|
+
},
|
|
2319
|
+
"revisionStatus": {
|
|
2320
|
+
"oneOf": [
|
|
2321
|
+
{
|
|
2322
|
+
"type": "object",
|
|
2323
|
+
"properties": {
|
|
2324
|
+
"status": {
|
|
2325
|
+
"type": "string",
|
|
2326
|
+
"const": "applied"
|
|
2327
|
+
},
|
|
2328
|
+
"appliedRevision": {
|
|
2329
|
+
"type": "string",
|
|
2330
|
+
"pattern": "^[1-9][0-9]{0,19}$",
|
|
2331
|
+
"description": "Canonical positive decimal revision, ordered numerically within a contribution."
|
|
2332
|
+
}
|
|
2333
|
+
},
|
|
2334
|
+
"required": [
|
|
2335
|
+
"status",
|
|
2336
|
+
"appliedRevision"
|
|
2337
|
+
],
|
|
2338
|
+
"additionalProperties": {}
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
"type": "object",
|
|
2342
|
+
"properties": {
|
|
2343
|
+
"status": {
|
|
2344
|
+
"type": "string",
|
|
2345
|
+
"enum": [
|
|
2346
|
+
"unchanged",
|
|
2347
|
+
"rejected",
|
|
2348
|
+
"unavailable"
|
|
2349
|
+
]
|
|
2350
|
+
},
|
|
2351
|
+
"appliedRevision": {
|
|
2352
|
+
"anyOf": [
|
|
2353
|
+
{
|
|
2354
|
+
"type": "string",
|
|
2355
|
+
"pattern": "^[1-9][0-9]{0,19}$",
|
|
2356
|
+
"description": "Canonical positive decimal revision, ordered numerically within a contribution."
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"type": "null"
|
|
2360
|
+
}
|
|
2361
|
+
]
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
"required": [
|
|
2365
|
+
"status",
|
|
2366
|
+
"appliedRevision"
|
|
2367
|
+
],
|
|
2368
|
+
"additionalProperties": {}
|
|
2369
|
+
}
|
|
2370
|
+
]
|
|
2371
|
+
}
|
|
2372
|
+
},
|
|
2373
|
+
"required": [
|
|
2374
|
+
"contributionId",
|
|
2375
|
+
"revisionStatus"
|
|
2376
|
+
],
|
|
2377
|
+
"additionalProperties": {},
|
|
2378
|
+
"description": "A stale, invalid, or unavailable update leaves the last applied revision intact."
|
|
2379
|
+
}
|
|
2380
|
+
},
|
|
2381
|
+
"required": [
|
|
2382
|
+
"profile",
|
|
2383
|
+
"payload"
|
|
2384
|
+
],
|
|
2385
|
+
"additionalProperties": {}
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
"type": "object",
|
|
2389
|
+
"properties": {
|
|
2390
|
+
"profile": {
|
|
2391
|
+
"type": "string",
|
|
2392
|
+
"enum": [
|
|
2393
|
+
"dns"
|
|
2394
|
+
]
|
|
2395
|
+
},
|
|
2396
|
+
"payload": {
|
|
2397
|
+
"oneOf": [
|
|
2398
|
+
{
|
|
2399
|
+
"type": "object",
|
|
2400
|
+
"properties": {
|
|
2401
|
+
"action": {
|
|
2402
|
+
"type": "string",
|
|
2403
|
+
"enum": [
|
|
2404
|
+
"present",
|
|
2405
|
+
"cleanup"
|
|
2406
|
+
]
|
|
2407
|
+
},
|
|
2408
|
+
"challengeId": {
|
|
2409
|
+
"$ref": "#/$defs/RecordId"
|
|
2410
|
+
},
|
|
2411
|
+
"operation": {
|
|
2412
|
+
"$ref": "#/$defs/Operation"
|
|
2413
|
+
}
|
|
2414
|
+
},
|
|
2415
|
+
"required": [
|
|
2416
|
+
"action",
|
|
2417
|
+
"challengeId",
|
|
2418
|
+
"operation"
|
|
2419
|
+
],
|
|
2420
|
+
"additionalProperties": {}
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
"type": "object",
|
|
2424
|
+
"properties": {
|
|
2425
|
+
"action": {
|
|
2426
|
+
"type": "string",
|
|
2427
|
+
"const": "check"
|
|
2428
|
+
},
|
|
2429
|
+
"challengeId": {
|
|
2430
|
+
"$ref": "#/$defs/RecordId"
|
|
2431
|
+
},
|
|
2432
|
+
"outcome": {
|
|
2433
|
+
"type": "string",
|
|
2434
|
+
"enum": [
|
|
2435
|
+
"verified",
|
|
2436
|
+
"missing",
|
|
2437
|
+
"unavailable"
|
|
2438
|
+
]
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
2441
|
+
"required": [
|
|
2442
|
+
"action",
|
|
2443
|
+
"challengeId",
|
|
2444
|
+
"outcome"
|
|
2445
|
+
],
|
|
2446
|
+
"additionalProperties": {}
|
|
2447
|
+
}
|
|
2448
|
+
],
|
|
2449
|
+
"description": "Presentation and cleanup are bound to an owned challenge. A failure preserves the serving certificate."
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2452
|
+
"required": [
|
|
2453
|
+
"profile",
|
|
2454
|
+
"payload"
|
|
2455
|
+
],
|
|
2456
|
+
"additionalProperties": {}
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"type": "object",
|
|
2460
|
+
"properties": {
|
|
2461
|
+
"profile": {
|
|
2462
|
+
"type": "string",
|
|
2463
|
+
"enum": [
|
|
2464
|
+
"oidc"
|
|
2465
|
+
]
|
|
2466
|
+
},
|
|
2467
|
+
"payload": {
|
|
2468
|
+
"oneOf": [
|
|
2469
|
+
{
|
|
2470
|
+
"type": "object",
|
|
2471
|
+
"properties": {
|
|
2472
|
+
"outcome": {
|
|
2473
|
+
"type": "string",
|
|
2474
|
+
"const": "verified"
|
|
2475
|
+
},
|
|
2476
|
+
"transactionId": {
|
|
2477
|
+
"$ref": "#/$defs/RecordId"
|
|
2478
|
+
},
|
|
2479
|
+
"identity": {
|
|
2480
|
+
"type": "object",
|
|
2481
|
+
"properties": {
|
|
2482
|
+
"subject": {
|
|
2483
|
+
"type": "string",
|
|
2484
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}]{1,255}$"
|
|
2485
|
+
},
|
|
2486
|
+
"groups": {
|
|
2487
|
+
"maxItems": 64,
|
|
2488
|
+
"type": "array",
|
|
2489
|
+
"items": {
|
|
2490
|
+
"type": "string",
|
|
2491
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}]{1,255}$"
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
"required": [
|
|
2496
|
+
"subject",
|
|
2497
|
+
"groups"
|
|
2498
|
+
],
|
|
2499
|
+
"additionalProperties": {}
|
|
2500
|
+
}
|
|
2501
|
+
},
|
|
2502
|
+
"required": [
|
|
2503
|
+
"outcome",
|
|
2504
|
+
"transactionId",
|
|
2505
|
+
"identity"
|
|
2506
|
+
],
|
|
2507
|
+
"additionalProperties": {}
|
|
2508
|
+
},
|
|
2509
|
+
{
|
|
2510
|
+
"type": "object",
|
|
2511
|
+
"properties": {
|
|
2512
|
+
"outcome": {
|
|
2513
|
+
"type": "string",
|
|
2514
|
+
"enum": [
|
|
2515
|
+
"invalid",
|
|
2516
|
+
"unavailable"
|
|
2517
|
+
]
|
|
2518
|
+
},
|
|
2519
|
+
"transactionId": {
|
|
2520
|
+
"$ref": "#/$defs/RecordId"
|
|
2521
|
+
}
|
|
2522
|
+
},
|
|
2523
|
+
"required": [
|
|
2524
|
+
"outcome",
|
|
2525
|
+
"transactionId"
|
|
2526
|
+
],
|
|
2527
|
+
"additionalProperties": {}
|
|
2528
|
+
}
|
|
2529
|
+
],
|
|
2530
|
+
"description": "The verified identity is a proposal. Session issuance and authorization stay with the platform."
|
|
2531
|
+
}
|
|
2532
|
+
},
|
|
2533
|
+
"required": [
|
|
2534
|
+
"profile",
|
|
2535
|
+
"payload"
|
|
2536
|
+
],
|
|
2537
|
+
"additionalProperties": {}
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"type": "object",
|
|
2541
|
+
"properties": {
|
|
2542
|
+
"profile": {
|
|
2543
|
+
"type": "string",
|
|
2544
|
+
"enum": [
|
|
2545
|
+
"crowdsec"
|
|
2546
|
+
]
|
|
2547
|
+
},
|
|
2548
|
+
"payload": {
|
|
2549
|
+
"oneOf": [
|
|
2550
|
+
{
|
|
2551
|
+
"type": "object",
|
|
2552
|
+
"properties": {
|
|
2553
|
+
"action": {
|
|
2554
|
+
"type": "string",
|
|
2555
|
+
"const": "consumeLogs"
|
|
2556
|
+
},
|
|
2557
|
+
"batchId": {
|
|
2558
|
+
"$ref": "#/$defs/RecordId"
|
|
2559
|
+
},
|
|
2560
|
+
"outcome": {
|
|
2561
|
+
"type": "string",
|
|
2562
|
+
"enum": [
|
|
2563
|
+
"processed",
|
|
2564
|
+
"unavailable"
|
|
2565
|
+
]
|
|
2566
|
+
}
|
|
2567
|
+
},
|
|
2568
|
+
"required": [
|
|
2569
|
+
"action",
|
|
2570
|
+
"batchId",
|
|
2571
|
+
"outcome"
|
|
2572
|
+
],
|
|
2573
|
+
"additionalProperties": {}
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
"type": "object",
|
|
2577
|
+
"properties": {
|
|
2578
|
+
"action": {
|
|
2579
|
+
"type": "string",
|
|
2580
|
+
"const": "evaluate"
|
|
2581
|
+
},
|
|
2582
|
+
"decision": {
|
|
2583
|
+
"oneOf": [
|
|
2584
|
+
{
|
|
2585
|
+
"type": "object",
|
|
2586
|
+
"properties": {
|
|
2587
|
+
"outcome": {
|
|
2588
|
+
"type": "string",
|
|
2589
|
+
"const": "allow"
|
|
2590
|
+
},
|
|
2591
|
+
"allowed": {
|
|
2592
|
+
"type": "boolean",
|
|
2593
|
+
"const": true
|
|
2594
|
+
},
|
|
2595
|
+
"cachedBlock": {
|
|
2596
|
+
"type": "boolean",
|
|
2597
|
+
"const": false
|
|
2598
|
+
}
|
|
2599
|
+
},
|
|
2600
|
+
"required": [
|
|
2601
|
+
"outcome",
|
|
2602
|
+
"allowed",
|
|
2603
|
+
"cachedBlock"
|
|
2604
|
+
],
|
|
2605
|
+
"additionalProperties": {}
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
"type": "object",
|
|
2609
|
+
"properties": {
|
|
2610
|
+
"outcome": {
|
|
2611
|
+
"type": "string",
|
|
2612
|
+
"const": "deny"
|
|
2613
|
+
},
|
|
2614
|
+
"allowed": {
|
|
2615
|
+
"type": "boolean",
|
|
2616
|
+
"const": false
|
|
2617
|
+
},
|
|
2618
|
+
"cachedBlock": {
|
|
2619
|
+
"type": "boolean",
|
|
2620
|
+
"const": true
|
|
2621
|
+
}
|
|
2622
|
+
},
|
|
2623
|
+
"required": [
|
|
2624
|
+
"outcome",
|
|
2625
|
+
"allowed",
|
|
2626
|
+
"cachedBlock"
|
|
2627
|
+
],
|
|
2628
|
+
"additionalProperties": {}
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
"type": "object",
|
|
2632
|
+
"properties": {
|
|
2633
|
+
"outcome": {
|
|
2634
|
+
"type": "string",
|
|
2635
|
+
"const": "unavailable"
|
|
2636
|
+
},
|
|
2637
|
+
"allowed": {
|
|
2638
|
+
"type": "boolean",
|
|
2639
|
+
"const": false
|
|
2640
|
+
},
|
|
2641
|
+
"cachedBlock": {
|
|
2642
|
+
"type": "boolean"
|
|
2643
|
+
}
|
|
2644
|
+
},
|
|
2645
|
+
"required": [
|
|
2646
|
+
"outcome",
|
|
2647
|
+
"allowed",
|
|
2648
|
+
"cachedBlock"
|
|
2649
|
+
],
|
|
2650
|
+
"additionalProperties": {}
|
|
2651
|
+
}
|
|
2652
|
+
],
|
|
2653
|
+
"description": "Unavailability confirms no allow decision and preserves any cached block."
|
|
2654
|
+
}
|
|
2655
|
+
},
|
|
2656
|
+
"required": [
|
|
2657
|
+
"action",
|
|
2658
|
+
"decision"
|
|
2659
|
+
],
|
|
2660
|
+
"additionalProperties": {}
|
|
2661
|
+
}
|
|
2662
|
+
]
|
|
2663
|
+
}
|
|
2664
|
+
},
|
|
2665
|
+
"required": [
|
|
2666
|
+
"profile",
|
|
2667
|
+
"payload"
|
|
2668
|
+
],
|
|
2669
|
+
"additionalProperties": {}
|
|
2670
|
+
}
|
|
2671
|
+
]
|
|
2672
|
+
},
|
|
2673
|
+
"AppApiPayload": {
|
|
2674
|
+
"type": "object",
|
|
2675
|
+
"propertyNames": {
|
|
2676
|
+
"type": "string"
|
|
2677
|
+
},
|
|
2678
|
+
"additionalProperties": {
|
|
2679
|
+
"$ref": "#/$defs/JsonValue"
|
|
2680
|
+
},
|
|
2681
|
+
"description": "A bounded JSON object. The gateway and app validate its content against the installed operation schema."
|
|
2682
|
+
},
|
|
2683
|
+
"ProxyHostQuery": {
|
|
2684
|
+
"type": "object",
|
|
2685
|
+
"properties": {
|
|
2686
|
+
"limit": {
|
|
2687
|
+
"type": "integer",
|
|
2688
|
+
"minimum": 1,
|
|
2689
|
+
"maximum": 100
|
|
2690
|
+
},
|
|
2691
|
+
"cursor": {
|
|
2692
|
+
"type": "string",
|
|
2693
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2696
|
+
"required": [
|
|
2697
|
+
"limit"
|
|
2698
|
+
],
|
|
2699
|
+
"additionalProperties": false
|
|
2700
|
+
},
|
|
2701
|
+
"ProxyHostPage": {
|
|
2702
|
+
"type": "object",
|
|
2703
|
+
"properties": {
|
|
2704
|
+
"hosts": {
|
|
2705
|
+
"maxItems": 100,
|
|
2706
|
+
"type": "array",
|
|
2707
|
+
"items": {
|
|
2708
|
+
"type": "object",
|
|
2709
|
+
"properties": {
|
|
2710
|
+
"id": {
|
|
2711
|
+
"$ref": "#/$defs/RecordId"
|
|
2712
|
+
},
|
|
2713
|
+
"revision": {
|
|
2714
|
+
"$ref": "#/$defs/RecordId"
|
|
2715
|
+
},
|
|
2716
|
+
"hostname": {
|
|
2717
|
+
"type": "string",
|
|
2718
|
+
"maxLength": 253,
|
|
2719
|
+
"pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
2720
|
+
"description": "Lowercase ASCII hostname. Encode international names as A-labels."
|
|
2721
|
+
},
|
|
2722
|
+
"enabled": {
|
|
2723
|
+
"description": "Whether the host serves traffic. Platforms that serve diagnostics.upstream.probe.v2 always include it.",
|
|
2724
|
+
"type": "boolean"
|
|
2725
|
+
},
|
|
2726
|
+
"domains": {
|
|
2727
|
+
"description": "Every domain of the host in ascending order. Platforms that serve diagnostics.upstream.probe.v2 always include it; a probe names one of these domains that is not a wildcard.",
|
|
2728
|
+
"minItems": 1,
|
|
2729
|
+
"type": "array",
|
|
2730
|
+
"items": {
|
|
2731
|
+
"type": "string",
|
|
2732
|
+
"maxLength": 255,
|
|
2733
|
+
"pattern": "^(?:\\*\\.)?(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
2734
|
+
"description": "Lowercase ASCII domain, optionally with a leading wildcard label."
|
|
2735
|
+
}
|
|
2736
|
+
},
|
|
2737
|
+
"probeRevision": {
|
|
2738
|
+
"description": "Changes only when something an upstream probe observes changes. Platforms that serve diagnostics.upstream.probe.v2 always include it, and each probe result carries the value from when the probe ran.",
|
|
2739
|
+
"type": "string",
|
|
2740
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
2741
|
+
}
|
|
2742
|
+
},
|
|
2743
|
+
"required": [
|
|
2744
|
+
"id",
|
|
2745
|
+
"revision",
|
|
2746
|
+
"hostname"
|
|
2747
|
+
],
|
|
2748
|
+
"additionalProperties": {}
|
|
2749
|
+
}
|
|
2750
|
+
},
|
|
2751
|
+
"nextCursor": {
|
|
2752
|
+
"type": "string",
|
|
2753
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
2754
|
+
}
|
|
2755
|
+
},
|
|
2756
|
+
"required": [
|
|
2757
|
+
"hosts"
|
|
2758
|
+
],
|
|
2759
|
+
"additionalProperties": {}
|
|
2760
|
+
},
|
|
2761
|
+
"OwnedProxyHostChange": {
|
|
2762
|
+
"oneOf": [
|
|
2763
|
+
{
|
|
2764
|
+
"type": "object",
|
|
2765
|
+
"properties": {
|
|
2766
|
+
"action": {
|
|
2767
|
+
"type": "string",
|
|
2768
|
+
"const": "upsert"
|
|
2769
|
+
},
|
|
2770
|
+
"hostId": {
|
|
2771
|
+
"$ref": "#/$defs/RecordId"
|
|
2772
|
+
},
|
|
2773
|
+
"expectedRevision": {
|
|
2774
|
+
"anyOf": [
|
|
2775
|
+
{
|
|
2776
|
+
"$ref": "#/$defs/RecordId"
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
"type": "null"
|
|
2780
|
+
}
|
|
2781
|
+
],
|
|
2782
|
+
"description": "Null requires that the host does not yet exist."
|
|
2783
|
+
},
|
|
2784
|
+
"hostname": {
|
|
2785
|
+
"type": "string",
|
|
2786
|
+
"maxLength": 253,
|
|
2787
|
+
"pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
2788
|
+
"description": "Lowercase ASCII hostname. Encode international names as A-labels."
|
|
2789
|
+
},
|
|
2790
|
+
"upstream": {
|
|
2791
|
+
"type": "object",
|
|
2792
|
+
"properties": {
|
|
2793
|
+
"scheme": {
|
|
2794
|
+
"type": "string",
|
|
2795
|
+
"enum": [
|
|
2796
|
+
"http",
|
|
2797
|
+
"https"
|
|
2798
|
+
]
|
|
2799
|
+
},
|
|
2800
|
+
"address": {
|
|
2801
|
+
"anyOf": [
|
|
2802
|
+
{
|
|
2803
|
+
"type": "string",
|
|
2804
|
+
"format": "ipv4",
|
|
2805
|
+
"pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
"type": "string",
|
|
2809
|
+
"format": "ipv6"
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
"type": "string",
|
|
2813
|
+
"maxLength": 253,
|
|
2814
|
+
"pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
2815
|
+
"description": "Lowercase ASCII hostname. Encode international names as A-labels."
|
|
2816
|
+
}
|
|
2817
|
+
]
|
|
2818
|
+
},
|
|
2819
|
+
"port": {
|
|
2820
|
+
"type": "integer",
|
|
2821
|
+
"minimum": 1,
|
|
2822
|
+
"maximum": 65535
|
|
2823
|
+
}
|
|
2824
|
+
},
|
|
2825
|
+
"required": [
|
|
2826
|
+
"scheme",
|
|
2827
|
+
"address",
|
|
2828
|
+
"port"
|
|
2829
|
+
],
|
|
2830
|
+
"additionalProperties": false
|
|
2831
|
+
}
|
|
2832
|
+
},
|
|
2833
|
+
"required": [
|
|
2834
|
+
"action",
|
|
2835
|
+
"hostId",
|
|
2836
|
+
"expectedRevision",
|
|
2837
|
+
"hostname",
|
|
2838
|
+
"upstream"
|
|
2839
|
+
],
|
|
2840
|
+
"additionalProperties": false
|
|
2841
|
+
},
|
|
2842
|
+
{
|
|
2843
|
+
"type": "object",
|
|
2844
|
+
"properties": {
|
|
2845
|
+
"action": {
|
|
2846
|
+
"type": "string",
|
|
2847
|
+
"const": "remove"
|
|
2848
|
+
},
|
|
2849
|
+
"hostId": {
|
|
2850
|
+
"$ref": "#/$defs/RecordId"
|
|
2851
|
+
},
|
|
2852
|
+
"expectedRevision": {
|
|
2853
|
+
"$ref": "#/$defs/RecordId"
|
|
2854
|
+
}
|
|
2855
|
+
},
|
|
2856
|
+
"required": [
|
|
2857
|
+
"action",
|
|
2858
|
+
"hostId",
|
|
2859
|
+
"expectedRevision"
|
|
2860
|
+
],
|
|
2861
|
+
"additionalProperties": false
|
|
2862
|
+
}
|
|
2863
|
+
]
|
|
2864
|
+
},
|
|
2865
|
+
"UpstreamProbe": {
|
|
2866
|
+
"type": "object",
|
|
2867
|
+
"properties": {
|
|
2868
|
+
"hostId": {
|
|
2869
|
+
"$ref": "#/$defs/RecordId"
|
|
2870
|
+
},
|
|
2871
|
+
"timeoutMs": {
|
|
2872
|
+
"type": "integer",
|
|
2873
|
+
"minimum": 1,
|
|
2874
|
+
"maximum": 10000
|
|
2875
|
+
}
|
|
2876
|
+
},
|
|
2877
|
+
"required": [
|
|
2878
|
+
"hostId",
|
|
2879
|
+
"timeoutMs"
|
|
2880
|
+
],
|
|
2881
|
+
"additionalProperties": false
|
|
2882
|
+
},
|
|
2883
|
+
"UpstreamProbeResult": {
|
|
2884
|
+
"oneOf": [
|
|
2885
|
+
{
|
|
2886
|
+
"type": "object",
|
|
2887
|
+
"properties": {
|
|
2888
|
+
"outcome": {
|
|
2889
|
+
"type": "string",
|
|
2890
|
+
"const": "reachable"
|
|
2891
|
+
},
|
|
2892
|
+
"durationMs": {
|
|
2893
|
+
"type": "integer",
|
|
2894
|
+
"minimum": 0,
|
|
2895
|
+
"maximum": 10000
|
|
2896
|
+
}
|
|
2897
|
+
},
|
|
2898
|
+
"required": [
|
|
2899
|
+
"outcome",
|
|
2900
|
+
"durationMs"
|
|
2901
|
+
],
|
|
2902
|
+
"additionalProperties": {}
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
"type": "object",
|
|
2906
|
+
"properties": {
|
|
2907
|
+
"outcome": {
|
|
2908
|
+
"type": "string",
|
|
2909
|
+
"enum": [
|
|
2910
|
+
"unreachable",
|
|
2911
|
+
"timedOut"
|
|
2912
|
+
]
|
|
2913
|
+
}
|
|
2914
|
+
},
|
|
2915
|
+
"required": [
|
|
2916
|
+
"outcome"
|
|
2917
|
+
],
|
|
2918
|
+
"additionalProperties": {}
|
|
2919
|
+
}
|
|
2920
|
+
]
|
|
2921
|
+
},
|
|
2922
|
+
"UpstreamProbeBatch": {
|
|
2923
|
+
"type": "object",
|
|
2924
|
+
"properties": {
|
|
2925
|
+
"probes": {
|
|
2926
|
+
"minItems": 1,
|
|
2927
|
+
"maxItems": 32,
|
|
2928
|
+
"type": "array",
|
|
2929
|
+
"items": {
|
|
2930
|
+
"type": "object",
|
|
2931
|
+
"properties": {
|
|
2932
|
+
"hostId": {
|
|
2933
|
+
"description": "Host ID from the proxy host listing.",
|
|
2934
|
+
"$ref": "#/$defs/RecordId"
|
|
2935
|
+
},
|
|
2936
|
+
"domain": {
|
|
2937
|
+
"type": "string",
|
|
2938
|
+
"maxLength": 253,
|
|
2939
|
+
"pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
2940
|
+
"description": "One of the listed domains of the host, sent to the upstream like a request for that domain. Wildcard domains cannot be probed."
|
|
2941
|
+
},
|
|
2942
|
+
"timeoutMs": {
|
|
2943
|
+
"type": "integer",
|
|
2944
|
+
"minimum": 1000,
|
|
2945
|
+
"maximum": 8000,
|
|
2946
|
+
"description": "Upstream deadline in milliseconds. It leaves room for the platform checks within the App API request deadline."
|
|
2947
|
+
}
|
|
2948
|
+
},
|
|
2949
|
+
"required": [
|
|
2950
|
+
"hostId",
|
|
2951
|
+
"domain",
|
|
2952
|
+
"timeoutMs"
|
|
2953
|
+
],
|
|
2954
|
+
"additionalProperties": false
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
},
|
|
2958
|
+
"required": [
|
|
2959
|
+
"probes"
|
|
2960
|
+
],
|
|
2961
|
+
"additionalProperties": false,
|
|
2962
|
+
"description": "Probe hosts that a diagnostics.upstream.probe.v2 grant covers, each through the domain the app chooses from the listing. The SDK checks that each host appears once. The platform admits every probe with monitoring-class capacity separate from interactive Domain Checks, against a budget of this installation sized for 1,000 hosts probed every 60 seconds."
|
|
2963
|
+
},
|
|
2964
|
+
"UpstreamProbeOutcome": {
|
|
2965
|
+
"oneOf": [
|
|
2966
|
+
{
|
|
2967
|
+
"type": "object",
|
|
2968
|
+
"properties": {
|
|
2969
|
+
"outcome": {
|
|
2970
|
+
"type": "string",
|
|
2971
|
+
"const": "probed"
|
|
2972
|
+
},
|
|
2973
|
+
"hostId": {
|
|
2974
|
+
"description": "Host ID from the proxy host listing.",
|
|
2975
|
+
"$ref": "#/$defs/RecordId"
|
|
2976
|
+
},
|
|
2977
|
+
"domain": {
|
|
2978
|
+
"type": "string",
|
|
2979
|
+
"maxLength": 253,
|
|
2980
|
+
"pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
2981
|
+
"description": "One of the listed domains of the host, sent to the upstream like a request for that domain. Wildcard domains cannot be probed."
|
|
2982
|
+
},
|
|
2983
|
+
"probeRevision": {
|
|
2984
|
+
"type": "string",
|
|
2985
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
2986
|
+
"description": "Equals the probeRevision of the host in the listing when the probe ran. A different value means that something the probe observes changed since the host was listed."
|
|
2987
|
+
},
|
|
2988
|
+
"durationMs": {
|
|
2989
|
+
"type": "integer",
|
|
2990
|
+
"minimum": 0,
|
|
2991
|
+
"maximum": 12000,
|
|
2992
|
+
"description": "Duration of the upstream stage."
|
|
2993
|
+
},
|
|
2994
|
+
"httpStatus": {
|
|
2995
|
+
"anyOf": [
|
|
2996
|
+
{
|
|
2997
|
+
"type": "integer",
|
|
2998
|
+
"minimum": 100,
|
|
2999
|
+
"maximum": 599
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"type": "null"
|
|
3003
|
+
}
|
|
3004
|
+
],
|
|
3005
|
+
"description": "Status of the upstream response, or null without one. Compare it with the expected status only when failure is null. Built-in monitoring accepts exactly the expected status, and any 2xx or 3xx status while the expected status is the default 200."
|
|
3006
|
+
},
|
|
3007
|
+
"failure": {
|
|
3008
|
+
"anyOf": [
|
|
3009
|
+
{
|
|
3010
|
+
"oneOf": [
|
|
3011
|
+
{
|
|
3012
|
+
"type": "object",
|
|
3013
|
+
"properties": {
|
|
3014
|
+
"stage": {
|
|
3015
|
+
"type": "string",
|
|
3016
|
+
"const": "configuration"
|
|
3017
|
+
},
|
|
3018
|
+
"code": {
|
|
3019
|
+
"type": "string",
|
|
3020
|
+
"enum": [
|
|
3021
|
+
"configuration_stale",
|
|
3022
|
+
"configuration_changed",
|
|
3023
|
+
"host_not_active",
|
|
3024
|
+
"runtime_unavailable"
|
|
3025
|
+
]
|
|
3026
|
+
}
|
|
3027
|
+
},
|
|
3028
|
+
"required": [
|
|
3029
|
+
"stage",
|
|
3030
|
+
"code"
|
|
3031
|
+
],
|
|
3032
|
+
"additionalProperties": {}
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
"type": "object",
|
|
3036
|
+
"properties": {
|
|
3037
|
+
"stage": {
|
|
3038
|
+
"type": "string",
|
|
3039
|
+
"const": "tls"
|
|
3040
|
+
},
|
|
3041
|
+
"code": {
|
|
3042
|
+
"type": "string",
|
|
3043
|
+
"const": "tls_failed"
|
|
3044
|
+
}
|
|
3045
|
+
},
|
|
3046
|
+
"required": [
|
|
3047
|
+
"stage",
|
|
3048
|
+
"code"
|
|
3049
|
+
],
|
|
3050
|
+
"additionalProperties": {}
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
"type": "object",
|
|
3054
|
+
"properties": {
|
|
3055
|
+
"stage": {
|
|
3056
|
+
"type": "string",
|
|
3057
|
+
"const": "upstream"
|
|
3058
|
+
},
|
|
3059
|
+
"code": {
|
|
3060
|
+
"type": "string",
|
|
3061
|
+
"enum": [
|
|
3062
|
+
"upstream_unreachable",
|
|
3063
|
+
"upstream_timeout",
|
|
3064
|
+
"upstream_dns_failed",
|
|
3065
|
+
"upstream_responded",
|
|
3066
|
+
"access_denied",
|
|
3067
|
+
"upstream_error",
|
|
3068
|
+
"redirect_not_followed",
|
|
3069
|
+
"unexpected_status",
|
|
3070
|
+
"redirect_host",
|
|
3071
|
+
"wildcard_domain",
|
|
3072
|
+
"skipped"
|
|
3073
|
+
]
|
|
3074
|
+
}
|
|
3075
|
+
},
|
|
3076
|
+
"required": [
|
|
3077
|
+
"stage",
|
|
3078
|
+
"code"
|
|
3079
|
+
],
|
|
3080
|
+
"additionalProperties": {}
|
|
3081
|
+
}
|
|
3082
|
+
],
|
|
3083
|
+
"description": "The first stage that prevented a usable upstream response, checked in this order: the active proxy configuration did not serve the host and domain, upstream TLS verification failed, or the upstream sent no HTTP response. Built-in monitoring reports configuration failures as unknown, tls_failed and the upstream codes upstream_unreachable, upstream_timeout and upstream_dns_failed as unhealthy, and any other upstream code as an invalid response."
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
"type": "null"
|
|
3087
|
+
}
|
|
3088
|
+
]
|
|
3089
|
+
}
|
|
3090
|
+
},
|
|
3091
|
+
"required": [
|
|
3092
|
+
"outcome",
|
|
3093
|
+
"hostId",
|
|
3094
|
+
"domain",
|
|
3095
|
+
"probeRevision",
|
|
3096
|
+
"durationMs",
|
|
3097
|
+
"httpStatus",
|
|
3098
|
+
"failure"
|
|
3099
|
+
],
|
|
3100
|
+
"additionalProperties": {}
|
|
3101
|
+
},
|
|
3102
|
+
{
|
|
3103
|
+
"type": "object",
|
|
3104
|
+
"properties": {
|
|
3105
|
+
"outcome": {
|
|
3106
|
+
"type": "string",
|
|
3107
|
+
"enum": [
|
|
3108
|
+
"scopeDenied",
|
|
3109
|
+
"hostRemoved",
|
|
3110
|
+
"hostDisabled",
|
|
3111
|
+
"domainNotFound",
|
|
3112
|
+
"configurationChanged",
|
|
3113
|
+
"busy",
|
|
3114
|
+
"rateLimited",
|
|
3115
|
+
"unavailable"
|
|
3116
|
+
],
|
|
3117
|
+
"description": "The probe did not run or its result was discarded. scopeDenied: the grant no longer covers the host. hostRemoved, hostDisabled and domainNotFound: list the hosts again. configurationChanged: the host or proxy configuration changed during the probe; discard it. busy: monitoring-class capacity is in use or a probe of the same host is running. rateLimited: this installation exhausted its probe budget. unavailable: the proxy runtime cannot run probes. Retry busy, rateLimited and unavailable later with backoff."
|
|
3118
|
+
},
|
|
3119
|
+
"hostId": {
|
|
3120
|
+
"description": "Host ID from the proxy host listing.",
|
|
3121
|
+
"$ref": "#/$defs/RecordId"
|
|
3122
|
+
},
|
|
3123
|
+
"domain": {
|
|
3124
|
+
"type": "string",
|
|
3125
|
+
"maxLength": 253,
|
|
3126
|
+
"pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
|
|
3127
|
+
"description": "One of the listed domains of the host, sent to the upstream like a request for that domain. Wildcard domains cannot be probed."
|
|
3128
|
+
}
|
|
3129
|
+
},
|
|
3130
|
+
"required": [
|
|
3131
|
+
"outcome",
|
|
3132
|
+
"hostId",
|
|
3133
|
+
"domain"
|
|
3134
|
+
],
|
|
3135
|
+
"additionalProperties": {}
|
|
3136
|
+
}
|
|
3137
|
+
],
|
|
3138
|
+
"description": "The result of one probe."
|
|
3139
|
+
},
|
|
3140
|
+
"UpstreamProbeBatchResult": {
|
|
3141
|
+
"type": "object",
|
|
3142
|
+
"properties": {
|
|
3143
|
+
"results": {
|
|
3144
|
+
"minItems": 1,
|
|
3145
|
+
"maxItems": 32,
|
|
3146
|
+
"type": "array",
|
|
3147
|
+
"items": {
|
|
3148
|
+
"$ref": "#/$defs/UpstreamProbeOutcome"
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
3151
|
+
},
|
|
3152
|
+
"required": [
|
|
3153
|
+
"results"
|
|
3154
|
+
],
|
|
3155
|
+
"additionalProperties": {},
|
|
3156
|
+
"description": "One result for every requested probe, in request order."
|
|
3157
|
+
},
|
|
3158
|
+
"AppNotification": {
|
|
3159
|
+
"type": "object",
|
|
3160
|
+
"properties": {
|
|
3161
|
+
"category": {
|
|
3162
|
+
"$ref": "#/$defs/RecordId"
|
|
3163
|
+
},
|
|
3164
|
+
"severity": {
|
|
3165
|
+
"type": "string",
|
|
3166
|
+
"enum": [
|
|
3167
|
+
"info",
|
|
3168
|
+
"warning",
|
|
3169
|
+
"error"
|
|
3170
|
+
]
|
|
3171
|
+
},
|
|
3172
|
+
"title": {
|
|
3173
|
+
"type": "string",
|
|
3174
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}]{1,80}$"
|
|
3175
|
+
},
|
|
3176
|
+
"message": {
|
|
3177
|
+
"type": "string",
|
|
3178
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}]{1,400}$"
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
3181
|
+
"required": [
|
|
3182
|
+
"category",
|
|
3183
|
+
"severity",
|
|
3184
|
+
"title",
|
|
3185
|
+
"message"
|
|
3186
|
+
],
|
|
3187
|
+
"additionalProperties": false
|
|
3188
|
+
},
|
|
3189
|
+
"AppIncidentChange": {
|
|
3190
|
+
"oneOf": [
|
|
3191
|
+
{
|
|
3192
|
+
"type": "object",
|
|
3193
|
+
"properties": {
|
|
3194
|
+
"status": {
|
|
3195
|
+
"type": "string",
|
|
3196
|
+
"const": "open"
|
|
3197
|
+
},
|
|
3198
|
+
"category": {
|
|
3199
|
+
"description": "An incident category the manifest declares.",
|
|
3200
|
+
"$ref": "#/$defs/RecordId"
|
|
3201
|
+
},
|
|
3202
|
+
"severity": {
|
|
3203
|
+
"type": "string",
|
|
3204
|
+
"enum": [
|
|
3205
|
+
"warning",
|
|
3206
|
+
"error",
|
|
3207
|
+
"critical"
|
|
3208
|
+
]
|
|
3209
|
+
},
|
|
3210
|
+
"title": {
|
|
3211
|
+
"type": "string",
|
|
3212
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}\\p{Cf}\\p{Zl}\\p{Zp}]{1,80}$"
|
|
3213
|
+
},
|
|
3214
|
+
"message": {
|
|
3215
|
+
"type": "string",
|
|
3216
|
+
"pattern": "^[^\\p{Cc}\\p{Cs}\\p{Cf}\\p{Zl}\\p{Zp}]{1,400}$"
|
|
3217
|
+
},
|
|
3218
|
+
"resourceId": {
|
|
3219
|
+
"description": "Required for a proxyHost category and absent otherwise: the listed host ID the incident refers to. The app must hold a read or probe grant that covers the host.",
|
|
3220
|
+
"$ref": "#/$defs/RecordId"
|
|
3221
|
+
}
|
|
3222
|
+
},
|
|
3223
|
+
"required": [
|
|
3224
|
+
"status",
|
|
3225
|
+
"category",
|
|
3226
|
+
"severity",
|
|
3227
|
+
"title",
|
|
3228
|
+
"message"
|
|
3229
|
+
],
|
|
3230
|
+
"additionalProperties": false
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
"type": "object",
|
|
3234
|
+
"properties": {
|
|
3235
|
+
"status": {
|
|
3236
|
+
"type": "string",
|
|
3237
|
+
"const": "resolved"
|
|
3238
|
+
}
|
|
3239
|
+
},
|
|
3240
|
+
"required": [
|
|
3241
|
+
"status"
|
|
3242
|
+
],
|
|
3243
|
+
"additionalProperties": false
|
|
3244
|
+
}
|
|
3245
|
+
],
|
|
3246
|
+
"description": "Assert the current state of the incident the path key names. Open creates or updates it and resolve closes it. The SDK rejects link-like text. The platform renders title and message as plain text in its own templates, delivers through mail and webhook channels to users who subscribe to the category and may see the resource, and never sends a notification twice for a repeated state. Send the current state again with every observation: while notifications are paused after a restore, the platform keeps no incidents. Derive the idempotency key from the incident key and the asserted state, so a repeated observation reuses it and stays within the platform's idempotency record limit."
|
|
3247
|
+
},
|
|
3248
|
+
"AppAuditEvent": {
|
|
3249
|
+
"type": "object",
|
|
3250
|
+
"properties": {
|
|
3251
|
+
"action": {
|
|
3252
|
+
"$ref": "#/$defs/RecordId"
|
|
3253
|
+
},
|
|
3254
|
+
"outcome": {
|
|
3255
|
+
"type": "string",
|
|
3256
|
+
"enum": [
|
|
3257
|
+
"succeeded",
|
|
3258
|
+
"rejected",
|
|
3259
|
+
"failed"
|
|
3260
|
+
]
|
|
3261
|
+
},
|
|
3262
|
+
"resourceId": {
|
|
3263
|
+
"$ref": "#/$defs/RecordId"
|
|
3264
|
+
}
|
|
3265
|
+
},
|
|
3266
|
+
"required": [
|
|
3267
|
+
"action",
|
|
3268
|
+
"outcome"
|
|
3269
|
+
],
|
|
3270
|
+
"additionalProperties": false
|
|
3271
|
+
},
|
|
3272
|
+
"AppSecret": {
|
|
3273
|
+
"type": "object",
|
|
3274
|
+
"properties": {
|
|
3275
|
+
"value": {
|
|
3276
|
+
"type": "string",
|
|
3277
|
+
"minLength": 1,
|
|
3278
|
+
"maxLength": 16384
|
|
3279
|
+
}
|
|
3280
|
+
},
|
|
3281
|
+
"required": [
|
|
3282
|
+
"value"
|
|
3283
|
+
],
|
|
3284
|
+
"additionalProperties": false,
|
|
3285
|
+
"description": "Return only to the authorized backend. Keep secret values out of logs and browser messages."
|
|
3286
|
+
},
|
|
3287
|
+
"LegacyHandoffDomain": {
|
|
3288
|
+
"type": "string",
|
|
3289
|
+
"enum": [
|
|
3290
|
+
"monitoring",
|
|
3291
|
+
"docker-discovery",
|
|
3292
|
+
"load-balancer",
|
|
3293
|
+
"dns",
|
|
3294
|
+
"oidc",
|
|
3295
|
+
"crowdsec"
|
|
3296
|
+
],
|
|
3297
|
+
"description": "Built-in feature domain that an official app takes over. It equals a provider profile. The app manifest must declare that profile, and the installation must hold the platform grant to register a provider for it."
|
|
3298
|
+
},
|
|
3299
|
+
"LegacyHandoffStatus": {
|
|
3300
|
+
"oneOf": [
|
|
3301
|
+
{
|
|
3302
|
+
"type": "object",
|
|
3303
|
+
"properties": {
|
|
3304
|
+
"domain": {
|
|
3305
|
+
"$ref": "#/$defs/LegacyHandoffDomain"
|
|
3306
|
+
},
|
|
3307
|
+
"state": {
|
|
3308
|
+
"type": "string",
|
|
3309
|
+
"const": "platform"
|
|
3310
|
+
}
|
|
3311
|
+
},
|
|
3312
|
+
"required": [
|
|
3313
|
+
"domain",
|
|
3314
|
+
"state"
|
|
3315
|
+
],
|
|
3316
|
+
"additionalProperties": false
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
"type": "object",
|
|
3320
|
+
"properties": {
|
|
3321
|
+
"domain": {
|
|
3322
|
+
"$ref": "#/$defs/LegacyHandoffDomain"
|
|
3323
|
+
},
|
|
3324
|
+
"state": {
|
|
3325
|
+
"type": "string",
|
|
3326
|
+
"const": "exported"
|
|
3327
|
+
},
|
|
3328
|
+
"digest": {
|
|
3329
|
+
"type": "string",
|
|
3330
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
3331
|
+
"description": "Opaque lowercase hexadecimal SHA-256 of the fixed export. It binds the domain and the ordered part hashes. Pass it unchanged to every part read and to commit."
|
|
3332
|
+
},
|
|
3333
|
+
"partCount": {
|
|
3334
|
+
"type": "integer",
|
|
3335
|
+
"minimum": 0,
|
|
3336
|
+
"maximum": 1024,
|
|
3337
|
+
"description": "Number of parts in the fixed export."
|
|
3338
|
+
}
|
|
3339
|
+
},
|
|
3340
|
+
"required": [
|
|
3341
|
+
"domain",
|
|
3342
|
+
"state",
|
|
3343
|
+
"digest",
|
|
3344
|
+
"partCount"
|
|
3345
|
+
],
|
|
3346
|
+
"additionalProperties": false
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
"type": "object",
|
|
3350
|
+
"properties": {
|
|
3351
|
+
"domain": {
|
|
3352
|
+
"$ref": "#/$defs/LegacyHandoffDomain"
|
|
3353
|
+
},
|
|
3354
|
+
"state": {
|
|
3355
|
+
"type": "string",
|
|
3356
|
+
"const": "committed"
|
|
3357
|
+
},
|
|
3358
|
+
"digest": {
|
|
3359
|
+
"type": "string",
|
|
3360
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
3361
|
+
"description": "Opaque lowercase hexadecimal SHA-256 of the fixed export. It binds the domain and the ordered part hashes. Pass it unchanged to every part read and to commit."
|
|
3362
|
+
}
|
|
3363
|
+
},
|
|
3364
|
+
"required": [
|
|
3365
|
+
"domain",
|
|
3366
|
+
"state",
|
|
3367
|
+
"digest"
|
|
3368
|
+
],
|
|
3369
|
+
"additionalProperties": false
|
|
3370
|
+
}
|
|
3371
|
+
],
|
|
3372
|
+
"description": "Ownership of the domain as seen by the active generation of the calling installation. platform means the platform still owns it. exported means this installation is importing the fixed export. committed means this installation owns it. Another holder is a conflict, never a state."
|
|
3373
|
+
},
|
|
3374
|
+
"LegacyHandoffBeginResult": {
|
|
3375
|
+
"oneOf": [
|
|
3376
|
+
{
|
|
3377
|
+
"type": "object",
|
|
3378
|
+
"properties": {
|
|
3379
|
+
"domain": {
|
|
3380
|
+
"$ref": "#/$defs/LegacyHandoffDomain"
|
|
3381
|
+
},
|
|
3382
|
+
"state": {
|
|
3383
|
+
"type": "string",
|
|
3384
|
+
"const": "exported"
|
|
3385
|
+
},
|
|
3386
|
+
"digest": {
|
|
3387
|
+
"type": "string",
|
|
3388
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
3389
|
+
"description": "Opaque lowercase hexadecimal SHA-256 of the fixed export. It binds the domain and the ordered part hashes. Pass it unchanged to every part read and to commit."
|
|
3390
|
+
},
|
|
3391
|
+
"partCount": {
|
|
3392
|
+
"type": "integer",
|
|
3393
|
+
"minimum": 0,
|
|
3394
|
+
"maximum": 1024,
|
|
3395
|
+
"description": "Number of parts in the fixed export."
|
|
3396
|
+
}
|
|
3397
|
+
},
|
|
3398
|
+
"required": [
|
|
3399
|
+
"domain",
|
|
3400
|
+
"state",
|
|
3401
|
+
"digest",
|
|
3402
|
+
"partCount"
|
|
3403
|
+
],
|
|
3404
|
+
"additionalProperties": false
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"type": "object",
|
|
3408
|
+
"properties": {
|
|
3409
|
+
"domain": {
|
|
3410
|
+
"$ref": "#/$defs/LegacyHandoffDomain"
|
|
3411
|
+
},
|
|
3412
|
+
"state": {
|
|
3413
|
+
"type": "string",
|
|
3414
|
+
"const": "committed"
|
|
3415
|
+
},
|
|
3416
|
+
"digest": {
|
|
3417
|
+
"type": "string",
|
|
3418
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
3419
|
+
"description": "Opaque lowercase hexadecimal SHA-256 of the fixed export. It binds the domain and the ordered part hashes. Pass it unchanged to every part read and to commit."
|
|
3420
|
+
}
|
|
3421
|
+
},
|
|
3422
|
+
"required": [
|
|
3423
|
+
"domain",
|
|
3424
|
+
"state",
|
|
3425
|
+
"digest"
|
|
3426
|
+
],
|
|
3427
|
+
"additionalProperties": false
|
|
3428
|
+
}
|
|
3429
|
+
],
|
|
3430
|
+
"description": "exported carries the fixed export that this installation imports. committed means this installation already owns the domain and carries the committed digest without a part count."
|
|
3431
|
+
},
|
|
3432
|
+
"LegacyHandoffPartRequest": {
|
|
3433
|
+
"type": "object",
|
|
3434
|
+
"properties": {
|
|
3435
|
+
"digest": {
|
|
3436
|
+
"type": "string",
|
|
3437
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
3438
|
+
"description": "Opaque lowercase hexadecimal SHA-256 of the fixed export. It binds the domain and the ordered part hashes. Pass it unchanged to every part read and to commit."
|
|
3439
|
+
},
|
|
3440
|
+
"sequence": {
|
|
3441
|
+
"type": "integer",
|
|
3442
|
+
"minimum": 0,
|
|
3443
|
+
"maximum": 1023,
|
|
3444
|
+
"description": "Zero-based position of a part in the fixed export. Valid sequences satisfy 0 <= sequence < partCount."
|
|
3445
|
+
}
|
|
3446
|
+
},
|
|
3447
|
+
"required": [
|
|
3448
|
+
"digest",
|
|
3449
|
+
"sequence"
|
|
3450
|
+
],
|
|
3451
|
+
"additionalProperties": false,
|
|
3452
|
+
"description": "Read one part of the export that begin fixed for this installation. The digest binds the read to that export. A read of a replaced export with a different digest fails and returns no part."
|
|
3453
|
+
},
|
|
3454
|
+
"LegacyHandoffPart": {
|
|
3455
|
+
"type": "object",
|
|
3456
|
+
"properties": {
|
|
3457
|
+
"sequence": {
|
|
3458
|
+
"type": "integer",
|
|
3459
|
+
"minimum": 0,
|
|
3460
|
+
"maximum": 1023,
|
|
3461
|
+
"description": "Zero-based position of a part in the fixed export. Valid sequences satisfy 0 <= sequence < partCount."
|
|
3462
|
+
},
|
|
3463
|
+
"part": {
|
|
3464
|
+
"$ref": "#/$defs/JsonValue"
|
|
3465
|
+
}
|
|
3466
|
+
},
|
|
3467
|
+
"required": [
|
|
3468
|
+
"sequence",
|
|
3469
|
+
"part"
|
|
3470
|
+
],
|
|
3471
|
+
"additionalProperties": false,
|
|
3472
|
+
"description": "One exported part as App API wire JSON. The SDK checks that the compact JSON.stringify form of part is at most 262144 UTF-8 bytes. Import it durably before commit."
|
|
3473
|
+
},
|
|
3474
|
+
"LegacyHandoffCommit": {
|
|
3475
|
+
"type": "object",
|
|
3476
|
+
"properties": {
|
|
3477
|
+
"digest": {
|
|
3478
|
+
"type": "string",
|
|
3479
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
3480
|
+
"description": "Opaque lowercase hexadecimal SHA-256 of the fixed export. It binds the domain and the ordered part hashes. Pass it unchanged to every part read and to commit."
|
|
3481
|
+
}
|
|
3482
|
+
},
|
|
3483
|
+
"required": [
|
|
3484
|
+
"digest"
|
|
3485
|
+
],
|
|
3486
|
+
"additionalProperties": false,
|
|
3487
|
+
"description": "Commit exactly the digest that begin returned after every part is imported durably. The platform retires its state once."
|
|
3488
|
+
},
|
|
3489
|
+
"LegacyHandoffCommitResult": {
|
|
3490
|
+
"type": "object",
|
|
3491
|
+
"properties": {
|
|
3492
|
+
"domain": {
|
|
3493
|
+
"$ref": "#/$defs/LegacyHandoffDomain"
|
|
3494
|
+
},
|
|
3495
|
+
"state": {
|
|
3496
|
+
"type": "string",
|
|
3497
|
+
"const": "committed"
|
|
3498
|
+
},
|
|
3499
|
+
"digest": {
|
|
3500
|
+
"type": "string",
|
|
3501
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
3502
|
+
"description": "Opaque lowercase hexadecimal SHA-256 of the fixed export. It binds the domain and the ordered part hashes. Pass it unchanged to every part read and to commit."
|
|
3503
|
+
}
|
|
3504
|
+
},
|
|
3505
|
+
"required": [
|
|
3506
|
+
"domain",
|
|
3507
|
+
"state",
|
|
3508
|
+
"digest"
|
|
3509
|
+
],
|
|
3510
|
+
"additionalProperties": false,
|
|
3511
|
+
"description": "This installation owns the domain. A repeated commit with the same digest returns the same result."
|
|
3512
|
+
},
|
|
3513
|
+
"UiBridgeMessage": {
|
|
3514
|
+
"oneOf": [
|
|
3515
|
+
{
|
|
3516
|
+
"type": "object",
|
|
3517
|
+
"properties": {
|
|
3518
|
+
"type": {
|
|
3519
|
+
"type": "string",
|
|
3520
|
+
"const": "runtime:ready"
|
|
3521
|
+
},
|
|
3522
|
+
"nonce": {
|
|
3523
|
+
"type": "string",
|
|
3524
|
+
"minLength": 1,
|
|
3525
|
+
"maxLength": 128,
|
|
3526
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
3527
|
+
}
|
|
3528
|
+
},
|
|
3529
|
+
"required": [
|
|
3530
|
+
"type",
|
|
3531
|
+
"nonce"
|
|
3532
|
+
],
|
|
3533
|
+
"additionalProperties": false,
|
|
3534
|
+
"description": "The iframe targets the exact host origin and transfers one private document control port. The host checks the expected iframe WindowProxy, the opaque origin (the string \"null\"), and the nonce issued for this frame before accepting the port."
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"type": "object",
|
|
3538
|
+
"properties": {
|
|
3539
|
+
"type": {
|
|
3540
|
+
"type": "string",
|
|
3541
|
+
"const": "runtime:bootstrap"
|
|
3542
|
+
},
|
|
3543
|
+
"bridgeVersion": {
|
|
3544
|
+
"type": "string",
|
|
3545
|
+
"const": "1.0.0"
|
|
3546
|
+
},
|
|
3547
|
+
"installId": {
|
|
3548
|
+
"$ref": "#/$defs/RecordId"
|
|
3549
|
+
},
|
|
3550
|
+
"installationGeneration": {
|
|
3551
|
+
"description": "Installation generation assigned by the native manager.",
|
|
3552
|
+
"$ref": "#/$defs/Generation"
|
|
3553
|
+
},
|
|
3554
|
+
"generation": {
|
|
3555
|
+
"description": "Session channel generation. Each bootstrap increases it within the frame.",
|
|
3556
|
+
"$ref": "#/$defs/Generation"
|
|
3557
|
+
}
|
|
3558
|
+
},
|
|
3559
|
+
"required": [
|
|
3560
|
+
"type",
|
|
3561
|
+
"bridgeVersion",
|
|
3562
|
+
"installId",
|
|
3563
|
+
"installationGeneration",
|
|
3564
|
+
"generation"
|
|
3565
|
+
],
|
|
3566
|
+
"additionalProperties": false,
|
|
3567
|
+
"description": "The host selects the bridge version and transfers one fresh session port over the private document control port. Validate the port transfer separately from the payload."
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
"type": "object",
|
|
3571
|
+
"properties": {
|
|
3572
|
+
"type": {
|
|
3573
|
+
"type": "string",
|
|
3574
|
+
"const": "connected"
|
|
3575
|
+
},
|
|
3576
|
+
"installId": {
|
|
3577
|
+
"$ref": "#/$defs/RecordId"
|
|
3578
|
+
},
|
|
3579
|
+
"installationGeneration": {
|
|
3580
|
+
"description": "Installation generation assigned by the native manager.",
|
|
3581
|
+
"$ref": "#/$defs/Generation"
|
|
3582
|
+
},
|
|
3583
|
+
"generation": {
|
|
3584
|
+
"description": "Session channel generation. Each bootstrap increases it within the frame.",
|
|
3585
|
+
"$ref": "#/$defs/Generation"
|
|
3586
|
+
}
|
|
3587
|
+
},
|
|
3588
|
+
"required": [
|
|
3589
|
+
"type",
|
|
3590
|
+
"installId",
|
|
3591
|
+
"installationGeneration",
|
|
3592
|
+
"generation"
|
|
3593
|
+
],
|
|
3594
|
+
"additionalProperties": false,
|
|
3595
|
+
"description": "The iframe acknowledges the bootstrap on the active session port."
|
|
3596
|
+
},
|
|
3597
|
+
{
|
|
3598
|
+
"type": "object",
|
|
3599
|
+
"properties": {
|
|
3600
|
+
"type": {
|
|
3601
|
+
"type": "string",
|
|
3602
|
+
"const": "context"
|
|
3603
|
+
},
|
|
3604
|
+
"installId": {
|
|
3605
|
+
"$ref": "#/$defs/RecordId"
|
|
3606
|
+
},
|
|
3607
|
+
"installationGeneration": {
|
|
3608
|
+
"description": "Installation generation assigned by the native manager.",
|
|
3609
|
+
"$ref": "#/$defs/Generation"
|
|
3610
|
+
},
|
|
3611
|
+
"generation": {
|
|
3612
|
+
"description": "Session channel generation. Each bootstrap increases it within the frame.",
|
|
3613
|
+
"$ref": "#/$defs/Generation"
|
|
3614
|
+
},
|
|
3615
|
+
"theme": {
|
|
3616
|
+
"type": "string",
|
|
3617
|
+
"enum": [
|
|
3618
|
+
"light",
|
|
3619
|
+
"dark"
|
|
3620
|
+
]
|
|
3621
|
+
},
|
|
3622
|
+
"locale": {
|
|
3623
|
+
"type": "string",
|
|
3624
|
+
"maxLength": 64,
|
|
3625
|
+
"pattern": "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"
|
|
3626
|
+
},
|
|
3627
|
+
"route": {
|
|
3628
|
+
"description": "Route ID from the host route allowlist.",
|
|
3629
|
+
"$ref": "#/$defs/RecordId"
|
|
3630
|
+
},
|
|
3631
|
+
"ready": {
|
|
3632
|
+
"type": "boolean"
|
|
3633
|
+
}
|
|
3634
|
+
},
|
|
3635
|
+
"required": [
|
|
3636
|
+
"type",
|
|
3637
|
+
"installId",
|
|
3638
|
+
"installationGeneration",
|
|
3639
|
+
"generation",
|
|
3640
|
+
"theme",
|
|
3641
|
+
"locale",
|
|
3642
|
+
"route",
|
|
3643
|
+
"ready"
|
|
3644
|
+
],
|
|
3645
|
+
"additionalProperties": false,
|
|
3646
|
+
"description": "The host sends current UI context on the active session port."
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"type": "object",
|
|
3650
|
+
"properties": {
|
|
3651
|
+
"type": {
|
|
3652
|
+
"type": "string",
|
|
3653
|
+
"const": "navigate"
|
|
3654
|
+
},
|
|
3655
|
+
"installId": {
|
|
3656
|
+
"$ref": "#/$defs/RecordId"
|
|
3657
|
+
},
|
|
3658
|
+
"installationGeneration": {
|
|
3659
|
+
"description": "Installation generation assigned by the native manager.",
|
|
3660
|
+
"$ref": "#/$defs/Generation"
|
|
3661
|
+
},
|
|
3662
|
+
"generation": {
|
|
3663
|
+
"description": "Session channel generation. Each bootstrap increases it within the frame.",
|
|
3664
|
+
"$ref": "#/$defs/Generation"
|
|
3665
|
+
},
|
|
3666
|
+
"route": {
|
|
3667
|
+
"description": "Route ID from the host route allowlist.",
|
|
3668
|
+
"$ref": "#/$defs/RecordId"
|
|
3669
|
+
}
|
|
3670
|
+
},
|
|
3671
|
+
"required": [
|
|
3672
|
+
"type",
|
|
3673
|
+
"installId",
|
|
3674
|
+
"installationGeneration",
|
|
3675
|
+
"generation",
|
|
3676
|
+
"route"
|
|
3677
|
+
],
|
|
3678
|
+
"additionalProperties": false,
|
|
3679
|
+
"description": "The iframe requests a host route on the active session port."
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
"type": "object",
|
|
3683
|
+
"properties": {
|
|
3684
|
+
"type": {
|
|
3685
|
+
"type": "string",
|
|
3686
|
+
"const": "dialog"
|
|
3687
|
+
},
|
|
3688
|
+
"installId": {
|
|
3689
|
+
"$ref": "#/$defs/RecordId"
|
|
3690
|
+
},
|
|
3691
|
+
"installationGeneration": {
|
|
3692
|
+
"description": "Installation generation assigned by the native manager.",
|
|
3693
|
+
"$ref": "#/$defs/Generation"
|
|
3694
|
+
},
|
|
3695
|
+
"generation": {
|
|
3696
|
+
"description": "Session channel generation. Each bootstrap increases it within the frame.",
|
|
3697
|
+
"$ref": "#/$defs/Generation"
|
|
3698
|
+
},
|
|
3699
|
+
"requestId": {
|
|
3700
|
+
"$ref": "#/$defs/RecordId"
|
|
3701
|
+
},
|
|
3702
|
+
"dialogId": {
|
|
3703
|
+
"description": "A dialog declared by the installed app. The host controls rendering and focus.",
|
|
3704
|
+
"$ref": "#/$defs/RecordId"
|
|
3705
|
+
}
|
|
3706
|
+
},
|
|
3707
|
+
"required": [
|
|
3708
|
+
"type",
|
|
3709
|
+
"installId",
|
|
3710
|
+
"installationGeneration",
|
|
3711
|
+
"generation",
|
|
3712
|
+
"requestId",
|
|
3713
|
+
"dialogId"
|
|
3714
|
+
],
|
|
3715
|
+
"additionalProperties": false
|
|
3716
|
+
},
|
|
3717
|
+
{
|
|
3718
|
+
"type": "object",
|
|
3719
|
+
"properties": {
|
|
3720
|
+
"type": {
|
|
3721
|
+
"type": "string",
|
|
3722
|
+
"const": "dialogResult"
|
|
3723
|
+
},
|
|
3724
|
+
"installId": {
|
|
3725
|
+
"$ref": "#/$defs/RecordId"
|
|
3726
|
+
},
|
|
3727
|
+
"installationGeneration": {
|
|
3728
|
+
"description": "Installation generation assigned by the native manager.",
|
|
3729
|
+
"$ref": "#/$defs/Generation"
|
|
3730
|
+
},
|
|
3731
|
+
"generation": {
|
|
3732
|
+
"description": "Session channel generation. Each bootstrap increases it within the frame.",
|
|
3733
|
+
"$ref": "#/$defs/Generation"
|
|
3734
|
+
},
|
|
3735
|
+
"requestId": {
|
|
3736
|
+
"$ref": "#/$defs/RecordId"
|
|
3737
|
+
},
|
|
3738
|
+
"outcome": {
|
|
3739
|
+
"type": "string",
|
|
3740
|
+
"enum": [
|
|
3741
|
+
"confirmed",
|
|
3742
|
+
"cancelled"
|
|
3743
|
+
]
|
|
3744
|
+
}
|
|
3745
|
+
},
|
|
3746
|
+
"required": [
|
|
3747
|
+
"type",
|
|
3748
|
+
"installId",
|
|
3749
|
+
"installationGeneration",
|
|
3750
|
+
"generation",
|
|
3751
|
+
"requestId",
|
|
3752
|
+
"outcome"
|
|
3753
|
+
],
|
|
3754
|
+
"additionalProperties": false
|
|
3755
|
+
},
|
|
3756
|
+
{
|
|
3757
|
+
"type": "object",
|
|
3758
|
+
"properties": {
|
|
3759
|
+
"type": {
|
|
3760
|
+
"type": "string",
|
|
3761
|
+
"const": "apiRequest"
|
|
3762
|
+
},
|
|
3763
|
+
"installId": {
|
|
3764
|
+
"$ref": "#/$defs/RecordId"
|
|
3765
|
+
},
|
|
3766
|
+
"installationGeneration": {
|
|
3767
|
+
"description": "Installation generation assigned by the native manager.",
|
|
3768
|
+
"$ref": "#/$defs/Generation"
|
|
3769
|
+
},
|
|
3770
|
+
"generation": {
|
|
3771
|
+
"description": "Session channel generation. Each bootstrap increases it within the frame.",
|
|
3772
|
+
"$ref": "#/$defs/Generation"
|
|
3773
|
+
},
|
|
3774
|
+
"requestId": {
|
|
3775
|
+
"$ref": "#/$defs/RecordId"
|
|
3776
|
+
},
|
|
3777
|
+
"operationId": {
|
|
3778
|
+
"$ref": "#/$defs/RecordId"
|
|
3779
|
+
},
|
|
3780
|
+
"idempotencyKey": {
|
|
3781
|
+
"$ref": "#/$defs/RecordId"
|
|
3782
|
+
},
|
|
3783
|
+
"payload": {
|
|
3784
|
+
"$ref": "#/$defs/AppApiPayload"
|
|
3785
|
+
}
|
|
3786
|
+
},
|
|
3787
|
+
"required": [
|
|
3788
|
+
"type",
|
|
3789
|
+
"installId",
|
|
3790
|
+
"installationGeneration",
|
|
3791
|
+
"generation",
|
|
3792
|
+
"requestId",
|
|
3793
|
+
"operationId",
|
|
3794
|
+
"idempotencyKey",
|
|
3795
|
+
"payload"
|
|
3796
|
+
],
|
|
3797
|
+
"additionalProperties": false,
|
|
3798
|
+
"description": "Only call a declared operation through the authenticated app gateway with current permissions."
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
"type": "object",
|
|
3802
|
+
"properties": {
|
|
3803
|
+
"type": {
|
|
3804
|
+
"type": "string",
|
|
3805
|
+
"const": "apiResult"
|
|
3806
|
+
},
|
|
3807
|
+
"installId": {
|
|
3808
|
+
"$ref": "#/$defs/RecordId"
|
|
3809
|
+
},
|
|
3810
|
+
"installationGeneration": {
|
|
3811
|
+
"description": "Installation generation assigned by the native manager.",
|
|
3812
|
+
"$ref": "#/$defs/Generation"
|
|
3813
|
+
},
|
|
3814
|
+
"generation": {
|
|
3815
|
+
"description": "Session channel generation. Each bootstrap increases it within the frame.",
|
|
3816
|
+
"$ref": "#/$defs/Generation"
|
|
3817
|
+
},
|
|
3818
|
+
"requestId": {
|
|
3819
|
+
"$ref": "#/$defs/RecordId"
|
|
3820
|
+
},
|
|
3821
|
+
"result": {
|
|
3822
|
+
"oneOf": [
|
|
3823
|
+
{
|
|
3824
|
+
"type": "object",
|
|
3825
|
+
"properties": {
|
|
3826
|
+
"ok": {
|
|
3827
|
+
"type": "boolean",
|
|
3828
|
+
"const": true
|
|
3829
|
+
},
|
|
3830
|
+
"payload": {
|
|
3831
|
+
"$ref": "#/$defs/AppApiPayload"
|
|
3832
|
+
}
|
|
3833
|
+
},
|
|
3834
|
+
"required": [
|
|
3835
|
+
"ok",
|
|
3836
|
+
"payload"
|
|
3837
|
+
],
|
|
3838
|
+
"additionalProperties": false
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
"type": "object",
|
|
3842
|
+
"properties": {
|
|
3843
|
+
"ok": {
|
|
3844
|
+
"type": "boolean",
|
|
3845
|
+
"const": false
|
|
3846
|
+
},
|
|
3847
|
+
"problem": {
|
|
3848
|
+
"$ref": "#/$defs/Problem"
|
|
3849
|
+
}
|
|
3850
|
+
},
|
|
3851
|
+
"required": [
|
|
3852
|
+
"ok",
|
|
3853
|
+
"problem"
|
|
3854
|
+
],
|
|
3855
|
+
"additionalProperties": false
|
|
3856
|
+
}
|
|
3857
|
+
]
|
|
3858
|
+
}
|
|
3859
|
+
},
|
|
3860
|
+
"required": [
|
|
3861
|
+
"type",
|
|
3862
|
+
"installId",
|
|
3863
|
+
"installationGeneration",
|
|
3864
|
+
"generation",
|
|
3865
|
+
"requestId",
|
|
3866
|
+
"result"
|
|
3867
|
+
],
|
|
3868
|
+
"additionalProperties": false
|
|
3869
|
+
}
|
|
3870
|
+
],
|
|
3871
|
+
"description": "Check the transfer count and ports outside payload validation. Require the active session port and matching install ID, installation generation, and channel generation for session messages. Close replaced session ports and revoke both ports when the document or installation binding expires. Protected resource actions require the current installation generation and authorization through the authenticated gateway."
|
|
3872
|
+
},
|
|
3873
|
+
"Problem": {
|
|
3874
|
+
"type": "object",
|
|
3875
|
+
"properties": {
|
|
3876
|
+
"type": {
|
|
3877
|
+
"type": "string",
|
|
3878
|
+
"pattern": "^urn:rentnerproxy:problem:[a-z][a-zA-Z0-9]{0,63}$"
|
|
3879
|
+
},
|
|
3880
|
+
"title": {
|
|
3881
|
+
"type": "string",
|
|
3882
|
+
"minLength": 1,
|
|
3883
|
+
"maxLength": 120
|
|
3884
|
+
},
|
|
3885
|
+
"status": {
|
|
3886
|
+
"type": "integer",
|
|
3887
|
+
"minimum": 400,
|
|
3888
|
+
"maximum": 599
|
|
3889
|
+
},
|
|
3890
|
+
"code": {
|
|
3891
|
+
"type": "string",
|
|
3892
|
+
"pattern": "^[a-z][a-zA-Z0-9]{0,63}$"
|
|
3893
|
+
},
|
|
3894
|
+
"requestId": {
|
|
3895
|
+
"$ref": "#/$defs/RecordId"
|
|
3896
|
+
}
|
|
3897
|
+
},
|
|
3898
|
+
"required": [
|
|
3899
|
+
"type",
|
|
3900
|
+
"title",
|
|
3901
|
+
"status",
|
|
3902
|
+
"code",
|
|
3903
|
+
"requestId"
|
|
3904
|
+
],
|
|
3905
|
+
"additionalProperties": false,
|
|
3906
|
+
"description": "RFC 9457 problem with a stable machine code and no private error details. The type URN suffix equals code; on HTTP the status also equals the status line."
|
|
3907
|
+
},
|
|
3908
|
+
"Operation": {
|
|
3909
|
+
"oneOf": [
|
|
3910
|
+
{
|
|
3911
|
+
"type": "object",
|
|
3912
|
+
"properties": {
|
|
3913
|
+
"id": {
|
|
3914
|
+
"$ref": "#/$defs/RecordId"
|
|
3915
|
+
},
|
|
3916
|
+
"status": {
|
|
3917
|
+
"type": "string",
|
|
3918
|
+
"enum": [
|
|
3919
|
+
"accepted",
|
|
3920
|
+
"running",
|
|
3921
|
+
"cancelling",
|
|
3922
|
+
"cancelled",
|
|
3923
|
+
"succeeded"
|
|
3924
|
+
]
|
|
3925
|
+
},
|
|
3926
|
+
"problem": {
|
|
3927
|
+
"not": {}
|
|
3928
|
+
}
|
|
3929
|
+
},
|
|
3930
|
+
"required": [
|
|
3931
|
+
"id",
|
|
3932
|
+
"status"
|
|
3933
|
+
],
|
|
3934
|
+
"additionalProperties": {}
|
|
3935
|
+
},
|
|
3936
|
+
{
|
|
3937
|
+
"type": "object",
|
|
3938
|
+
"properties": {
|
|
3939
|
+
"id": {
|
|
3940
|
+
"$ref": "#/$defs/RecordId"
|
|
3941
|
+
},
|
|
3942
|
+
"status": {
|
|
3943
|
+
"type": "string",
|
|
3944
|
+
"const": "failed"
|
|
3945
|
+
},
|
|
3946
|
+
"problem": {
|
|
3947
|
+
"$ref": "#/$defs/Problem"
|
|
3948
|
+
}
|
|
3949
|
+
},
|
|
3950
|
+
"required": [
|
|
3951
|
+
"id",
|
|
3952
|
+
"status",
|
|
3953
|
+
"problem"
|
|
3954
|
+
],
|
|
3955
|
+
"additionalProperties": {}
|
|
3956
|
+
}
|
|
3957
|
+
],
|
|
3958
|
+
"description": "Accepted work has a durable operation ID. Cancellation is an operation request. A disconnect or timeout does not confirm cancellation or rollback."
|
|
3959
|
+
}
|
|
3960
|
+
},
|
|
3961
|
+
"x-rentnerproxy-protocol-documents": [
|
|
3962
|
+
"RecordId",
|
|
3963
|
+
"Generation",
|
|
3964
|
+
"BootstrapDescriptor",
|
|
3965
|
+
"AppHealth",
|
|
3966
|
+
"AppReadiness",
|
|
3967
|
+
"PlatformContext",
|
|
3968
|
+
"AuthorizationRequest",
|
|
3969
|
+
"AuthorizationResult",
|
|
3970
|
+
"EventCursor",
|
|
3971
|
+
"PlatformEvent",
|
|
3972
|
+
"ProviderRegistration",
|
|
3973
|
+
"ProviderRequest",
|
|
3974
|
+
"ProviderResult",
|
|
3975
|
+
"AppApiPayload",
|
|
3976
|
+
"ProxyHostQuery",
|
|
3977
|
+
"ProxyHostPage",
|
|
3978
|
+
"OwnedProxyHostChange",
|
|
3979
|
+
"UpstreamProbe",
|
|
3980
|
+
"UpstreamProbeResult",
|
|
3981
|
+
"UpstreamProbeBatch",
|
|
3982
|
+
"UpstreamProbeOutcome",
|
|
3983
|
+
"UpstreamProbeBatchResult",
|
|
3984
|
+
"AppNotification",
|
|
3985
|
+
"AppIncidentChange",
|
|
3986
|
+
"AppAuditEvent",
|
|
3987
|
+
"AppSecret",
|
|
3988
|
+
"LegacyHandoffDomain",
|
|
3989
|
+
"LegacyHandoffStatus",
|
|
3990
|
+
"LegacyHandoffBeginResult",
|
|
3991
|
+
"LegacyHandoffPartRequest",
|
|
3992
|
+
"LegacyHandoffPart",
|
|
3993
|
+
"LegacyHandoffCommit",
|
|
3994
|
+
"LegacyHandoffCommitResult",
|
|
3995
|
+
"UiBridgeMessage",
|
|
3996
|
+
"Problem",
|
|
3997
|
+
"Operation"
|
|
3998
|
+
],
|
|
3999
|
+
"x-rentnerproxy-compatibility": {
|
|
4000
|
+
"requests": "Versioned requests and closed package, approval, credential and bridge records reject unknown fields. Omitted optional fields are absent. Null is valid only where explicitly declared.",
|
|
4001
|
+
"responses": "Readers tolerate additional fields only in open response schemas. Unknown discriminants, required capabilities and security-relevant values are rejected.",
|
|
4002
|
+
"encoding": "Protocol member names use camelCase. IDs, revisions and cursors are strings. Timestamps use UTC with milliseconds. Numbers stay within the safe JSON integer magnitude, including in app payloads and open fields. Decoders must reject duplicate members and invalid Unicode. The JSON depth limit counts nested arrays and objects.",
|
|
4003
|
+
"evolution": "Within v1 preserve required fields, units, defaults and semantics. Add new optional response fields only to open shapes. Breaking wire changes require a new major version and negotiation before use.",
|
|
4004
|
+
"admission": "Check payload bounds and authenticated identity before dispatch. Recheck current installation generation, user delegation, capability and resource scope at the platform boundary. Bound concurrent requests per installation.",
|
|
4005
|
+
"optionalMarketplace": "Use separate bounded background requests and keep enrichment outside trusted catalog and installation decisions. Cache or omit enrichment if unavailable. Respect the advertised request size, page and deadline limits."
|
|
4006
|
+
}
|
|
4007
|
+
}
|