@nxtedition/types 23.0.55 → 23.0.57

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.
@@ -153,6 +153,9 @@ function _isDomainRecord(domain, input) {
153
153
  case ":asset.title?": {
154
154
  return (() => { const _io0 = input => undefined === input.value || "string" === typeof input.value; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
155
155
  }
156
+ case ":asset.rawTypes?": {
157
+ return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
158
+ }
156
159
  case ":asset.types?": {
157
160
  return (() => { const _io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
158
161
  }
@@ -736,29 +739,29 @@ function _isDomainRecord(domain, input) {
736
739
  return (() => { const _io0 = input => "string" === typeof input.asset && "string" === typeof input.primaryColor && "string" === typeof input.secondaryColor && "string" === typeof input.backgroundColor && (undefined === input.fontFamily || "string" === typeof input.fontFamily) && (undefined === input.fontFamilies || Array.isArray(input.fontFamilies) && input.fontFamilies.every(elem => "string" === typeof elem)) && (undefined === input.genericFontFamily || "string" === typeof input.genericFontFamily) && "number" === typeof input.fontSize && "number" === typeof input.lineHeight && "number" === typeof input.markerPosition && "number" === typeof input.padding && (undefined === input.dummy || "boolean" === typeof input.dummy) && (undefined === input.showInfo || "boolean" === typeof input.showInfo); return input => "object" === typeof input && null !== input && _io0(input); })()(input);
737
740
  }
738
741
  case ":publish": {
739
- return (() => { const _io0 = input => undefined !== input.type && null === input.type && (null === input.asset || undefined === input.asset || "string" === typeof input.asset); const _io1 = input => "facebook" === input.type && (undefined === input.pageId || "string" === typeof input.pageId) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io2(input.render)) && true && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io16(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io17(elem))); const _io2 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io3(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io11(input.profile)); const _io3 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io4(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io5(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io8(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io10(input.transcribe)); const _io4 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file); const _io5 = input => Object.keys(input).every(key => {
742
+ return (() => { const _io0 = input => (null === input.type || undefined === input.type) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && true && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io15(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io16(elem))); const _io1 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io2(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io10(input.profile)); const _io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io7(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io9(input.transcribe)); const _io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file); const _io4 = input => Object.keys(input).every(key => {
740
743
  const value = input[key];
741
744
  if (undefined === value)
742
745
  return true;
743
- return "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value);
744
- }); const _io6 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io7(input.styleOverrides)); const _io7 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding); const _io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io9(input.crop); const _io9 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height); const _io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)); const _io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io14(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io15(input.subtitle))); const _io12 = input => "string" === typeof input.engine; const _io13 = input => "string" === typeof input.language; const _io14 = input => (undefined === input.codec || "string" === typeof input.codec) && (undefined === input.pan || "string" === typeof input.pan) && (undefined === input.samplerate || "number" === typeof input.samplerate) && (undefined === input.split || "boolean" === typeof input.split); const _io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); const _io16 = input => "string" === typeof input.method; const _io17 = input => "number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg; const _io18 = input => "file" === input.type && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io19(input.renders)) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io23(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && false === Array.isArray(input.remote) && _io24(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io27(input.published)) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io2(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io16(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io17(elem))); const _io19 = input => Object.keys(input).every(key => {
746
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io5(value);
747
+ }); const _io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io6(input.styleOverrides)); const _io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding); const _io7 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io8(input.crop); const _io8 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height); const _io9 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)); const _io10 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io11(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io12(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io13(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io14(input.subtitle))); const _io11 = input => "string" === typeof input.engine; const _io12 = input => "string" === typeof input.language; const _io13 = input => (undefined === input.codec || "string" === typeof input.codec) && (undefined === input.pan || "string" === typeof input.pan) && (undefined === input.samplerate || "number" === typeof input.samplerate) && (undefined === input.split || "boolean" === typeof input.split); const _io14 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); const _io15 = input => "string" === typeof input.method; const _io16 = input => "number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg; const _io17 = input => (undefined === input.type || "facebook" === input.type) && (undefined === input.pageId || "string" === typeof input.pageId) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && true && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io15(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io16(elem))); const _io18 = input => (undefined === input.type || "file" === input.type) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io19(input.renders)) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io23(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && false === Array.isArray(input.remote) && _io24(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io27(input.published)) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io15(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io16(elem))); const _io19 = input => Object.keys(input).every(key => {
745
748
  const value = input[key];
746
749
  if (undefined === value)
747
750
  return true;
748
751
  return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && _iu0(value));
