@nxtedition/types 23.0.49 → 23.0.51

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.
Files changed (58) hide show
  1. package/dist/common/file.d.ts +1 -0
  2. package/dist/common/file.js +7 -2
  3. package/dist/common/settings.d.ts +1 -0
  4. package/dist/nxtpression.d.ts +141 -63
  5. package/dist/records/domains/connection/empty.d.ts +7 -0
  6. package/dist/records/domains/connection/facebook.d.ts +8 -0
  7. package/dist/records/domains/connection/file/ftp.d.ts +9 -0
  8. package/dist/records/domains/connection/file/ftp.js +1 -0
  9. package/dist/records/domains/connection/file/index.d.ts +29 -0
  10. package/dist/records/domains/connection/file/index.js +4 -0
  11. package/dist/records/domains/connection/file/s3.d.ts +6 -0
  12. package/dist/records/domains/connection/file/s3.js +1 -0
  13. package/dist/records/domains/connection/file/sftp.d.ts +12 -0
  14. package/dist/records/domains/connection/file/sftp.js +1 -0
  15. package/dist/records/domains/connection/file/smb.d.ts +9 -0
  16. package/dist/records/domains/connection/file/smb.js +1 -0
  17. package/dist/records/domains/connection/index.d.ts +38 -0
  18. package/dist/records/domains/connection/index.js +4 -0
  19. package/dist/records/domains/connection/reuters.d.ts +10 -0
  20. package/dist/records/domains/connection/reuters.js +1 -0
  21. package/dist/records/domains/index.d.ts +6 -5
  22. package/dist/records/domains/index.js +2 -2
  23. package/dist/records/domains/publish/empty.d.ts +8 -0
  24. package/dist/records/domains/publish/empty.js +1 -0
  25. package/dist/records/domains/publish/facebook.d.ts +11 -0
  26. package/dist/records/domains/publish/facebook.js +1 -0
  27. package/dist/records/domains/publish/file-legacy.d.ts +26 -0
  28. package/dist/records/domains/publish/file-legacy.js +1 -0
  29. package/dist/records/domains/publish/file.d.ts +66 -0
  30. package/dist/records/domains/publish/file.js +1 -0
  31. package/dist/records/domains/publish/index.d.ts +66 -0
  32. package/dist/records/domains/publish/index.js +5 -0
  33. package/dist/records/domains/publish/youtube.d.ts +16 -0
  34. package/dist/records/domains/publish/youtube.js +1 -0
  35. package/dist/records/index.d.ts +1 -1
  36. package/dist/records/utils.d.ts +4 -2
  37. package/dist/records/utils.tds.js +1 -1
  38. package/dist/records/validate/assert-guard.d.ts +3 -4
  39. package/dist/records/validate/assert-guard.js +474 -687
  40. package/dist/records/validate/assert.d.ts +3 -4
  41. package/dist/records/validate/assert.js +474 -687
  42. package/dist/records/validate/is.d.ts +3 -4
  43. package/dist/records/validate/is.js +39 -108
  44. package/dist/records/validate/schemas.d.ts +4 -5
  45. package/dist/records/validate/schemas.js +403 -437
  46. package/dist/records/validate/stringify.d.ts +3 -4
  47. package/dist/records/validate/stringify.js +66 -154
  48. package/dist/records/validate/utils.d.ts +4 -3
  49. package/dist/records/validate/utils.js +3 -0
  50. package/dist/records/validate/validate-equals.d.ts +3 -4
  51. package/dist/records/validate/validate-equals.js +723 -714
  52. package/dist/records/validate/validate.d.ts +3 -4
  53. package/dist/records/validate/validate.js +437 -635
  54. package/package.json +1 -1
  55. package/dist/records/domains/connection.d.ts +0 -77
  56. package/dist/records/domains/publish.d.ts +0 -149
  57. /package/dist/records/domains/{connection.js → connection/empty.js} +0 -0
  58. /package/dist/records/domains/{publish.js → connection/facebook.js} +0 -0
@@ -36,6 +36,7 @@ export interface FileStats extends File {
36
36
  ]>;
37
37
  progress?: number & import('typia').tags.Minimum<0> & import('typia').tags.Maximum<1>;
38
38
  speed?: number & import('typia').tags.Minimum<0>;
