@@ -594,6 +594,30 @@ export type KeyFile = {
594594 location ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
595595} ;
596596
597+ /** Represents a log file in the system */
598+ export type LogFile = {
599+ __typename ?: 'LogFile' ;
600+ /** Last modified timestamp */
601+ modifiedAt : Scalars [ 'DateTime' ] [ 'output' ] ;
602+ /** Name of the log file */
603+ name : Scalars [ 'String' ] [ 'output' ] ;
604+ /** Full path to the log file */
605+ path : Scalars [ 'String' ] [ 'output' ] ;
606+ /** Size of the log file in bytes */
607+ size : Scalars [ 'Int' ] [ 'output' ] ;
608+ } ;
609+
610+ /** Content of a log file */
611+ export type LogFileContent = {
612+ __typename ?: 'LogFileContent' ;
613+ /** Content of the log file */
614+ content : Scalars [ 'String' ] [ 'output' ] ;
615+ /** Path to the log file */
616+ path : Scalars [ 'String' ] [ 'output' ] ;
617+ /** Total number of lines in the file */
618+ totalLines : Scalars [ 'Int' ] [ 'output' ] ;
619+ } ;
620+
597621/** The current user */
598622export type Me = UserAccount & {
599623 __typename ?: 'Me' ;
@@ -1067,6 +1091,14 @@ export type Query = {
10671091 extraAllowedOrigins : Array < Scalars [ 'String' ] [ 'output' ] > ;
10681092 flash ?: Maybe < Flash > ;
10691093 info ?: Maybe < Info > ;
1094+ /**
1095+ * Get the content of a specific log file
1096+ * @param path Path to the log file
1097+ * @param lines Number of lines to read from the end of the file (default: 100)
1098+ */
1099+ logFile : LogFileContent ;
1100+ /** List all available log files */
1101+ logFiles : Array < LogFile > ;
10701102 /** Current user account */
10711103 me ?: Maybe < Me > ;
10721104 network ?: Maybe < Network > ;
@@ -1117,6 +1149,12 @@ export type QuerydockerNetworksArgs = {
11171149} ;
11181150
11191151
1152+ export type QuerylogFileArgs = {
1153+ lines ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
1154+ path : Scalars [ 'String' ] [ 'input' ] ;
1155+ } ;
1156+
1157+
11201158export type QueryuserArgs = {
11211159 id : Scalars [ 'ID' ] [ 'input' ] ;
11221160} ;
@@ -1307,6 +1345,11 @@ export type Subscription = {
13071345 dockerNetworks : Array < Maybe < DockerNetwork > > ;
13081346 flash : Flash ;
13091347 info : Info ;
1348+ /**
1349+ * Subscribe to changes in a log file
1350+ * @param path Path to the log file
1351+ */
1352+ logFile : LogFileContent ;
13101353 me ?: Maybe < Me > ;
13111354 notificationAdded : Notification ;
13121355 notificationsOverview : NotificationOverview ;
@@ -1337,6 +1380,11 @@ export type SubscriptiondockerNetworkArgs = {
13371380} ;
13381381
13391382
1383+ export type SubscriptionlogFileArgs = {
1384+ path : Scalars [ 'String' ] [ 'input' ] ;
1385+ } ;
1386+
1387+
13401388export type SubscriptionserviceArgs = {
13411389 name : Scalars [ 'String' ] [ 'input' ] ;
13421390} ;
@@ -1878,6 +1926,8 @@ export type ResolversTypes = ResolversObject<{
18781926 Int : ResolverTypeWrapper < Scalars [ 'Int' ] [ 'output' ] > ;
18791927 JSON : ResolverTypeWrapper < Scalars [ 'JSON' ] [ 'output' ] > ;
18801928 KeyFile : ResolverTypeWrapper < KeyFile > ;
1929+ LogFile : ResolverTypeWrapper < LogFile > ;
1930+ LogFileContent : ResolverTypeWrapper < LogFileContent > ;
18811931 Long : ResolverTypeWrapper < Scalars [ 'Long' ] [ 'output' ] > ;
18821932 Me : ResolverTypeWrapper < Me > ;
18831933 MemoryFormFactor : MemoryFormFactor ;
@@ -1995,6 +2045,8 @@ export type ResolversParentTypes = ResolversObject<{
19952045 Int : Scalars [ 'Int' ] [ 'output' ] ;
19962046 JSON : Scalars [ 'JSON' ] [ 'output' ] ;
19972047 KeyFile : KeyFile ;
2048+ LogFile : LogFile ;
2049+ LogFileContent : LogFileContent ;
19982050 Long : Scalars [ 'Long' ] [ 'output' ] ;
19992051 Me : Me ;
20002052 MemoryLayout : MemoryLayout ;
@@ -2411,6 +2463,21 @@ export type KeyFileResolvers<ContextType = Context, ParentType extends Resolvers
24112463 __isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
24122464} > ;
24132465
2466+ export type LogFileResolvers < ContextType = Context , ParentType extends ResolversParentTypes [ 'LogFile' ] = ResolversParentTypes [ 'LogFile' ] > = ResolversObject < {
2467+ modifiedAt ?: Resolver < ResolversTypes [ 'DateTime' ] , ParentType , ContextType > ;
2468+ name ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ;
2469+ path ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ;
2470+ size ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
2471+ __isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
2472+ } > ;
2473+
2474+ export type LogFileContentResolvers < ContextType = Context , ParentType extends ResolversParentTypes [ 'LogFileContent' ] = ResolversParentTypes [ 'LogFileContent' ] > = ResolversObject < {
2475+ content ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ;
2476+ path ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ;
2477+ totalLines ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
2478+ __isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
2479+ } > ;
2480+
24142481export interface LongScalarConfig extends GraphQLScalarTypeConfig < ResolversTypes [ 'Long' ] , any > {
24152482 name : 'Long' ;
24162483}
@@ -2692,6 +2759,8 @@ export type QueryResolvers<ContextType = Context, ParentType extends ResolversPa
26922759 extraAllowedOrigins ?: Resolver < Array < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
26932760 flash ?: Resolver < Maybe < ResolversTypes [ 'Flash' ] > , ParentType , ContextType > ;
26942761 info ?: Resolver < Maybe < ResolversTypes [ 'Info' ] > , ParentType , ContextType > ;
2762+ logFile ?: Resolver < ResolversTypes [ 'LogFileContent' ] , ParentType , ContextType , RequireFields < QuerylogFileArgs , 'path' > > ;
2763+ logFiles ?: Resolver < Array < ResolversTypes [ 'LogFile' ] > , ParentType , ContextType > ;
26952764 me ?: Resolver < Maybe < ResolversTypes [ 'Me' ] > , ParentType , ContextType > ;
26962765 network ?: Resolver < Maybe < ResolversTypes [ 'Network' ] > , ParentType , ContextType > ;
26972766 notifications ?: Resolver < ResolversTypes [ 'Notifications' ] , ParentType , ContextType > ;
@@ -2786,6 +2855,7 @@ export type SubscriptionResolvers<ContextType = Context, ParentType extends Reso
27862855 dockerNetworks ?: SubscriptionResolver < Array < Maybe < ResolversTypes [ 'DockerNetwork' ] > > , "dockerNetworks" , ParentType , ContextType > ;
27872856 flash ?: SubscriptionResolver < ResolversTypes [ 'Flash' ] , "flash" , ParentType , ContextType > ;
27882857 info ?: SubscriptionResolver < ResolversTypes [ 'Info' ] , "info" , ParentType , ContextType > ;
2858+ logFile ?: SubscriptionResolver < ResolversTypes [ 'LogFileContent' ] , "logFile" , ParentType , ContextType , RequireFields < SubscriptionlogFileArgs , 'path' > > ;
27892859 me ?: SubscriptionResolver < Maybe < ResolversTypes [ 'Me' ] > , "me" , ParentType , ContextType > ;
27902860 notificationAdded ?: SubscriptionResolver < ResolversTypes [ 'Notification' ] , "notificationAdded" , ParentType , ContextType > ;
27912861 notificationsOverview ?: SubscriptionResolver < ResolversTypes [ 'NotificationOverview' ] , "notificationsOverview" , ParentType , ContextType > ;
@@ -3139,6 +3209,8 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
31393209 InfoMemory ?: InfoMemoryResolvers < ContextType > ;
31403210 JSON ?: GraphQLScalarType ;
31413211 KeyFile ?: KeyFileResolvers < ContextType > ;
3212+ LogFile ?: LogFileResolvers < ContextType > ;
3213+ LogFileContent ?: LogFileContentResolvers < ContextType > ;
31423214 Long ?: GraphQLScalarType ;
31433215 Me ?: MeResolvers < ContextType > ;
31443216 MemoryLayout ?: MemoryLayoutResolvers < ContextType > ;
0 commit comments