749
- }); const _io20 = input => (undefined === input.name || "string" === typeof input.name) && "string" === typeof input.path && (undefined === input.collisionStrategy || "overwrite" === input.collisionStrategy || "skip" === input.collisionStrategy) && (undefined === input.ignoreEmptyScene || "boolean" === typeof input.ignoreEmptyScene) && (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io3(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io11(input.profile)); const _io21 = input => "object" === typeof input.__context && null !== input.__context && _io22(input.__context) && ("object" === typeof input.__returnValue && null !== input.__returnValue && _io20(input.__returnValue)); const _io22 = input => "object" === typeof input.publish && null !== input.publish && _io18(input.publish) && "string" === typeof input.directory && "string" === typeof input.name; const _io23 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename); const _io24 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io25(input.renders)); const _io25 = input => Object.keys(input).every(key => {
752
+ }); const _io20 = input => (undefined === input.name || "string" === typeof input.name) && "string" === typeof input.path && (undefined === input.collisionStrategy || "overwrite" === input.collisionStrategy || "skip" === input.collisionStrategy) && (undefined === input.ignoreEmptyScene || "boolean" === typeof input.ignoreEmptyScene) && (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io2(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io10(input.profile)); const _io21 = input => "object" === typeof input.__context && null !== input.__context && _io22(input.__context) && ("object" === typeof input.__returnValue && null !== input.__returnValue && _io20(input.__returnValue)); const _io22 = input => "object" === typeof input.publish && null !== input.publish && false === Array.isArray(input.publish) && _io18(input.publish) && "string" === typeof input.directory && "string" === typeof input.name; const _io23 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename); const _io24 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io25(input.renders)); const _io25 = input => Object.keys(input).every(key => {
750
753
  const value = input[key];
751
754
  if (undefined === value)
752
755
  return true;
753
756
  return "object" === typeof value && null !== value && false === Array.isArray(value) && _io26(value);
754
- }); const _io26 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io17(elem))) && true && (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash) && (undefined === input.source || "string" === typeof input.source); const _io27 = input => (undefined === input.directory || "string" === typeof input.directory) && "string" === typeof input.filename; const _io28 = input => "file" === input.type && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io23(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && _io29(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io27(input.published)) && (null !== input.renders && undefined === input.renders) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io2(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io16(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io17(elem))); const _io29 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.path && "string" === typeof input.filename && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && _io30(input.subtitle)) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && _io31(input.metafile)) && Object.keys(input).every(key => {
757
+ }); const _io26 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io16(elem))) && true && (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash) && (undefined === input.source || "string" === typeof input.source); const _io27 = input => (undefined === input.directory || "string" === typeof input.directory) && "string" === typeof input.filename; const _io28 = input => (undefined === input.type || "file" === input.type) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io23(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && _io29(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io27(input.published)) && (null !== input.renders && undefined === input.renders) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io15(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io16(elem))); const _io29 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.path && "string" === typeof input.filename && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && _io30(input.subtitle)) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && _io31(input.metafile)) && Object.keys(input).every(key => {
755
758
  if (["id", "path", "filename", "directory", "subtitle", "metafile"].some(prop => key === prop))
756
759
  return true;
757
760
  const value = input[key];
758
761
  if (undefined === value)
759
762
  return true;
760
763
  return true;
761
- }); const _io30 = input => "string" === typeof input.path; const _io31 = input => "string" === typeof input.path; const _io32 = input => "youtube" === input.type && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io33(input.draft)) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io2(input.render)) && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io16(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io17(elem))); const _io33 = input => undefined === input.snippet || "object" === typeof input.snippet && null !== input.snippet && false === Array.isArray(input.snippet) && _io34(input.snippet); const _io34 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.description || "string" === typeof input.description); const _iu0 = input => (() => {
764
+ }); const _io30 = input => "string" === typeof input.path; const _io31 = input => "string" === typeof input.path; const _io32 = input => (undefined === input.type || "youtube" === input.type) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io33(input.draft)) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io15(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io16(elem))); const _io33 = input => undefined === input.snippet || "object" === typeof input.snippet && null !== input.snippet && false === Array.isArray(input.snippet) && _io34(input.snippet); const _io34 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.description || "string" === typeof input.description); const _iu0 = input => (() => {
762
765
  if (undefined !== input.path)
763
766
  return _io20(input);
764
767
  else if (undefined !== input.__context)
@@ -766,21 +769,18 @@ function _isDomainRecord(domain, input) {
766
769
  else
767
770
  return false;
768
771
  })(); const _iu1 = input => (() => {
769
- if (undefined !== input.type && null === input.type)
772
+ if (_io0(input))
770
773
  return _io0(input);
771
- else if ("facebook" === input.type)
772
- return _io1(input);
773
- else if ("youtube" === input.type)
774
+ if (_io17(input))
775
+ return _io17(input);
776
+ if (_io28(input))
777
+ return _io28(input);
778
+ if (_io18(input))
779
+ return _io18(input);
780
+ if (_io32(input))
774
781
  return _io32(input);
775
- else
776
- return (() => {
777
- if (_io28(input))
778
- return _io28(input);
779
- if (_io18(input))
780
- return _io18(input);
781
- return false;
782
- })();
783
- })(); return input => "object" === typeof input && null !== input && _iu1(input); })()(input);
782
+ return false;
783
+ })(); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _iu1(input); })()(input);
784
784
  }
