@nxtedition/types 23.1.4 → 23.1.5

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.
@@ -11,6 +11,8 @@ export interface EventDomainRecords {
11
11
  ":event.children?": EventChildrenRecord;
12
12
  ":event.props?": EventPropsRecord;
13
13
  ":event.stats?": EventStatsRecord;
14
+ ":event.readDuration?": EventReadDurationRecord;
15
+ ":event.readRate?": EventReadRateRecord;
14
16
  }
15
17
  export interface EventRecord {
16
18
  start?: number | null;
@@ -56,6 +58,17 @@ export interface EventOverlayRecord {
56
58
  data: EventPropsRecord;
57
59
  };
58
60
  }
61
+ export interface EventReadDurationRecord {
62
+ numChars?: number;
63
+ numWords?: number;
64
+ readRate?: number;
65
+ readDuration?: number;
66
+ readType?: ReadType;
67
+ }
68
+ export interface EventReadRateRecord {
69
+ readRate?: number;
70
+ readType?: ReadType;
71
+ }
59
72
  export interface SubtitleEventStyleOverrides {
60
73
  marginL?: string;
61
74
  marginR?: string;
@@ -72,4 +85,5 @@ export interface SubtitleEventStyleOverrides {
72
85
  underline?: string;
73
86
  strikeOut?: string;
74
87
  }
88
+ export type ReadType = "characters" | "words" | "wordsPerMinute";
75
89
  export {};
@@ -1,6 +1,6 @@
1
- import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js";
2
- import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
3
- import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64.js";
1
+ import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
2
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString";
3
+ import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64";
4
4
  import { isEmptyRecord, parseRecordName } from "./utils.js";
5
5
  import typia from 'typia';
6
6
  export function assertGuardRecord(name, input) {
@@ -9406,6 +9406,77 @@ function _assertGuardDomainRecord(domain, input) {
9406
9406
  }
9407
9407
  }; })()(input);
9408
9408
  }
