@nxtedition/types 23.0.65 → 23.0.66

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.
@@ -1676,11 +1676,13 @@ declare interface MediaRestrictionsRecord {
1676
1676
  declare type MediaSourceRecord = RenderSceneObject;
1677
1677
 
1678
1678
  declare interface MediaSubtitlesProvidedRecord {
1679
+ defaultLanguage?: string;
1679
1680
  languages?: Record<string, string>;
1680
1681
  fontFaces?: SubtitleFontFace[];
1681
1682
  }
1682
1683
 
1683
1684
  declare interface MediaSubtitlesRecord {
1685
+ defaultLanguage?: string;
1684
1686
  languages?: Record<string, string>;
1685
1687
  fontFaces?: SubtitleFontFace[];
1686
1688
  }
@@ -8,10 +8,12 @@ export interface MediaRecords {
8
8
  "media.consolidate": MediaConsolidateRecord;
9
9
  }
10
10
  export interface MediaSubtitlesRecord {
11
+ defaultLanguage?: string;
11
12
  languages?: Record<string, string>;
12
13
  fontFaces?: SubtitleFontFace[];
13
14
  }
14
15
  export interface MediaSubtitlesProvidedRecord {
16
+ defaultLanguage?: string;
15
17
  languages?: Record<string, string>;
16
18
  fontFaces?: SubtitleFontFace[];
17
19
  }
@@ -1640,12 +1640,17 @@ function _assertGuardExactRecord(name, input) {
1640
1640
  }; })()(input);
1641
1641
  }
1642
1642
  case "media.subtitles": {
1643
- return (() => { const _io0 = input => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1643
+ return (() => { const _io0 = input => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1644
1644
  const value = input[key];
1645
1645
  if (undefined === value)
1646
1646
  return true;
1647
1647
  return "string" === typeof value;
1648
- }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1648
+ }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1649
+ method: "typia.assertGuard",
1650
+ path: _path + ".defaultLanguage",
1651
+ expected: "(string | undefined)",
1652
+ value: input.defaultLanguage
1653
+ }, _errorFactory)) && (undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1649
1654
  method: "typia.assertGuard",
1650
1655
  path: _path + ".languages",
1651
1656
  expected: "(Record<string, string> | undefined)",
@@ -1723,12 +1728,17 @@ function _assertGuardExactRecord(name, input) {
1723
1728
  }; })()(input);
1724
1729
  }
1725
1730
  case "media.subtitles?": {
1726
- return (() => { const _io0 = input => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1731
+ return (() => { const _io0 = input => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1727
1732
  const value = input[key];
1728
1733
  if (undefined === value)
1729
1734
  return true;
1730
1735
  return "string" === typeof value;
1731
- }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1736
+ }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1737
+ method: "typia.assertGuard",
1738
+ path: _path + ".defaultLanguage",
1739
+ expected: "(string | undefined)",
1740
+ value: input.defaultLanguage
1741
+ }, _errorFactory)) && (undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1732
1742
  method: "typia.assertGuard",
1733
1743
  path: _path + ".languages",
1734
1744
  expected: "(Record<string, string> | undefined)",
@@ -1656,12 +1656,17 @@ function _assertExactRecord(name, input) {
1656
1656
  }; })()(input);
1657
1657
  }
1658
1658
  case "media.subtitles": {
1659
- return (() => { const _io0 = input => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1659
+ return (() => { const _io0 = input => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1660
1660
  const value = input[key];
1661
1661
  if (undefined === value)
1662
1662
  return true;
1663
1663
  return "string" === typeof value;
1664
- }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1664
+ }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1665
+ method: "typia.assert",
1666
+ path: _path + ".defaultLanguage",
1667
+ expected: "(string | undefined)",
1668
+ value: input.defaultLanguage
1669
+ }, _errorFactory)) && (undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1665
1670
  method: "typia.assert",
1666
1671
  path: _path + ".languages",
1667
1672
  expected: "(Record<string, string> | undefined)",
@@ -1740,12 +1745,17 @@ function _assertExactRecord(name, input) {
1740
1745
  }; })()(input);
1741
1746
  }
