@nxtedition/types 23.1.4 → 23.1.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/dist/common/block.d.ts +1 -0
- package/dist/common/block.js +31 -13
- package/dist/common/file.js +9 -8
- package/dist/common/location.js +1 -1
- package/dist/common/render-scene.d.ts +5 -0
- package/dist/common/rule.js +2 -2
- package/dist/nxtpression.d.ts +120 -163
- package/dist/records/domains/event.d.ts +14 -0
- package/dist/records/validate/assert-guard.js +333 -162
- package/dist/records/validate/assert.js +335 -162
- package/dist/records/validate/is.js +32 -26
- package/dist/records/validate/schemas.js +160 -4
- package/dist/records/validate/stringify.js +269 -262
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +567 -238
- package/dist/records/validate/validate.js +330 -162
- package/dist/rpc.js +2 -2
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +13 -14
|
@@ -7588,6 +7588,83 @@ function _schemaDomainRecord(domain) {
|
|
|
7588
7588
|
}
|
|
7589
7589
|
};
|
|
7590
7590
|
}
|
|
7591
|
+
case ":event.readDuration?": {
|
|
7592
|
+
return {
|
|
7593
|
+
version: "3.1",
|
|
7594
|
+
components: {
|
|
7595
|
+
schemas: {
|
|
7596
|
+
EventReadDurationRecord: {
|
|
7597
|
+
type: "object",
|
|
7598
|
+
properties: {
|
|
7599
|
+
numChars: {
|
|
7600
|
+
type: "number"
|
|
7601
|
+
},
|
|
7602
|
+
numWords: {
|
|
7603
|
+
type: "number"
|
|
7604
|
+
},
|
|
7605
|
+
readRate: {
|
|
7606
|
+
type: "number"
|
|
7607
|
+
},
|
|
7608
|
+
readDuration: {
|
|
7609
|
+
type: "number"
|
|
7610
|
+
},
|
|
7611
|
+
readType: {
|
|
7612
|
+
oneOf: [
|
|
7613
|
+
{
|
|
7614
|
+
"const": "characters"
|
|
7615
|
+
},
|
|
7616
|
+
{
|
|
7617
|
+
"const": "words"
|
|
7618
|
+
},
|
|
7619
|
+
{
|
|
7620
|
+
"const": "wordsPerMinute"
|
|
7621
|
+
}
|
|
7622
|
+
]
|
|
7623
|
+
}
|
|
7624
|
+
},
|
|
7625
|
+
required: []
|
|
7626
|
+
}
|
|
7627
|
+
}
|
|
7628
|
+
},
|
|
7629
|
+
schema: {
|
|
7630
|
+
$ref: "#/components/schemas/EventReadDurationRecord"
|
|
7631
|
+
}
|
|
7632
|
+
};
|
|
7633
|
+
}
|
|
7634
|
+
case ":event.readRate?": {
|
|
7635
|
+
return {
|
|
7636
|
+
version: "3.1",
|
|
7637
|
+
components: {
|
|
7638
|
+
schemas: {
|
|
7639
|
+
EventReadRateRecord: {
|
|
7640
|
+
type: "object",
|
|
7641
|
+
properties: {
|
|
7642
|
+
readRate: {
|
|
7643
|
+
type: "number"
|
|
7644
|
+
},
|
|
7645
|
+
readType: {
|
|
7646
|
+
oneOf: [
|
|
7647
|
+
{
|
|
7648
|
+
"const": "characters"
|
|
7649
|
+
},
|
|
7650
|
+
{
|
|
7651
|
+
"const": "words"
|
|
7652
|
+
},
|
|
7653
|
+
{
|
|
7654
|
+
"const": "wordsPerMinute"
|
|
7655
|
+
}
|
|
7656
|
+
]
|
|
7657
|
+
}
|
|
7658
|
+
},
|
|
7659
|
+
required: []
|
|
7660
|
+
}
|
|
7661
|
+
}
|
|
7662
|
+
},
|
|
7663
|
+
schema: {
|
|
7664
|
+
$ref: "#/components/schemas/EventReadRateRecord"
|
|
7665
|
+
}
|
|
7666
|
+
};
|
|
7667
|
+
}
|
|
7591
7668
|
case ":file.replicate": {
|
|
7592
7669
|
return {
|
|
7593
7670
|
version: "3.1",
|
|
@@ -8724,6 +8801,9 @@ function _schemaDomainRecord(domain) {
|
|
|
8724
8801
|
crop: {
|
|
8725
8802
|
$ref: "#/components/schemas/RenderSceneCrop"
|
|
8726
8803
|
},
|
|
8804
|
+
focus: {
|
|
8805
|
+
$ref: "#/components/schemas/RenderSceneFocus"
|
|
8806
|
+
},
|
|
8727
8807
|
orientation: {
|
|
8728
8808
|
type: "number"
|
|
8729
8809
|
},
|
|
@@ -9044,6 +9124,18 @@ function _schemaDomainRecord(domain) {
|
|
|
9044
9124
|
}
|
|
9045
9125
|
},
|
|
9046
9126
|
required: []
|
|
9127
|
+
},
|
|
9128
|
+
RenderSceneFocus: {
|
|
9129
|
+
type: "object",
|
|
9130
|
+
properties: {
|
|
9131
|
+
x: {
|
|
9132
|
+
type: "number"
|
|
9133
|
+
},
|
|
9134
|
+
y: {
|
|
9135
|
+
type: "number"
|
|
9136
|
+
}
|
|
9137
|
+
},
|
|
9138
|
+
required: []
|
|
9047
9139
|
}
|
|
9048
9140
|
}
|
|
9049
9141
|
},
|
|
@@ -9902,6 +9994,9 @@ function _schemaDomainRecord(domain) {
|
|
|
9902
9994
|
crop: {
|
|
9903
9995
|
$ref: "#/components/schemas/RenderSceneCrop"
|
|
9904
9996
|
},
|
|
9997
|
+
focus: {
|
|
9998
|
+
$ref: "#/components/schemas/RenderSceneFocus"
|
|
9999
|
+
},
|
|
9905
10000
|
orientation: {
|
|
9906
10001
|
type: "number"
|
|
9907
10002
|
},
|
|
@@ -10222,6 +10317,18 @@ function _schemaDomainRecord(domain) {
|
|
|
10222
10317
|
}
|
|
10223
10318
|
},
|
|
10224
10319
|
required: []
|
|
10320
|
+
},
|
|
10321
|
+
RenderSceneFocus: {
|
|
10322
|
+
type: "object",
|
|
10323
|
+
properties: {
|
|
10324
|
+
x: {
|
|
10325
|
+
type: "number"
|
|
10326
|
+
},
|
|
10327
|
+
y: {
|
|
10328
|
+
type: "number"
|
|
10329
|
+
}
|
|
10330
|
+
},
|
|
10331
|
+
required: []
|
|
10225
10332
|
}
|
|
10226
10333
|
}
|
|
10227
10334
|
},
|
|
@@ -11978,6 +12085,9 @@ function _schemaDomainRecord(domain) {
|
|
|
11978
12085
|
crop: {
|
|
11979
12086
|
$ref: "#/components/schemas/RenderSceneCrop"
|
|
11980
12087
|
},
|
|
12088
|
+
focus: {
|
|
12089
|
+
$ref: "#/components/schemas/RenderSceneFocus"
|
|
12090
|
+
},
|
|
11981
12091
|
orientation: {
|
|
11982
12092
|
type: "number"
|
|
11983
12093
|
},
|
|
@@ -12299,6 +12409,18 @@ function _schemaDomainRecord(domain) {
|
|
|
12299
12409
|
},
|
|
12300
12410
|
required: []
|
|
12301
12411
|
},
|
|
12412
|
+
RenderSceneFocus: {
|
|
12413
|
+
type: "object",
|
|
12414
|
+
properties: {
|
|
12415
|
+
x: {
|
|
12416
|
+
type: "number"
|
|
12417
|
+
},
|
|
12418
|
+
y: {
|
|
12419
|
+
type: "number"
|
|
12420
|
+
}
|
|
12421
|
+
},
|
|
12422
|
+
required: []
|
|
12423
|
+
},
|
|
12302
12424
|
RenderProfileObject: {
|
|
12303
12425
|
type: "object",
|
|
12304
12426
|
properties: {
|
|
@@ -13209,6 +13331,9 @@ function _schemaDomainRecord(domain) {
|
|
|
13209
13331
|
crop: {
|
|
13210
13332
|
$ref: "#/components/schemas/RenderSceneCrop"
|
|
13211
13333
|
},
|
|
13334
|
+
focus: {
|
|
13335
|
+
$ref: "#/components/schemas/RenderSceneFocus"
|
|
13336
|
+
},
|
|
13212
13337
|
orientation: {
|
|
13213
13338
|
type: "number"
|
|
13214
13339
|
},
|
|
@@ -13530,6 +13655,18 @@ function _schemaDomainRecord(domain) {
|
|
|
13530
13655
|
},
|
|
13531
13656
|
required: []
|
|
13532
13657
|
},
|
|
13658
|
+
RenderSceneFocus: {
|
|
13659
|
+
type: "object",
|
|
13660
|
+
properties: {
|
|
13661
|
+
x: {
|
|
13662
|
+
type: "number"
|
|
13663
|
+
},
|
|
13664
|
+
y: {
|
|
13665
|
+
type: "number"
|
|
13666
|
+
}
|
|
13667
|
+
},
|
|
13668
|
+
required: []
|
|
13669
|
+
},
|
|
13533
13670
|
RenderProfileObject: {
|
|
13534
13671
|
type: "object",
|
|
13535
13672
|
properties: {
|
|
@@ -15075,6 +15212,9 @@ function _schemaDomainRecord(domain) {
|
|
|
15075
15212
|
crop: {
|
|
15076
15213
|
$ref: "#/components/schemas/RenderSceneCrop"
|
|
15077
15214
|
},
|
|
15215
|
+
focus: {
|
|
15216
|
+
$ref: "#/components/schemas/RenderSceneFocus"
|
|
15217
|
+
},
|
|
15078
15218
|
orientation: {
|
|
15079
15219
|
type: "number"
|
|
15080
15220
|
},
|
|
@@ -15396,6 +15536,18 @@ function _schemaDomainRecord(domain) {
|
|
|
15396
15536
|
},
|
|
15397
15537
|
required: []
|
|
15398
15538
|
},
|
|
15539
|
+
RenderSceneFocus: {
|
|
15540
|
+
type: "object",
|
|
15541
|
+
properties: {
|
|
15542
|
+
x: {
|
|
15543
|
+
type: "number"
|
|
15544
|
+
},
|
|
15545
|
+
y: {
|
|
15546
|
+
type: "number"
|
|
15547
|
+
}
|
|
15548
|
+
},
|
|
15549
|
+
required: []
|
|
15550
|
+
},
|
|
15399
15551
|
RenderProfileObject: {
|
|
15400
15552
|
type: "object",
|
|
15401
15553
|
properties: {
|
|
@@ -16466,7 +16618,8 @@ function _schemaDomainRecord(domain) {
|
|
|
16466
16618
|
description: "The type string used by the Node class"
|
|
16467
16619
|
},
|
|
16468
16620
|
$: {
|
|
16469
|
-
$ref: "#/components/schemas/Recordstringunknown"
|
|
16621
|
+
$ref: "#/components/schemas/Recordstringunknown",
|
|
16622
|
+
description: "Any state persisted with the NodeState API that is not\nconfigured for flat storage"
|
|
16470
16623
|
},
|
|
16471
16624
|
version: {
|
|
16472
16625
|
type: "number",
|
|
@@ -16532,7 +16685,8 @@ function _schemaDomainRecord(domain) {
|
|
|
16532
16685
|
description: "A numeric version for this schema, defaulting to 1, but not generally recommended for use"
|
|
16533
16686
|
},
|
|
16534
16687
|
$: {
|
|
16535
|
-
$ref: "#/components/schemas/Recordstringunknown"
|
|
16688
|
+
$ref: "#/components/schemas/Recordstringunknown",
|
|
16689
|
+
description: "Any state persisted with the NodeState API that is not\nconfigured for flat storage"
|
|
16536
16690
|
}
|
|
16537
16691
|
},
|
|
16538
16692
|
required: [
|
|
@@ -16696,7 +16850,8 @@ function _schemaDomainRecord(domain) {
|
|
|
16696
16850
|
description: "The type string used by the Node class"
|
|
16697
16851
|
},
|
|
16698
16852
|
$: {
|
|
16699
|
-
$ref: "#/components/schemas/Recordstringunknown"
|
|
16853
|
+
$ref: "#/components/schemas/Recordstringunknown",
|
|
16854
|
+
description: "Any state persisted with the NodeState API that is not\nconfigured for flat storage"
|
|
16700
16855
|
},
|
|
16701
16856
|
version: {
|
|
16702
16857
|
type: "number",
|
|
@@ -16762,7 +16917,8 @@ function _schemaDomainRecord(domain) {
|
|
|
16762
16917
|
description: "A numeric version for this schema, defaulting to 1, but not generally recommended for use"
|
|
16763
16918
|
},
|
|
16764
16919
|
$: {
|
|
16765
|
-
$ref: "#/components/schemas/Recordstringunknown"
|
|
16920
|
+
$ref: "#/components/schemas/Recordstringunknown",
|
|
16921
|
+
description: "Any state persisted with the NodeState API that is not\nconfigured for flat storage"
|
|
16766
16922
|
}
|
|
16767
16923
|
},
|
|
16768
16924
|
required: [
|