diff --git a/Octokit.GraphQL.IntegrationTests/Queries/RepositoryTests.cs b/Octokit.GraphQL.IntegrationTests/Queries/RepositoryTests.cs
index 9a14a0dc..d447ee61 100644
--- a/Octokit.GraphQL.IntegrationTests/Queries/RepositoryTests.cs
+++ b/Octokit.GraphQL.IntegrationTests/Queries/RepositoryTests.cs
@@ -280,7 +280,7 @@ public async Task Query_Organization_Repositories_Select_Multiple_Object_Fragmen
.Select(fragment).ToList().OrderBy(o => o.StringField1).First(),
MentionableUser = organization.Repository("octokit.net")
- .MentionableUsers(10, null, null, null).Nodes
+ .MentionableUsers(10, null, null, null, null).Nodes
.Select(fragment).ToList().OrderBy(o => o.StringField1).First()
});
diff --git a/Octokit.GraphQL/Model/AcceptEnterpriseAdministratorInvitationInput.cs b/Octokit.GraphQL/Model/AcceptEnterpriseAdministratorInvitationInput.cs
new file mode 100644
index 00000000..d22f3576
--- /dev/null
+++ b/Octokit.GraphQL/Model/AcceptEnterpriseAdministratorInvitationInput.cs
@@ -0,0 +1,21 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Autogenerated input type of AcceptEnterpriseAdministratorInvitation
+ ///
+ public class AcceptEnterpriseAdministratorInvitationInput
+ {
+ ///
+ /// The id of the invitation being accepted
+ ///
+ public ID InvitationId { get; set; }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/AcceptEnterpriseAdministratorInvitationPayload.cs b/Octokit.GraphQL/Model/AcceptEnterpriseAdministratorInvitationPayload.cs
new file mode 100644
index 00000000..c2727874
--- /dev/null
+++ b/Octokit.GraphQL/Model/AcceptEnterpriseAdministratorInvitationPayload.cs
@@ -0,0 +1,38 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of AcceptEnterpriseAdministratorInvitation
+ ///
+ public class AcceptEnterpriseAdministratorInvitationPayload : QueryableValue
+ {
+ internal AcceptEnterpriseAdministratorInvitationPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ ///
+ /// The invitation that was accepted.
+ ///
+ public EnterpriseAdministratorInvitation Invitation => this.CreateProperty(x => x.Invitation, Octokit.GraphQL.Model.EnterpriseAdministratorInvitation.Create);
+
+ ///
+ /// A message confirming the result of accepting an administrator invitation.
+ ///
+ public string Message { get; }
+
+ internal static AcceptEnterpriseAdministratorInvitationPayload Create(Expression expression)
+ {
+ return new AcceptEnterpriseAdministratorInvitationPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/ActionExecutionCapabilitySetting.cs b/Octokit.GraphQL/Model/ActionExecutionCapabilitySetting.cs
new file mode 100644
index 00000000..86333312
--- /dev/null
+++ b/Octokit.GraphQL/Model/ActionExecutionCapabilitySetting.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// The possible capabilities for action executions setting.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum ActionExecutionCapabilitySetting
+ {
+ ///
+ /// All action executions are disabled.
+ ///
+ [EnumMember(Value = "DISABLED")]
+ Disabled,
+
+ ///
+ /// All action executions are enabled.
+ ///
+ [EnumMember(Value = "ALL_ACTIONS")]
+ AllActions,
+
+ ///
+ /// Only actions defined within the repo are allowed.
+ ///
+ [EnumMember(Value = "LOCAL_ACTIONS_ONLY")]
+ LocalActionsOnly,
+
+ ///
+ /// Organization administrators action execution capabilities.
+ ///
+ [EnumMember(Value = "NO_POLICY")]
+ NoPolicy,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/ActorLocation.cs b/Octokit.GraphQL/Model/ActorLocation.cs
new file mode 100644
index 00000000..1a95f551
--- /dev/null
+++ b/Octokit.GraphQL/Model/ActorLocation.cs
@@ -0,0 +1,48 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Location information for an actor
+ ///
+ public class ActorLocation : QueryableValue
+ {
+ internal ActorLocation(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// City
+ ///
+ public string City { get; }
+
+ ///
+ /// Country name
+ ///
+ public string Country { get; }
+
+ ///
+ /// Country code
+ ///
+ public string CountryCode { get; }
+
+ ///
+ /// Region name
+ ///
+ public string Region { get; }
+
+ ///
+ /// Region or state code
+ ///
+ public string RegionCode { get; }
+
+ internal static ActorLocation Create(Expression expression)
+ {
+ return new ActorLocation(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/AddPullRequestReviewCommentInput.cs b/Octokit.GraphQL/Model/AddPullRequestReviewCommentInput.cs
index 1c7c9409..d43bdb3f 100644
--- a/Octokit.GraphQL/Model/AddPullRequestReviewCommentInput.cs
+++ b/Octokit.GraphQL/Model/AddPullRequestReviewCommentInput.cs
@@ -8,10 +8,15 @@ namespace Octokit.GraphQL.Model
///
public class AddPullRequestReviewCommentInput
{
+ ///
+ /// The node ID of the pull request reviewing
+ ///
+ public ID? PullRequestId { get; set; }
+
///
/// The Node ID of the review to modify.
///
- public ID PullRequestReviewId { get; set; }
+ public ID? PullRequestReviewId { get; set; }
///
/// The SHA of the commit to comment on.
diff --git a/Octokit.GraphQL/Model/ArchiveRepositoryInput.cs b/Octokit.GraphQL/Model/ArchiveRepositoryInput.cs
new file mode 100644
index 00000000..b4758b2b
--- /dev/null
+++ b/Octokit.GraphQL/Model/ArchiveRepositoryInput.cs
@@ -0,0 +1,21 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Autogenerated input type of ArchiveRepository
+ ///
+ public class ArchiveRepositoryInput
+ {
+ ///
+ /// The ID of the repository to mark as archived.
+ ///
+ public ID RepositoryId { get; set; }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/ArchiveRepositoryPayload.cs b/Octokit.GraphQL/Model/ArchiveRepositoryPayload.cs
new file mode 100644
index 00000000..0e317578
--- /dev/null
+++ b/Octokit.GraphQL/Model/ArchiveRepositoryPayload.cs
@@ -0,0 +1,33 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of ArchiveRepository
+ ///
+ public class ArchiveRepositoryPayload : QueryableValue
+ {
+ internal ArchiveRepositoryPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ ///
+ /// The repository that was marked as archived.
+ ///
+ public Repository Repository => this.CreateProperty(x => x.Repository, Octokit.GraphQL.Model.Repository.Create);
+
+ internal static ArchiveRepositoryPayload Create(Expression expression)
+ {
+ return new ArchiveRepositoryPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/AssignedEvent.cs b/Octokit.GraphQL/Model/AssignedEvent.cs
index 54d2e511..af019f3d 100644
--- a/Octokit.GraphQL/Model/AssignedEvent.cs
+++ b/Octokit.GraphQL/Model/AssignedEvent.cs
@@ -25,6 +25,11 @@ internal AssignedEvent(Expression expression) : base(expression)
///
public IAssignable Assignable => this.CreateProperty(x => x.Assignable, Octokit.GraphQL.Model.Internal.StubIAssignable.Create);
+ ///
+ /// Identifies the user or mannequin that was assigned.
+ ///
+ public Assignee Assignee => this.CreateProperty(x => x.Assignee, Octokit.GraphQL.Model.Assignee.Create);
+
///
/// Identifies the date and time when the object was created.
///
@@ -35,6 +40,7 @@ internal AssignedEvent(Expression expression) : base(expression)
///
/// Identifies the user who was assigned.
///
+ [Obsolete(@"Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.")]
public User User => this.CreateProperty(x => x.User, Octokit.GraphQL.Model.User.Create);
internal static AssignedEvent Create(Expression expression)
diff --git a/Octokit.GraphQL/Model/Assignee.cs b/Octokit.GraphQL/Model/Assignee.cs
new file mode 100644
index 00000000..f86958d9
--- /dev/null
+++ b/Octokit.GraphQL/Model/Assignee.cs
@@ -0,0 +1,48 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Linq;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Types that can be assigned to issues.
+ ///
+ public class Assignee : QueryableValue, IUnion
+ {
+ internal Assignee(Expression expression) : base(expression)
+ {
+ }
+
+ public TResult Switch(Expression, Selector>> select) => default;
+
+ public class Selector
+ {
+ ///
+ /// A special type of user which takes actions on behalf of GitHub Apps.
+ ///
+ public Selector Bot(Func selector) => default;
+
+ ///
+ /// A placeholder user for attribution of imported data on GitHub.
+ ///
+ public Selector Mannequin(Func selector) => default;
+
+ ///
+ /// An account on GitHub, with one or more owners, that has repositories, members and teams.
+ ///
+ public Selector Organization(Func selector) => default;
+
+ ///
+ /// A user is an individual's account on GitHub that owns repositories and can make new content.
+ ///
+ public Selector User(Func selector) => default;
+ }
+
+ internal static Assignee Create(Expression expression)
+ {
+ return new Assignee(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/AuditEntry.cs b/Octokit.GraphQL/Model/AuditEntry.cs
new file mode 100644
index 00000000..3ad8f627
--- /dev/null
+++ b/Octokit.GraphQL/Model/AuditEntry.cs
@@ -0,0 +1,128 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Model;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// An entry in the audit log.
+ ///
+ public interface IAuditEntry : IQueryableValue, IQueryableInterface
+ {
+ ///
+ /// The action name
+ ///
+ string Action { get; }
+
+ ///
+ /// The user who initiated the action
+ ///
+ IQueryableList Actor { get; }
+
+ ///
+ /// The IP address of the actor
+ ///
+ string ActorIp { get; }
+
+ ///
+ /// A readable representation of the actor's location
+ ///
+ ActorLocation ActorLocation { get; }
+
+ ///
+ /// The username of the user who initiated the action
+ ///
+ string ActorLogin { get; }
+
+ ///
+ /// The HTTP path for the actor.
+ ///
+ string ActorResourcePath { get; }
+
+ ///
+ /// The HTTP URL for the actor.
+ ///
+ string ActorUrl { get; }
+
+ ///
+ /// The time the action was initiated
+ ///
+ string CreatedAt { get; }
+
+ ///
+ /// The corresponding operation type for the action
+ ///
+ OperationType? OperationType { get; }
+
+ ///
+ /// The user affected by the action
+ ///
+ User User { get; }
+
+ ///
+ /// For actions involving two users, the actor is the initiator and the user is the affected user.
+ ///
+ string UserLogin { get; }
+
+ ///
+ /// The HTTP path for the user.
+ ///
+ string UserResourcePath { get; }
+
+ ///
+ /// The HTTP URL for the user.
+ ///
+ string UserUrl { get; }
+ }
+}
+
+namespace Octokit.GraphQL.Model.Internal
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ internal class StubIAuditEntry : QueryableValue, IAuditEntry
+ {
+ internal StubIAuditEntry(Expression expression) : base(expression)
+ {
+ }
+
+ public string Action { get; }
+
+ public IQueryableList Actor => this.CreateProperty(x => x.Actor);
+
+ public string ActorIp { get; }
+
+ public ActorLocation ActorLocation => this.CreateProperty(x => x.ActorLocation, Octokit.GraphQL.Model.ActorLocation.Create);
+
+ public string ActorLogin { get; }
+
+ public string ActorResourcePath { get; }
+
+ public string ActorUrl { get; }
+
+ public string CreatedAt { get; }
+
+ public OperationType? OperationType { get; }
+
+ public User User => this.CreateProperty(x => x.User, Octokit.GraphQL.Model.User.Create);
+
+ public string UserLogin { get; }
+
+ public string UserResourcePath { get; }
+
+ public string UserUrl { get; }
+
+ internal static StubIAuditEntry Create(Expression expression)
+ {
+ return new StubIAuditEntry(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CollectionItemContent.cs b/Octokit.GraphQL/Model/AuditEntryActor.cs
similarity index 66%
rename from Octokit.GraphQL/Model/CollectionItemContent.cs
rename to Octokit.GraphQL/Model/AuditEntryActor.cs
index 9e7ab1ae..7e32b1e9 100644
--- a/Octokit.GraphQL/Model/CollectionItemContent.cs
+++ b/Octokit.GraphQL/Model/AuditEntryActor.cs
@@ -7,11 +7,11 @@ namespace Octokit.GraphQL.Model
using Octokit.GraphQL.Core.Builders;
///
- /// Types that can be inside Collection Items.
+ /// Types that can initiate an audit log event.
///
- public class CollectionItemContent : QueryableValue, IUnion
+ public class AuditEntryActor : QueryableValue, IUnion
{
- internal CollectionItemContent(Expression expression) : base(expression)
+ internal AuditEntryActor(Expression expression) : base(expression)
{
}
@@ -20,9 +20,9 @@ internal CollectionItemContent(Expression expression) : base(expression)
public class Selector
{
///
- /// A repository contains the content for a project.
+ /// A special type of user which takes actions on behalf of GitHub Apps.
///
- public Selector Repository(Func selector) => default;
+ public Selector Bot(Func selector) => default;
///
/// An account on GitHub, with one or more owners, that has repositories, members and teams.
@@ -35,9 +35,9 @@ public class Selector
public Selector User(Func selector) => default;
}
- internal static CollectionItemContent Create(Expression expression)
+ internal static AuditEntryActor Create(Expression expression)
{
- return new CollectionItemContent(expression);
+ return new AuditEntryActor(expression);
}
}
}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/AuditLogOrder.cs b/Octokit.GraphQL/Model/AuditLogOrder.cs
new file mode 100644
index 00000000..eade5707
--- /dev/null
+++ b/Octokit.GraphQL/Model/AuditLogOrder.cs
@@ -0,0 +1,21 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Ordering options for Audit Log connections.
+ ///
+ public class AuditLogOrder
+ {
+ ///
+ /// The field to order Audit Logs by.
+ ///
+ public AuditLogOrderField? Field { get; set; }
+
+ ///
+ /// The ordering direction.
+ ///
+ public OrderDirection? Direction { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/AuditLogOrderField.cs b/Octokit.GraphQL/Model/AuditLogOrderField.cs
new file mode 100644
index 00000000..7edd1732
--- /dev/null
+++ b/Octokit.GraphQL/Model/AuditLogOrderField.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// Properties by which Audit Log connections can be ordered.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum AuditLogOrderField
+ {
+ ///
+ /// Order audit log entries by timestamp
+ ///
+ [EnumMember(Value = "CREATED_AT")]
+ CreatedAt,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CancelEnterpriseAdminInvitationInput.cs b/Octokit.GraphQL/Model/CancelEnterpriseAdminInvitationInput.cs
new file mode 100644
index 00000000..229c4482
--- /dev/null
+++ b/Octokit.GraphQL/Model/CancelEnterpriseAdminInvitationInput.cs
@@ -0,0 +1,21 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Autogenerated input type of CancelEnterpriseAdminInvitation
+ ///
+ public class CancelEnterpriseAdminInvitationInput
+ {
+ ///
+ /// The Node ID of the pending enterprise administrator invitation.
+ ///
+ public ID InvitationId { get; set; }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CancelEnterpriseAdminInvitationPayload.cs b/Octokit.GraphQL/Model/CancelEnterpriseAdminInvitationPayload.cs
new file mode 100644
index 00000000..3c8e0b40
--- /dev/null
+++ b/Octokit.GraphQL/Model/CancelEnterpriseAdminInvitationPayload.cs
@@ -0,0 +1,38 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of CancelEnterpriseAdminInvitation
+ ///
+ public class CancelEnterpriseAdminInvitationPayload : QueryableValue
+ {
+ internal CancelEnterpriseAdminInvitationPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ ///
+ /// The invitation that was canceled.
+ ///
+ public EnterpriseAdministratorInvitation Invitation => this.CreateProperty(x => x.Invitation, Octokit.GraphQL.Model.EnterpriseAdministratorInvitation.Create);
+
+ ///
+ /// A message confirming the result of canceling an administrator invitation.
+ ///
+ public string Message { get; }
+
+ internal static CancelEnterpriseAdminInvitationPayload Create(Expression expression)
+ {
+ return new CancelEnterpriseAdminInvitationPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CheckConclusionState.cs b/Octokit.GraphQL/Model/CheckConclusionState.cs
index 1555cb1c..62c46149 100644
--- a/Octokit.GraphQL/Model/CheckConclusionState.cs
+++ b/Octokit.GraphQL/Model/CheckConclusionState.cs
@@ -46,5 +46,17 @@ public enum CheckConclusionState
///
[EnumMember(Value = "NEUTRAL")]
Neutral,
+
+ ///
+ /// The check suite or run was skipped. For internal use only.
+ ///
+ [EnumMember(Value = "SKIPPED")]
+ Skipped,
+
+ ///
+ /// The check suite or run was marked stale. For internal use only.
+ ///
+ [EnumMember(Value = "STALE")]
+ Stale,
}
}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CheckSuite.cs b/Octokit.GraphQL/Model/CheckSuite.cs
index 3bc2d9f1..a02e2488 100644
--- a/Octokit.GraphQL/Model/CheckSuite.cs
+++ b/Octokit.GraphQL/Model/CheckSuite.cs
@@ -81,6 +81,11 @@ internal CheckSuite(Expression expression) : base(expression)
///
public Repository Repository => this.CreateProperty(x => x.Repository, Octokit.GraphQL.Model.Repository.Create);
+ ///
+ /// The HTTP path for this check suite
+ ///
+ public string ResourcePath { get; }
+
///
/// The status of this check suite.
///
@@ -91,6 +96,11 @@ internal CheckSuite(Expression expression) : base(expression)
///
public DateTimeOffset UpdatedAt { get; }
+ ///
+ /// The HTTP URL for this check suite
+ ///
+ public string Url { get; }
+
internal static CheckSuite Create(Expression expression)
{
return new CheckSuite(expression);
diff --git a/Octokit.GraphQL/Model/CommentCannotUpdateReason.cs b/Octokit.GraphQL/Model/CommentCannotUpdateReason.cs
index 251b9162..40d57587 100644
--- a/Octokit.GraphQL/Model/CommentCannotUpdateReason.cs
+++ b/Octokit.GraphQL/Model/CommentCannotUpdateReason.cs
@@ -11,6 +11,12 @@ namespace Octokit.GraphQL.Model
[JsonConverter(typeof(StringEnumConverter))]
public enum CommentCannotUpdateReason
{
+ ///
+ /// Unable to create comment because repository is archived.
+ ///
+ [EnumMember(Value = "ARCHIVED")]
+ Archived,
+
///
/// You must be the author or have write access to this repository to update this comment.
///
diff --git a/Octokit.GraphQL/Model/CommitComment.cs b/Octokit.GraphQL/Model/CommitComment.cs
index 48a5d029..037ef27e 100644
--- a/Octokit.GraphQL/Model/CommitComment.cs
+++ b/Octokit.GraphQL/Model/CommitComment.cs
@@ -31,7 +31,7 @@ internal CommitComment(Expression expression) : base(expression)
public string Body { get; }
///
- /// Identifies the comment body rendered to HTML.
+ /// The body rendered to HTML.
///
public string BodyHTML { get; }
diff --git a/Octokit.GraphQL/Model/ConnectedEvent.cs b/Octokit.GraphQL/Model/ConnectedEvent.cs
new file mode 100644
index 00000000..118647e4
--- /dev/null
+++ b/Octokit.GraphQL/Model/ConnectedEvent.cs
@@ -0,0 +1,50 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Represents a 'connected' event on a given issue or pull request.
+ ///
+ public class ConnectedEvent : QueryableValue
+ {
+ internal ConnectedEvent(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// Identifies the actor who performed the event.
+ ///
+ public IActor Actor => this.CreateProperty(x => x.Actor, Octokit.GraphQL.Model.Internal.StubIActor.Create);
+
+ ///
+ /// Identifies the date and time when the object was created.
+ ///
+ public DateTimeOffset CreatedAt { get; }
+
+ public ID Id { get; }
+
+ ///
+ /// Reference originated in a different repository.
+ ///
+ public bool IsCrossRepository { get; }
+
+ ///
+ /// Issue or pull request that made the reference.
+ ///
+ public ReferencedSubject Source => this.CreateProperty(x => x.Source, Octokit.GraphQL.Model.ReferencedSubject.Create);
+
+ ///
+ /// Issue or pull request which was connected.
+ ///
+ public ReferencedSubject Subject => this.CreateProperty(x => x.Subject, Octokit.GraphQL.Model.ReferencedSubject.Create);
+
+ internal static ConnectedEvent Create(Expression expression)
+ {
+ return new ConnectedEvent(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/ContentAttachment.cs b/Octokit.GraphQL/Model/ContentAttachment.cs
deleted file mode 100644
index 5259ee70..00000000
--- a/Octokit.GraphQL/Model/ContentAttachment.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-namespace Octokit.GraphQL.Model
-{
- using System;
- using System.Collections.Generic;
- using System.Linq.Expressions;
- using Octokit.GraphQL.Core;
- using Octokit.GraphQL.Core.Builders;
-
- ///
- /// A content attachment
- ///
- public class ContentAttachment : QueryableValue
- {
- internal ContentAttachment(Expression expression) : base(expression)
- {
- }
-
- ///
- /// The body text of the content attachment. This parameter supports markdown.
- ///
- public string Body { get; }
-
- ///
- /// The content reference that the content attachment is attached to.
- ///
- public ContentReference ContentReference => this.CreateProperty(x => x.ContentReference, Octokit.GraphQL.Model.ContentReference.Create);
-
- ///
- /// Identifies the primary key from the database.
- ///
- public int DatabaseId { get; }
-
- public ID Id { get; }
-
- ///
- /// The title of the content attachment.
- ///
- public string Title { get; }
-
- internal static ContentAttachment Create(Expression expression)
- {
- return new ContentAttachment(expression);
- }
- }
-}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/ContentReference.cs b/Octokit.GraphQL/Model/ContentReference.cs
deleted file mode 100644
index 882bf28d..00000000
--- a/Octokit.GraphQL/Model/ContentReference.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-namespace Octokit.GraphQL.Model
-{
- using System;
- using System.Collections.Generic;
- using System.Linq.Expressions;
- using Octokit.GraphQL.Core;
- using Octokit.GraphQL.Core.Builders;
-
- ///
- /// A content reference
- ///
- public class ContentReference : QueryableValue
- {
- internal ContentReference(Expression expression) : base(expression)
- {
- }
-
- ///
- /// Identifies the primary key from the database.
- ///
- public int DatabaseId { get; }
-
- public ID Id { get; }
-
- ///
- /// The reference of the content reference.
- ///
- public string Reference { get; }
-
- internal static ContentReference Create(Expression expression)
- {
- return new ContentReference(expression);
- }
- }
-}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/ContributionsCollection.cs b/Octokit.GraphQL/Model/ContributionsCollection.cs
index c0bb9e2b..d6883880 100644
--- a/Octokit.GraphQL/Model/ContributionsCollection.cs
+++ b/Octokit.GraphQL/Model/ContributionsCollection.cs
@@ -49,20 +49,17 @@ internal ContributionsCollection(Expression expression) : base(expression)
///
/// The first issue the user opened on GitHub. This will be null if that issue was opened outside the collection's time range and ignoreTimeRange is false. If the issue is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned.
///
- /// If true, the first issue will be returned even if it was opened outside of the collection's time range. **Upcoming Change on 2019-07-01 UTC** **Description:** `ignoreTimeRange` will be removed. Use a `ContributionsCollection` starting sufficiently far back **Reason:** ignore_time_range will be removed
- public CreatedIssueOrRestrictedContribution FirstIssueContribution(Arg? ignoreTimeRange = null) => this.CreateMethodCall(x => x.FirstIssueContribution(ignoreTimeRange), Octokit.GraphQL.Model.CreatedIssueOrRestrictedContribution.Create);
+ public CreatedIssueOrRestrictedContribution FirstIssueContribution => this.CreateProperty(x => x.FirstIssueContribution, Octokit.GraphQL.Model.CreatedIssueOrRestrictedContribution.Create);
///
/// The first pull request the user opened on GitHub. This will be null if that pull request was opened outside the collection's time range and ignoreTimeRange is not true. If the pull request is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned.
///
- /// If true, the first pull request will be returned even if it was opened outside of the collection's time range. **Upcoming Change on 2019-07-01 UTC** **Description:** `ignoreTimeRange` will be removed. Use a `ContributionsCollection` starting sufficiently far back **Reason:** ignore_time_range will be removed
- public CreatedPullRequestOrRestrictedContribution FirstPullRequestContribution(Arg? ignoreTimeRange = null) => this.CreateMethodCall(x => x.FirstPullRequestContribution(ignoreTimeRange), Octokit.GraphQL.Model.CreatedPullRequestOrRestrictedContribution.Create);
+ public CreatedPullRequestOrRestrictedContribution FirstPullRequestContribution => this.CreateProperty(x => x.FirstPullRequestContribution, Octokit.GraphQL.Model.CreatedPullRequestOrRestrictedContribution.Create);
///
/// The first repository the user created on GitHub. This will be null if that first repository was created outside the collection's time range and ignoreTimeRange is false. If the repository is not visible, then a RestrictedContribution is returned.
///
- /// If true, the first repository will be returned even if it was opened outside of the collection's time range. **Upcoming Change on 2019-07-01 UTC** **Description:** `ignoreTimeRange` will be removed. Use a `ContributionsCollection` starting sufficiently far back **Reason:** ignore_time_range will be removed
- public CreatedRepositoryOrRestrictedContribution FirstRepositoryContribution(Arg? ignoreTimeRange = null) => this.CreateMethodCall(x => x.FirstRepositoryContribution(ignoreTimeRange), Octokit.GraphQL.Model.CreatedRepositoryOrRestrictedContribution.Create);
+ public CreatedRepositoryOrRestrictedContribution FirstRepositoryContribution => this.CreateProperty(x => x.FirstRepositoryContribution, Octokit.GraphQL.Model.CreatedRepositoryOrRestrictedContribution.Create);
///
/// Does the user have any more activity in the timeline that occurred prior to the collection's time range?
@@ -107,8 +104,7 @@ internal ContributionsCollection(Expression expression) : base(expression)
///
/// When the user signed up for GitHub. This will be null if that sign up date falls outside the collection's time range and ignoreTimeRange is false.
///
- /// If true, the contribution will be returned even if the user signed up outside of the collection's time range. **Upcoming Change on 2019-07-01 UTC** **Description:** `ignoreTimeRange` will be removed. Use a `ContributionsCollection` starting sufficiently far back **Reason:** ignore_time_range will be removed
- public JoinedGitHubContribution JoinedGitHubContribution(Arg? ignoreTimeRange = null) => this.CreateMethodCall(x => x.JoinedGitHubContribution(ignoreTimeRange), Octokit.GraphQL.Model.JoinedGitHubContribution.Create);
+ public JoinedGitHubContribution JoinedGitHubContribution => this.CreateProperty(x => x.JoinedGitHubContribution, Octokit.GraphQL.Model.JoinedGitHubContribution.Create);
///
/// The date of the most recent restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts.
diff --git a/Octokit.GraphQL/Model/CreateBranchProtectionRuleInput.cs b/Octokit.GraphQL/Model/CreateBranchProtectionRuleInput.cs
index fbade6e4..4c8cb1de 100644
--- a/Octokit.GraphQL/Model/CreateBranchProtectionRuleInput.cs
+++ b/Octokit.GraphQL/Model/CreateBranchProtectionRuleInput.cs
@@ -74,7 +74,7 @@ public class CreateBranchProtectionRuleInput
public bool? RestrictsPushes { get; set; }
///
- /// A list of User or Team IDs allowed to push to matching branches.
+ /// A list of User, Team or App IDs allowed to push to matching branches.
///
public IEnumerable PushActorIds { get; set; }
diff --git a/Octokit.GraphQL/Model/CreateEnterpriseOrganizationInput.cs b/Octokit.GraphQL/Model/CreateEnterpriseOrganizationInput.cs
new file mode 100644
index 00000000..e766bc96
--- /dev/null
+++ b/Octokit.GraphQL/Model/CreateEnterpriseOrganizationInput.cs
@@ -0,0 +1,41 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Autogenerated input type of CreateEnterpriseOrganization
+ ///
+ public class CreateEnterpriseOrganizationInput
+ {
+ ///
+ /// The ID of the enterprise owning the new organization.
+ ///
+ public ID EnterpriseId { get; set; }
+
+ ///
+ /// The login of the new organization.
+ ///
+ public string Login { get; set; }
+
+ ///
+ /// The profile name of the new organization.
+ ///
+ public string ProfileName { get; set; }
+
+ ///
+ /// The email used for sending billing receipts.
+ ///
+ public string BillingEmail { get; set; }
+
+ ///
+ /// The logins for the administrators of the new organization.
+ ///
+ public IEnumerable AdminLogins { get; set; }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CreateEnterpriseOrganizationPayload.cs b/Octokit.GraphQL/Model/CreateEnterpriseOrganizationPayload.cs
new file mode 100644
index 00000000..c7c3cf27
--- /dev/null
+++ b/Octokit.GraphQL/Model/CreateEnterpriseOrganizationPayload.cs
@@ -0,0 +1,38 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of CreateEnterpriseOrganization
+ ///
+ public class CreateEnterpriseOrganizationPayload : QueryableValue
+ {
+ internal CreateEnterpriseOrganizationPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ ///
+ /// The enterprise that owns the created organization.
+ ///
+ public Enterprise Enterprise => this.CreateProperty(x => x.Enterprise, Octokit.GraphQL.Model.Enterprise.Create);
+
+ ///
+ /// The organization that was created.
+ ///
+ public Organization Organization => this.CreateProperty(x => x.Organization, Octokit.GraphQL.Model.Organization.Create);
+
+ internal static CreateEnterpriseOrganizationPayload Create(Expression expression)
+ {
+ return new CreateEnterpriseOrganizationPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CreateProjectInput.cs b/Octokit.GraphQL/Model/CreateProjectInput.cs
index b5a54380..282b8df5 100644
--- a/Octokit.GraphQL/Model/CreateProjectInput.cs
+++ b/Octokit.GraphQL/Model/CreateProjectInput.cs
@@ -23,6 +23,16 @@ public class CreateProjectInput
///
public string Body { get; set; }
+ ///
+ /// The name of the GitHub-provided template.
+ ///
+ public ProjectTemplate? Template { get; set; }
+
+ ///
+ /// A list of repository IDs to create as linked repositories for the project
+ ///
+ public IEnumerable RepositoryIds { get; set; }
+
///
/// A unique identifier for the client performing the mutation.
///
diff --git a/Octokit.GraphQL/Model/CreateRefInput.cs b/Octokit.GraphQL/Model/CreateRefInput.cs
new file mode 100644
index 00000000..cdbf780d
--- /dev/null
+++ b/Octokit.GraphQL/Model/CreateRefInput.cs
@@ -0,0 +1,31 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Autogenerated input type of CreateRef
+ ///
+ public class CreateRefInput
+ {
+ ///
+ /// The Node ID of the Repository to create the Ref in.
+ ///
+ public ID RepositoryId { get; set; }
+
+ ///
+ /// The fully qualified name of the new Ref (ie: `refs/heads/my_new_branch`).
+ ///
+ public string Name { get; set; }
+
+ ///
+ /// The GitObjectID that the new Ref shall target. Must point to a commit.
+ ///
+ public string Oid { get; set; }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CreateRefPayload.cs b/Octokit.GraphQL/Model/CreateRefPayload.cs
new file mode 100644
index 00000000..1363b29b
--- /dev/null
+++ b/Octokit.GraphQL/Model/CreateRefPayload.cs
@@ -0,0 +1,33 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of CreateRef
+ ///
+ public class CreateRefPayload : QueryableValue
+ {
+ internal CreateRefPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ ///
+ /// The newly created ref.
+ ///
+ public Ref Ref => this.CreateProperty(x => x.Ref, Octokit.GraphQL.Model.Ref.Create);
+
+ internal static CreateRefPayload Create(Expression expression)
+ {
+ return new CreateRefPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CreateTeamDiscussionCommentInput.cs b/Octokit.GraphQL/Model/CreateTeamDiscussionCommentInput.cs
new file mode 100644
index 00000000..f6c07393
--- /dev/null
+++ b/Octokit.GraphQL/Model/CreateTeamDiscussionCommentInput.cs
@@ -0,0 +1,26 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Autogenerated input type of CreateTeamDiscussionComment
+ ///
+ public class CreateTeamDiscussionCommentInput
+ {
+ ///
+ /// The ID of the discussion to which the comment belongs.
+ ///
+ public ID DiscussionId { get; set; }
+
+ ///
+ /// The content of the comment.
+ ///
+ public string Body { get; set; }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CreateTeamDiscussionCommentPayload.cs b/Octokit.GraphQL/Model/CreateTeamDiscussionCommentPayload.cs
new file mode 100644
index 00000000..c0a54ca9
--- /dev/null
+++ b/Octokit.GraphQL/Model/CreateTeamDiscussionCommentPayload.cs
@@ -0,0 +1,33 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of CreateTeamDiscussionComment
+ ///
+ public class CreateTeamDiscussionCommentPayload : QueryableValue
+ {
+ internal CreateTeamDiscussionCommentPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ ///
+ /// The new comment.
+ ///
+ public TeamDiscussionComment TeamDiscussionComment => this.CreateProperty(x => x.TeamDiscussionComment, Octokit.GraphQL.Model.TeamDiscussionComment.Create);
+
+ internal static CreateTeamDiscussionCommentPayload Create(Expression expression)
+ {
+ return new CreateTeamDiscussionCommentPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CreateTeamDiscussionInput.cs b/Octokit.GraphQL/Model/CreateTeamDiscussionInput.cs
new file mode 100644
index 00000000..4c1931de
--- /dev/null
+++ b/Octokit.GraphQL/Model/CreateTeamDiscussionInput.cs
@@ -0,0 +1,36 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Autogenerated input type of CreateTeamDiscussion
+ ///
+ public class CreateTeamDiscussionInput
+ {
+ ///
+ /// The ID of the team to which the discussion belongs.
+ ///
+ public ID TeamId { get; set; }
+
+ ///
+ /// The title of the discussion.
+ ///
+ public string Title { get; set; }
+
+ ///
+ /// The content of the discussion.
+ ///
+ public string Body { get; set; }
+
+ ///
+ /// If true, restricts the visiblity of this discussion to team members and organization admins. If false or not specified, allows any organization member to view this discussion.
+ ///
+ public bool? Private { get; set; }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/CreateTeamDiscussionPayload.cs b/Octokit.GraphQL/Model/CreateTeamDiscussionPayload.cs
new file mode 100644
index 00000000..44612e73
--- /dev/null
+++ b/Octokit.GraphQL/Model/CreateTeamDiscussionPayload.cs
@@ -0,0 +1,33 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of CreateTeamDiscussion
+ ///
+ public class CreateTeamDiscussionPayload : QueryableValue
+ {
+ internal CreateTeamDiscussionPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ ///
+ /// The new discussion.
+ ///
+ public TeamDiscussion TeamDiscussion => this.CreateProperty(x => x.TeamDiscussion, Octokit.GraphQL.Model.TeamDiscussion.Create);
+
+ internal static CreateTeamDiscussionPayload Create(Expression expression)
+ {
+ return new CreateTeamDiscussionPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/UnpinIssueInput.cs b/Octokit.GraphQL/Model/DeleteRefInput.cs
similarity index 68%
rename from Octokit.GraphQL/Model/UnpinIssueInput.cs
rename to Octokit.GraphQL/Model/DeleteRefInput.cs
index 3d94cc5c..a7bcef1f 100644
--- a/Octokit.GraphQL/Model/UnpinIssueInput.cs
+++ b/Octokit.GraphQL/Model/DeleteRefInput.cs
@@ -4,14 +4,14 @@ namespace Octokit.GraphQL.Model
using System.Collections.Generic;
///
- /// Autogenerated input type of UnpinIssue
+ /// Autogenerated input type of DeleteRef
///
- public class UnpinIssueInput
+ public class DeleteRefInput
{
///
- /// The ID of the issue to be unpinned
+ /// The Node ID of the Ref to be deleted.
///
- public ID IssueId { get; set; }
+ public ID RefId { get; set; }
///
/// A unique identifier for the client performing the mutation.
diff --git a/Octokit.GraphQL/Model/DeleteRefPayload.cs b/Octokit.GraphQL/Model/DeleteRefPayload.cs
new file mode 100644
index 00000000..76cf0987
--- /dev/null
+++ b/Octokit.GraphQL/Model/DeleteRefPayload.cs
@@ -0,0 +1,28 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of DeleteRef
+ ///
+ public class DeleteRefPayload : QueryableValue
+ {
+ internal DeleteRefPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ internal static DeleteRefPayload Create(Expression expression)
+ {
+ return new DeleteRefPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/DeleteTeamDiscussionCommentInput.cs b/Octokit.GraphQL/Model/DeleteTeamDiscussionCommentInput.cs
new file mode 100644
index 00000000..09507e49
--- /dev/null
+++ b/Octokit.GraphQL/Model/DeleteTeamDiscussionCommentInput.cs
@@ -0,0 +1,21 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Autogenerated input type of DeleteTeamDiscussionComment
+ ///
+ public class DeleteTeamDiscussionCommentInput
+ {
+ ///
+ /// The ID of the comment to delete.
+ ///
+ public ID Id { get; set; }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/DeleteTeamDiscussionCommentPayload.cs b/Octokit.GraphQL/Model/DeleteTeamDiscussionCommentPayload.cs
new file mode 100644
index 00000000..b3fd0f34
--- /dev/null
+++ b/Octokit.GraphQL/Model/DeleteTeamDiscussionCommentPayload.cs
@@ -0,0 +1,28 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of DeleteTeamDiscussionComment
+ ///
+ public class DeleteTeamDiscussionCommentPayload : QueryableValue
+ {
+ internal DeleteTeamDiscussionCommentPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ internal static DeleteTeamDiscussionCommentPayload Create(Expression expression)
+ {
+ return new DeleteTeamDiscussionCommentPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/UnminimizeCommentInput.cs b/Octokit.GraphQL/Model/DeleteTeamDiscussionInput.cs
similarity index 65%
rename from Octokit.GraphQL/Model/UnminimizeCommentInput.cs
rename to Octokit.GraphQL/Model/DeleteTeamDiscussionInput.cs
index 7f659bd6..16f7fcae 100644
--- a/Octokit.GraphQL/Model/UnminimizeCommentInput.cs
+++ b/Octokit.GraphQL/Model/DeleteTeamDiscussionInput.cs
@@ -4,14 +4,14 @@ namespace Octokit.GraphQL.Model
using System.Collections.Generic;
///
- /// Autogenerated input type of UnminimizeComment
+ /// Autogenerated input type of DeleteTeamDiscussion
///
- public class UnminimizeCommentInput
+ public class DeleteTeamDiscussionInput
{
///
- /// The Node ID of the subject to modify.
+ /// The discussion ID to delete.
///
- public ID SubjectId { get; set; }
+ public ID Id { get; set; }
///
/// A unique identifier for the client performing the mutation.
diff --git a/Octokit.GraphQL/Model/DeleteTeamDiscussionPayload.cs b/Octokit.GraphQL/Model/DeleteTeamDiscussionPayload.cs
new file mode 100644
index 00000000..e303bdb4
--- /dev/null
+++ b/Octokit.GraphQL/Model/DeleteTeamDiscussionPayload.cs
@@ -0,0 +1,28 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Autogenerated return type of DeleteTeamDiscussion
+ ///
+ public class DeleteTeamDiscussionPayload : QueryableValue
+ {
+ internal DeleteTeamDiscussionPayload(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A unique identifier for the client performing the mutation.
+ ///
+ public string ClientMutationId { get; }
+
+ internal static DeleteTeamDiscussionPayload Create(Expression expression)
+ {
+ return new DeleteTeamDiscussionPayload(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/DisconnectedEvent.cs b/Octokit.GraphQL/Model/DisconnectedEvent.cs
new file mode 100644
index 00000000..16ba955b
--- /dev/null
+++ b/Octokit.GraphQL/Model/DisconnectedEvent.cs
@@ -0,0 +1,50 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Represents a 'disconnected' event on a given issue or pull request.
+ ///
+ public class DisconnectedEvent : QueryableValue
+ {
+ internal DisconnectedEvent(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// Identifies the actor who performed the event.
+ ///
+ public IActor Actor => this.CreateProperty(x => x.Actor, Octokit.GraphQL.Model.Internal.StubIActor.Create);
+
+ ///
+ /// Identifies the date and time when the object was created.
+ ///
+ public DateTimeOffset CreatedAt { get; }
+
+ public ID Id { get; }
+
+ ///
+ /// Reference originated in a different repository.
+ ///
+ public bool IsCrossRepository { get; }
+
+ ///
+ /// Issue or pull request from which the issue was disconnected.
+ ///
+ public ReferencedSubject Source => this.CreateProperty(x => x.Source, Octokit.GraphQL.Model.ReferencedSubject.Create);
+
+ ///
+ /// Issue or pull request which was disconnected.
+ ///
+ public ReferencedSubject Subject => this.CreateProperty(x => x.Subject, Octokit.GraphQL.Model.ReferencedSubject.Create);
+
+ internal static DisconnectedEvent Create(Expression expression)
+ {
+ return new DisconnectedEvent(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/Enterprise.cs b/Octokit.GraphQL/Model/Enterprise.cs
new file mode 100644
index 00000000..5ad84d65
--- /dev/null
+++ b/Octokit.GraphQL/Model/Enterprise.cs
@@ -0,0 +1,125 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// An account to manage multiple organizations with consolidated policy and billing.
+ ///
+ public class Enterprise : QueryableValue
+ {
+ internal Enterprise(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A URL pointing to the enterprise's public avatar.
+ ///
+ /// The size of the resulting square image.
+ public string AvatarUrl(Arg? size = null) => default;
+
+ ///
+ /// Enterprise billing information visible to enterprise billing managers.
+ ///
+ public EnterpriseBillingInfo BillingInfo => this.CreateProperty(x => x.BillingInfo, Octokit.GraphQL.Model.EnterpriseBillingInfo.Create);
+
+ ///
+ /// Identifies the date and time when the object was created.
+ ///
+ public DateTimeOffset CreatedAt { get; }
+
+ ///
+ /// Identifies the primary key from the database.
+ ///
+ public int? DatabaseId { get; }
+
+ ///
+ /// The description of the enterprise.
+ ///
+ public string Description { get; }
+
+ ///
+ /// The description of the enterprise as HTML.
+ ///
+ public string DescriptionHTML { get; }
+
+ public ID Id { get; }
+
+ ///
+ /// The location of the enterprise.
+ ///
+ public string Location { get; }
+
+ ///
+ /// A list of users who are members of this enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Only return members within the selected GitHub Enterprise deployment
+ /// Ordering options for members returned from the connection.
+ /// Only return members within the organizations with these logins
+ /// The search string to look for.
+ /// The role of the user in the enterprise organization or server.
+ public EnterpriseMemberConnection Members(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? deployment = null, Arg? orderBy = null, Arg>? organizationLogins = null, Arg? query = null, Arg? role = null) => this.CreateMethodCall(x => x.Members(first, after, last, before, deployment, orderBy, organizationLogins, query, role), Octokit.GraphQL.Model.EnterpriseMemberConnection.Create);
+
+ ///
+ /// The name of the enterprise.
+ ///
+ public string Name { get; }
+
+ ///
+ /// A list of organizations that belong to this enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations returned from the connection.
+ /// The search string to look for.
+ public OrganizationConnection Organizations(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? query = null) => this.CreateMethodCall(x => x.Organizations(first, after, last, before, orderBy, query), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// Enterprise information only visible to enterprise owners.
+ ///
+ public EnterpriseOwnerInfo OwnerInfo => this.CreateProperty(x => x.OwnerInfo, Octokit.GraphQL.Model.EnterpriseOwnerInfo.Create);
+
+ ///
+ /// The HTTP path for this enterprise.
+ ///
+ public string ResourcePath { get; }
+
+ ///
+ /// The HTTP URL for this enterprise.
+ ///
+ public string Url { get; }
+
+ ///
+ /// A list of user accounts on this enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ public EnterpriseUserAccountConnection UserAccounts(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null) => this.CreateMethodCall(x => x.UserAccounts(first, after, last, before), Octokit.GraphQL.Model.EnterpriseUserAccountConnection.Create);
+
+ ///
+ /// Is the current viewer an admin of this enterprise?
+ ///
+ public bool ViewerIsAdmin { get; }
+
+ ///
+ /// The URL of the enterprise website.
+ ///
+ public string WebsiteUrl { get; }
+
+ internal static Enterprise Create(Expression expression)
+ {
+ return new Enterprise(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAdministratorConnection.cs b/Octokit.GraphQL/Model/EnterpriseAdministratorConnection.cs
new file mode 100644
index 00000000..00a718d5
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAdministratorConnection.cs
@@ -0,0 +1,45 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// The connection type for User.
+ ///
+ public class EnterpriseAdministratorConnection : QueryableValue, IPagingConnection
+ {
+ internal EnterpriseAdministratorConnection(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A list of edges.
+ ///
+ public IQueryableList Edges => this.CreateProperty(x => x.Edges);
+
+ ///
+ /// A list of nodes.
+ ///
+ public IQueryableList Nodes => this.CreateProperty(x => x.Nodes);
+
+ ///
+ /// Information to aid in pagination.
+ ///
+ public PageInfo PageInfo => this.CreateProperty(x => x.PageInfo, Octokit.GraphQL.Model.PageInfo.Create);
+
+ ///
+ /// Identifies the total count of items in the connection.
+ ///
+ public int TotalCount { get; }
+
+ IPageInfo IPagingConnection.PageInfo => PageInfo;
+
+ internal static EnterpriseAdministratorConnection Create(Expression expression)
+ {
+ return new EnterpriseAdministratorConnection(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAdministratorEdge.cs b/Octokit.GraphQL/Model/EnterpriseAdministratorEdge.cs
new file mode 100644
index 00000000..ab510972
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAdministratorEdge.cs
@@ -0,0 +1,38 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// A User who is an administrator of an enterprise.
+ ///
+ public class EnterpriseAdministratorEdge : QueryableValue
+ {
+ internal EnterpriseAdministratorEdge(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A cursor for use in pagination.
+ ///
+ public string Cursor { get; }
+
+ ///
+ /// The item at the end of the edge.
+ ///
+ public User Node => this.CreateProperty(x => x.Node, Octokit.GraphQL.Model.User.Create);
+
+ ///
+ /// The role of the administrator.
+ ///
+ public EnterpriseAdministratorRole Role { get; }
+
+ internal static EnterpriseAdministratorEdge Create(Expression expression)
+ {
+ return new EnterpriseAdministratorEdge(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAdministratorInvitation.cs b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitation.cs
new file mode 100644
index 00000000..c75a33fb
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitation.cs
@@ -0,0 +1,55 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// An invitation for a user to become an owner or billing manager of an enterprise.
+ ///
+ public class EnterpriseAdministratorInvitation : QueryableValue
+ {
+ internal EnterpriseAdministratorInvitation(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// Identifies the date and time when the object was created.
+ ///
+ public DateTimeOffset CreatedAt { get; }
+
+ ///
+ /// The email of the person who was invited to the enterprise.
+ ///
+ public string Email { get; }
+
+ ///
+ /// The enterprise the invitation is for.
+ ///
+ public Enterprise Enterprise => this.CreateProperty(x => x.Enterprise, Octokit.GraphQL.Model.Enterprise.Create);
+
+ public ID Id { get; }
+
+ ///
+ /// The user who was invited to the enterprise.
+ ///
+ public User Invitee => this.CreateProperty(x => x.Invitee, Octokit.GraphQL.Model.User.Create);
+
+ ///
+ /// The user who created the invitation.
+ ///
+ public User Inviter => this.CreateProperty(x => x.Inviter, Octokit.GraphQL.Model.User.Create);
+
+ ///
+ /// The invitee's pending role in the enterprise (owner or billing_manager).
+ ///
+ public EnterpriseAdministratorRole Role { get; }
+
+ internal static EnterpriseAdministratorInvitation Create(Expression expression)
+ {
+ return new EnterpriseAdministratorInvitation(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationConnection.cs b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationConnection.cs
new file mode 100644
index 00000000..b74fee4d
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationConnection.cs
@@ -0,0 +1,45 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// The connection type for EnterpriseAdministratorInvitation.
+ ///
+ public class EnterpriseAdministratorInvitationConnection : QueryableValue, IPagingConnection
+ {
+ internal EnterpriseAdministratorInvitationConnection(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A list of edges.
+ ///
+ public IQueryableList Edges => this.CreateProperty(x => x.Edges);
+
+ ///
+ /// A list of nodes.
+ ///
+ public IQueryableList Nodes => this.CreateProperty(x => x.Nodes);
+
+ ///
+ /// Information to aid in pagination.
+ ///
+ public PageInfo PageInfo => this.CreateProperty(x => x.PageInfo, Octokit.GraphQL.Model.PageInfo.Create);
+
+ ///
+ /// Identifies the total count of items in the connection.
+ ///
+ public int TotalCount { get; }
+
+ IPageInfo IPagingConnection.PageInfo => PageInfo;
+
+ internal static EnterpriseAdministratorInvitationConnection Create(Expression expression)
+ {
+ return new EnterpriseAdministratorInvitationConnection(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationEdge.cs b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationEdge.cs
new file mode 100644
index 00000000..46f403c9
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationEdge.cs
@@ -0,0 +1,33 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// An edge in a connection.
+ ///
+ public class EnterpriseAdministratorInvitationEdge : QueryableValue
+ {
+ internal EnterpriseAdministratorInvitationEdge(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A cursor for use in pagination.
+ ///
+ public string Cursor { get; }
+
+ ///
+ /// The item at the end of the edge.
+ ///
+ public EnterpriseAdministratorInvitation Node => this.CreateProperty(x => x.Node, Octokit.GraphQL.Model.EnterpriseAdministratorInvitation.Create);
+
+ internal static EnterpriseAdministratorInvitationEdge Create(Expression expression)
+ {
+ return new EnterpriseAdministratorInvitationEdge(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationOrder.cs b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationOrder.cs
new file mode 100644
index 00000000..b7ae5162
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationOrder.cs
@@ -0,0 +1,21 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Ordering options for enterprise administrator invitation connections
+ ///
+ public class EnterpriseAdministratorInvitationOrder
+ {
+ ///
+ /// The field to order enterprise administrator invitations by.
+ ///
+ public EnterpriseAdministratorInvitationOrderField Field { get; set; }
+
+ ///
+ /// The ordering direction.
+ ///
+ public OrderDirection Direction { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationOrderField.cs b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationOrderField.cs
new file mode 100644
index 00000000..d007769c
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAdministratorInvitationOrderField.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// Properties by which enterprise administrator invitation connections can be ordered.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnterpriseAdministratorInvitationOrderField
+ {
+ ///
+ /// Order enterprise administrator member invitations by creation time
+ ///
+ [EnumMember(Value = "CREATED_AT")]
+ CreatedAt,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAdministratorRole.cs b/Octokit.GraphQL/Model/EnterpriseAdministratorRole.cs
new file mode 100644
index 00000000..d211caae
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAdministratorRole.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// The possible administrator roles in an enterprise account.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnterpriseAdministratorRole
+ {
+ ///
+ /// Represents an owner of the enterprise account.
+ ///
+ [EnumMember(Value = "OWNER")]
+ Owner,
+
+ ///
+ /// Represents a billing manager of the enterprise account.
+ ///
+ [EnumMember(Value = "BILLING_MANAGER")]
+ BillingManager,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseAuditEntryData.cs b/Octokit.GraphQL/Model/EnterpriseAuditEntryData.cs
new file mode 100644
index 00000000..1336fc8b
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseAuditEntryData.cs
@@ -0,0 +1,58 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Model;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Metadata for an audit entry containing enterprise account information.
+ ///
+ public interface IEnterpriseAuditEntryData : IQueryableValue, IQueryableInterface
+ {
+ ///
+ /// The HTTP path for this enterprise.
+ ///
+ string EnterpriseResourcePath { get; }
+
+ ///
+ /// The slug of the enterprise.
+ ///
+ string EnterpriseSlug { get; }
+
+ ///
+ /// The HTTP URL for this enterprise.
+ ///
+ string EnterpriseUrl { get; }
+ }
+}
+
+namespace Octokit.GraphQL.Model.Internal
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ internal class StubIEnterpriseAuditEntryData : QueryableValue, IEnterpriseAuditEntryData
+ {
+ internal StubIEnterpriseAuditEntryData(Expression expression) : base(expression)
+ {
+ }
+
+ public string EnterpriseResourcePath { get; }
+
+ public string EnterpriseSlug { get; }
+
+ public string EnterpriseUrl { get; }
+
+ internal static StubIEnterpriseAuditEntryData Create(Expression expression)
+ {
+ return new StubIEnterpriseAuditEntryData(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseBillingInfo.cs b/Octokit.GraphQL/Model/EnterpriseBillingInfo.cs
new file mode 100644
index 00000000..aedab31f
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseBillingInfo.cs
@@ -0,0 +1,85 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Enterprise billing information visible to enterprise billing managers and owners.
+ ///
+ public class EnterpriseBillingInfo : QueryableValue
+ {
+ internal EnterpriseBillingInfo(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// The number of licenseable users/emails across the enterprise.
+ ///
+ public int AllLicensableUsersCount { get; }
+
+ ///
+ /// The number of data packs used by all organizations owned by the enterprise.
+ ///
+ public int AssetPacks { get; }
+
+ ///
+ /// The number of available seats across all owned organizations based on the unique number of billable users.
+ ///
+ [Obsolete(@"`availableSeats` will be replaced with `totalAvailableLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalAvailableLicenses instead. Removal on 2020-01-01 UTC.")]
+ public int AvailableSeats { get; }
+
+ ///
+ /// The bandwidth quota in GB for all organizations owned by the enterprise.
+ ///
+ public double BandwidthQuota { get; }
+
+ ///
+ /// The bandwidth usage in GB for all organizations owned by the enterprise.
+ ///
+ public double BandwidthUsage { get; }
+
+ ///
+ /// The bandwidth usage as a percentage of the bandwidth quota.
+ ///
+ public int BandwidthUsagePercentage { get; }
+
+ ///
+ /// The total seats across all organizations owned by the enterprise.
+ ///
+ [Obsolete(@"`seats` will be replaced with `totalLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalLicenses instead. Removal on 2020-01-01 UTC.")]
+ public int Seats { get; }
+
+ ///
+ /// The storage quota in GB for all organizations owned by the enterprise.
+ ///
+ public double StorageQuota { get; }
+
+ ///
+ /// The storage usage in GB for all organizations owned by the enterprise.
+ ///
+ public double StorageUsage { get; }
+
+ ///
+ /// The storage usage as a percentage of the storage quota.
+ ///
+ public int StorageUsagePercentage { get; }
+
+ ///
+ /// The number of available licenses across all owned organizations based on the unique number of billable users.
+ ///
+ public int TotalAvailableLicenses { get; }
+
+ ///
+ /// The total number of licenses allocated.
+ ///
+ public int TotalLicenses { get; }
+
+ internal static EnterpriseBillingInfo Create(Expression expression)
+ {
+ return new EnterpriseBillingInfo(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseDefaultRepositoryPermissionSettingValue.cs b/Octokit.GraphQL/Model/EnterpriseDefaultRepositoryPermissionSettingValue.cs
new file mode 100644
index 00000000..230a19fd
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseDefaultRepositoryPermissionSettingValue.cs
@@ -0,0 +1,44 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// The possible values for the enterprise default repository permission setting.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnterpriseDefaultRepositoryPermissionSettingValue
+ {
+ ///
+ /// Organizations in the enterprise choose default repository permissions for their members.
+ ///
+ [EnumMember(Value = "NO_POLICY")]
+ NoPolicy,
+
+ ///
+ /// Organization members will be able to clone, pull, push, and add new collaborators to all organization repositories.
+ ///
+ [EnumMember(Value = "ADMIN")]
+ Admin,
+
+ ///
+ /// Organization members will be able to clone, pull, and push all organization repositories.
+ ///
+ [EnumMember(Value = "WRITE")]
+ Write,
+
+ ///
+ /// Organization members will be able to clone and pull all organization repositories.
+ ///
+ [EnumMember(Value = "READ")]
+ Read,
+
+ ///
+ /// Organization members will only be able to clone and pull public repositories.
+ ///
+ [EnumMember(Value = "NONE")]
+ None,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseEnabledDisabledSettingValue.cs b/Octokit.GraphQL/Model/EnterpriseEnabledDisabledSettingValue.cs
new file mode 100644
index 00000000..c5780f12
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseEnabledDisabledSettingValue.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// The possible values for an enabled/disabled enterprise setting.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnterpriseEnabledDisabledSettingValue
+ {
+ ///
+ /// The setting is enabled for organizations in the enterprise.
+ ///
+ [EnumMember(Value = "ENABLED")]
+ Enabled,
+
+ ///
+ /// The setting is disabled for organizations in the enterprise.
+ ///
+ [EnumMember(Value = "DISABLED")]
+ Disabled,
+
+ ///
+ /// There is no policy set for organizations in the enterprise.
+ ///
+ [EnumMember(Value = "NO_POLICY")]
+ NoPolicy,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseEnabledSettingValue.cs b/Octokit.GraphQL/Model/EnterpriseEnabledSettingValue.cs
new file mode 100644
index 00000000..2eba60c9
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseEnabledSettingValue.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// The possible values for an enabled/no policy enterprise setting.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnterpriseEnabledSettingValue
+ {
+ ///
+ /// The setting is enabled for organizations in the enterprise.
+ ///
+ [EnumMember(Value = "ENABLED")]
+ Enabled,
+
+ ///
+ /// There is no policy set for organizations in the enterprise.
+ ///
+ [EnumMember(Value = "NO_POLICY")]
+ NoPolicy,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseIdentityProvider.cs b/Octokit.GraphQL/Model/EnterpriseIdentityProvider.cs
new file mode 100644
index 00000000..30916494
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseIdentityProvider.cs
@@ -0,0 +1,69 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// An identity provider configured to provision identities for an enterprise.
+ ///
+ public class EnterpriseIdentityProvider : QueryableValue
+ {
+ internal EnterpriseIdentityProvider(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// The digest algorithm used to sign SAML requests for the identity provider.
+ ///
+ public SamlDigestAlgorithm? DigestMethod { get; }
+
+ ///
+ /// The enterprise this identity provider belongs to.
+ ///
+ public Enterprise Enterprise => this.CreateProperty(x => x.Enterprise, Octokit.GraphQL.Model.Enterprise.Create);
+
+ ///
+ /// ExternalIdentities provisioned by this identity provider.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ public ExternalIdentityConnection ExternalIdentities(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null) => this.CreateMethodCall(x => x.ExternalIdentities(first, after, last, before), Octokit.GraphQL.Model.ExternalIdentityConnection.Create);
+
+ public ID Id { get; }
+
+ ///
+ /// The x509 certificate used by the identity provider to sign assertions and responses.
+ ///
+ public string IdpCertificate { get; }
+
+ ///
+ /// The Issuer Entity ID for the SAML identity provider.
+ ///
+ public string Issuer { get; }
+
+ ///
+ /// Recovery codes that can be used by admins to access the enterprise if the identity provider is unavailable.
+ ///
+ public IEnumerable RecoveryCodes { get; }
+
+ ///
+ /// The signature algorithm used to sign SAML requests for the identity provider.
+ ///
+ public SamlSignatureAlgorithm? SignatureMethod { get; }
+
+ ///
+ /// The URL endpoint for the identity provider's SAML SSO.
+ ///
+ public string SsoUrl { get; }
+
+ internal static EnterpriseIdentityProvider Create(Expression expression)
+ {
+ return new EnterpriseIdentityProvider(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseMember.cs b/Octokit.GraphQL/Model/EnterpriseMember.cs
new file mode 100644
index 00000000..679a5743
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseMember.cs
@@ -0,0 +1,38 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Linq;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// An object that is a member of an enterprise.
+ ///
+ public class EnterpriseMember : QueryableValue, IUnion
+ {
+ internal EnterpriseMember(Expression expression) : base(expression)
+ {
+ }
+
+ public TResult Switch(Expression, Selector>> select) => default;
+
+ public class Selector
+ {
+ ///
+ /// An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations.
+ ///
+ public Selector EnterpriseUserAccount(Func selector) => default;
+
+ ///
+ /// A user is an individual's account on GitHub that owns repositories and can make new content.
+ ///
+ public Selector User(Func selector) => default;
+ }
+
+ internal static EnterpriseMember Create(Expression expression)
+ {
+ return new EnterpriseMember(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseMemberConnection.cs b/Octokit.GraphQL/Model/EnterpriseMemberConnection.cs
new file mode 100644
index 00000000..7c0cdf01
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseMemberConnection.cs
@@ -0,0 +1,45 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// The connection type for EnterpriseMember.
+ ///
+ public class EnterpriseMemberConnection : QueryableValue, IPagingConnection
+ {
+ internal EnterpriseMemberConnection(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A list of edges.
+ ///
+ public IQueryableList Edges => this.CreateProperty(x => x.Edges);
+
+ ///
+ /// A list of nodes.
+ ///
+ public IQueryableList Nodes => this.CreateProperty(x => x.Nodes);
+
+ ///
+ /// Information to aid in pagination.
+ ///
+ public PageInfo PageInfo => this.CreateProperty(x => x.PageInfo, Octokit.GraphQL.Model.PageInfo.Create);
+
+ ///
+ /// Identifies the total count of items in the connection.
+ ///
+ public int TotalCount { get; }
+
+ IPageInfo IPagingConnection.PageInfo => PageInfo;
+
+ internal static EnterpriseMemberConnection Create(Expression expression)
+ {
+ return new EnterpriseMemberConnection(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseMemberEdge.cs b/Octokit.GraphQL/Model/EnterpriseMemberEdge.cs
new file mode 100644
index 00000000..8e45dd11
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseMemberEdge.cs
@@ -0,0 +1,38 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// A User who is a member of an enterprise through one or more organizations.
+ ///
+ public class EnterpriseMemberEdge : QueryableValue
+ {
+ internal EnterpriseMemberEdge(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A cursor for use in pagination.
+ ///
+ public string Cursor { get; }
+
+ ///
+ /// Whether the user does not have a license for the enterprise.
+ ///
+ public bool IsUnlicensed { get; }
+
+ ///
+ /// The item at the end of the edge.
+ ///
+ public EnterpriseMember Node => this.CreateProperty(x => x.Node, Octokit.GraphQL.Model.EnterpriseMember.Create);
+
+ internal static EnterpriseMemberEdge Create(Expression expression)
+ {
+ return new EnterpriseMemberEdge(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseMemberOrder.cs b/Octokit.GraphQL/Model/EnterpriseMemberOrder.cs
new file mode 100644
index 00000000..fa95f25f
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseMemberOrder.cs
@@ -0,0 +1,21 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// Ordering options for enterprise member connections.
+ ///
+ public class EnterpriseMemberOrder
+ {
+ ///
+ /// The field to order enterprise members by.
+ ///
+ public EnterpriseMemberOrderField Field { get; set; }
+
+ ///
+ /// The ordering direction.
+ ///
+ public OrderDirection Direction { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseMemberOrderField.cs b/Octokit.GraphQL/Model/EnterpriseMemberOrderField.cs
new file mode 100644
index 00000000..e4dee8ad
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseMemberOrderField.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// Properties by which enterprise member connections can be ordered.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnterpriseMemberOrderField
+ {
+ ///
+ /// Order enterprise members by login
+ ///
+ [EnumMember(Value = "LOGIN")]
+ Login,
+
+ ///
+ /// Order enterprise members by creation time
+ ///
+ [EnumMember(Value = "CREATED_AT")]
+ CreatedAt,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseMembersCanCreateRepositoriesSettingValue.cs b/Octokit.GraphQL/Model/EnterpriseMembersCanCreateRepositoriesSettingValue.cs
new file mode 100644
index 00000000..c5e4fe10
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseMembersCanCreateRepositoriesSettingValue.cs
@@ -0,0 +1,44 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// The possible values for the enterprise members can create repositories setting.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnterpriseMembersCanCreateRepositoriesSettingValue
+ {
+ ///
+ /// Organization administrators choose whether to allow members to create repositories.
+ ///
+ [EnumMember(Value = "NO_POLICY")]
+ NoPolicy,
+
+ ///
+ /// Members will be able to create public and private repositories.
+ ///
+ [EnumMember(Value = "ALL")]
+ All,
+
+ ///
+ /// Members will be able to create only public repositories.
+ ///
+ [EnumMember(Value = "PUBLIC")]
+ Public,
+
+ ///
+ /// Members will be able to create only private repositories.
+ ///
+ [EnumMember(Value = "PRIVATE")]
+ Private,
+
+ ///
+ /// Members will not be able to create public or private repositories.
+ ///
+ [EnumMember(Value = "DISABLED")]
+ Disabled,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseMembersCanMakePurchasesSettingValue.cs b/Octokit.GraphQL/Model/EnterpriseMembersCanMakePurchasesSettingValue.cs
new file mode 100644
index 00000000..57b53b47
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseMembersCanMakePurchasesSettingValue.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+
+namespace Octokit.GraphQL.Model
+{
+ ///
+ /// The possible values for the members can make purchases setting.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum EnterpriseMembersCanMakePurchasesSettingValue
+ {
+ ///
+ /// The setting is enabled for organizations in the enterprise.
+ ///
+ [EnumMember(Value = "ENABLED")]
+ Enabled,
+
+ ///
+ /// The setting is disabled for organizations in the enterprise.
+ ///
+ [EnumMember(Value = "DISABLED")]
+ Disabled,
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseOrganizationMembershipConnection.cs b/Octokit.GraphQL/Model/EnterpriseOrganizationMembershipConnection.cs
new file mode 100644
index 00000000..84cb9702
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseOrganizationMembershipConnection.cs
@@ -0,0 +1,45 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// The connection type for Organization.
+ ///
+ public class EnterpriseOrganizationMembershipConnection : QueryableValue, IPagingConnection
+ {
+ internal EnterpriseOrganizationMembershipConnection(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A list of edges.
+ ///
+ public IQueryableList Edges => this.CreateProperty(x => x.Edges);
+
+ ///
+ /// A list of nodes.
+ ///
+ public IQueryableList Nodes => this.CreateProperty(x => x.Nodes);
+
+ ///
+ /// Information to aid in pagination.
+ ///
+ public PageInfo PageInfo => this.CreateProperty(x => x.PageInfo, Octokit.GraphQL.Model.PageInfo.Create);
+
+ ///
+ /// Identifies the total count of items in the connection.
+ ///
+ public int TotalCount { get; }
+
+ IPageInfo IPagingConnection.PageInfo => PageInfo;
+
+ internal static EnterpriseOrganizationMembershipConnection Create(Expression expression)
+ {
+ return new EnterpriseOrganizationMembershipConnection(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseOrganizationMembershipEdge.cs b/Octokit.GraphQL/Model/EnterpriseOrganizationMembershipEdge.cs
new file mode 100644
index 00000000..e59acb71
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseOrganizationMembershipEdge.cs
@@ -0,0 +1,38 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// An enterprise organization that a user is a member of.
+ ///
+ public class EnterpriseOrganizationMembershipEdge : QueryableValue
+ {
+ internal EnterpriseOrganizationMembershipEdge(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A cursor for use in pagination.
+ ///
+ public string Cursor { get; }
+
+ ///
+ /// The item at the end of the edge.
+ ///
+ public Organization Node => this.CreateProperty(x => x.Node, Octokit.GraphQL.Model.Organization.Create);
+
+ ///
+ /// The role of the user in the enterprise membership.
+ ///
+ public EnterpriseUserAccountMembershipRole Role { get; }
+
+ internal static EnterpriseOrganizationMembershipEdge Create(Expression expression)
+ {
+ return new EnterpriseOrganizationMembershipEdge(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseOutsideCollaboratorConnection.cs b/Octokit.GraphQL/Model/EnterpriseOutsideCollaboratorConnection.cs
new file mode 100644
index 00000000..2605cf1f
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseOutsideCollaboratorConnection.cs
@@ -0,0 +1,45 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// The connection type for User.
+ ///
+ public class EnterpriseOutsideCollaboratorConnection : QueryableValue, IPagingConnection
+ {
+ internal EnterpriseOutsideCollaboratorConnection(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A list of edges.
+ ///
+ public IQueryableList Edges => this.CreateProperty(x => x.Edges);
+
+ ///
+ /// A list of nodes.
+ ///
+ public IQueryableList Nodes => this.CreateProperty(x => x.Nodes);
+
+ ///
+ /// Information to aid in pagination.
+ ///
+ public PageInfo PageInfo => this.CreateProperty(x => x.PageInfo, Octokit.GraphQL.Model.PageInfo.Create);
+
+ ///
+ /// Identifies the total count of items in the connection.
+ ///
+ public int TotalCount { get; }
+
+ IPageInfo IPagingConnection.PageInfo => PageInfo;
+
+ internal static EnterpriseOutsideCollaboratorConnection Create(Expression expression)
+ {
+ return new EnterpriseOutsideCollaboratorConnection(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseOutsideCollaboratorEdge.cs b/Octokit.GraphQL/Model/EnterpriseOutsideCollaboratorEdge.cs
new file mode 100644
index 00000000..771c1534
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseOutsideCollaboratorEdge.cs
@@ -0,0 +1,48 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// A User who is an outside collaborator of an enterprise through one or more organizations.
+ ///
+ public class EnterpriseOutsideCollaboratorEdge : QueryableValue
+ {
+ internal EnterpriseOutsideCollaboratorEdge(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A cursor for use in pagination.
+ ///
+ public string Cursor { get; }
+
+ ///
+ /// Whether the outside collaborator does not have a license for the enterprise.
+ ///
+ public bool IsUnlicensed { get; }
+
+ ///
+ /// The item at the end of the edge.
+ ///
+ public User Node => this.CreateProperty(x => x.Node, Octokit.GraphQL.Model.User.Create);
+
+ ///
+ /// The enterprise organization repositories this user is a member of.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for repositories.
+ public EnterpriseRepositoryInfoConnection Repositories(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.Repositories(first, after, last, before, orderBy), Octokit.GraphQL.Model.EnterpriseRepositoryInfoConnection.Create);
+
+ internal static EnterpriseOutsideCollaboratorEdge Create(Expression expression)
+ {
+ return new EnterpriseOutsideCollaboratorEdge(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterpriseOwnerInfo.cs b/Octokit.GraphQL/Model/EnterpriseOwnerInfo.cs
new file mode 100644
index 00000000..6679e71e
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterpriseOwnerInfo.cs
@@ -0,0 +1,370 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// Enterprise information only visible to enterprise owners.
+ ///
+ public class EnterpriseOwnerInfo : QueryableValue
+ {
+ internal EnterpriseOwnerInfo(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A list of enterprise organizations configured with the provided action execution capabilities setting value.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection ActionExecutionCapabilitySettingOrganizations(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.ActionExecutionCapabilitySettingOrganizations(first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// A list of all of the administrators for this enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for administrators returned from the connection.
+ /// The search string to look for.
+ /// The role to filter by.
+ public EnterpriseAdministratorConnection Admins(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? query = null, Arg? role = null) => this.CreateMethodCall(x => x.Admins(first, after, last, before, orderBy, query, role), Octokit.GraphQL.Model.EnterpriseAdministratorConnection.Create);
+
+ ///
+ /// A list of users in the enterprise who currently have two-factor authentication disabled.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ public UserConnection AffiliatedUsersWithTwoFactorDisabled(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null) => this.CreateMethodCall(x => x.AffiliatedUsersWithTwoFactorDisabled(first, after, last, before), Octokit.GraphQL.Model.UserConnection.Create);
+
+ ///
+ /// Whether or not affiliated users with two-factor authentication disabled exist in the enterprise.
+ ///
+ public bool AffiliatedUsersWithTwoFactorDisabledExist { get; }
+
+ ///
+ /// The setting value for whether private repository forking is enabled for repositories in organizations in this enterprise.
+ ///
+ public EnterpriseEnabledDisabledSettingValue AllowPrivateRepositoryForkingSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided private repository forking setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection AllowPrivateRepositoryForkingSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.AllowPrivateRepositoryForkingSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for base repository permissions for organizations in this enterprise.
+ ///
+ public EnterpriseDefaultRepositoryPermissionSettingValue DefaultRepositoryPermissionSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided default repository permission.
+ ///
+ /// The permission to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection DefaultRepositoryPermissionSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.DefaultRepositoryPermissionSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// Enterprise Server installations owned by the enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Whether or not to only return installations discovered via GitHub Connect.
+ /// Ordering options for Enterprise Server installations returned.
+ public EnterpriseServerInstallationConnection EnterpriseServerInstallations(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? connectedOnly = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.EnterpriseServerInstallations(first, after, last, before, connectedOnly, orderBy), Octokit.GraphQL.Model.EnterpriseServerInstallationConnection.Create);
+
+ ///
+ /// Whether or not the default repository permission is currently being updated.
+ ///
+ public bool IsUpdatingDefaultRepositoryPermission { get; }
+
+ ///
+ /// Whether the two-factor authentication requirement is currently being enforced.
+ ///
+ public bool IsUpdatingTwoFactorRequirement { get; }
+
+ ///
+ /// The setting value for whether organization members with admin permissions on a repository can change repository visibility.
+ ///
+ public EnterpriseEnabledDisabledSettingValue MembersCanChangeRepositoryVisibilitySetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided can change repository visibility setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection MembersCanChangeRepositoryVisibilitySettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.MembersCanChangeRepositoryVisibilitySettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for whether members of organizations in the enterprise can create internal repositories.
+ ///
+ public bool? MembersCanCreateInternalRepositoriesSetting { get; }
+
+ ///
+ /// The setting value for whether members of organizations in the enterprise can create private repositories.
+ ///
+ public bool? MembersCanCreatePrivateRepositoriesSetting { get; }
+
+ ///
+ /// The setting value for whether members of organizations in the enterprise can create public repositories.
+ ///
+ public bool? MembersCanCreatePublicRepositoriesSetting { get; }
+
+ ///
+ /// The setting value for whether members of organizations in the enterprise can create repositories.
+ ///
+ public EnterpriseMembersCanCreateRepositoriesSettingValue? MembersCanCreateRepositoriesSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided repository creation setting value.
+ ///
+ /// The setting to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection MembersCanCreateRepositoriesSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.MembersCanCreateRepositoriesSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for whether members with admin permissions for repositories can delete issues.
+ ///
+ public EnterpriseEnabledDisabledSettingValue MembersCanDeleteIssuesSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided members can delete issues setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection MembersCanDeleteIssuesSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.MembersCanDeleteIssuesSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for whether members with admin permissions for repositories can delete or transfer repositories.
+ ///
+ public EnterpriseEnabledDisabledSettingValue MembersCanDeleteRepositoriesSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided members can delete repositories setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection MembersCanDeleteRepositoriesSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.MembersCanDeleteRepositoriesSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for whether members of organizations in the enterprise can invite outside collaborators.
+ ///
+ public EnterpriseEnabledDisabledSettingValue MembersCanInviteCollaboratorsSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided members can invite collaborators setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection MembersCanInviteCollaboratorsSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.MembersCanInviteCollaboratorsSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// Indicates whether members of this enterprise's organizations can purchase additional services for those organizations.
+ ///
+ public EnterpriseMembersCanMakePurchasesSettingValue MembersCanMakePurchasesSetting { get; }
+
+ ///
+ /// The setting value for whether members with admin permissions for repositories can update protected branches.
+ ///
+ public EnterpriseEnabledDisabledSettingValue MembersCanUpdateProtectedBranchesSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided members can update protected branches setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection MembersCanUpdateProtectedBranchesSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.MembersCanUpdateProtectedBranchesSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for whether members can view dependency insights.
+ ///
+ public EnterpriseEnabledDisabledSettingValue MembersCanViewDependencyInsightsSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided members can view dependency insights setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection MembersCanViewDependencyInsightsSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.MembersCanViewDependencyInsightsSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for whether organization projects are enabled for organizations in this enterprise.
+ ///
+ public EnterpriseEnabledDisabledSettingValue OrganizationProjectsSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided organization projects setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection OrganizationProjectsSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.OrganizationProjectsSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// A list of outside collaborators across the repositories in the enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// The login of one specific outside collaborator.
+ /// Ordering options for outside collaborators returned from the connection.
+ /// The search string to look for.
+ /// Only return outside collaborators on repositories with this visibility.
+ public EnterpriseOutsideCollaboratorConnection OutsideCollaborators(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? login = null, Arg? orderBy = null, Arg? query = null, Arg? visibility = null) => this.CreateMethodCall(x => x.OutsideCollaborators(first, after, last, before, login, orderBy, query, visibility), Octokit.GraphQL.Model.EnterpriseOutsideCollaboratorConnection.Create);
+
+ ///
+ /// A list of pending administrator invitations for the enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for pending enterprise administrator invitations returned from the connection.
+ /// The search string to look for.
+ /// The role to filter by.
+ public EnterpriseAdministratorInvitationConnection PendingAdminInvitations(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? query = null, Arg? role = null) => this.CreateMethodCall(x => x.PendingAdminInvitations(first, after, last, before, orderBy, query, role), Octokit.GraphQL.Model.EnterpriseAdministratorInvitationConnection.Create);
+
+ ///
+ /// A list of pending collaborators across the repositories in the enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for pending repository collaborator invitations returned from the connection.
+ /// The search string to look for.
+ public EnterprisePendingCollaboratorConnection PendingCollaborators(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? query = null) => this.CreateMethodCall(x => x.PendingCollaborators(first, after, last, before, orderBy, query), Octokit.GraphQL.Model.EnterprisePendingCollaboratorConnection.Create);
+
+ ///
+ /// A list of pending member invitations for organizations in the enterprise.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// The search string to look for.
+ public EnterprisePendingMemberInvitationConnection PendingMemberInvitations(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? query = null) => this.CreateMethodCall(x => x.PendingMemberInvitations(first, after, last, before, query), Octokit.GraphQL.Model.EnterprisePendingMemberInvitationConnection.Create);
+
+ ///
+ /// The setting value for whether repository projects are enabled in this enterprise.
+ ///
+ public EnterpriseEnabledDisabledSettingValue RepositoryProjectsSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided repository projects setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection RepositoryProjectsSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.RepositoryProjectsSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The SAML Identity Provider for the enterprise.
+ ///
+ public EnterpriseIdentityProvider SamlIdentityProvider => this.CreateProperty(x => x.SamlIdentityProvider, Octokit.GraphQL.Model.EnterpriseIdentityProvider.Create);
+
+ ///
+ /// A list of enterprise organizations configured with the SAML single sign-on setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection SamlIdentityProviderSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.SamlIdentityProviderSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for whether team discussions are enabled for organizations in this enterprise.
+ ///
+ public EnterpriseEnabledDisabledSettingValue TeamDiscussionsSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the provided team discussions setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection TeamDiscussionsSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.TeamDiscussionsSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ ///
+ /// The setting value for whether the enterprise requires two-factor authentication for its organizations and users.
+ ///
+ public EnterpriseEnabledSettingValue TwoFactorRequiredSetting { get; }
+
+ ///
+ /// A list of enterprise organizations configured with the two-factor authentication setting value.
+ ///
+ /// The setting value to find organizations for.
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for organizations with this setting.
+ public OrganizationConnection TwoFactorRequiredSettingOrganizations(Arg value, Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.TwoFactorRequiredSettingOrganizations(value, first, after, last, before, orderBy), Octokit.GraphQL.Model.OrganizationConnection.Create);
+
+ internal static EnterpriseOwnerInfo Create(Expression expression)
+ {
+ return new EnterpriseOwnerInfo(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterprisePendingCollaboratorConnection.cs b/Octokit.GraphQL/Model/EnterprisePendingCollaboratorConnection.cs
new file mode 100644
index 00000000..deffadd8
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterprisePendingCollaboratorConnection.cs
@@ -0,0 +1,45 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// The connection type for User.
+ ///
+ public class EnterprisePendingCollaboratorConnection : QueryableValue, IPagingConnection
+ {
+ internal EnterprisePendingCollaboratorConnection(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A list of edges.
+ ///
+ public IQueryableList Edges => this.CreateProperty(x => x.Edges);
+
+ ///
+ /// A list of nodes.
+ ///
+ public IQueryableList Nodes => this.CreateProperty(x => x.Nodes);
+
+ ///
+ /// Information to aid in pagination.
+ ///
+ public PageInfo PageInfo => this.CreateProperty(x => x.PageInfo, Octokit.GraphQL.Model.PageInfo.Create);
+
+ ///
+ /// Identifies the total count of items in the connection.
+ ///
+ public int TotalCount { get; }
+
+ IPageInfo IPagingConnection.PageInfo => PageInfo;
+
+ internal static EnterprisePendingCollaboratorConnection Create(Expression expression)
+ {
+ return new EnterprisePendingCollaboratorConnection(expression);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Octokit.GraphQL/Model/EnterprisePendingCollaboratorEdge.cs b/Octokit.GraphQL/Model/EnterprisePendingCollaboratorEdge.cs
new file mode 100644
index 00000000..e1e8ebf5
--- /dev/null
+++ b/Octokit.GraphQL/Model/EnterprisePendingCollaboratorEdge.cs
@@ -0,0 +1,48 @@
+namespace Octokit.GraphQL.Model
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq.Expressions;
+ using Octokit.GraphQL.Core;
+ using Octokit.GraphQL.Core.Builders;
+
+ ///
+ /// A user with an invitation to be a collaborator on a repository owned by an organization in an enterprise.
+ ///
+ public class EnterprisePendingCollaboratorEdge : QueryableValue
+ {
+ internal EnterprisePendingCollaboratorEdge(Expression expression) : base(expression)
+ {
+ }
+
+ ///
+ /// A cursor for use in pagination.
+ ///
+ public string Cursor { get; }
+
+ ///
+ /// Whether the invited collaborator does not have a license for the enterprise.
+ ///
+ public bool IsUnlicensed { get; }
+
+ ///
+ /// The item at the end of the edge.
+ ///
+ public User Node => this.CreateProperty(x => x.Node, Octokit.GraphQL.Model.User.Create);
+
+ ///
+ /// The enterprise organization repositories this user is a member of.
+ ///
+ /// Returns the first _n_ elements from the list.
+ /// Returns the elements in the list that come after the specified cursor.
+ /// Returns the last _n_ elements from the list.
+ /// Returns the elements in the list that come before the specified cursor.
+ /// Ordering options for repositories.
+ public EnterpriseRepositoryInfoConnection Repositories(Arg? first = null, Arg? after = null, Arg