@nxtedition/types 23.0.34 → 23.0.37

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.
@@ -332,7 +332,7 @@ declare interface ConnectionDomainRecords {
332
332
  [":connection.stats?"]: ConnectionStatsRecord;
333
333
  }
334
334
 
335
- declare type ConnectionRecord = FilePublishConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord;
335
+ declare type ConnectionRecord = FileConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord;
336
336
 
337
337
  declare interface ConnectionRecordCommon {
338
338
  type: string;
@@ -387,7 +387,7 @@ declare interface DesignViewRow<Id = string, Key = string, Value = void> {
387
387
  value: Value;
388
388
  }
389
389
 
390
- declare type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & PanelDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RenderDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & SubtitleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
390
+ declare type DomainRecords = AssetDomainRecords & BundleDomainRecords & CloneDomainRecords & CommentReactionDomainRecords & CommentReadMarkDomainRecords & CommentDomainRecords & ConnectionDomainRecords & ContactDomainRecords & DeepstreamDomainRecords & DesignDomainRecords & EditDomainRecords & EventDomainRecords & FileDomainRecords & GeneralDomainRecords & MediaDomainRecords & MonitorDomainRecords & PanelDomainRecords & PermissionDomainRecords & PipelinePresetDomainRecords & PipelineDomainRecords & PlanningDomainRecords & PublishDomainRecords & PublishedDomainRecords & RenderPresetDomainRecords & RenderDomainRecords & RevsDomainRecords & RoleDomainRecords & ScriptDomainRecords & SearchDomainRecords & SettingsDomainRecords & StoryboardDomainRecords & SubtitleStyleDomainRecords & SubtitleDomainRecords & TemplateDomainRecords & UserNotificationStatusDomainRecords & UserNotificationDomainRecords & UserDomainRecords;
391
391
 
392
392
  declare interface DomainRows {
393
393
  rows: string[];
@@ -452,15 +452,18 @@ declare interface File_2 {
452
452
  error: NxtError[] | NxtError | null;
453
453
  }
454
454
 
455
- declare interface FileDomainRecords {
456
- ":file.replicate": FileReplicateRecord;
457
- ":file.restrictions": FileRestrictionsRecord;
458
- ":file.stats?": FileDomainStatsRecord;
455
+ declare interface FileConnectionFtpRecord extends FileConnectionRecordCommon {
456
+ protocol: "ftp";
457
+ host: string;
458
+ username?: string;
459
+ password?: string;
460
+ utf8?: boolean;
461
+ timezone?: string;
459
462
  }
460
463
 
461
- declare type FileDomainStatsRecord = FileStats;
464
+ declare type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
462
465
 
463
- declare interface FilePublishBaseConnectionRecord extends ConnectionRecordCommon {
466
+ declare interface FileConnectionRecordCommon extends ConnectionRecordCommon {
464
467
  type: "file";
465
468
  protocol: string;
466
469
  host?: string;
@@ -475,14 +478,41 @@ declare interface FilePublishBaseConnectionRecord extends ConnectionRecordCommon
475
478
  };
476
479
  }
477
480
 
478
- declare type FilePublishConnectionRecord = FilePublishConnectionS3Record;
479
-
480
- declare interface FilePublishConnectionS3Record extends FilePublishBaseConnectionRecord {
481
+ declare interface FileConnectionS3Record extends FileConnectionRecordCommon {
481
482
  protocol: "s3";
482
483
  client?: unknown;
483
484
  bucket?: string;
484
485
  }
485
486
 
487
+ declare interface FileConnectionSftpRecord extends FileConnectionRecordCommon {
488
+ protocol: "sftp";
489
+ host: string;
490
+ username?: string;
491
+ password?: string;
492
+ privateKey?: string;
493
+ timezone?: string;
494
+ debug?: boolean;
495
+ root?: string;
496
+ mode?: "libcurl" | "lftp" | "openssh" | "ssh2";
497
+ }
498
+
499
+ declare interface FileConnectionSmbRecord extends FileConnectionRecordCommon {
500
+ protocol: "smb";
501
+ host: string;
502
+ share: string;
503
+ workgroup?: string;
504
+ username?: string;
505
+ password?: string;
506
+ }
507
+
508
+ declare interface FileDomainRecords {
509
+ ":file.replicate": FileReplicateRecord;
510
+ ":file.restrictions": FileRestrictionsRecord;
511
+ ":file.stats?": FileDomainStatsRecord;
512
+ }
513
+
514
+ declare type FileDomainStatsRecord = FileStats;
515
+
486
516
  declare interface FilePublishDefaults extends Record<string, unknown> {
487
517
  directory: string;
488
518
  filename: string;
@@ -776,12 +806,140 @@ declare interface ModuleTabsSettingsValue {
776
806
  activeTab: string;
777
807
  }
778
808
 
809
+ declare interface MonitorDomainRecords {
810
+ ":monitor.stats?": Record<string, MonitorStatsRecord>;
811
+ }
812
+
813
+ declare interface MonitorRecords {
814
+ "nxt.status?": NxtStatusRecord | null;
815
+ }
816
+
817
+ declare interface MonitorStatsBuddyInfo {
818
+ normal?: number[];
819
+ high?: number[];
820
+ timestamp: number;
821
+ }
822
+
823
+ declare interface MonitorStatsMemInfo {
824
+ [key: string]: string | number | boolean | null;
825
+ }
826
+
827
+ declare interface MonitorStatsNetworkInfo {
828
+ softnet: {
829
+ timestamp: number;
830
+ squeezed?: number;
831
+ squeezedDay?: number;
832
+ squeezedHour?: number;
833
+ processed?: number;
834
+ processedDay?: number;
835
+ processedHour?: number;
836
+ processedMinute?: number;
837
+ cpus: Array<{
838
+ cpu: number;
839
+ processed?: number;
840
+ dropped?: number;
841
+ squeezed?: number;
842
+ }>;
843
+ };
844
+ sockstat: {
845
+ timestamp: number;
846
+ sockets?: Record<string, unknown>;
847
+ tcp?: Record<string, unknown>;
848
+ udp?: Record<string, unknown>;
849
+ udplite?: Record<string, unknown>;
850
+ raw?: Record<string, unknown>;
851
+ frag?: Record<string, unknown>;
852
+ };
853
+ bonding: Array<NetworkInterfaceInfo & {
854
+ slaves: string[];
855
+ name: string;
856
+ [key: string]: unknown;
857
+ }>;
858
+ eth: Array<NetworkInterfaceInfo & {
859
+ speed?: number;
860
+ rxUnicastBytes?: number;
861
+ rxMulticastBytes?: number;
862
+ rxBroadcastBytes?: number;
863
+ [key: string]: unknown;
864
+ }>;
865
+ }
866
+
867
+ declare interface MonitorStatsProcInfo {
868
+ cpu: MonitorStatsProcInfoCpu | null;
869
+ cpus?: MonitorStatsProcInfoCpu[];
870
+ threads: number;
871
+ load: number[] | null;
872
+ interrupts?: number[] | null;
873
+ contextSwitches: number | null;
874
+ bootTime: number | null;
875
+ processes: number | null;
876
+ running: number | null;
877
+ blocked: number | null;
878
+ softirqs: unknown;
879
+ cmdline: unknown;
880
+ timestamp: number;
881
+ total: number | null;
882
+ idle: number | null;
883
+ active: number | null;
884
+ utilization: number | null;
885
+ }
886
+
887
+ declare interface MonitorStatsProcInfoCpu {
888
+ [key: string]: string | number | boolean | null;
889
+ }
890
+
891
+ declare interface MonitorStatsRecord {
892
+ gpu: unknown;
893
+ proc: MonitorStatsProcInfo;
894
+ buddyinfo: MonitorStatsBuddyInfo;
895
+ meminfo: MonitorStatsMemInfo;
896
+ net: MonitorStatsNetworkInfo;
897
+ var: {
898
+ used: number;
899
+ available: number;
900
+ timestamp: number;
901
+ };
902
+ }
903
+
779
904
  declare interface MoveOperation {
780
905
  op: 'move';
781
906
  from: string;
782
907
  path: string;
783
908
  }
784
909
 
910
+ declare interface NetworkInterfaceInfo {
911
+ name: string;
912
+ timestamp?: number;
913
+ rxBytes?: number;
914
+ rxBytesOrigin?: number;
915
+ rxBytesSec?: number;
916
+ rxBytesValue?: number;
917
+ rxDropped?: number;
918
+ rxDroppedOrigin?: number;
919
+ rxDroppedSec?: number;
920
+ rxDroppedValue?: number;
921
+ rxErrors?: number;
922
+ rxErrorsOrigin?: number;
923
+ rxErrorsSec?: number;
924
+ rxErrorsValue?: number;
925
+ rxPackets?: number;
926
+ rxPacketsOrigin?: number;
927
+ rxPacketsSec?: number;
928
+ rxPacketsValue?: number;
929
+ txBytes?: number;
930
+ txBytesOrigin?: number;
931
+ txBytesSec?: number;
932
+ txBytesValue?: number;
933
+ txDropped?: number;
934
+ txDroppedOrigin?: number;
935
+ txDroppedSec?: number;
936
+ txDroppedValue?: number;
937
+ txErrors?: number;
938
+ txErrorsOrigin?: number;
939
+ txErrorsSec?: number;
940
+ txErrorsValue?: number;
941
+ }
942
+
785
943
  declare type NotificationReason = "mentioned" | "assigned" | "author" | "participated" | "always";
786
944
 
787
945
  declare type Numeric<Value extends number | bigint> = Value extends number ? Value : `BigInt(${Value})`;
@@ -851,6 +1009,53 @@ export declare interface NxtpressionNxt {
851
1009
  hash(value: unknown): string;
852
1010
  }
853
1011
 
1012
+ declare interface NxtStatusNode extends NxtStatusObject {
1013
+ state?: string;
1014
+ role?: string;
1015
+ leader?: boolean;
1016
+ availability?: string;
1017
+ classes?: string[];
1018
+ address?: string;
1019
+ }
1020
+
1021
+ declare interface NxtStatusObject {
1022
+ level: number;
1023
+ status: string;
1024
+ messages: Array<{
1025
+ msg: string;
1026
+ level: number;
1027
+ }>;
1028
+ }
1029
+
1030
+ declare interface NxtStatusRecord {
1031
+ nodes: {
1032
+ [k: string]: NxtStatusNode;
1033
+ };
1034
+ services: {
1035
+ [k: string]: NxtStatusService;
1036
+ };
1037
+ level: number;
1038
+ status: string;
1039
+ }
1040
+
1041
+ declare interface NxtStatusService extends NxtStatusObject {
1042
+ image?: string;
1043
+ running?: number;
1044
+ mode?: string;
1045
+ total?: number;
1046
+ tasks?: Array<{
1047
+ id: string;
1048
+ node: string;
1049
+ container: string;
1050
+ level?: number;
1051
+ status?: string;
1052
+ messages: Array<{
1053
+ msg: string;
1054
+ level: number;
1055
+ }>;
1056
+ }>;
1057
+ }
1058
+
854
1059
  /**
855
1060
  * A representation of any set of values over any amount of time. This is the most basic building block
856
1061
  * of RxJS.
@@ -1296,7 +1501,7 @@ declare type Records = {
1296
1501
  }>;
1297
1502
  synced?: boolean;
1298
1503
  };
1299
- };
1504
+ } & MonitorRecords & StorageRecords;
1300
1505
 
1301
1506
  declare type RecordState = RecordStateNumber | RecordStateString;
1302
1507
 
@@ -1309,6 +1514,51 @@ declare interface RemoveOperation {
1309
1514
  path: string;
1310
1515
  }
1311
1516
 
1517
+ declare interface RenderDomainCpuStats {
1518
+ cpu: {
1519
+ idle: number;
1520
+ total: number;
1521
+ };
1522
+ mem: {
1523
+ used: number;
1524
+ total: number;
1525
+ arcstats: {
1526
+ size: number | null;
1527
+ };
1528
+ meminfo: {
1529
+ total: number | null;
1530
+ free: number | null;
1531
+ used: number | null;
1532
+ active: number | null;
1533
+ available: number | null;
1534
+ buffers: number | null;
1535
+ cached: number | null;
1536
+ buffcache: number | null;
1537
+ reclaimable: number | null;
1538
+ swaptotal: number | null;
1539
+ swapused: number | null;
1540
+ swapfree: number | null;
1541
+ slab: number | null;
1542
+ sReclaimable: number | null;
1543
+ kernelStack: number | null;
1544
+ memTotal: number | null;
1545
+ memAvailable: number | null;
1546
+ };
1547
+ };
1548
+ }
1549
+
1550
+ declare interface RenderDomainGpuStats {
1551
+ [key: string]: unknown;
1552
+ }
1553
+
1554
+ declare interface RenderDomainNetStats {
1555
+ used: number;
1556
+ type?: string;
1557
+ dev?: {
1558
+ used: number;
1559
+ };
1560
+ }
1561
+
1312
1562
  declare interface RenderDomainQueryRecord {
1313
1563
  type: string;
1314
1564
  title: string;
@@ -1323,6 +1573,7 @@ declare interface RenderDomainRecords {
1323
1573
  ":render.stats?": RenderDomainStatsRecord;
1324
1574
  ":render.query?": RenderDomainQueryRecord;
1325
1575
  ":render.result?": RenderDomainResultRecord;
1576
+ ":render.schedulers?": RenderDomainSchedulersRecord;
1326
1577
  }
1327
1578
 
1328
1579
  declare interface RenderDomainResultRecord {
@@ -1332,10 +1583,71 @@ declare interface RenderDomainResultRecord {
1332
1583
  error?: null | Record<string, unknown> | Array<Record<string, unknown>>;
1333
1584
  }
1334
1585
 
1586
+ declare interface RenderDomainSchedulersRecord {
1587
+ [key: string]: number[];
1588
+ }
1589
+
1335
1590
  declare interface RenderDomainStatsRecord {
1336
1591
  progress?: number | null;
1337
1592
  error?: Array<Record<string, unknown>> | null;
1338
- status?: string | null;
1593
+ status?: string | string[] | null;
1594
+ lag?: number | null;
1595
+ available?: boolean | null;
1596
+ toobusy?: boolean | null;
1597
+ cpuAvailable?: boolean | null;
1598
+ cpuComputeAvailable?: boolean | null;
1599
+ cpuComputeReservation?: number | null;
1600
+ cpuCompute?: number | null;
1601
+ cpuComputeLimit?: number | null;
1602
+ cpuComputeTotal?: number | null;
1603
+ cpuComputeValue?: number | null;
1604
+ cpuMemoryAvailable?: boolean | null;
1605
+ cpuMemoryReservation?: number | null;
1606
+ cpuMemory?: number | null;
1607
+ cpuMemoryLimit?: number | null;
1608
+ cpuMemoryValue?: number | null;
1609
+ cpuMemoryTotal?: number | null;
1610
+ gpuType?: string | null;
1611
+ gpuAvailable?: boolean | null;
1612
+ gpuComputeAvailable?: boolean | null;
1613
+ gpuComputeReservation?: number | null;
1614
+ gpuCompute?: number | null;
1615
+ gpuComputeLimit?: number | null;
1616
+ gpuComputeValue?: number | null;
1617
+ gpuComputeTotal?: number | null;
1618
+ gpuMemoryAvailable?: boolean | null;
1619
+ gpuMemoryReservation?: number | null;
1620
+ gpuMemory?: number | null;
1621
+ gpuMemoryLimit?: number | null;
1622
+ gpuMemoryValue?: number | null;
1623
+ gpuMemoryTotal?: number | null;
1624
+ gpuQueueAvailable?: boolean | null;
1625
+ gpuQueueReservation?: number | null;
1626
+ gpuQueueLimit?: number | null;
1627
+ gpuQueueValue?: number | null;
1628
+ gpuQueueTotal?: number | null;
1629
+ gpuEncoder?: number | null;
1630
+ gpuEncoderLimit?: number | null;
1631
+ gpuEncoderValue?: number | null;
1632
+ gpuEncoderTotal?: number | null;
1633
+ gpuDecoder?: number | null;
1634
+ gpuDecoderLimit?: number | null;
1635
+ gpuDecoderValue?: null;
1636
+ gpuDecoderTotal?: number | null;
1637
+ netAvailable?: boolean | null;
1638
+ netTransferAvailable?: boolean | null;
1639
+ netTransferReservation?: number | null;
1640
+ netTransfer?: number | null;
1641
+ netTransferLimit?: number | null;
1642
+ netTransferValue?: number | null;
1643
+ netTransferTotal?: number | null;
1644
+ cpu?: number | null;
1645
+ memory?: number | null;
1646
+ activeCount: number | null;
1647
+ totalCount: number | null;
1648
+ gpuStat?: RenderDomainGpuStats | null;
1649
+ cpuStat?: RenderDomainCpuStats | null;
1650
+ netStat?: RenderDomainNetStats | null;
1339
1651
  }
1340
1652
 
1341
1653
  declare type RenderPreset = RenderPresetObject | string;
@@ -1462,7 +1774,7 @@ declare interface ScriptDomainRecords {
1462
1774
  }
1463
1775
 
1464
1776
  declare interface SearchDomainRecords {
1465
- ":search": SearchRecord;
1777
+ ":search?": SearchRecord;
1466
1778
  }
1467
1779
 
1468
1780
  declare interface SearchRecord {
@@ -1817,6 +2129,42 @@ declare interface SettingsPanelStoreTab extends ModuleTabsSettingsValue {
1817
2129
  activeSectionIndex: number;
1818
2130
  }
1819
2131
 
2132
+ declare interface StorageLocationsRecord {
2133
+ [key: string]: StorageLocationsRecordEntry;
2134
+ }
2135
+
2136
+ declare interface StorageLocationsRecordEntry {
2137
+ id: string;
2138
+ location: string;
2139
+ timestamp: string;
2140
+ type: string;
2141
+ zone: string;
2142
+ free: number | null;
2143
+ size: number | null;
2144
+ available: number | null;
2145
+ cache: boolean | null;
2146
+ capacity: number | null;
2147
+ origin: string;
2148
+ allows: ("get" | "put" | "del")[];
2149
+ net: {
2150
+ rx: number;
2151
+ tx: number;
2152
+ };
2153
+ latency: number;
2154
+ }
2155
+
2156
+ declare interface StorageRecords {
2157
+ "storage.locations?": StorageLocationsRecord;
2158
+ "storage.zones?": StorageZonesRecord;
2159
+ }
2160
+
2161
+ declare interface StorageZonesRecord {
2162
+ [key: string]: {
2163
+ priority: number;
2164
+ locations: string[];
2165
+ };
2166
+ }
2167
+
1820
2168
  declare interface StoryboardDomainPipelinesRecord {
1821
2169
  value?: string[];
1822
2170
  }