@nxtedition/types 23.0.50 → 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 (48) 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 +138 -62
  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 +4 -4
  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/validate/assert-guard.js +474 -687
  36. package/dist/records/validate/assert.js +474 -687
  37. package/dist/records/validate/is.js +39 -108
  38. package/dist/records/validate/schemas.js +403 -437
  39. package/dist/records/validate/stringify.js +66 -154
  40. package/dist/records/validate/utils.d.ts +2 -0
  41. package/dist/records/validate/utils.js +3 -0
  42. package/dist/records/validate/validate-equals.js +723 -714
  43. package/dist/records/validate/validate.js +437 -635
  44. package/package.json +1 -1
  45. package/dist/records/domains/connection.d.ts +0 -77
  46. package/dist/records/domains/publish.d.ts +0 -149
  47. /package/dist/records/domains/{connection.js → connection/empty.js} +0 -0
  48. /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<{
@@ -466,6 +474,14 @@ declare interface ElementNodeContent {
466
474
  children: TextNodeContent[];
467
475
  }
468
476
 
477
+ declare interface EmptyConnectionDef extends ConnectionDef<null> {
478
+ connection: EmptyConnectionRecord;
479
+ }
480
+
481
+ declare interface EmptyConnectionRecord extends ConnectionBase {
482
+ type: null;
483
+ }
484
+
469
485
  /**
470
486
  Represents a strictly empty plain object, the `{}` value.
471
487
 
@@ -496,6 +512,10 @@ declare type EmptyObject = {[emptyObjectSymbol]?: never};
496
512
 
497
513
  declare const emptyObjectSymbol: unique symbol;
498
514
 
515
+ declare interface EmptyPublishDef extends PublishDef<null> {
516
+ publish: EmptyPublishRecord;
517
+ }
518
+
499
519
  declare interface EmptyPublishRecord {
500
520
  type: null;
501
521
  asset?: string | null;
@@ -573,16 +593,26 @@ declare interface EventTemplateRecord {
573
593
 
574
594
  declare type ExactRecords = MiscRecords & MediaRecords & AssetRecords & MonitorRecords & StorageRecords;
575
595
 
576
- declare interface FacebookConnectionRecord extends ConnectionRecordCommon {
596
+ declare interface FacebookConnectionDef extends ConnectionDef<"facebook"> {
597
+ connection: FacebookConnectionRecord;
598
+ }
599
+
600
+ declare interface FacebookConnectionRecord extends ConnectionBase {
577
601
  type: "facebook";
578
602
  grantedScopes?: string[];
579
603
  }
580
604
 
581
- 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";
582
612
  pageId?: string;
583
613
  }
584
614
 
585
- declare interface FacebookPublishStatsRecord extends PublishStatsRecordCommon {
615
+ declare interface FacebookPublishStatsRecord extends PublishStatsRecordBase {
586
616
  }
587
617
 
588
618
  declare interface File_2 {
@@ -601,18 +631,7 @@ declare interface File_2 {
601
631
  error: NxtError[] | NxtError | null;
602
632
  }
603
633
 
604
- declare interface FileConnectionFtpRecord extends FileConnectionRecordCommon {
605
- protocol: "ftp";
606
- host: string;
607
- username?: string;
608
- password?: string;
609
- utf8?: boolean;
610
- timezone?: string;
611
- }
612
-
613
- declare type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
614
-
615
- declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
634
+ declare interface FileConnectionBase extends ConnectionBase {
616
635
  type: "file";
617
636
  protocol: string;
618
637
  host?: string;
@@ -627,13 +646,30 @@ declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
627
646
  };
628
647
  }
629
648
 
630
- 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 {
631
667
  protocol: "s3";
632
668
  client?: unknown;
633
669
  bucket?: string;
634
670
  }
635
671
 
636
- declare interface FileConnectionSftpRecord extends FileConnectionRecordCommon {
672
+ declare interface FileConnectionSftpRecord extends FileConnectionBase {
637
673
  protocol: "sftp";
638
674
  host: string;
639
675
  username?: string;
@@ -645,7 +681,7 @@ declare interface FileConnectionSftpRecord extends FileConnectionRecordCommon {
645
681
  mode?: "libcurl" | "lftp" | "openssh" | "ssh2";
646
682
  }
647
683
 
648
- declare interface FileConnectionSmbRecord extends FileConnectionRecordCommon {
684
+ declare interface FileConnectionSmbRecord extends FileConnectionBase {
649
685
  protocol: "smb";
650
686
  host: string;
651
687
  share: string;
@@ -662,23 +698,33 @@ declare interface FileDomainRecords {
662
698
 
663
699
  declare type FileDomainStatsRecord = FileStats;
664
700
 
665
- 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 {
666
711
  directory: string;
667
712
  filename: string;
668
713
  renders: Record<string, FilePublishRender>;
669
714
  }
670
715
 
671
- declare interface FilePublishDraft extends Record<string, unknown> {
716
+ declare interface FilePublishDraft {
672
717
  directory?: string;
673
718
  filename?: string;
674
719
  }
675
720
 
676
- declare interface FilePublishPublished extends Record<string, unknown> {
721
+ declare interface FilePublishPublished {
677
722
  directory?: string;
678
723
  filename: string;
679
724
  }
680
725
 
681
- declare interface FilePublishRecord extends PublishRecordCommon<"file"> {
726
+ declare interface FilePublishRecord extends PublishRecordBase {
727
+ type: "file";
682
728
  directory?: string;
683
729
  filename?: string;
684
730
  renders?: Record<string, FilePublishRender>;
@@ -687,7 +733,8 @@ declare interface FilePublishRecord extends PublishRecordCommon<"file"> {
687
733
  published?: FilePublishPublished;
688
734
  }
689
735
 
690
- declare interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
736
+ declare interface FilePublishRecordLegacy extends PublishRecordBase {
737
+ type: "file";
691
738
  directory?: string;
692
739
  filename?: string;
693
740
  draft?: FilePublishDraft;
@@ -696,7 +743,7 @@ declare interface FilePublishRecordLegacy extends PublishRecordCommon<"file"> {
696
743
  renders?: undefined;
697
744
  }
698
745
 
699
- declare interface FilePublishRemote extends Record<string, unknown> {
746
+ declare interface FilePublishRemote {
700
747
  directory?: string;
701
748
  filename?: string;
702
749
  renders?: Record<string, FilePublishRemoteRender>;
@@ -730,7 +777,7 @@ declare type FilePublishRender = Nxtpression<ResolvedFilePublishRender, {
730
777
  name: string;
731
778
  }>;
732
779
 
733
- declare interface FilePublishRetrieved extends Record<string, unknown> {
780
+ declare interface FilePublishRetrieved {
734
781
  filename?: string;
735
782
  directory?: string;
736
783
  renders?: Record<string, FilePublishRetrievedRender>;
@@ -742,7 +789,7 @@ declare interface FilePublishRetrievedRender {
742
789
  hash?: string;
743
790
  }
744
791
 
745
- declare interface FilePublishStatsRecord extends PublishStatsRecordCommon {
792
+ declare interface FilePublishStatsRecord extends PublishStatsRecordBase {
746
793
  retrieved?: FilePublishRetrieved;
747
794
  defaults?: FilePublishDefaults;
748
795
  }
@@ -784,6 +831,7 @@ declare interface FileStats extends File_2 {
784
831
  ]>;
785
832
  progress?: number & Minimum<0> & Maximum<1>;
786
833
  speed?: number & Minimum<0>;
834
+ complete: boolean;
787
835
  }
788
836
 
789
837
  declare interface FontFace_2 {
@@ -1209,6 +1257,8 @@ declare interface Message {
1209
1257
  msg: string;
1210
1258
  }
1211
1259
 
1260
+ declare type MethodsRecord = Union["methods"];
1261
+
1212
1262
  /**
1213
1263
  * Minimum value constraint tag.
1214
1264
  *
@@ -1869,22 +1919,33 @@ declare interface ProvidedPermissionRecord {
1869
1919
  permissions: PermissionRecordPermisson[];
1870
1920
  }
1871
1921
 
1872
- 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 {
1873
1934
  value?: unknown;
1874
1935
  }
1875
1936
 
1876
- declare interface PublishDomainMethodsRecord {
1937
+ declare interface PublishDomainMethodsRecordBase {
1877
1938
  [key: string]: {
1878
1939
  rpcId: string;
1879
- rpcData: Record<string, unknown>;
1940
+ rpcData: unknown;
1880
1941
  };
1881
1942
  }
1882
1943
 
1883
1944
  declare interface PublishDomainRecords {
1884
1945
  [":publish"]: PublishRecord;
1885
1946
  [":publish.stats?"]: PublishStatsRecord;
1886
- [":publish.methods?"]: PublishDomainMethodsRecord;
1887
- [":publish.accepts"]: PublishDomainAcceptsProvidedRecord;
1947
+ [":publish.methods?"]: PublishMethodsRecord;
1948
+ [":publish.accepts"]: PublishAcceptsProvidedRecord;
1888
1949
  }
1889
1950
 
1890
1951
  declare interface PublishedDomainRecords {
@@ -1901,40 +1962,40 @@ declare interface PublishedRecord {
1901
1962
  error?: boolean;
1902
1963
  }
1903
1964
 
1904
- declare type PublishRecord = YoutubePublishRecord | FacebookPublishRecord | FilePublishRecord | FilePublishRecordLegacy | EmptyPublishRecord;
1965
+ declare type PublishMethodsRecord = Union_2["methods"];
1905
1966
 
1906
- declare interface PublishRecordCommon<Type extends PublishRecord["type"]> {
1907
- type: Type;
1967
+ declare type PublishRecord = Union_2["publish"];
1968
+
1969
+ declare interface PublishRecordBase {
1970
+ type: string | null;
1908
1971
  asset?: string | null;
1909
1972
  connection?: string;
1910
- render?: PublishRender;
1911
- draft?: Record<string, unknown>;
1912
- published?: Record<string, unknown>;
1913
- remote?: Record<string, unknown>;
1973
+ render?: PublishRenderBase;
1974
+ draft?: unknown;
1975
+ published?: unknown;
1976
+ remote?: unknown;
1914
1977
  error?: {
1915
1978
  method: string;
1916
1979
  } | null;
1917
1980
  messages?: Message[];
1918
1981
  }
1919
1982
 
1920
- /**
1921
- * render preset + overrides
1922
- */
1923
- declare interface PublishRender {
1983
+ /** render preset + overrides */
1984
+ declare interface PublishRenderBase {
1924
1985
  preset?: string;
1925
1986
  type: string;
1926
1987
  scene?: RenderSceneObject;
1927
1988
  profile?: RenderProfileObject;
1928
1989
  }
1929
1990
 
1930
- declare type PublishStatsRecord = YoutubePublishStatsRecord | FacebookPublishStatsRecord | FilePublishStatsRecord;
1991
+ declare type PublishStatsRecord = Union_2["stats"];
1931
1992
 
1932
- declare interface PublishStatsRecordCommon {
1993
+ declare interface PublishStatsRecordBase {
1933
1994
  status?: string;
1934
1995
  substatus?: string;
1935
1996
  messages?: Message[];
1936
- retrieved?: Record<string, unknown>;
1937
- defaults?: Record<string, unknown>;
1997
+ retrieved?: unknown;
1998
+ defaults?: unknown;
1938
1999
  }
1939
2000
 
1940
2001
  declare interface QuoteNodeContent extends ElementNodeContent {
@@ -2166,15 +2227,18 @@ declare interface ReplaceOperation {
2166
2227
  value: any;
2167
2228
  }
2168
2229
 
2169
- declare interface ResolvedFilePublishRender extends Omit<PublishRender, "preset"> {
2170
- preset?: string;
2230
+ declare interface ResolvedFilePublishRender extends PublishRenderBase {
2171
2231
  name?: string;
2172
2232
  path: string;
2173
2233
  collisionStrategy?: "overwrite" | "skip";
2174
2234
  ignoreEmptyScene?: boolean;
2175
2235
  }
2176
2236
 
2177
- declare interface ReutersConnectionRecord extends ConnectionRecordCommon {
2237
+ declare interface ReutersConnectionDef extends ConnectionDef<"reuters"> {
2238
+ connection: ReutersConnectionRecord;
2239
+ }
2240
+
2241
+ declare interface ReutersConnectionRecord extends ConnectionBase {
2178
2242
  type: "reuters";
2179
2243
  clientId?: string;
2180
2244
  clientSecret?: string;
@@ -2663,6 +2727,7 @@ declare interface Settings {
2663
2727
  assetRoute?: boolean;
2664
2728
  devWarnings?: boolean;
2665
2729
  multiplexWebSockets?: boolean;
2730
+ systemHealth?: boolean;
2666
2731
  };
2667
2732
  notifications?: {
2668
2733
  events?: {
@@ -2716,6 +2781,8 @@ declare type SingleKeyObject<ObjectType> =
2716
2781
 
2717
2782
  declare type Spread<T1, T2> = Omit<T2, keyof T1> & T1;
2718
2783
 
2784
+ declare type StatsRecord = Union["stats"];
2785
+
2719
2786
  declare interface StorageLocationsRecord {
2720
2787
  [key: string]: StorageLocationsRecordEntry;
2721
2788
  }
@@ -3251,6 +3318,10 @@ export declare interface Underscore {
3251
3318
  fetch(options?: RequestInit, suspend?: boolean): (resource: string) => NxtpressionFetch;
3252
3319
  }
3253
3320
 
3321
+ declare type Union = FileConnectionDef | FacebookConnectionDef | ReutersConnectionDef | EmptyConnectionDef;
3322
+
3323
+ declare type Union_2 = EmptyPublishDef | YoutubePublishDef | FacebookPublishDef | FilePublishDef | FileLegacyPublishDef;
3324
+
3254
3325
  declare interface Unsubscribable {
3255
3326
  unsubscribe(): void;
3256
3327
  }
@@ -3409,7 +3480,13 @@ declare type WidgetType = "default" | "assetTypes" | "assetTags" | "geopoint" |
3409
3480
  */
3410
3481
  declare type YjsSnapshot = string;
3411
3482
 
3412
- 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";
3413
3490
  draft?: {
3414
3491
  snippet?: {
3415
3492
  title?: string;
@@ -3419,7 +3496,6 @@ declare interface YoutubePublishRecord extends PublishRecordCommon<"youtube"> {
3419
3496
  };
3420
3497
  }
3421
3498
 
3422
- declare interface YoutubePublishStatsRecord extends PublishStatsRecordCommon {
3423
- }
3499
+ declare type YoutubePublishStatsRecord = PublishStatsRecordBase;
3424
3500
 
3425
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";
@@ -0,0 +1,10 @@
1
+ import type { ConnectionDef, ConnectionBase } from './index.ts';
2
+ export interface ReutersConnectionDef extends ConnectionDef<"reuters"> {
3
+ connection: ReutersConnectionRecord;
4
+ }
5
+ export interface ReutersConnectionRecord extends ConnectionBase {
6
+ type: "reuters";
7
+ clientId?: string;
8
+ clientSecret?: string;
9
+ audience?: string;
10
+ }
@@ -0,0 +1 @@
1
+ export {};