785
785
  case ":publish.stats?": {
786
786
  return (() => { const _io0 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && true && true; const _io1 = input => "number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg; const _io2 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && true && true; const _io3 = input => (undefined === input.retrieved || "object" === typeof input.retrieved && null !== input.retrieved && false === Array.isArray(input.retrieved) && _io4(input.retrieved)) && (undefined === input.defaults || "object" === typeof input.defaults && null !== input.defaults && _io7(input.defaults)) && (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io4 = input => (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io5(input.renders)); const _io5 = input => Object.keys(input).every(key => {
@@ -798,7 +798,7 @@ function _isDomainRecord(domain, input) {
798
798
  if (undefined === value)
799
799
  return true;
800
800
  return "object" === typeof value && null !== value && false === Array.isArray(value) && _io13(value);
801
- }); const _io13 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io14(input.styleOverrides)); const _io14 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding); const _io15 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io16(input.crop); const _io16 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height); const _io17 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)); const _io18 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io19(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io20(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io21(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io22(input.subtitle))); const _io19 = input => "string" === typeof input.engine; const _io20 = input => "string" === typeof input.language; const _io21 = input => (undefined === input.codec || "string" === typeof input.codec) && (undefined === input.pan || "string" === typeof input.pan) && (undefined === input.samplerate || "number" === typeof input.samplerate) && (undefined === input.split || "boolean" === typeof input.split); const _io22 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); const _io23 = input => "object" === typeof input.__context && null !== input.__context && _io24(input.__context) && ("object" === typeof input.__returnValue && null !== input.__returnValue && _io9(input.__returnValue)); const _io24 = input => "object" === typeof input.publish && null !== input.publish && _io25(input.publish) && "string" === typeof input.directory && "string" === typeof input.name; const _io25 = input => "file" === input.type && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io8(input.renders)) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io26(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && false === Array.isArray(input.remote) && _io27(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io30(input.published)) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io31(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io32(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io26 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename); const _io27 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io28(input.renders)); const _io28 = input => Object.keys(input).every(key => {
801
+ }); const _io13 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io14(input.styleOverrides)); const _io14 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding); const _io15 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io16(input.crop); const _io16 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height); const _io17 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem)); const _io18 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && _io19(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && _io20(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io21(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && _io22(input.subtitle))); const _io19 = input => "string" === typeof input.engine; const _io20 = input => "string" === typeof input.language; const _io21 = input => (undefined === input.codec || "string" === typeof input.codec) && (undefined === input.pan || "string" === typeof input.pan) && (undefined === input.samplerate || "number" === typeof input.samplerate) && (undefined === input.split || "boolean" === typeof input.split); const _io22 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style); const _io23 = input => "object" === typeof input.__context && null !== input.__context && _io24(input.__context) && ("object" === typeof input.__returnValue && null !== input.__returnValue && _io9(input.__returnValue)); const _io24 = input => "object" === typeof input.publish && null !== input.publish && false === Array.isArray(input.publish) && _io25(input.publish) && "string" === typeof input.directory && "string" === typeof input.name; const _io25 = input => (undefined === input.type || "file" === input.type) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io8(input.renders)) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io26(input.draft)) && (undefined === input.remote || "object" === typeof input.remote && null !== input.remote && false === Array.isArray(input.remote) && _io27(input.remote)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && _io30(input.published)) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io31(input.render)) && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io32(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io26 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename); const _io27 = input => (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io28(input.renders)); const _io28 = input => Object.keys(input).every(key => {
802
802
  const value = input[key];
803
803
  if (undefined === value)
804
804
  return true;
@@ -1800,6 +1800,32 @@ function _schemasDomainRecord(domain) {
1800
1800
  ]
1801
1801
  };
1802
1802
  }
