@nxtedition/types 23.0.23 → 23.0.25

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.
@@ -1203,7 +1203,7 @@ export const assertStringifyFileRestrictionsRecord = (input, errorFactory) => {
1203
1203
  return $so0(input);
1204
1204
  }; return stringify(assert(input, errorFactory)); };
1205
1205
  export const isFileDomainStatsRecord = input => {
1206
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1206
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1207
1207
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1208
1208
  const $io2 = 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) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1209
1209
  const $io3 = input => Object.keys(input).every(key => {
@@ -1217,7 +1217,7 @@ export const isFileDomainStatsRecord = input => {
1217
1217
  };
1218
1218
  export const assertFileDomainStatsRecord = (input, errorFactory) => {
1219
1219
  const __is = input => {
1220
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1220
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1221
1221
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1222
1222
  const $io2 = 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) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1223
1223
  const $io3 = input => Object.keys(input).every(key => {
@@ -1245,9 +1245,9 @@ export const assertFileDomainStatsRecord = (input, errorFactory) => {
1245
1245
  path: _path + ".position",
1246
1246
  expected: "((number & Minimum<0> & Type<\"uint64\">) | null)",
1247
1247
  value: input.position
1248
- }, errorFactory)) && ("boolean" === typeof input.uploading || $guard(_exceptionable, {
1248
+ }, errorFactory)) && (null === input.uploading || "boolean" === typeof input.uploading || $guard(_exceptionable, {
1249
1249
  path: _path + ".uploading",
1250
- expected: "boolean",
1250
+ expected: "(boolean | null)",
1251
1251
  value: input.uploading
1252
1252
  }, errorFactory)) && ((Array.isArray(input.zones) || $guard(_exceptionable, {
1253
1253
  path: _path + ".zones",
@@ -1570,7 +1570,10 @@ export const randomFileDomainStatsRecord = generator => {
1570
1570
  }
1571
1571
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10)
1572
1572
  ])(),
1573
- uploading: (generator?.boolean ?? $generator.boolean)(),
1573
+ uploading: $pick([
1574
+ () => null,
1575
+ () => (generator?.boolean ?? $generator.boolean)()
1576
+ ])(),
1574
1577
  zones: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
1575
1578
  replicas: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
1576
1579
  locations: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
@@ -1726,7 +1729,7 @@ export const randomFileDomainStatsRecord = generator => {
1726
1729
  };
1727
1730
  export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
1728
1731
  const __is = input => {
1729
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1732
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && 0 <= elem[0]) && ("number" === typeof elem[1] && 0 <= elem[1])))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
1730
1733
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1731
1734
  const $io2 = 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) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1732
1735
  const $io3 = input => Object.keys(input).every(key => {
@@ -1754,9 +1757,9 @@ export const assertGuardFileDomainStatsRecord = (input, errorFactory) => {
1754
1757
  path: _path + ".position",
1755
1758
  expected: "((number & Minimum<0> & Type<\"uint64\">) | null)",
1756
1759
  value: input.position
1757
- }, errorFactory)) && ("boolean" === typeof input.uploading || $guard(_exceptionable, {
1760
+ }, errorFactory)) && (null === input.uploading || "boolean" === typeof input.uploading || $guard(_exceptionable, {
1758
1761
  path: _path + ".uploading",
1759
- expected: "boolean",
1762
+ expected: "(boolean | null)",
1760
1763
  value: input.uploading
1761
1764
  }, errorFactory)) && ((Array.isArray(input.zones) || $guard(_exceptionable, {
1762
1765
  path: _path + ".zones",
@@ -2072,7 +2075,7 @@ export const stringifyFileDomainStatsRecord = input => {
2072
2075
  const $string = __typia.json.createStringify.string;
2073
2076
  const $throws = __typia.json.createStringify.throws;
2074
2077
  const $tail = __typia.json.createStringify.tail;
2075
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"encoding":${$string(input.encoding)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2078
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"encoding":${$string(input.encoding)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2076
2079
  if (Array.isArray(input.error))
2077
2080
  return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2078
2081
  if ("object" === typeof input.error && null !== input.error)
@@ -2090,7 +2093,7 @@ export const stringifyFileDomainStatsRecord = input => {
2090
2093
  };
2091
2094
  export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
2092
2095
  const __is = input => {
2093
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
2096
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && (null === input.uploading || "boolean" === typeof input.uploading) && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && (Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem)) && ("number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("number" === typeof elem[0] && (!Number.isNaN(elem[0]) && 0 <= elem[0])) && ("number" === typeof elem[1] && (!Number.isNaN(elem[1]) && 0 <= elem[1]))))) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && "string" === typeof input.encoding && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) || "object" === typeof input.error && null !== input.error && $io2(input.error))));
2094
2097
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
2095
2098
  const $io2 = 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 && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io3(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io4(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io2(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
2096
2099
  const $io3 = input => Object.keys(input).every(key => {
@@ -2118,9 +2121,9 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
2118
2121
  path: _path + ".position",
2119
2122
  expected: "((number & Minimum<0> & Type<\"uint64\">) | null)",
2120
2123
  value: input.position
2121
- }, errorFactory)) && ("boolean" === typeof input.uploading || $guard(_exceptionable, {
2124
+ }, errorFactory)) && (null === input.uploading || "boolean" === typeof input.uploading || $guard(_exceptionable, {
2122
2125
  path: _path + ".uploading",
2123
- expected: "boolean",
2126
+ expected: "(boolean | null)",
2124
2127
  value: input.uploading
2125
2128
  }, errorFactory)) && ((Array.isArray(input.zones) || $guard(_exceptionable, {
2126
2129
  path: _path + ".zones",
@@ -2444,7 +2447,7 @@ export const assertStringifyFileDomainStatsRecord = (input, errorFactory) => { c
2444
2447
  const $string = __typia.json.createAssertStringify.string;
2445
2448
  const $throws = __typia.json.createAssertStringify.throws;
2446
2449
  const $tail = __typia.json.createAssertStringify.tail;
2447
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"encoding":${$string(input.encoding)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2450
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => $string(elem)).join(",")}]`},"progress":${input.progress},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"encoding":${$string(input.encoding)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2448
2451
  if (Array.isArray(input.error))
2449
2452
  return `[${input.error.map(elem => $so2(elem)).join(",")}]`;
2450
2453
  if ("object" === typeof input.error && null !== input.error)
@@ -29,6 +29,7 @@ import type { SearchDomainRecords } from './search.js';
29
29
  import type { SettingsDomainRecords } from './settings.js';
30
30
  import type { StoryboardDomainRecords } from './storyboard.js';
31
31
  import type { SubtitleStyleDomainRecords } from './subtitle-style.js';
32
+ import type { SubtitleDomainRecords } from './subtitle.js';
32
33
  import type { TemplateDomainRecords } from './template.js';
33
34
  import type { UserNotificationStatusDomainRecords } from './user-notification-status.js';
34
35
  import type { UserNotificationDomainRecords } from './user-notification.js';
@@ -64,8 +65,9 @@ export * from './search.js';
64
65
  export * from './settings.js';
65
66
  export * from './storyboard.js';
66
67
  export * from './subtitle-style.js';
68
+ export * from './subtitle.js';
67
69
  export * from './template.js';
68
70
  export * from './user-notification-status.js';
69
71
  export * from './user-notification.js';
70
72
  export * from './user.js';
71
- export type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PanelDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RenderDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
73
+ export type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PanelDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RenderDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & SubtitleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
@@ -29,6 +29,7 @@ export * from './search.js';
29
29
  export * from './settings.js';
30
30
  export * from './storyboard.js';
31
31
  export * from './subtitle-style.js';
32
+ export * from './subtitle.js';
32
33
  export * from './template.js';
33
34
  export * from './user-notification-status.js';
34
35
  export * from './user-notification.js';
@@ -99,6 +99,7 @@ export interface MediaProbeRecord {
99
99
  duration?: number | null;
100
100
  error: NxtError | null;
101
101
  type: MediaType;
102
+ live?: boolean | null;
102
103
  }
103
104
  export declare const isMediaProbeRecord: (input: unknown) => input is MediaProbeRecord;
104
105
  export declare const assertMediaProbeRecord: (input: unknown) => MediaProbeRecord;
@@ -3301,7 +3301,7 @@ export const assertStringifyMediaRestrictionsRecord = (input, errorFactory) => {
3301
3301
  return $so0(input);
3302
3302
  }; return stringify(assert(input, errorFactory)); };
3303
3303
  export const isMediaProbeRecord = input => {
3304
- const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3304
+ const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type) && (null === input.live || undefined === input.live || "boolean" === typeof input.live);
3305
3305
  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)));
3306
3306
  const $io2 = input => Object.keys(input).every(key => {
3307
3307
  const value = input[key];
@@ -3314,7 +3314,7 @@ export const isMediaProbeRecord = input => {
3314
3314
  };
3315
3315
  export const assertMediaProbeRecord = (input, errorFactory) => {
3316
3316
  const __is = input => {
3317
- const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3317
+ const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type) && (null === input.live || undefined === input.live || "boolean" === typeof input.live);
3318
3318
  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)));
3319
3319
  const $io2 = input => Object.keys(input).every(key => {
3320
3320
  const value = input[key];
@@ -3345,6 +3345,10 @@ export const assertMediaProbeRecord = (input, errorFactory) => {
3345
3345
  path: _path + ".type",
3346
3346
  expected: "(\"audio\" | \"image\" | \"video\")",
3347
3347
  value: input.type
3348
+ }, errorFactory)) && (null === input.live || undefined === input.live || "boolean" === typeof input.live || $guard(_exceptionable, {
3349
+ path: _path + ".live",
3350
+ expected: "(boolean | null | undefined)",
3351
+ value: input.live
3348
3352
  }, errorFactory));
3349
3353
  const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
3350
3354
  path: _path + ".message",
@@ -3451,6 +3455,11 @@ export const randomMediaProbeRecord = generator => {
3451
3455
  () => "audio",
3452
3456
  () => "video",
3453
3457
  () => "image"
3458
+ ])(),
3459
+ live: $pick([
3460
+ () => undefined,
3461
+ () => null,
3462
+ () => (generator?.boolean ?? $generator.boolean)()
3454
3463
  ])()
3455
3464
  });
3456
3465
  const $ro1 = (_recursive = true, _depth = 0) => ({
@@ -3504,7 +3513,7 @@ export const randomMediaProbeRecord = generator => {
3504
3513
  };
3505
3514
  export const assertGuardMediaProbeRecord = (input, errorFactory) => {
3506
3515
  const __is = input => {
3507
- const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3516
+ const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type) && (null === input.live || undefined === input.live || "boolean" === typeof input.live);
3508
3517
  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)));
3509
3518
  const $io2 = input => Object.keys(input).every(key => {
3510
3519
  const value = input[key];
@@ -3535,6 +3544,10 @@ export const assertGuardMediaProbeRecord = (input, errorFactory) => {
3535
3544
  path: _path + ".type",
3536
3545
  expected: "(\"audio\" | \"image\" | \"video\")",
3537
3546
  value: input.type
3547
+ }, errorFactory)) && (null === input.live || undefined === input.live || "boolean" === typeof input.live || $guard(_exceptionable, {
3548
+ path: _path + ".live",
3549
+ expected: "(boolean | null | undefined)",
3550
+ value: input.live
3538
3551
  }, errorFactory));
3539
3552
  const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
3540
3553
  path: _path + ".message",
@@ -3634,7 +3647,7 @@ export const stringifyMediaProbeRecord = input => {
3634
3647
  const $io3 = input => true;
3635
3648
  const $string = __typia.json.createStringify.string;
3636
3649
  const $throws = __typia.json.createStringify.throws;
3637
- const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
3650
+ const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}${undefined === input.live ? "" : `"live":${undefined !== input.live ? null !== input.live ? input.live : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
3638
3651
  if ("string" === typeof input.type)
3639
3652
  return $string(input.type);
3640
3653
  if ("string" === typeof input.type)
@@ -3651,7 +3664,7 @@ export const stringifyMediaProbeRecord = input => {
3651
3664
  };
3652
3665
  export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
3653
3666
  const __is = input => {
3654
- const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration && !Number.isNaN(input.duration)) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type);
3667
+ const $io0 = input => (null === input.duration || undefined === input.duration || "number" === typeof input.duration && !Number.isNaN(input.duration)) && (null === input.error || "object" === typeof input.error && null !== input.error && $io1(input.error)) && ("audio" === input.type || "video" === input.type || "image" === input.type) && (null === input.live || undefined === input.live || "boolean" === typeof input.live);
3655
3668
  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 && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(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)));
3656
3669
  const $io2 = input => Object.keys(input).every(key => {
3657
3670
  const value = input[key];
@@ -3682,6 +3695,10 @@ export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const
3682
3695
  path: _path + ".type",
3683
3696
  expected: "(\"audio\" | \"image\" | \"video\")",
3684
3697
  value: input.type
3698
+ }, errorFactory)) && (null === input.live || undefined === input.live || "boolean" === typeof input.live || $guard(_exceptionable, {
3699
+ path: _path + ".live",
3700
+ expected: "(boolean | null | undefined)",
3701
+ value: input.live
3685
3702
  }, errorFactory));
3686
3703
  const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
3687
3704
  path: _path + ".message",
@@ -3781,7 +3798,7 @@ export const assertStringifyMediaProbeRecord = (input, errorFactory) => { const
3781
3798
  const $io3 = input => true;
3782
3799
  const $string = __typia.json.createAssertStringify.string;
3783
3800
  const $throws = __typia.json.createAssertStringify.throws;
3784
- const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
3801
+ const $so0 = input => `{${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? null !== input.duration ? input.duration : "null" : undefined},`}${undefined === input.live ? "" : `"live":${undefined !== input.live ? null !== input.live ? input.live : "null" : undefined},`}"error":${null !== input.error ? $so1(input.error) : "null"},"type":${(() => {
3785
3802
  if ("string" === typeof input.type)
3786
3803
  return $string(input.type);
3787
3804
  if ("string" === typeof input.type)
@@ -1,5 +1,6 @@
1
1
  import { type AssertionGuard as __AssertionGuard } from "typia";
2
- import type { Message } from '../common/index.js';
2
+ import type { Message, RenderSceneObject, RenderProfileObject } from '../common/index.js';
3
+ import type { Nxtpression } from '../common/index.js';
3
4
  export interface PublishDomainRecords {
4
5
  [":publish"]: PublishRecord;
5
6
  [":publish.stats?"]: PublishStatsRecord;
@@ -9,7 +10,7 @@ export interface PublishDomainRecords {
9
10
  }>;
10
11
  [":publish.accepts"]: PublishDomainAcceptsProvidedRecord;
11
12
  }
12
- export type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord;
13
+ export type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord | FilePublishRecordLegacy;
13
14
  export declare const isPublishRecord: (input: unknown) => input is PublishRecord;
14
15
  export declare const assertPublishRecord: (input: unknown) => PublishRecord;
15
16
  export declare const randomPublishRecord: () => PublishRecord;
@@ -23,11 +24,26 @@ export declare const randomPublishStatsRecord: () => PublishStatsRecord;
23
24
  export declare const assertGuardPublishStatsRecord: __AssertionGuard<PublishStatsRecord>;
24
25
  export declare const stringifyPublishStatsRecord: (input: PublishStatsRecord) => string;
25
26
  export declare const assertStringifyPublishStatsRecord: (input: unknown) => string;
27
+ /**
28
+ * render preset + overrides
29
+ */
30
+ export interface PublishRender {
31
+ preset?: string;
32
+ type: string;
33
+ scene?: RenderSceneObject;
34
+ profile?: RenderProfileObject;
35
+ }
36
+ export declare const isPublishRender: (input: unknown) => input is PublishRender;
37
+ export declare const assertPublishRender: (input: unknown) => PublishRender;
38
+ export declare const randomPublishRender: () => PublishRender;
39
+ export declare const assertGuardPublishRender: __AssertionGuard<PublishRender>;
40
+ export declare const stringifyPublishRender: (input: PublishRender) => string;
41
+ export declare const assertStringifyPublishRender: (input: unknown) => string;
26
42
  interface PublishRecordCommon<Type extends PublishRecord["type"]> {
27
43
  type: Type;
28
44
  asset?: string;
29
45
  connection?: string;
30
- render?: unknown;
46
+ render?: PublishRender;
31
47
  draft?: Record<string, unknown>;
32
48
  published?: Record<string, unknown>;
33
49
  remote?: Record<string, unknown>;
@@ -103,25 +119,65 @@ export declare const randomFilePublishRecord: () => FilePublishRecord;
103
119
  export declare const assertGuardFilePublishRecord: __AssertionGuard<FilePublishRecord>;
104
120
  export declare const stringifyFilePublishRecord: (input: FilePublishRecord) => string;
105
121
  export declare const assertStringifyFilePublishRecord: (input: unknown) => string;
106
- export interface FilePublishRender {
107
- name?: string;
108
- path?: string;
109
- collisionStrategy?: "overwrite" | "skip";
110
- preset?: string;
111
- type?: string;
112
- profile?: unknown;
113
- scene?: string;
114
- ignoreEmptyScene?: boolean;
122
+ export interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
123
+ directory?: string;
124
+ filename?: string;
125
+ draft?: FilePublishDraft;
126
+ remote?: FilePublishRemoteLegacy;
127
+ published?: FilePublishPublished;
128
+ renders?: undefined;
129
+ }
130
+ export declare const isFilePublishRecordLegacy: (input: unknown) => input is FilePublishRecordLegacy;
131
+ export declare const assertFilePublishRecordLegacy: (input: unknown) => FilePublishRecordLegacy;
132
+ export declare const randomFilePublishRecordLegacy: () => FilePublishRecordLegacy;
133
+ export declare const assertGuardFilePublishRecordLegacy: __AssertionGuard<FilePublishRecordLegacy>;
134
+ export declare const stringifyFilePublishRecordLegacy: (input: FilePublishRecordLegacy) => string;
135
+ export declare const assertStringifyFilePublishRecordLegacy: (input: unknown) => string;
136
+ export interface FilePublishRemoteLegacy extends Record<string, unknown> {
137
+ id?: string;
138
+ path: string;
139
+ filename: string;
140
+ directory?: string;
141
+ subtitle?: {
142
+ path: string;
143
+ };
144
+ metafile?: {
145
+ path: string;
146
+ };
115
147
  }
148
+ export declare const isFilePublishRemoteLegacy: (input: unknown) => input is FilePublishRemoteLegacy;
149
+ export declare const assertFilePublishRemoteLegacy: (input: unknown) => FilePublishRemoteLegacy;
150
+ export declare const randomFilePublishRemoteLegacy: () => FilePublishRemoteLegacy;
151
+ export declare const assertGuardFilePublishRemoteLegacy: __AssertionGuard<FilePublishRemoteLegacy>;
152
+ export declare const stringifyFilePublishRemoteLegacy: (input: FilePublishRemoteLegacy) => string;
153
+ export declare const assertStringifyFilePublishRemoteLegacy: (input: unknown) => string;
154
+ export type FilePublishRender = Nxtpression<ResolvedFilePublishRender, {
155
+ publish: FilePublishRecord;
156
+ directory: string;
157
+ name: string;
158
+ }>;
116
159
  export declare const isFilePublishRender: (input: unknown) => input is FilePublishRender;
117
160
  export declare const assertFilePublishRender: (input: unknown) => FilePublishRender;
118
161
  export declare const randomFilePublishRender: () => FilePublishRender;
119
162
  export declare const assertGuardFilePublishRender: __AssertionGuard<FilePublishRender>;
120
163
  export declare const stringifyFilePublishRender: (input: FilePublishRender) => string;
121
164
  export declare const assertStringifyFilePublishRender: (input: unknown) => string;
165
+ export interface ResolvedFilePublishRender extends Omit<PublishRender, "preset"> {
166
+ preset?: string;
167
+ name?: string;
168
+ path: string;
169
+ collisionStrategy?: "overwrite" | "skip";
170
+ ignoreEmptyScene?: boolean;
171
+ }
172
+ export declare const isResolvedFilePublishRender: (input: unknown) => input is ResolvedFilePublishRender;
173
+ export declare const assertResolvedFilePublishRender: (input: unknown) => ResolvedFilePublishRender;
174
+ export declare const randomResolvedFilePublishRender: () => ResolvedFilePublishRender;
175
+ export declare const assertGuardResolvedFilePublishRender: __AssertionGuard<ResolvedFilePublishRender>;
176
+ export declare const stringifyResolvedFilePublishRender: (input: ResolvedFilePublishRender) => string;
177
+ export declare const assertStringifyResolvedFilePublishRender: (input: unknown) => string;
122
178
  export interface FilePublishPublished extends Record<string, unknown> {
123
179
  directory?: string;
124
- filename?: string;
180
+ filename: string;
125
181
  }
126
182
  export declare const isFilePublishPublished: (input: unknown) => input is FilePublishPublished;
127
183
  export declare const assertFilePublishPublished: (input: unknown) => FilePublishPublished;
@@ -154,7 +210,7 @@ export interface FilePublishRemoteRender {
154
210
  path?: string;
155
211
  messages?: Message[];
156
212
  query?: unknown;
157
- size?: string;
213
+ size?: number;
158
214
  hash?: string;
159
215
  source?: string;
160
216
  }
@@ -187,7 +243,7 @@ export declare const stringifyFilePublishRetrieved: (input: FilePublishRetrieved
187
243
  export declare const assertStringifyFilePublishRetrieved: (input: unknown) => string;
188
244
  export interface FilePublishRetrievedRender {
189
245
  path: string;
190
- size?: string;
246
+ size?: number;
191
247
  hash?: string;
192
248
  }
193
249
  export declare const isFilePublishRetrievedRender: (input: unknown) => input is FilePublishRetrievedRender;