39
+ complete: boolean;
39
40
  }
40
41
  export declare const assertFileStats: (input: unknown) => FileStats;
41
42
  export declare const stringifyFileStats: (input: FileStats) => string;
@@ -361,7 +361,7 @@ export const assertFile = (() => { const _io0 = input => "string" === typeof inp
361
361
  }
362
362
  return input;
363
363
  }; })();
364
- export const assertFileStats = (() => { const _io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && __typia_transform__isTypeUint64._isTypeUint64(input.position))) && (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)) && (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])))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && 0 <= input.speed) && ("string" === typeof input.id && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && __typia_transform__isTypeUint64._isTypeUint64(input.size))) && "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 && RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && __typia_transform__isTypeUint64._isTypeUint64(input.btime))) && "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)))); 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); 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))); const _io3 = input => Object.keys(input).every(key => {
364
+ export const assertFileStats = (() => { const _io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && __typia_transform__isTypeUint64._isTypeUint64(input.position))) && (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)) && (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])))) && (undefined === input.progress || "number" === typeof input.progress && (0 <= input.progress && input.progress <= 1)) && (undefined === input.speed || "number" === typeof input.speed && 0 <= input.speed) && "boolean" === typeof input.complete && ("string" === typeof input.id && RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && __typia_transform__isTypeUint64._isTypeUint64(input.size))) && "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 && RegExp("^([A-Fa-f0-9]{32})?$").test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && __typia_transform__isTypeUint64._isTypeUint64(input.btime))) && "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)))); 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); 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))); const _io3 = input => Object.keys(input).every(key => {
365
365
  const value = input[key];
366
366
  if (undefined === value)
367
367
  return true;
@@ -501,6 +501,11 @@ export const assertFileStats = (() => { const _io0 = input => (null === input.po
501
501
  path: _path + ".speed",
502
502
  expected: "((number & Minimum<0>) | undefined)",
503
503
  value: input.speed
504
+ }, _errorFactory)) && ("boolean" === typeof input.complete || __typia_transform__assertGuard._assertGuard(_exceptionable, {
505
+ method: "typia.createAssert",
506
+ path: _path + ".complete",
507
+ expected: "boolean",
508
+ value: input.complete
504
509
  }, _errorFactory)) && ("string" === typeof input.id && (RegExp("^[0-9A-Za-z~][0-9A-Za-z~._: -]*$").test(input.id) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
505
510
  method: "typia.createAssert",
506
511
  path: _path + ".id",
@@ -768,7 +773,7 @@ export const assertFileStats = (() => { const _io0 = input => (null === input.po
768
773
  }
769
774
  return input;
770
775
  }; })();
771
- export const stringifyFileStats = (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? input.progress : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(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 => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"resumable":${__typia_transform__jsonStringifyString._jsonStringifyString(input.resumable)},"mimeType":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mimeType)},"encoding":${__typia_transform__jsonStringifyString._jsonStringifyString(input.encoding)},"hash":${__typia_transform__jsonStringifyString._jsonStringifyString(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
776
+ export const stringifyFileStats = (() => { const _so0 = input => `{${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? input.progress : undefined},`}${undefined === input.speed ? "" : `"speed":${undefined !== input.speed ? input.speed : undefined},`}"position":${null !== input.position ? input.position : "null"},"uploading":${null !== input.uploading ? input.uploading : "null"},"zones":${`[${input.zones.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"locations":${`[${input.locations.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"ranges":${`[${input.ranges.map(elem => `[${elem[0]},${elem[1]}]`).join(",")}]`},"complete":${input.complete},"id":${__typia_transform__jsonStringifyString._jsonStringifyString(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 => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`},"resumable":${__typia_transform__jsonStringifyString._jsonStringifyString(input.resumable)},"mimeType":${__typia_transform__jsonStringifyString._jsonStringifyString(input.mimeType)},"encoding":${__typia_transform__jsonStringifyString._jsonStringifyString(input.encoding)},"hash":${__typia_transform__jsonStringifyString._jsonStringifyString(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
772
777
  if (Array.isArray(input.error))
773
778
  return `[${input.error.map(elem => _so2(elem)).join(",")}]`;
774
779
  if ("object" === typeof input.error && null !== input.error)
@@ -290,6 +290,7 @@ export interface Settings {
290
290
  assetRoute?: boolean;
291
291
  devWarnings?: boolean;
292
292
  multiplexWebSockets?: boolean;
293
+ systemHealth?: boolean;
293
294
  };
294
295
  notifications?: {
295
296
  events?: {
@@ -351,24 +351,32 @@ declare interface CommentReadMarkDomainRecords {
351
351
  ":comment-read-mark": CommentReadMarkDomainRecord;
352
352
  }
353
353
 
354
- declare interface ConnectionDomainMethodsRecord {
355
- [key: string]: object;
354
+ declare interface ConnectionBase {
355
+ type: string | null;
356
+ userNotificationsEnabled?: boolean;
357
+ }
358
+
359
+ declare interface ConnectionDef<Type extends string | null> {
360
+ connection: ConnectionBase & {
361
+ type: Type;
362
+ };
363
+ methods: ConnectionMethodsBase;
364
+ stats: ConnectionStatsBase;
356
365
  }
357
366
 
358
367
  declare interface ConnectionDomainRecords {
359
368
  [":connection"]: ConnectionRecord;
360
- [":connection.methods?"]: ConnectionDomainMethodsRecord;
361
- [":connection.stats?"]: ConnectionStatsRecord;
369
+ [":connection.methods?"]: MethodsRecord;
370
+ [":connection.stats?"]: StatsRecord;
362
371
  }
363
372
 
364
- declare type ConnectionRecord = FileConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord;
365
-
366
- declare interface ConnectionRecordCommon {
367
- type: string;
368
- userNotificationsEnabled?: boolean;
373
+ declare interface ConnectionMethodsBase {
374
+ [key: string]: object;
369
375
  }
370
376
 
371
- declare interface ConnectionStatsRecord {
377
+ declare type ConnectionRecord = Union["connection"];
378
+
379
+ declare interface ConnectionStatsBase {
372
380
  status?: string;
373
381
  substatus?: string;
374
382
  pages?: Array<{
@@ -442,7 +450,8 @@ declare interface DesignViewRow<Id = string, Key = string, Value = void> {
442
450
  value: Value;
443
451
  }
444
452
 
445
- declare type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & MonitorDomainRecords & PanelDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PrompterDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RenderDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & SubtitleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
453
+ declare interface DomainRecords extends AssetDomainRecords, BundleDomainRecords, CloneDomainRecords, CommentReactionDomainRecords, CommentReadMarkDomainRecords, CommentDomainRecords, ConnectionDomainRecords, ContactDomainRecords, DeepstreamDomainRecords, DesignDomainRecords, EditDomainRecords, EventDomainRecords, FileDomainRecords, GeneralDomainRecords, MediaDomainRecords, MonitorDomainRecords, PanelDomainRecords, PermissionDomainRecords, PipelinePresetDomainRecords, PipelineDomainRecords, PlanningDomainRecords, PrompterDomainRecords, PublishDomainRecords, PublishedDomainRecords, RenderPresetDomainRecords, RenderDomainRecords, RevsDomainRecords, RoleDomainRecords, ScriptDomainRecords, SearchDomainRecords, SettingsDomainRecords, StoryboardDomainRecords, SubtitleStyleDomainRecords, SubtitleDomainRecords, TemplateDomainRecords, UserNotificationStatusDomainRecords, UserNotificationDomainRecords, UserDomainRecords {
454
+ }
446
455
 
447
456
  declare type Dynamic = false | string[];
448
457
 
@@ -465,6 +474,14 @@ declare interface ElementNodeContent {
465
474
  children: TextNodeContent[];
466
475
  }
467
476
 
477
+ declare interface EmptyConnectionDef extends ConnectionDef<null> {
478
+ connection: EmptyConnectionRecord;
479
+ }
480
+
481
+ declare interface EmptyConnectionRecord extends ConnectionBase {
482
+ type: null;
483
+ }
484
+
468
485
  /**
469
486
  Represents a strictly empty plain object, the `{}` value.
470
487
 
@@ -495,6 +512,10 @@ declare type EmptyObject = {[emptyObjectSymbol]?: never};
495
512
 
496
513
  declare const emptyObjectSymbol: unique symbol;
497
514
 
515
+ declare interface EmptyPublishDef extends PublishDef<null> {
516
+ publish: EmptyPublishRecord;
517
+ }
518
+
498
519
  declare interface EmptyPublishRecord {
499
520
  type: null;
500
521
  asset?: string | null;
@@ -572,16 +593,26 @@ declare interface EventTemplateRecord {
572
593
 
573
594
  declare type ExactRecords = MiscRecords & MediaRecords & AssetRecords & MonitorRecords & StorageRecords;
574
595
 
575
- declare interface FacebookConnectionRecord extends ConnectionRecordCommon {
596
+ declare interface FacebookConnectionDef extends ConnectionDef<"facebook"> {
597
+ connection: FacebookConnectionRecord;
598
+ }
599
+
600
+ declare interface FacebookConnectionRecord extends ConnectionBase {
576
601
  type: "facebook";
577
602
  grantedScopes?: string[];
578
603
  }
579
604
 
580
- declare interface FacebookPublishRecord extends PublishRecordCommon<"facebook"> {
605
+ declare interface FacebookPublishDef extends PublishDef<"facebook"> {
606
+ publish: FacebookPublishRecord;
607
+ stats: FacebookPublishStatsRecord;
608
+ }
609
+
610
+ declare interface FacebookPublishRecord extends PublishRecordBase {
611
+ type: "facebook";
581
612
  pageId?: string;
582
613
  }
583
614
 
584
- declare interface FacebookPublishStatsRecord extends PublishStatsRecordCommon {
615
+ declare interface FacebookPublishStatsRecord extends PublishStatsRecordBase {
585
616
  }
586
617
 
587
618
  declare interface File_2 {
@@ -600,18 +631,7 @@ declare interface File_2 {
600
631
  error: NxtError[] | NxtError | null;
601
632
  }
602
633
 
603
- declare interface FileConnectionFtpRecord extends FileConnectionRecordCommon {
604
- protocol: "ftp";
605
- host: string;
606
- username?: string;
607
- password?: string;
608
- utf8?: boolean;
609
- timezone?: string;
610
- }
611
-
612
- declare type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
613
-
614
- declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
634
+ declare interface FileConnectionBase extends ConnectionBase {
615
635
  type: "file";
616
636
  protocol: string;
617
637
  host?: string;
@@ -626,13 +646,30 @@ declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
626
646
  };
627
647
  }
628
648
 
629
- declare interface FileConnectionS3Record extends FileConnectionRecordCommon {
649
+ declare interface FileConnectionDef extends ConnectionDef<"file"> {
650
+ connection: FileConnectionRecord;
651
+ methods: ConnectionMethodsBase;
652
+ stats: ConnectionStatsBase;
653
+ }
654
+
655
+ declare interface FileConnectionFtpRecord extends FileConnectionBase {
656
+ protocol: "ftp";
657
+ host: string;
658
+ username?: string;
659
+ password?: string;
660
+ utf8?: boolean;
661
+ timezone?: string;
662
+ }
663
+
664
+ declare type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
665
+
666
+ declare interface FileConnectionS3Record extends FileConnectionBase {
630
667
  protocol: "s3";
631
668
  client?: unknown;
632
669
  bucket?: string;
633
670
  }
634
671
 
635
- declare interface FileConnectionSftpRecord extends FileConnectionRecordCommon {
672
+ declare interface FileConnectionSftpRecord extends FileConnectionBase {
636
673
  protocol: "sftp";
637
674
  host: string;
638
675
  username?: string;
@@ -644,7 +681,7 @@ declare interface FileConnectionSftpRecord extends FileConnectionRecordCommon {
644
681
  mode?: "libcurl" | "lftp" | "openssh" | "ssh2";
645
682
  }
646
683
 
647
- declare interface FileConnectionSmbRecord extends FileConnectionRecordCommon {
684
+ declare interface FileConnectionSmbRecord extends FileConnectionBase {
648
685
  protocol: "smb";
649
686
  host: string;
650
687
  share: string;
@@ -661,23 +698,33 @@ declare interface FileDomainRecords {
661
698
 
662
699
  declare type FileDomainStatsRecord = FileStats;
663
700
 
664
- declare interface FilePublishDefaults extends Record<string, unknown> {
701
+ declare interface FileLegacyPublishDef extends PublishDef<"file"> {
702
+ publish: FilePublishRecordLegacy;
703
+ }
704
+
705
+ declare interface FilePublishDef extends PublishDef<"file"> {
706
+ publish: FilePublishRecord;
707
+ stats: FilePublishStatsRecord;
708
+ }
709
+
710
+ declare interface FilePublishDefaults {
665
711
  directory: string;
666
712
  filename: string;
667
713
  renders: Record<string, FilePublishRender>;
668
714
  }
669
715
 
670
- declare interface FilePublishDraft extends Record<string, unknown> {
716
+ declare interface FilePublishDraft {
671
717
  directory?: string;
672
718
  filename?: string;
673
719
  }
674
720
 
675
- declare interface FilePublishPublished extends Record<string, unknown> {
721
+ declare interface FilePublishPublished {
676
722
  directory?: string;
677
723
  filename: string;
678
724
  }
679
725
 
680
- declare interface FilePublishRecord extends PublishRecordCommon<"file"> {
726
+ declare interface FilePublishRecord extends PublishRecordBase {
727
+ type: "file";
681
728
  directory?: string;
682
729
  filename?: string;
683
730
  renders?: Record<string, FilePublishRender>;
@@ -686,7 +733,8 @@ declare interface FilePublishRecord extends PublishRecordCommon<"file"> {
686
733
  published?: FilePublishPublished;
687
734
  }
688
735
 
689
- declare interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
736
+ declare interface FilePublishRecordLegacy extends PublishRecordBase {
737
+ type: "file";
690
738
  directory?: string;
691
739
  filename?: string;
692
740
  draft?: FilePublishDraft;
@@ -695,7 +743,7 @@ declare interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
695
743
  renders?: undefined;
696
744
  }
697
745
 
698
- declare interface FilePublishRemote extends Record<string, unknown> {
746
+ declare interface FilePublishRemote {
699
747
  directory?: string;
700
748
  filename?: string;
701
749
  renders?: Record<string, FilePublishRemoteRender>;
@@ -729,7 +777,7 @@ declare type FilePublishRender = Nxtpression<ResolvedFilePublishRender, {
729
777
  name: string;
730
778
  }>;
731
779
 
732
- declare interface FilePublishRetrieved extends Record<string, unknown> {
780
+ declare interface FilePublishRetrieved {
733
781
  filename?: string;
734
782
  directory?: string;
735
783
  renders?: Record<string, FilePublishRetrievedRender>;
@@ -741,7 +789,7 @@ declare interface FilePublishRetrievedRender {
741
789
  hash?: string;
742
790
  }
743
791
 
744
- declare interface FilePublishStatsRecord extends PublishStatsRecordCommon {
792
+ declare interface FilePublishStatsRecord extends PublishStatsRecordBase {
745
793
  retrieved?: FilePublishRetrieved;
746
794
  defaults?: FilePublishDefaults;
747
795
  }
@@ -783,6 +831,7 @@ declare interface FileStats extends File_2 {
783
831
  ]>;
784
832
  progress?: number & Minimum<0> & Maximum<1>;
785
833
  speed?: number & Minimum<0>;
834
+ complete: boolean;
786
835
  }
787
836
 
788
837
  declare interface FontFace_2 {
@@ -1208,6 +1257,8 @@ declare interface Message {
1208
1257
  msg: string;
1209
1258
  }
1210
1259
 
1260
+ declare type MethodsRecord = Union["methods"];
1261
+
1211
1262
  /**
1212
1263
  * Minimum value constraint tag.
1213
1264
  *
@@ -1868,22 +1919,33 @@ declare interface ProvidedPermissionRecord {
1868
1919
  permissions: PermissionRecordPermisson[];
1869
1920
  }
1870
1921
 
1871
- declare interface PublishDomainAcceptsProvidedRecord {
1922
+ declare type PublishAcceptsProvidedRecord = Union_2["accepts"];
1923
+
1924
+ declare interface PublishDef<Type extends string | null> {
1925
+ publish: PublishRecordBase & {
1926
+ type: Type;
1927
+ };
1928
+ stats: PublishStatsRecordBase;
1929
+ methods: PublishDomainMethodsRecordBase;
1930
+ accepts: PublishDomainAcceptsProvidedRecordBase;
1931
+ }
1932
+
1933
+ declare interface PublishDomainAcceptsProvidedRecordBase {
1872
1934
  value?: unknown;
1873
1935
  }
1874
1936
 
1875
- declare interface PublishDomainMethodsRecord {
1937
+ declare interface PublishDomainMethodsRecordBase {
1876
1938
  [key: string]: {
1877
1939
  rpcId: string;
1878
- rpcData: Record<string, unknown>;
1940
+ rpcData: unknown;
1879
1941
  };
1880
1942
  }
1881
1943
 
1882
1944
  declare interface PublishDomainRecords {
1883
1945
  [":publish"]: PublishRecord;
1884
1946
  [":publish.stats?"]: PublishStatsRecord;
1885
- [":publish.methods?"]: PublishDomainMethodsRecord;
1886
- [":publish.accepts"]: PublishDomainAcceptsProvidedRecord;
1947
+ [":publish.methods?"]: PublishMethodsRecord;
1948
+ [":publish.accepts"]: PublishAcceptsProvidedRecord;
1887
1949
  }
1888
1950
 
1889
1951
  declare interface PublishedDomainRecords {
@@ -1900,40 +1962,40 @@ declare interface PublishedRecord {
1900
1962
  error?: boolean;
1901
1963
  }
1902
1964
 
1903
- declare type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord | FilePublishRecordLegacy | EmptyPublishRecord;
1965
+ declare type PublishMethodsRecord = Union_2["methods"];
1966
+
1967
+ declare type PublishRecord = Union_2["publish"];
1904
1968
 
1905
- declare interface PublishRecordCommon<Type extends PublishRecord["type"]> {
1906
- type: Type;
1969
+ declare interface PublishRecordBase {
1970
+ type: string | null;
1907
1971
  asset?: string | null;
1908
1972
  connection?: string;
1909
- render?: PublishRender;
1910
- draft?: Record<string, unknown>;
1911
- published?: Record<string, unknown>;
1912
- remote?: Record<string, unknown>;
1973
+ render?: PublishRenderBase;
1974
+ draft?: unknown;
1975
+ published?: unknown;
1976
+ remote?: unknown;
1913
1977
  error?: {
1914
1978
  method: string;
1915
1979
  } | null;
1916
1980
  messages?: Message[];
1917
1981
  }
1918
1982
 
1919
- /**
1920
- * render preset + overrides
1921
- */
1922
- declare interface PublishRender {
1983
+ /** render preset + overrides */
1984
+ declare interface PublishRenderBase {
1923
1985
  preset?: string;
1924
1986
  type: string;
1925
1987
  scene?: RenderSceneObject;
1926
1988
  profile?: RenderProfileObject;
1927
1989
  }
1928
1990
 
1929
- declare type PublishStatsRecord = YoutubePublishStatsRecord | FacebookPublishStatsRecord | FilePublishStatsRecord;
1991
+ declare type PublishStatsRecord = Union_2["stats"];
1930
1992
 
1931
- declare interface PublishStatsRecordCommon {
1993
+ declare interface PublishStatsRecordBase {
1932
1994
  status?: string;
1933
1995
  substatus?: string;
1934
1996
  messages?: Message[];
1935
- retrieved?: Record<string, unknown>;
1936
- defaults?: Record<string, unknown>;
1997
+ retrieved?: unknown;
1998
+ defaults?: unknown;
1937
1999
  }
1938
2000
 
1939
2001
  declare interface QuoteNodeContent extends ElementNodeContent {
@@ -1946,6 +2008,7 @@ number
1946
2008
  ];
1947
2009
 
1948
2010
  declare interface Records extends KeyedDomainRecords, KeyedProvidedDomainRecords, DbExactRecords, DbProvidedRecord {
2011
+ [key: string]: unknown;
1949
2012
  }
1950
2013
 
1951
2014
  declare type RecordState = RecordStateNumber | RecordStateString;
@@ -2164,15 +2227,18 @@ declare interface ReplaceOperation {
2164
2227
  value: any;
2165
2228
  }
2166
2229
 
2167
- declare interface ResolvedFilePublishRender extends Omit<PublishRender, "preset"> {
2168
- preset?: string;
2230
+ declare interface ResolvedFilePublishRender extends PublishRenderBase {
2169
2231
  name?: string;
2170
2232
  path: string;
2171
2233
  collisionStrategy?: "overwrite" | "skip";
2172
2234
  ignoreEmptyScene?: boolean;
2173
2235
  }
2174
2236
 
2175
- declare interface ReutersConnectionRecord extends ConnectionRecordCommon {
2237
+ declare interface ReutersConnectionDef extends ConnectionDef<"reuters"> {
2238
+ connection: ReutersConnectionRecord;
2239
+ }
2240
+
2241
+ declare interface ReutersConnectionRecord extends ConnectionBase {
2176
2242
  type: "reuters";
2177
2243
  clientId?: string;
2178
2244
  clientSecret?: string;
@@ -2661,6 +2727,7 @@ declare interface Settings {
2661
2727
  assetRoute?: boolean;
2662
2728
  devWarnings?: boolean;
2663
2729
  multiplexWebSockets?: boolean;
2730
+ systemHealth?: boolean;
2664
2731
  };
2665
2732
  notifications?: {
2666
2733
  events?: {
@@ -2714,6 +2781,8 @@ declare type SingleKeyObject<ObjectType> =
2714
2781
 
2715
2782
  declare type Spread<T1, T2> = Omit<T2, keyof T1> & T1;
2716
2783
 
2784
+ declare type StatsRecord = Union["stats"];
2785
+
2717
2786
  declare interface StorageLocationsRecord {
2718
2787
  [key: string]: StorageLocationsRecordEntry;
2719
2788
  }
@@ -3249,6 +3318,10 @@ export declare interface Underscore {
3249
3318
  fetch(options?: RequestInit, suspend?: boolean): (resource: string) => NxtpressionFetch;
3250
3319
  }
3251
3320
 
3321
+ declare type Union = FileConnectionDef | FacebookConnectionDef | ReutersConnectionDef | EmptyConnectionDef;
3322
+
3323
+ declare type Union_2 = EmptyPublishDef | YoutubePublishDef | FacebookPublishDef | FilePublishDef | FileLegacyPublishDef;
3324
+
3252
3325
  declare interface Unsubscribable {
3253
3326
  unsubscribe(): void;
3254
3327
  }
@@ -3407,7 +3480,13 @@ declare type WidgetType = "default" | "assetTypes" | "assetTags" | "geopoint" |
3407
3480
  */
3408
3481
  declare type YjsSnapshot = string;
3409
3482
 
3410
- declare interface YoutubePublishRecord extends PublishRecordCommon<"youtube"> {
3483
+ declare interface YoutubePublishDef extends PublishDef<"youtube"> {
3484
+ publish: YoutubePublishRecord;
3485
+ stats: YoutubePublishStatsRecord;
3486
+ }
3487
+
3488
+ declare interface YoutubePublishRecord extends PublishRecordBase {
3489
+ type: "youtube";
3411
3490
  draft?: {
3412
3491
  snippet?: {
3413
3492
  title?: string;
@@ -3417,7 +3496,6 @@ declare interface YoutubePublishRecord extends PublishRecordCommon<"youtube"> {
3417
3496
  };
3418
3497
  }
3419
3498
 
3420
- declare interface YoutubePublishStatsRecord extends PublishStatsRecordCommon {
3421
- }
3499
+ declare type YoutubePublishStatsRecord = PublishStatsRecordBase;
3422
3500
 
3423
3501
  export { }
@@ -0,0 +1,7 @@
1
+ import type { ConnectionDef, ConnectionBase } from './index.ts';
2
+ export interface EmptyConnectionDef extends ConnectionDef<null> {
3
+ connection: EmptyConnectionRecord;
4
+ }
5
+ export interface EmptyConnectionRecord extends ConnectionBase {
6
+ type: null;
7
+ }
@@ -0,0 +1,8 @@
1
+ import type { ConnectionDef, ConnectionBase } from './index.ts';
2
+ export interface FacebookConnectionDef extends ConnectionDef<"facebook"> {
3
+ connection: FacebookConnectionRecord;
4
+ }
5
+ export interface FacebookConnectionRecord extends ConnectionBase {
6
+ type: "facebook";
7
+ grantedScopes?: string[];
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { FileConnectionBase } from './index.ts';
2
+ export interface FileConnectionFtpRecord extends FileConnectionBase {
3
+ protocol: "ftp";
4
+ host: string;
5
+ username?: string;
6
+ password?: string;
7
+ utf8?: boolean;
8
+ timezone?: string;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,29 @@
1
+ import type { ConnectionDef, ConnectionMethodsBase, ConnectionBase, ConnectionStatsBase } from '../index.ts';
2
+ import type { FileConnectionFtpRecord } from './ftp.ts';
3
+ export * from './ftp.ts';
4
+ import type { FileConnectionS3Record } from './s3.ts';
5
+ export * from './s3.ts';
6
+ import type { FileConnectionSmbRecord } from './smb.ts';
7
+ export * from './smb.ts';
8
+ import type { FileConnectionSftpRecord } from './sftp.ts';
9
+ export * from './sftp.ts';
10
+ export interface FileConnectionDef extends ConnectionDef<"file"> {
11
+ connection: FileConnectionRecord;
12
+ methods: ConnectionMethodsBase;
13
+ stats: ConnectionStatsBase;
14
+ }
15
+ export type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
16
+ export interface FileConnectionBase extends ConnectionBase {
17
+ type: "file";
18
+ protocol: string;
19
+ host?: string;
20
+ port?: number | string;
21
+ ignoreMissing?: boolean;
22
+ concurrency?: number;
23
+ stabilityThreshold?: number;
24
+ pollInterval?: number;
25
+ listConcurrency?: number;
26
+ metafile?: {
27
+ content: string;
28
+ };
29
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./ftp.js";
2
+ export * from "./s3.js";
3
+ export * from "./smb.js";
4
+ export * from "./sftp.js";
@@ -0,0 +1,6 @@
1
+ import type { FileConnectionBase } from './index.ts';
2
+ export interface FileConnectionS3Record extends FileConnectionBase {
3
+ protocol: "s3";
4
+ client?: unknown;
5
+ bucket?: string;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { FileConnectionBase } from './index.ts';
2
+ export interface FileConnectionSftpRecord extends FileConnectionBase {
3
+ protocol: "sftp";
4
+ host: string;
5
+ username?: string;
6
+ password?: string;
7
+ privateKey?: string;
8
+ timezone?: string;
9
+ debug?: boolean;
10
+ root?: string;
11
+ mode?: "libcurl" | "lftp" | "openssh" | "ssh2";
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { FileConnectionBase } from './index.ts';
2
+ export interface FileConnectionSmbRecord extends FileConnectionBase {
3
+ protocol: "smb";
4
+ host: string;
5
+ share: string;
6
+ workgroup?: string;
7
+ username?: string;
8
+ password?: string;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,38 @@
1
+ import type { FileConnectionDef } from './file/index.ts';
2
+ export * from './file/index.ts';
3
+ import type { FacebookConnectionDef } from './facebook.ts';
4
+ export * from './facebook.ts';
5
+ import type { ReutersConnectionDef } from './reuters.ts';
6
+ export * from './reuters.ts';
7
+ import type { EmptyConnectionDef } from './empty.ts';
8
+ export * from './empty.ts';
9
+ type Union = FileConnectionDef | FacebookConnectionDef | ReutersConnectionDef | EmptyConnectionDef;
10
+ export type ConnectionRecord = Union["connection"];
11
+ export type MethodsRecord = Union["methods"];
12
+ export type StatsRecord = Union["stats"];
13
+ export interface ConnectionDomainRecords {
14
+ [":connection"]: ConnectionRecord;
15
+ [":connection.methods?"]: MethodsRecord;
16
+ [":connection.stats?"]: StatsRecord;
17
+ }
18
+ export interface ConnectionDef<Type extends string | null> {
19
+ connection: ConnectionBase & {
20
+ type: Type;
21
+ };
22
+ methods: ConnectionMethodsBase;
23
+ stats: ConnectionStatsBase;
24
+ }
25
+ export interface ConnectionBase {
26
+ type: string | null;
27
+ userNotificationsEnabled?: boolean;
28
+ }
29
+ export interface ConnectionMethodsBase {
30
+ [key: string]: object;
31
+ }
32
+ export interface ConnectionStatsBase {
33
+ status?: string;
34
+ substatus?: string;
35
+ pages?: Array<{
36
+ id: unknown;
37
+ }>;
38
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./file/index.js";
2
+ export * from "./facebook.js";
3
+ export * from "./reuters.js";
4
+ export * from "./empty.js";