9409
+ case ":event.readDuration?": {
9410
+ return (() => { const _io0 = input => (undefined === input.numChars || "number" === typeof input.numChars) && (undefined === input.numWords || "number" === typeof input.numWords) && (undefined === input.readRate || "number" === typeof input.readRate) && (undefined === input.readDuration || "number" === typeof input.readDuration) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.numChars || "number" === typeof input.numChars || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9411
+ method: "typia.assertGuard",
9412
+ path: _path + ".numChars",
9413
+ expected: "(number | undefined)",
9414
+ value: input.numChars
9415
+ }, _errorFactory)) && (undefined === input.numWords || "number" === typeof input.numWords || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9416
+ method: "typia.assertGuard",
9417
+ path: _path + ".numWords",
9418
+ expected: "(number | undefined)",
9419
+ value: input.numWords
9420
+ }, _errorFactory)) && (undefined === input.readRate || "number" === typeof input.readRate || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9421
+ method: "typia.assertGuard",
9422
+ path: _path + ".readRate",
9423
+ expected: "(number | undefined)",
9424
+ value: input.readRate
9425
+ }, _errorFactory)) && (undefined === input.readDuration || "number" === typeof input.readDuration || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9426
+ method: "typia.assertGuard",
9427
+ path: _path + ".readDuration",
9428
+ expected: "(number | undefined)",
9429
+ value: input.readDuration
9430
+ }, _errorFactory)) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9431
+ method: "typia.assertGuard",
9432
+ path: _path + ".readType",
9433
+ expected: "(\"characters\" | \"words\" | \"wordsPerMinute\" | undefined)",
9434
+ value: input.readType
9435
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
9436
+ if (false === __is(input)) {
9437
+ _errorFactory = errorFactory;
9438
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
9439
+ method: "typia.assertGuard",
9440
+ path: _path + "",
9441
+ expected: "EventReadDurationRecord",
9442
+ value: input
9443
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
9444
+ method: "typia.assertGuard",
9445
+ path: _path + "",
9446
+ expected: "EventReadDurationRecord",
9447
+ value: input
9448
+ }, _errorFactory))(input, "$input", true);
9449
+ }
9450
+ }; })()(input);
9451
+ }
9452
+ case ":event.readRate?": {
9453
+ return (() => { const _io0 = input => (undefined === input.readRate || "number" === typeof input.readRate) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.readRate || "number" === typeof input.readRate || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9454
+ method: "typia.assertGuard",
9455
+ path: _path + ".readRate",
9456
+ expected: "(number | undefined)",
9457
+ value: input.readRate
9458
+ }, _errorFactory)) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9459
+ method: "typia.assertGuard",
9460
+ path: _path + ".readType",
9461
+ expected: "(\"characters\" | \"words\" | \"wordsPerMinute\" | undefined)",
9462
+ value: input.readType
9463
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
9464
+ if (false === __is(input)) {
9465
+ _errorFactory = errorFactory;
9466
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
9467
+ method: "typia.assertGuard",
9468
+ path: _path + "",
9469
+ expected: "EventReadRateRecord",
9470
+ value: input
9471
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
9472
+ method: "typia.assertGuard",
9473
+ path: _path + "",
9474
+ expected: "EventReadRateRecord",
9475
+ value: input
9476
+ }, _errorFactory))(input, "$input", true);
9477
+ }
9478
+ }; })()(input);
9479
+ }
9409
9480
  case ":file.replicate": {
9410
9481
  return (() => { const _io0 = input => Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem) && (null === input.error || "object" === typeof input.error && null !== input.error && _io1(input.error)); const _io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => Object.keys(input).every(key => {
9411
9482
  const value = input[key];
@@ -1,6 +1,6 @@
1
- import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js";
2
- import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
3
- import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64.js";
1
+ import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
2
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString";
3
+ import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64";
4
4
  import { isEmptyRecord, parseRecordName } from "./utils.js";
5
5
  import typia from 'typia';
6
6
  export function assertRecord(name, input) {
@@ -9484,6 +9484,79 @@ function _assertDomainRecord(domain, input) {
9484
9484
  return input;
9485
9485
  }; })()(input);
9486
9486
  }
9487
+ case ":event.readDuration?": {
9488
+ return (() => { const _io0 = input => (undefined === input.numChars || "number" === typeof input.numChars) && (undefined === input.numWords || "number" === typeof input.numWords) && (undefined === input.readRate || "number" === typeof input.readRate) && (undefined === input.readDuration || "number" === typeof input.readDuration) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.numChars || "number" === typeof input.numChars || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9489
+ method: "typia.assert",
9490
+ path: _path + ".numChars",
9491
+ expected: "(number | undefined)",
9492
+ value: input.numChars
9493
+ }, _errorFactory)) && (undefined === input.numWords || "number" === typeof input.numWords || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9494
+ method: "typia.assert",
9495
+ path: _path + ".numWords",
9496
+ expected: "(number | undefined)",
9497
+ value: input.numWords
9498
+ }, _errorFactory)) && (undefined === input.readRate || "number" === typeof input.readRate || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9499
+ method: "typia.assert",
9500
+ path: _path + ".readRate",
9501
+ expected: "(number | undefined)",
9502
+ value: input.readRate
9503
+ }, _errorFactory)) && (undefined === input.readDuration || "number" === typeof input.readDuration || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9504
+ method: "typia.assert",
9505
+ path: _path + ".readDuration",
9506
+ expected: "(number | undefined)",
9507
+ value: input.readDuration
9508
+ }, _errorFactory)) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9509
+ method: "typia.assert",
9510
+ path: _path + ".readType",
9511
+ expected: "(\"characters\" | \"words\" | \"wordsPerMinute\" | undefined)",
9512
+ value: input.readType
9513
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
9514
+ if (false === __is(input)) {
9515
+ _errorFactory = errorFactory;
9516
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
9517
+ method: "typia.assert",
9518
+ path: _path + "",
9519
+ expected: "EventReadDurationRecord",
9520
+ value: input
9521
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
9522
+ method: "typia.assert",
9523
+ path: _path + "",
9524
+ expected: "EventReadDurationRecord",
9525
+ value: input
9526
+ }, _errorFactory))(input, "$input", true);
9527
+ }
9528
+ return input;
9529
+ }; })()(input);
9530
+ }
9531
+ case ":event.readRate?": {
9532
+ return (() => { const _io0 = input => (undefined === input.readRate || "number" === typeof input.readRate) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.readRate || "number" === typeof input.readRate || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9533
+ method: "typia.assert",
9534
+ path: _path + ".readRate",
9535
+ expected: "(number | undefined)",
9536
+ value: input.readRate
9537
+ }, _errorFactory)) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9538
+ method: "typia.assert",
9539
+ path: _path + ".readType",
9540
+ expected: "(\"characters\" | \"words\" | \"wordsPerMinute\" | undefined)",
9541
+ value: input.readType
9542
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
9543
+ if (false === __is(input)) {
9544
+ _errorFactory = errorFactory;
9545
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform__assertGuard._assertGuard(true, {
9546
+ method: "typia.assert",
9547
+ path: _path + "",
9548
+ expected: "EventReadRateRecord",
9549
+ value: input
9550
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
9551
+ method: "typia.assert",
9552
+ path: _path + "",
9553
+ expected: "EventReadRateRecord",
9554
+ value: input
9555
+ }, _errorFactory))(input, "$input", true);
9556
+ }
9557
+ return input;
9558
+ }; })()(input);
9559
+ }
9487
9560
  case ":file.replicate": {
9488
9561
  return (() => { const _io0 = input => Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem) && (null === input.error || "object" === typeof input.error && null !== input.error && _io1(input.error)); const _io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => Object.keys(input).every(key => {
9489
9562
  const value = input[key];
@@ -1,4 +1,4 @@
1
- import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64.js";
1
+ import * as __typia_transform__isTypeUint64 from "typia/lib/internal/_isTypeUint64";
2
2
  import { isEmptyRecord, parseRecordName } from "./utils.js";
3
3
  import typia from 'typia';
4
4
  export function isRecord(name, input) {
@@ -601,6 +601,12 @@ function _isDomainRecord(domain, input) {
601
601
  case ":event.stats?": {
602
602
  return (() => { const _io0 = input => undefined === input.type || "string" === typeof input.type; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
603
603
  }
604
+ case ":event.readDuration?": {
605
+ return (() => { const _io0 = input => (undefined === input.numChars || "number" === typeof input.numChars) && (undefined === input.numWords || "number" === typeof input.numWords) && (undefined === input.readRate || "number" === typeof input.readRate) && (undefined === input.readDuration || "number" === typeof input.readDuration) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
606
+ }
607
+ case ":event.readRate?": {
608
+ return (() => { const _io0 = input => (undefined === input.readRate || "number" === typeof input.readRate) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
609
+ }
604
610
  case ":file.replicate": {
605
611
  return (() => { const _io0 = input => Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem) && (null === input.error || "object" === typeof input.error && null !== input.error && _io1(input.error)); const _io1 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && _io1(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io2 = input => Object.keys(input).every(key => {
606
612
  const value = input[key];
@@ -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",
@@ -16466,7 +16543,8 @@ function _schemaDomainRecord(domain) {
16466
16543
  description: "The type string used by the Node class"
16467
16544
  },
16468
16545
  $: {
16469
- $ref: "#/components/schemas/Recordstringunknown"
16546
+ $ref: "#/components/schemas/Recordstringunknown",
16547
+ description: "Any state persisted with the NodeState API that is not\nconfigured for flat storage"
16470
16548
  },
16471
16549
  version: {
16472
16550
  type: "number",
@@ -16532,7 +16610,8 @@ function _schemaDomainRecord(domain) {
16532
16610
  description: "A numeric version for this schema, defaulting to 1, but not generally recommended for use"
16533
16611
  },
16534
16612
  $: {
16535
- $ref: "#/components/schemas/Recordstringunknown"
16613
+ $ref: "#/components/schemas/Recordstringunknown",
16614
+ description: "Any state persisted with the NodeState API that is not\nconfigured for flat storage"
16536
16615
  }
16537
16616
  },
16538
16617
  required: [
@@ -16696,7 +16775,8 @@ function _schemaDomainRecord(domain) {
16696
16775
  description: "The type string used by the Node class"
16697
16776
  },
16698
16777
  $: {
16699
- $ref: "#/components/schemas/Recordstringunknown"
16778
+ $ref: "#/components/schemas/Recordstringunknown",
16779
+ description: "Any state persisted with the NodeState API that is not\nconfigured for flat storage"
16700
16780
  },
16701
16781
  version: {
16702
16782
  type: "number",
@@ -16762,7 +16842,8 @@ function _schemaDomainRecord(domain) {
16762
16842
  description: "A numeric version for this schema, defaulting to 1, but not generally recommended for use"
16763
16843
  },
16764
16844
  $: {
16765
- $ref: "#/components/schemas/Recordstringunknown"
16845
+ $ref: "#/components/schemas/Recordstringunknown",
16846
+ description: "Any state persisted with the NodeState API that is not\nconfigured for flat storage"
16766
16847
  }
16767
16848
  },
16768
16849
  required: [