@openpond/evals 0.10.4 → 0.10.6
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/LEARNING.md +23 -0
- package/dist/learning/admission.js +1 -0
- package/dist/learning/batch-service.js +12 -7
- package/dist/learning/contracts.js +2 -1
- package/dist/learning/index.js +1 -0
- package/dist/learning/iteration-budget.js +17 -0
- package/dist/learning/iteration-reservation-service.js +3 -13
- package/dist/learning/policy-inspection.js +82 -0
- package/dist/learning/service.js +6 -0
- package/dist/learning/transport.js +1 -0
- package/dist/types/learning/admission.d.ts +18 -0
- package/dist/types/learning/admission.d.ts.map +1 -1
- package/dist/types/learning/batch-service.d.ts +324 -0
- package/dist/types/learning/batch-service.d.ts.map +1 -1
- package/dist/types/learning/contracts.d.ts +54 -0
- package/dist/types/learning/contracts.d.ts.map +1 -1
- package/dist/types/learning/index.d.ts +1 -0
- package/dist/types/learning/index.d.ts.map +1 -1
- package/dist/types/learning/iteration-budget.d.ts +8 -0
- package/dist/types/learning/iteration-budget.d.ts.map +1 -0
- package/dist/types/learning/iteration-reservation-service.d.ts.map +1 -1
- package/dist/types/learning/operations.d.ts +72 -0
- package/dist/types/learning/operations.d.ts.map +1 -1
- package/dist/types/learning/policy-inspection.d.ts +47 -0
- package/dist/types/learning/policy-inspection.d.ts.map +1 -0
- package/dist/types/learning/repository.d.ts +18 -0
- package/dist/types/learning/repository.d.ts.map +1 -1
- package/dist/types/learning/service.d.ts +39 -0
- package/dist/types/learning/service.d.ts.map +1 -1
- package/dist/types/learning/transport.d.ts +62 -0
- package/dist/types/learning/transport.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/learning/v1/command-request.schema.json +201 -136
- package/schemas/learning/v1/definition.schema.json +116 -14
- package/schemas/learning/v1/policy-inspection.schema.json +243 -0
- package/schemas/learning/v1/read-request.schema.json +47 -23
|
@@ -55,6 +55,13 @@
|
|
|
55
55
|
},
|
|
56
56
|
"additionalProperties": {}
|
|
57
57
|
},
|
|
58
|
+
"requiredOutputs": {
|
|
59
|
+
"maxItems": 1000,
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"$ref": "#/$defs/__schema1"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
58
65
|
"rewardBinding": {
|
|
59
66
|
"type": "object",
|
|
60
67
|
"properties": {
|
|
@@ -62,7 +69,7 @@
|
|
|
62
69
|
"$ref": "#/$defs/__schema0"
|
|
63
70
|
},
|
|
64
71
|
"contentHash": {
|
|
65
|
-
"$ref": "#/$defs/
|
|
72
|
+
"$ref": "#/$defs/__schema2"
|
|
66
73
|
},
|
|
67
74
|
"revision": {
|
|
68
75
|
"type": "integer",
|
|
@@ -86,7 +93,7 @@
|
|
|
86
93
|
"$ref": "#/$defs/__schema0"
|
|
87
94
|
},
|
|
88
95
|
"contentHash": {
|
|
89
|
-
"$ref": "#/$defs/
|
|
96
|
+
"$ref": "#/$defs/__schema2"
|
|
90
97
|
}
|
|
91
98
|
},
|
|
92
99
|
"required": [
|
|
@@ -179,7 +186,7 @@
|
|
|
179
186
|
"maxItems": 5,
|
|
180
187
|
"type": "array",
|
|
181
188
|
"items": {
|
|
182
|
-
"$ref": "#/$defs/
|
|
189
|
+
"$ref": "#/$defs/__schema3"
|
|
183
190
|
}
|
|
184
191
|
},
|
|
185
192
|
"networkPolicy": {
|
|
@@ -215,7 +222,7 @@
|
|
|
215
222
|
"$ref": "#/$defs/__schema0"
|
|
216
223
|
},
|
|
217
224
|
"contentHash": {
|
|
218
|
-
"$ref": "#/$defs/
|
|
225
|
+
"$ref": "#/$defs/__schema2"
|
|
219
226
|
}
|
|
220
227
|
},
|
|
221
228
|
"required": [
|
|
@@ -228,14 +235,14 @@
|
|
|
228
235
|
"maxItems": 200,
|
|
229
236
|
"type": "array",
|
|
230
237
|
"items": {
|
|
231
|
-
"$ref": "#/$defs/
|
|
238
|
+
"$ref": "#/$defs/__schema4"
|
|
232
239
|
}
|
|
233
240
|
},
|
|
234
241
|
"capabilities": {
|
|
235
242
|
"maxItems": 200,
|
|
236
243
|
"type": "array",
|
|
237
244
|
"items": {
|
|
238
|
-
"$ref": "#/$defs/
|
|
245
|
+
"$ref": "#/$defs/__schema5"
|
|
239
246
|
}
|
|
240
247
|
},
|
|
241
248
|
"verifierSetRelease": {
|
|
@@ -245,7 +252,7 @@
|
|
|
245
252
|
"$ref": "#/$defs/__schema0"
|
|
246
253
|
},
|
|
247
254
|
"contentHash": {
|
|
248
|
-
"$ref": "#/$defs/
|
|
255
|
+
"$ref": "#/$defs/__schema2"
|
|
249
256
|
}
|
|
250
257
|
},
|
|
251
258
|
"required": [
|
|
@@ -264,7 +271,7 @@
|
|
|
264
271
|
"additionalProperties": false
|
|
265
272
|
},
|
|
266
273
|
"contentHash": {
|
|
267
|
-
"$ref": "#/$defs/
|
|
274
|
+
"$ref": "#/$defs/__schema2"
|
|
268
275
|
}
|
|
269
276
|
},
|
|
270
277
|
"required": [
|
|
@@ -291,10 +298,105 @@
|
|
|
291
298
|
"maxLength": 240
|
|
292
299
|
},
|
|
293
300
|
"__schema1": {
|
|
301
|
+
"type": "object",
|
|
302
|
+
"properties": {
|
|
303
|
+
"path": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"minLength": 1,
|
|
306
|
+
"maxLength": 2000
|
|
307
|
+
},
|
|
308
|
+
"mediaType": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"minLength": 1,
|
|
311
|
+
"maxLength": 200
|
|
312
|
+
},
|
|
313
|
+
"schemaRef": {
|
|
314
|
+
"default": null,
|
|
315
|
+
"anyOf": [
|
|
316
|
+
{
|
|
317
|
+
"type": "object",
|
|
318
|
+
"properties": {
|
|
319
|
+
"id": {
|
|
320
|
+
"$ref": "#/$defs/__schema0"
|
|
321
|
+
},
|
|
322
|
+
"path": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"minLength": 1,
|
|
325
|
+
"maxLength": 2000
|
|
326
|
+
},
|
|
327
|
+
"contentHash": {
|
|
328
|
+
"$ref": "#/$defs/__schema2"
|
|
329
|
+
},
|
|
330
|
+
"sizeBytes": {
|
|
331
|
+
"type": "integer",
|
|
332
|
+
"minimum": 0,
|
|
333
|
+
"maximum": 250000000
|
|
334
|
+
},
|
|
335
|
+
"mediaType": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"minLength": 1,
|
|
338
|
+
"maxLength": 200
|
|
339
|
+
},
|
|
340
|
+
"visibility": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"enum": [
|
|
343
|
+
"policy",
|
|
344
|
+
"verifier",
|
|
345
|
+
"host_private"
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": [
|
|
350
|
+
"id",
|
|
351
|
+
"path",
|
|
352
|
+
"contentHash",
|
|
353
|
+
"sizeBytes",
|
|
354
|
+
"mediaType",
|
|
355
|
+
"visibility"
|
|
356
|
+
],
|
|
357
|
+
"additionalProperties": false
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "null"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
"maxBytes": {
|
|
365
|
+
"default": null,
|
|
366
|
+
"anyOf": [
|
|
367
|
+
{
|
|
368
|
+
"type": "integer",
|
|
369
|
+
"exclusiveMinimum": 0,
|
|
370
|
+
"maximum": 250000000
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"type": "null"
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
"metadata": {
|
|
378
|
+
"default": {},
|
|
379
|
+
"type": "object",
|
|
380
|
+
"propertyNames": {
|
|
381
|
+
"type": "string"
|
|
382
|
+
},
|
|
383
|
+
"additionalProperties": {}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"required": [
|
|
387
|
+
"path",
|
|
388
|
+
"mediaType",
|
|
389
|
+
"schemaRef",
|
|
390
|
+
"maxBytes",
|
|
391
|
+
"metadata"
|
|
392
|
+
],
|
|
393
|
+
"additionalProperties": false
|
|
394
|
+
},
|
|
395
|
+
"__schema2": {
|
|
294
396
|
"type": "string",
|
|
295
397
|
"pattern": "^[a-f0-9]{64}$"
|
|
296
398
|
},
|
|
297
|
-
"
|
|
399
|
+
"__schema3": {
|
|
298
400
|
"type": "string",
|
|
299
401
|
"enum": [
|
|
300
402
|
"create",
|
|
@@ -304,7 +406,7 @@
|
|
|
304
406
|
"destroy"
|
|
305
407
|
]
|
|
306
408
|
},
|
|
307
|
-
"
|
|
409
|
+
"__schema4": {
|
|
308
410
|
"type": "object",
|
|
309
411
|
"properties": {
|
|
310
412
|
"name": {
|
|
@@ -326,7 +428,7 @@
|
|
|
326
428
|
"additionalProperties": {}
|
|
327
429
|
},
|
|
328
430
|
"inputSchemaHash": {
|
|
329
|
-
"$ref": "#/$defs/
|
|
431
|
+
"$ref": "#/$defs/__schema2"
|
|
330
432
|
},
|
|
331
433
|
"sideEffect": {
|
|
332
434
|
"type": "string",
|
|
@@ -351,7 +453,7 @@
|
|
|
351
453
|
],
|
|
352
454
|
"additionalProperties": false
|
|
353
455
|
},
|
|
354
|
-
"
|
|
456
|
+
"__schema5": {
|
|
355
457
|
"type": "object",
|
|
356
458
|
"properties": {
|
|
357
459
|
"id": {
|
|
@@ -365,7 +467,7 @@
|
|
|
365
467
|
"maxItems": 100,
|
|
366
468
|
"type": "array",
|
|
367
469
|
"items": {
|
|
368
|
-
"$ref": "#/$defs/
|
|
470
|
+
"$ref": "#/$defs/__schema6"
|
|
369
471
|
}
|
|
370
472
|
},
|
|
371
473
|
"portability": {
|
|
@@ -386,7 +488,7 @@
|
|
|
386
488
|
],
|
|
387
489
|
"additionalProperties": false
|
|
388
490
|
},
|
|
389
|
-
"
|
|
491
|
+
"__schema6": {
|
|
390
492
|
"type": "string",
|
|
391
493
|
"minLength": 1,
|
|
392
494
|
"maxLength": 500
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"policy": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"$ref": "#/$defs/__schema0"
|
|
10
|
+
},
|
|
11
|
+
"contentHash": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
14
|
+
},
|
|
15
|
+
"revision": {
|
|
16
|
+
"type": "integer",
|
|
17
|
+
"exclusiveMinimum": 0,
|
|
18
|
+
"maximum": 9007199254740991
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"id",
|
|
23
|
+
"contentHash",
|
|
24
|
+
"revision"
|
|
25
|
+
],
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
},
|
|
28
|
+
"modelProjectId": {
|
|
29
|
+
"$ref": "#/$defs/__schema0"
|
|
30
|
+
},
|
|
31
|
+
"inspectedAt": {
|
|
32
|
+
"$ref": "#/$defs/__schema1"
|
|
33
|
+
},
|
|
34
|
+
"chain": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"schemaVersion": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"const": "openpond.learningChain.v1"
|
|
42
|
+
},
|
|
43
|
+
"id": {
|
|
44
|
+
"$ref": "#/$defs/__schema0"
|
|
45
|
+
},
|
|
46
|
+
"revision": {
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"exclusiveMinimum": 0,
|
|
49
|
+
"maximum": 9007199254740991
|
|
50
|
+
},
|
|
51
|
+
"modelProjectId": {
|
|
52
|
+
"$ref": "#/$defs/__schema0"
|
|
53
|
+
},
|
|
54
|
+
"activeIterationId": {
|
|
55
|
+
"anyOf": [
|
|
56
|
+
{
|
|
57
|
+
"$ref": "#/$defs/__schema0"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "null"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"latestIterationId": {
|
|
65
|
+
"$ref": "#/$defs/__schema0"
|
|
66
|
+
},
|
|
67
|
+
"lastReservedAt": {
|
|
68
|
+
"anyOf": [
|
|
69
|
+
{
|
|
70
|
+
"$ref": "#/$defs/__schema1"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "null"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"updatedAt": {
|
|
78
|
+
"$ref": "#/$defs/__schema1"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"schemaVersion",
|
|
83
|
+
"id",
|
|
84
|
+
"revision",
|
|
85
|
+
"modelProjectId",
|
|
86
|
+
"activeIterationId",
|
|
87
|
+
"latestIterationId",
|
|
88
|
+
"lastReservedAt",
|
|
89
|
+
"updatedAt"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "null"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"counts": {
|
|
99
|
+
"anyOf": [
|
|
100
|
+
{
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"eligible": {
|
|
104
|
+
"type": "integer",
|
|
105
|
+
"minimum": 0,
|
|
106
|
+
"maximum": 9007199254740991
|
|
107
|
+
},
|
|
108
|
+
"awaitingReview": {
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"minimum": 0,
|
|
111
|
+
"maximum": 9007199254740991
|
|
112
|
+
},
|
|
113
|
+
"excluded": {
|
|
114
|
+
"type": "integer",
|
|
115
|
+
"minimum": 0,
|
|
116
|
+
"maximum": 9007199254740991
|
|
117
|
+
},
|
|
118
|
+
"consumed": {
|
|
119
|
+
"type": "integer",
|
|
120
|
+
"minimum": 0,
|
|
121
|
+
"maximum": 9007199254740991
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"eligible",
|
|
126
|
+
"awaitingReview",
|
|
127
|
+
"excluded",
|
|
128
|
+
"consumed"
|
|
129
|
+
],
|
|
130
|
+
"additionalProperties": false
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "null"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"minimumApprovedExamples": {
|
|
138
|
+
"type": "integer",
|
|
139
|
+
"exclusiveMinimum": 0,
|
|
140
|
+
"maximum": 9007199254740991
|
|
141
|
+
},
|
|
142
|
+
"canReserve": {
|
|
143
|
+
"type": "boolean"
|
|
144
|
+
},
|
|
145
|
+
"blockers": {
|
|
146
|
+
"maxItems": 20,
|
|
147
|
+
"type": "array",
|
|
148
|
+
"items": {
|
|
149
|
+
"$ref": "#/$defs/__schema2"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"cooldownUntil": {
|
|
153
|
+
"anyOf": [
|
|
154
|
+
{
|
|
155
|
+
"$ref": "#/$defs/__schema1"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "null"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"budget": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"reservedSpendUsd": {
|
|
166
|
+
"type": "number",
|
|
167
|
+
"minimum": 0
|
|
168
|
+
},
|
|
169
|
+
"settledSpendUsd": {
|
|
170
|
+
"type": "number",
|
|
171
|
+
"minimum": 0
|
|
172
|
+
},
|
|
173
|
+
"committedSpendUsd": {
|
|
174
|
+
"type": "number",
|
|
175
|
+
"minimum": 0
|
|
176
|
+
},
|
|
177
|
+
"maximumIterationSpendUsd": {
|
|
178
|
+
"type": "number",
|
|
179
|
+
"minimum": 0
|
|
180
|
+
},
|
|
181
|
+
"maximumDailySpendUsd": {
|
|
182
|
+
"type": "number",
|
|
183
|
+
"minimum": 0
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"reservedSpendUsd",
|
|
188
|
+
"settledSpendUsd",
|
|
189
|
+
"committedSpendUsd",
|
|
190
|
+
"maximumIterationSpendUsd",
|
|
191
|
+
"maximumDailySpendUsd"
|
|
192
|
+
],
|
|
193
|
+
"additionalProperties": false
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"policy",
|
|
198
|
+
"modelProjectId",
|
|
199
|
+
"inspectedAt",
|
|
200
|
+
"chain",
|
|
201
|
+
"counts",
|
|
202
|
+
"minimumApprovedExamples",
|
|
203
|
+
"canReserve",
|
|
204
|
+
"blockers",
|
|
205
|
+
"cooldownUntil",
|
|
206
|
+
"budget"
|
|
207
|
+
],
|
|
208
|
+
"additionalProperties": false,
|
|
209
|
+
"$defs": {
|
|
210
|
+
"__schema0": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"minLength": 1,
|
|
213
|
+
"maxLength": 240
|
|
214
|
+
},
|
|
215
|
+
"__schema1": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"format": "date-time",
|
|
218
|
+
"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+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
219
|
+
},
|
|
220
|
+
"__schema2": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"code": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"minLength": 1,
|
|
226
|
+
"maxLength": 200
|
|
227
|
+
},
|
|
228
|
+
"message": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"minLength": 1,
|
|
231
|
+
"maxLength": 20000
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"required": [
|
|
235
|
+
"code",
|
|
236
|
+
"message"
|
|
237
|
+
],
|
|
238
|
+
"additionalProperties": false
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"$id": "urn:openpond:learning:v1:policy-inspection",
|
|
242
|
+
"$comment": "Generated from @openpond/evals. Cross-resource identity, authorization, idempotency, admission, grading and split constraints are enforced by the shared domain service in addition to this structural schema."
|
|
243
|
+
}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"oneOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"action": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "inspect_policy"
|
|
10
|
+
},
|
|
11
|
+
"scope": {
|
|
12
|
+
"$ref": "#/$defs/__schema0"
|
|
13
|
+
},
|
|
14
|
+
"policy": {
|
|
15
|
+
"$ref": "#/$defs/__schema1"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"action",
|
|
20
|
+
"scope",
|
|
21
|
+
"policy"
|
|
22
|
+
],
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
},
|
|
4
25
|
{
|
|
5
26
|
"type": "object",
|
|
6
27
|
"properties": {
|
|
@@ -12,27 +33,7 @@
|
|
|
12
33
|
"$ref": "#/$defs/__schema0"
|
|
13
34
|
},
|
|
14
35
|
"evidence": {
|
|
15
|
-
"
|
|
16
|
-
"properties": {
|
|
17
|
-
"id": {
|
|
18
|
-
"$ref": "#/$defs/__schema0"
|
|
19
|
-
},
|
|
20
|
-
"contentHash": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"pattern": "^[a-f0-9]{64}$"
|
|
23
|
-
},
|
|
24
|
-
"revision": {
|
|
25
|
-
"type": "integer",
|
|
26
|
-
"exclusiveMinimum": 0,
|
|
27
|
-
"maximum": 9007199254740991
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"required": [
|
|
31
|
-
"id",
|
|
32
|
-
"contentHash",
|
|
33
|
-
"revision"
|
|
34
|
-
],
|
|
35
|
-
"additionalProperties": false
|
|
36
|
+
"$ref": "#/$defs/__schema1"
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
"required": [
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
"$ref": "#/$defs/__schema0"
|
|
54
55
|
},
|
|
55
56
|
"kind": {
|
|
56
|
-
"$ref": "#/$defs/
|
|
57
|
+
"$ref": "#/$defs/__schema2"
|
|
57
58
|
},
|
|
58
59
|
"id": {
|
|
59
60
|
"$ref": "#/$defs/__schema0"
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"$ref": "#/$defs/__schema0"
|
|
84
85
|
},
|
|
85
86
|
"kind": {
|
|
86
|
-
"$ref": "#/$defs/
|
|
87
|
+
"$ref": "#/$defs/__schema2"
|
|
87
88
|
},
|
|
88
89
|
"parentId": {
|
|
89
90
|
"$ref": "#/$defs/__schema0"
|
|
@@ -119,6 +120,29 @@
|
|
|
119
120
|
"maxLength": 240
|
|
120
121
|
},
|
|
121
122
|
"__schema1": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"id": {
|
|
126
|
+
"$ref": "#/$defs/__schema0"
|
|
127
|
+
},
|
|
128
|
+
"contentHash": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
131
|
+
},
|
|
132
|
+
"revision": {
|
|
133
|
+
"type": "integer",
|
|
134
|
+
"exclusiveMinimum": 0,
|
|
135
|
+
"maximum": 9007199254740991
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": [
|
|
139
|
+
"id",
|
|
140
|
+
"contentHash",
|
|
141
|
+
"revision"
|
|
142
|
+
],
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
},
|
|
145
|
+
"__schema2": {
|
|
122
146
|
"type": "string",
|
|
123
147
|
"enum": [
|
|
124
148
|
"draft",
|