@@ -97,7 +97,10 @@ export type ApiSettingsInput = {
9797 extraOrigins ?: InputMaybe < Array < Scalars [ 'String' ] [ 'input' ] > > ;
9898 /** The type of port forwarding to use for Remote Access. */
9999 forwardType ?: InputMaybe < WAN_FORWARD_TYPE > ;
100- /** The port to use for Remote Access. */
100+ /**
101+ * The port to use for Remote Access. Not required for UPNP forwardType. Required for STATIC forwardType.
102+ * Ignored if accessType is DISABLED or forwardType is UPNP.
103+ */
101104 port ?: InputMaybe < Scalars [ 'Port' ] [ 'input' ] > ;
102105 /**
103106 * If true, the GraphQL sandbox will be enabled and available at /graphql.
@@ -330,10 +333,18 @@ export type ConnectSettings = Node & {
330333/** Intersection type of ApiSettings and RemoteAccess */
331334export type ConnectSettingsValues = {
332335 __typename ?: 'ConnectSettingsValues' ;
336+ /** The type of WAN access used for Remote Access. */
333337 accessType : WAN_ACCESS_TYPE ;
338+ /** A list of origins allowed to interact with the API. */
334339 extraOrigins : Array < Scalars [ 'String' ] [ 'output' ] > ;
340+ /** The type of port forwarding used for Remote Access. */
335341 forwardType ?: Maybe < WAN_FORWARD_TYPE > ;
342+ /** The port used for Remote Access. */
336343 port ?: Maybe < Scalars [ 'Port' ] [ 'output' ] > ;
344+ /**
345+ * If true, the GraphQL sandbox is enabled and available at /graphql.
346+ * If false, the GraphQL sandbox is disabled and only the production API will be available.
347+ */
337348 sandbox : Scalars [ 'Boolean' ] [ 'output' ] ;
338349} ;
339350
@@ -634,6 +645,30 @@ export type KeyFile = {
634645 location ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
635646} ;
636647
648+ /** Represents a log file in the system */
649+ export type LogFile = {
650+ __typename ?: 'LogFile' ;
651+ /** Last modified timestamp */
652+ modifiedAt : Scalars [ 'DateTime' ] [ 'output' ] ;
653+ /** Name of the log file */
654+ name : Scalars [ 'String' ] [ 'output' ] ;
655+ /** Full path to the log file */
656+ path : Scalars [ 'String' ] [ 'output' ] ;
657+ /** Size of the log file in bytes */
658+ size : Scalars [ 'Int' ] [ 'output' ] ;
659+ } ;
660+
661+ /** Content of a log file */
662+ export type LogFileContent = {
663+ __typename ?: 'LogFileContent' ;
664+ /** Content of the log file */
665+ content : Scalars [ 'String' ] [ 'output' ] ;
666+ /** Path to the log file */
667+ path : Scalars [ 'String' ] [ 'output' ] ;
668+ /** Total number of lines in the file */
669+ totalLines : Scalars [ 'Int' ] [ 'output' ] ;
670+ } ;
671+
637672/** The current user */
638673export type Me = UserAccount & {
639674 __typename ?: 'Me' ;
@@ -744,6 +779,10 @@ export type Mutation = {
744779 unmountArrayDisk ?: Maybe < Disk > ;
745780 /** Marks a notification as unread. */
746781 unreadNotification : Notification ;
782+ /**
783+ * Update the API settings.
784+ * Some setting combinations may be required or disallowed. Please refer to each setting for more information.
785+ */
747786 updateApiSettings : ConnectSettingsValues ;
748787} ;
749788
@@ -1113,6 +1152,14 @@ export type Query = {
11131152 extraAllowedOrigins : Array < Scalars [ 'String' ] [ 'output' ] > ;
11141153 flash ?: Maybe < Flash > ;
11151154 info ?: Maybe < Info > ;
1155+ /**
1156+ * Get the content of a specific log file
1157+ * @param path Path to the log file
1158+ * @param lines Number of lines to read from the end of the file (default: 100)
1159+ */
1160+ logFile : LogFileContent ;
1161+ /** List all available log files */
1162+ logFiles : Array < LogFile > ;
11161163 /** Current user account */
11171164 me ?: Maybe < Me > ;
11181165 network ?: Maybe < Network > ;
@@ -1163,6 +1210,12 @@ export type QuerydockerNetworksArgs = {
11631210} ;
11641211
11651212
1213+ export type QuerylogFileArgs = {
1214+ lines ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
1215+ path : Scalars [ 'String' ] [ 'input' ] ;
1216+ } ;
1217+
1218+
11661219export type QueryuserArgs = {
11671220 id : Scalars [ 'ID' ] [ 'input' ] ;
11681221} ;
@@ -1353,6 +1406,11 @@ export type Subscription = {
13531406 dockerNetworks : Array < Maybe < DockerNetwork > > ;
13541407 flash : Flash ;
13551408 info : Info ;
1409+ /**
1410+ * Subscribe to changes in a log file
1411+ * @param path Path to the log file
1412+ */
1413+ logFile : LogFileContent ;
13561414 me ?: Maybe < Me > ;
13571415 notificationAdded : Notification ;
13581416 notificationsOverview : NotificationOverview ;
@@ -1383,6 +1441,11 @@ export type SubscriptiondockerNetworkArgs = {
13831441} ;
13841442
13851443
1444+ export type SubscriptionlogFileArgs = {
1445+ path : Scalars [ 'String' ] [ 'input' ] ;
1446+ } ;
1447+
1448+
13861449export type SubscriptionserviceArgs = {
13871450 name : Scalars [ 'String' ] [ 'input' ] ;
13881451} ;
@@ -1927,6 +1990,8 @@ export type ResolversTypes = ResolversObject<{
19271990 Int : ResolverTypeWrapper < Scalars [ 'Int' ] [ 'output' ] > ;
19281991 JSON : ResolverTypeWrapper < Scalars [ 'JSON' ] [ 'output' ] > ;
19291992 KeyFile : ResolverTypeWrapper < KeyFile > ;
1993+ LogFile : ResolverTypeWrapper < LogFile > ;
1994+ LogFileContent : ResolverTypeWrapper < LogFileContent > ;
19301995 Long : ResolverTypeWrapper < Scalars [ 'Long' ] [ 'output' ] > ;
19311996 Me : ResolverTypeWrapper < Me > ;
19321997 MemoryFormFactor : MemoryFormFactor ;
@@ -2047,6 +2112,8 @@ export type ResolversParentTypes = ResolversObject<{
20472112 Int : Scalars [ 'Int' ] [ 'output' ] ;
20482113 JSON : Scalars [ 'JSON' ] [ 'output' ] ;
20492114 KeyFile : KeyFile ;
2115+ LogFile : LogFile ;
2116+ LogFileContent : LogFileContent ;
20502117 Long : Scalars [ 'Long' ] [ 'output' ] ;
20512118 Me : Me ;
20522119 MemoryLayout : MemoryLayout ;
@@ -2481,6 +2548,21 @@ export type KeyFileResolvers<ContextType = Context, ParentType extends Resolvers
24812548 __isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
24822549} > ;
24832550
2551+ export type LogFileResolvers < ContextType = Context , ParentType extends ResolversParentTypes [ 'LogFile' ] = ResolversParentTypes [ 'LogFile' ] > = ResolversObject < {
2552+ modifiedAt ?: Resolver < ResolversTypes [ 'DateTime' ] , ParentType , ContextType > ;
2553+ name ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ;
2554+ path ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ;
2555+ size ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
2556+ __isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
2557+ } > ;
2558+
2559+ export type LogFileContentResolvers < ContextType = Context , ParentType extends ResolversParentTypes [ 'LogFileContent' ] = ResolversParentTypes [ 'LogFileContent' ] > = ResolversObject < {
2560+ content ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ;
2561+ path ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ;
2562+ totalLines ?: Resolver < ResolversTypes [ 'Int' ] , ParentType , ContextType > ;
2563+ __isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
2564+ } > ;
2565+
24842566export interface LongScalarConfig extends GraphQLScalarTypeConfig < ResolversTypes [ 'Long' ] , any > {
24852567 name : 'Long' ;
24862568}
@@ -2763,6 +2845,8 @@ export type QueryResolvers<ContextType = Context, ParentType extends ResolversPa
27632845 extraAllowedOrigins ?: Resolver < Array < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
27642846 flash ?: Resolver < Maybe < ResolversTypes [ 'Flash' ] > , ParentType , ContextType > ;
27652847 info ?: Resolver < Maybe < ResolversTypes [ 'Info' ] > , ParentType , ContextType > ;
2848+ logFile ?: Resolver < ResolversTypes [ 'LogFileContent' ] , ParentType , ContextType , RequireFields < QuerylogFileArgs , 'path' > > ;
2849+ logFiles ?: Resolver < Array < ResolversTypes [ 'LogFile' ] > , ParentType , ContextType > ;
27662850 me ?: Resolver < Maybe < ResolversTypes [ 'Me' ] > , ParentType , ContextType > ;
27672851 network ?: Resolver < Maybe < ResolversTypes [ 'Network' ] > , ParentType , ContextType > ;
27682852 notifications ?: Resolver < ResolversTypes [ 'Notifications' ] , ParentType , ContextType > ;
@@ -2857,6 +2941,7 @@ export type SubscriptionResolvers<ContextType = Context, ParentType extends Reso
28572941 dockerNetworks ?: SubscriptionResolver < Array < Maybe < ResolversTypes [ 'DockerNetwork' ] > > , "dockerNetworks" , ParentType , ContextType > ;
28582942 flash ?: SubscriptionResolver < ResolversTypes [ 'Flash' ] , "flash" , ParentType , ContextType > ;
28592943 info ?: SubscriptionResolver < ResolversTypes [ 'Info' ] , "info" , ParentType , ContextType > ;
2944+ logFile ?: SubscriptionResolver < ResolversTypes [ 'LogFileContent' ] , "logFile" , ParentType , ContextType , RequireFields < SubscriptionlogFileArgs , 'path' > > ;
28602945 me ?: SubscriptionResolver < Maybe < ResolversTypes [ 'Me' ] > , "me" , ParentType , ContextType > ;
28612946 notificationAdded ?: SubscriptionResolver < ResolversTypes [ 'Notification' ] , "notificationAdded" , ParentType , ContextType > ;
28622947 notificationsOverview ?: SubscriptionResolver < ResolversTypes [ 'NotificationOverview' ] , "notificationsOverview" , ParentType , ContextType > ;
@@ -3212,6 +3297,8 @@ export type Resolvers<ContextType = Context> = ResolversObject<{
32123297 InfoMemory ?: InfoMemoryResolvers < ContextType > ;
32133298 JSON ?: GraphQLScalarType ;
32143299 KeyFile ?: KeyFileResolvers < ContextType > ;
3300+ LogFile ?: LogFileResolvers < ContextType > ;
3301+ LogFileContent ?: LogFileContentResolvers < ContextType > ;
32153302 Long ?: GraphQLScalarType ;
32163303 Me ?: MeResolvers < ContextType > ;
32173304 MemoryLayout ?: MemoryLayoutResolvers < ContextType > ;
0 commit comments