1742
1747
  case "media.subtitles?": {
1743
- return (() => { const _io0 = input => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1748
+ return (() => { const _io0 = input => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1744
1749
  const value = input[key];
1745
1750
  if (undefined === value)
1746
1751
  return true;
1747
1752
  return "string" === typeof value;
1748
- }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1753
+ }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1754
+ method: "typia.assert",
1755
+ path: _path + ".defaultLanguage",
1756
+ expected: "(string | undefined)",
1757
+ value: input.defaultLanguage
1758
+ }, _errorFactory)) && (undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
1749
1759
  method: "typia.assert",
1750
1760
  path: _path + ".languages",
1751
1761
  expected: "(Record<string, string> | undefined)",
@@ -103,7 +103,7 @@ function _isExactRecord(name, input) {
103
103
  }); const _io5 = input => (undefined === input.image || "string" === typeof input.image) && (undefined === input.running || "number" === typeof input.running) && (undefined === input.mode || "string" === typeof input.mode) && (undefined === input.total || "number" === typeof input.total) && (undefined === input.ignored || "boolean" === typeof input.ignored) && (undefined === input.tasks || Array.isArray(input.tasks) && input.tasks.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && "number" === typeof input.level && "string" === typeof input.status && (Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io3(elem))); const _io6 = input => "string" === typeof input.id && "string" === typeof input.node && "string" === typeof input.container && (undefined === input.level || "number" === typeof input.level) && (undefined === input.status || "string" === typeof input.status) && (Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io3(elem))); return input => "object" === typeof input && null !== input && _io0(input); })()(input);
104
104
  }