1803
+ case ":asset.rawTypes?": {
1804
+ return {
1805
+ version: "3.1",
1806
+ components: {
1807
+ schemas: {
1808
+ AssetRawTypesProvidedRecord: {
1809
+ type: "object",
1810
+ properties: {
1811
+ value: {
1812
+ type: "array",
1813
+ items: {
1814
+ type: "string"
1815
+ }
1816
+ }
1817
+ },
1818
+ required: []
1819
+ }
1820
+ }
1821
+ },
1822
+ schemas: [
1823
+ {
1824
+ $ref: "#/components/schemas/AssetRawTypesProvidedRecord"
1825
+ }
1826
+ ]
1827
+ };
1828
+ }
1803
1829
  case ":asset.types?": {
1804
1830
  return {
1805
1831
  version: "3.1",
@@ -8996,30 +9022,6 @@ function _schemasDomainRecord(domain) {
8996
9022
  type: {
8997
9023
  type: "null"
8998
9024
  },
8999
- asset: {
9000
- oneOf: [
9001
- {
9002
- type: "null"
9003
- },
9004
- {
9005
- type: "string"
9006
- }
9007
- ]
9008
- }
9009
- },
9010
- required: [
9011
- "type"
9012
- ]
9013
- },
9014
- FacebookPublishRecord: {
9015
- type: "object",
9016
- properties: {
9017
- type: {
9018
- "const": "facebook"
9019
- },
9020
- pageId: {
9021
- type: "string"
9022
- },
9023
9025
  asset: {
9024
9026
  oneOf: [
9025
9027
  {
@@ -9064,9 +9066,7 @@ function _schemasDomainRecord(domain) {
9064
9066
  }
9065
9067
  }
9066
9068
  },
9067
- required: [
9068
- "type"
9069
- ]
9069
+ required: []
9070
9070
  },
9071
9071
  PublishRenderBase: {
9072
9072
  type: "object",
@@ -9378,6 +9378,61 @@ function _schemasDomainRecord(domain) {
9378
9378
  "msg"
9379
9379
  ]
9380
9380
  },
9381
+ FacebookPublishRecord: {
9382
+ type: "object",
9383
+ properties: {
9384
+ type: {
9385
+ "const": "facebook"
9386
+ },
9387
+ pageId: {
9388
+ type: "string"
9389
+ },
9390
+ asset: {
9391
+ oneOf: [
9392
+ {
9393
+ type: "null"
9394
+ },
9395
+ {
9396
+ type: "string"
9397
+ }
9398
+ ]
9399
+ },
9400
+ connection: {
9401
+ type: "string"
9402
+ },
9403
+ render: {
9404
+ $ref: "#/components/schemas/PublishRenderBase"
9405
+ },
9406
+ draft: {},
9407
+ published: {},
9408
+ remote: {},
9409
+ error: {
9410
+ oneOf: [
9411
+ {
9412
+ type: "null"
9413
+ },
9414
+ {
9415
+ type: "object",
9416
+ properties: {
9417
+ method: {
9418
+ type: "string"
9419
+ }
9420
+ },
9421
+ required: [
9422
+ "method"
9423
+ ]
9424
+ }
9425
+ ]
9426
+ },
9427
+ messages: {
9428
+ type: "array",
9429
+ items: {
9430
+ $ref: "#/components/schemas/Message"
9431
+ }
9432
+ }
9433
+ },
9434
+ required: []
9435
+ },
9381
9436
  FilePublishRecordLegacy: {
9382
9437
  type: "object",
9383
9438
  properties: {
@@ -9440,9 +9495,7 @@ function _schemasDomainRecord(domain) {
9440
9495
  }
9441
9496
  }
9442
9497
  },
9443
- required: [
9444
- "type"
9445
- ]
9498
+ required: []
9446
9499
  },
9447
9500
  FilePublishDraft: {
9448
9501
  type: "object",
@@ -9579,9 +9632,7 @@ function _schemasDomainRecord(domain) {
9579
9632
  }
9580
9633
  }
9581
9634
  },
9582
- required: [
9583
- "type"
9584
- ]
9635
+ required: []
9585
9636
  },
9586
9637
  RecordstringFilePublishRender: {
9587
9638
  type: "object",
@@ -9803,9 +9854,7 @@ function _schemasDomainRecord(domain) {
9803
9854
  }
9804
9855
  }
9805
9856
  },
9806
- required: [
9807
- "type"
9808
- ]
9857
+ required: []
9809
9858
  }
9810
9859
  }
9811
9860
  },
@@ -10354,9 +10403,7 @@ function _schemasDomainRecord(domain) {
10354
10403
  }
10355
10404
  }
10356
10405
  },
10357
- required: [
10358
- "type"
10359
- ]
10406
+ required: []
10360
10407
  },
10361
10408
  FilePublishDraft: {
10362
10409
  type: "object",