105
105
  case "media.subtitles": {
106
- return (() => { const _io0 = input => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
106
+ return (() => { const _io0 = input => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
107
107
  const value = input[key];
108
108
  if (undefined === value)
109
109
  return true;
@@ -111,7 +111,7 @@ function _isExactRecord(name, input) {
111
111
  }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
112
112
  }
113
113
  case "media.subtitles?": {
114
- return (() => { const _io0 = input => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
114
+ return (() => { const _io0 = input => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
115
115
  const value = input[key];
116
116
  if (undefined === value)
117
117
  return true;
@@ -1384,6 +1384,9 @@ function _schemasExactRecord(name) {
1384
1384
  MediaSubtitlesRecord: {
1385
1385
  type: "object",
1386
1386
  properties: {
1387
+ defaultLanguage: {
1388
+ type: "string"
1389
+ },
1387
1390
  languages: {
1388
1391
  $ref: "#/components/schemas/Recordstringstring"
1389
1392
  },
@@ -1456,6 +1459,9 @@ function _schemasExactRecord(name) {
1456
1459
  MediaSubtitlesProvidedRecord: {
1457
1460
  type: "object",
1458
1461
  properties: {
1462
+ defaultLanguage: {
1463
+ type: "string"
1464
+ },
1459
1465
  languages: {
1460
1466
  $ref: "#/components/schemas/Recordstringstring"
1461
1467
  },
@@ -323,7 +323,7 @@ function _stringifyExactRecord(name, input) {
323
323
  }); const _io5 = input => (undefined === input.image || "string" === typeof input.image) && (undefined === input.running || "number" === typeof input.running) && (undefined === input.mode || "string" === typeof input.mode) && (undefined === input.total || "number" === typeof input.total) && (undefined === input.ignored || "boolean" === typeof input.ignored) && (undefined === input.tasks || Array.isArray(input.tasks) && input.tasks.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && "number" === typeof input.level && "string" === typeof input.status && (Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io3(elem))); const _io6 = input => "string" === typeof input.id && "string" === typeof input.node && "string" === typeof input.container && (undefined === input.level || "number" === typeof input.level) && (undefined === input.status || "string" === typeof input.status) && (Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io3(elem))); return input => _so0(input); })()(input);
324
324
  }
325
325
  case "media.subtitles": {
326
- return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.languages ? "" : `"languages":${undefined !== input.languages ? _so1(input.languages) : undefined},`}${undefined === input.fontFaces ? "" : `"fontFaces":${undefined !== input.fontFaces ? `[${input.fontFaces.map(elem => _so2(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
326
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.defaultLanguage ? "" : `"defaultLanguage":${undefined !== input.defaultLanguage ? __typia_transform__jsonStringifyString._jsonStringifyString(input.defaultLanguage) : undefined},`}${undefined === input.languages ? "" : `"languages":${undefined !== input.languages ? _so1(input.languages) : undefined},`}${undefined === input.fontFaces ? "" : `"fontFaces":${undefined !== input.fontFaces ? `[${input.fontFaces.map(elem => _so2(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
327
327
  return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.weight ? "" : `"weight":${undefined !== input.weight ? "\"" + input.weight + "\"" : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? "\"" + input.style + "\"" : undefined},`}"family":${__typia_transform__jsonStringifyString._jsonStringifyString(input.family)}}`; const _io1 = input => Object.keys(input).every(key => {
328
328
  const value = input[key];
329
329
  if (undefined === value)
@@ -332,7 +332,7 @@ function _stringifyExactRecord(name, input) {
332
332
  }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); return input => _so0(input); })()(input);
333
333
  }
334
334
  case "media.subtitles?": {
335
- return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.languages ? "" : `"languages":${undefined !== input.languages ? _so1(input.languages) : undefined},`}${undefined === input.fontFaces ? "" : `"fontFaces":${undefined !== input.fontFaces ? `[${input.fontFaces.map(elem => _so2(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
335
+ return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.defaultLanguage ? "" : `"defaultLanguage":${undefined !== input.defaultLanguage ? __typia_transform__jsonStringifyString._jsonStringifyString(input.defaultLanguage) : undefined},`}${undefined === input.languages ? "" : `"languages":${undefined !== input.languages ? _so1(input.languages) : undefined},`}${undefined === input.fontFaces ? "" : `"fontFaces":${undefined !== input.fontFaces ? `[${input.fontFaces.map(elem => _so2(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
336
336
  return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : undefined},`}${undefined === input.weight ? "" : `"weight":${undefined !== input.weight ? "\"" + input.weight + "\"" : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? "\"" + input.style + "\"" : undefined},`}"family":${__typia_transform__jsonStringifyString._jsonStringifyString(input.family)}}`; const _io1 = input => Object.keys(input).every(key => {
337
337
  const value = input[key];
338
338
  if (undefined === value)
@@ -2710,8 +2710,8 @@ function _validateEqualsExactRecord(name, input) {
2710
2710
  }; })()(input);
2711
2711
  }
2712
2712
  case "media.subtitles": {
2713
- return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages, true && _exceptionable)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every((elem, _index1) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
2714
- if (["languages", "fontFaces"].some(prop => key === prop))
2713
+ return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages, true && _exceptionable)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every((elem, _index1) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
2714
+ if (["defaultLanguage", "languages", "fontFaces"].some(prop => key === prop))
2715
2715
  return true;
2716
2716
  const value = input[key];
2717
2717
  if (undefined === value)
@@ -2729,7 +2729,11 @@ function _validateEqualsExactRecord(name, input) {
2729
2729
  if (undefined === value)
2730
2730
  return true;
2731
2731
  return false;
2732
- })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || _report(_exceptionable, {
2732
+ })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage || _report(_exceptionable, {
2733
+ path: _path + ".defaultLanguage",
2734
+ expected: "(string | undefined)",
2735
+ value: input.defaultLanguage
2736
+ }), undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || _report(_exceptionable, {
2733
2737
  path: _path + ".languages",
2734
2738
  expected: "(Record<string, string> | undefined)",
2735
2739
  value: input.languages
@@ -2754,7 +2758,7 @@ function _validateEqualsExactRecord(name, input) {
2754
2758
  expected: "(Array<SubtitleFontFace> | undefined)",
2755
2759
  value: input.fontFaces
2756
2760
  }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2757
- if (["languages", "fontFaces"].some(prop => key === prop))
2761
+ if (["defaultLanguage", "languages", "fontFaces"].some(prop => key === prop))
2758
2762
  return true;
2759
2763
  const value = input[key];
2760
2764
  if (undefined === value)
@@ -2840,8 +2844,8 @@ function _validateEqualsExactRecord(name, input) {
2840
2844
  }; })()(input);
2841
2845
  }
2842
2846
  case "media.subtitles?": {
2843
- return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages, true && _exceptionable)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every((elem, _index1) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
2844
- if (["languages", "fontFaces"].some(prop => key === prop))
2847
+ return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages, true && _exceptionable)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every((elem, _index1) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
2848
+ if (["defaultLanguage", "languages", "fontFaces"].some(prop => key === prop))
2845
2849
  return true;
2846
2850
  const value = input[key];
2847
2851
  if (undefined === value)
@@ -2859,7 +2863,11 @@ function _validateEqualsExactRecord(name, input) {
2859
2863
  if (undefined === value)
2860
2864
  return true;
2861
2865
  return false;
2862
- })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || _report(_exceptionable, {
2866
+ })); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage || _report(_exceptionable, {
2867
+ path: _path + ".defaultLanguage",
2868
+ expected: "(string | undefined)",
2869
+ value: input.defaultLanguage
2870
+ }), undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || _report(_exceptionable, {
2863
2871
  path: _path + ".languages",
2864
2872
  expected: "(Record<string, string> | undefined)",
2865
2873
  value: input.languages
@@ -2884,7 +2892,7 @@ function _validateEqualsExactRecord(name, input) {
2884
2892
  expected: "(Array<SubtitleFontFace> | undefined)",
2885
2893
  value: input.fontFaces
2886
2894
  }), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
2887
- if (["languages", "fontFaces"].some(prop => key === prop))
2895
+ if (["defaultLanguage", "languages", "fontFaces"].some(prop => key === prop))
2888
2896
  return true;
2889
2897
  const value = input[key];
2890
2898
  if (undefined === value)
@@ -1583,12 +1583,16 @@ function _validateExactRecord(name, input) {
1583
1583
  }; })()(input);
1584
1584
  }
1585
1585
  case "media.subtitles": {
1586
- return (() => { const _io0 = input => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1586
+ return (() => { const _io0 = input => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1587
1587
  const value = input[key];
1588
1588
  if (undefined === value)
1589
1589
  return true;
1590
1590
  return "string" === typeof value;
1591
- }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || _report(_exceptionable, {
1591
+ }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage || _report(_exceptionable, {
1592
+ path: _path + ".defaultLanguage",
1593
+ expected: "(string | undefined)",
1594
+ value: input.defaultLanguage
1595
+ }), undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || _report(_exceptionable, {
1592
1596
  path: _path + ".languages",
1593
1597
  expected: "(Record<string, string> | undefined)",
1594
1598
  value: input.languages
@@ -1667,12 +1671,16 @@ function _validateExactRecord(name, input) {
1667
1671
  }; })()(input);
1668
1672
  }
1669
1673
  case "media.subtitles?": {
1670
- return (() => { const _io0 = input => (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1674
+ return (() => { const _io0 = input => (undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage) && (undefined === input.languages || "object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) && _io1(input.languages)) && (undefined === input.fontFaces || Array.isArray(input.fontFaces) && input.fontFaces.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io1 = input => Object.keys(input).every(key => {
1671
1675
  const value = input[key];
1672
1676
  if (undefined === value)
1673
1677
  return true;
1674
1678
  return "string" === typeof value;
1675
- }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || _report(_exceptionable, {
1679
+ }); const _io2 = input => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "bold" === input.weight || "normal" === input.weight) && (undefined === input.style || "italic" === input.style || "normal" === input.style); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.defaultLanguage || "string" === typeof input.defaultLanguage || _report(_exceptionable, {
1680
+ path: _path + ".defaultLanguage",
1681
+ expected: "(string | undefined)",
1682
+ value: input.defaultLanguage
1683
+ }), undefined === input.languages || ("object" === typeof input.languages && null !== input.languages && false === Array.isArray(input.languages) || _report(_exceptionable, {
1676
1684
  path: _path + ".languages",
1677
1685
  expected: "(Record<string, string> | undefined)",
1678
1686
  value: input.languages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/types",
3
- "version": "23.0.65",
3
+ "version": "23.0.66",
4
4
  "description": "TypeScript types to be shared between nxtedition packages.",
5
5
  "license": "MIT",
6
6
  "type": "module",