commit 521d393bafe7353136fd8b7742e2e30ae5a898ea from: Oliver Lowe date: Sun Nov 03 22:21:57 2024 UTC all: remove all internal Go project tooling This is a repository for, from the updated README, "programs to interact with GitHub and GitLab issues from the Acme editor". commit - 83150219a3b6c73f55c28090663d65f81cecce62 commit + 521d393bafe7353136fd8b7742e2e30ae5a898ea blob - 9fe16994a7a87cfcdd1e1006c8a88db30326b7de blob + 1e829eaf536fa8c72ef9be0d3ae998f9bec28e89 --- README.md +++ README.md @@ -1,2 +1,9 @@ -This repo holds Go code for interacting with GitHub. -See in particular the issue command, https://godoc.org/rsc.io/github/issue +This repo holds programs for interacting with GitHub and GitLab issues from the [Acme] editor. +See the documentation for the commands: + +- [issue] +- [Gitlab] + +[Acme]: https://p9f.org/sys/doc/acme/acme.html +[issue]: https://pkg.go.dev/olowe.co/github/issue +[Gitlab]: https://pkg.go.dev/olowe.co/github/Gitlab blob - 70452a20cf35c2db21525e652e82e1cc12d9d1dc (mode 644) blob + /dev/null --- client.go +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package github provides idiomatic Go APIs for accessing basic GitHub issue operations. -// -// The entire GitHub API can be accessed by using the [Client] with GraphQL schema from -// [rsc.io/github/schema]. -package github - -import ( - "bytes" - "encoding/json" - "fmt" - "io/ioutil" - "log" - "net/http" - "strings" - "time" - - "rsc.io/github/schema" -) - -// A Client is an authenticated client for accessing the GitHub GraphQL API. -// Client provides convenient methods for common operations. -// To build others, see the [GraphQLQuery] and [GraphQLMutation] methods. -type Client struct { - token string -} - -// NewClient returns a new client using the given GitHub personal access token (of the form "ghp_...."). -func NewClient(token string) *Client { - return &Client{token: token} -} - -// A Vars is a binding of GraphQL variables to JSON-able values (usually strings). -type Vars map[string]any - -// GraphQLQuery runs a single query with the bound variables. -// For example, to look up a repository ID: -// -// func repoID(org, name string) (string, error) { -// graphql := ` -// query($Org: String!, $Repo: String!) { -// repository(owner: $Org, name: $Repo) { -// id -// } -// } -// ` -// vars := Vars{"Org": org, "Repo": repo} -// q, err := c.GraphQLQuery(graphql, vars) -// if err != nil { -// return "", err -// } -// return string(q.Repository.Id), nil -// } -// -// (This is roughly the implementation of the [Client.Repo] method.) -func (c *Client) GraphQLQuery(query string, vars Vars) (*schema.Query, error) { - var reply schema.Query - if err := c.graphQL(query, vars, &reply); err != nil { - return nil, err - } - return &reply, nil -} - -// GraphQLMutation runs a single mutation with the bound variables. -// For example, to edit an issue comment: -// -// func editComment(commentID, body string) error { -// graphql := ` -// mutation($Comment: ID!, $Body: String!) { -// updateIssueComment(input: {id: $Comment, body: $Body}) { -// clientMutationId -// } -// } -// ` -// _, err := c.GraphQLMutation(graphql, Vars{"Comment": commentID, "Body": body}) -// return err -// } -// -// (This is roughly the implementation of the [Client.EditIssueComment] method.) -func (c *Client) GraphQLMutation(query string, vars Vars) (*schema.Mutation, error) { - var reply schema.Mutation - if err := c.graphQL(query, vars, &reply); err != nil { - return nil, err - } - return &reply, nil -} - -func (c *Client) graphQL(query string, vars Vars, reply any) error { - js, err := json.Marshal(struct { - Query string `json:"query"` - Variables any `json:"variables"` - }{ - Query: query, - Variables: vars, - }) - if err != nil { - return err - } - -Retry: - method := "POST" - body := bytes.NewReader(js) - if query == "schema" && vars == nil { - method = "GET" - js = nil - } - req, err := http.NewRequest(method, "https://api.github.com/graphql", body) - if err != nil { - return err - } - if c.token != "" { - req.Header.Set("Authorization", "Bearer "+c.token) - } - - previews := []string{ - "application/vnd.github.inertia-preview+json", // projects - "application/vnd.github.starfox-preview+json", // projects events - "application/vnd.github.elektra-preview+json", // pinned issues - } - req.Header.Set("Accept", strings.Join(previews, ",")) - - resp, err := http.DefaultClient.Do(req) - if err != nil { - return err - } - data, err := ioutil.ReadAll(resp.Body) - if err != nil { - return fmt.Errorf("reading body: %v", err) - } - if resp.StatusCode != 200 { - err := fmt.Errorf("%s\n%s", resp.Status, data) - // TODO(rsc): Could do better here, but this works reasonably well. - // If we're over quota, it could be a while. - if strings.Contains(err.Error(), "wait a few minutes") { - log.Printf("github: %v", err) - time.Sleep(10 * time.Minute) - goto Retry - } - return err - } - - jsreply := struct { - Data any - Errors []struct { - Message string - } - }{ - Data: reply, - } - - err = json.Unmarshal(data, &jsreply) - if err != nil { - return fmt.Errorf("parsing reply: %v", err) - } - - if len(jsreply.Errors) > 0 { - if strings.Contains(jsreply.Errors[0].Message, "rate limit exceeded") { - log.Printf("github: %s", jsreply.Errors[0].Message) - time.Sleep(10 * time.Minute) - goto Retry - } - if strings.Contains(jsreply.Errors[0].Message, "submitted too quickly") { - log.Printf("github: %s", jsreply.Errors[0].Message) - time.Sleep(5 * time.Second) - goto Retry - } - for i, line := range strings.Split(query, "\n") { - log.Print(i+1, line) - } - return fmt.Errorf("graphql error: %s", jsreply.Errors[0].Message) - } - - return nil -} - -func collect[Schema, Out any](c *Client, graphql string, vars Vars, transform func(Schema) Out, - page func(*schema.Query) pager[Schema]) ([]Out, error) { - var cursor string - var list []Out - for { - if cursor != "" { - vars["Cursor"] = cursor - } - q, err := c.GraphQLQuery(graphql, vars) - if err != nil { - return list, err - } - p := page(q) - if p == nil { - break - } - list = append(list, apply(transform, p.GetNodes())...) - info := p.GetPageInfo() - cursor = info.EndCursor - if cursor == "" || !info.HasNextPage { - break - } - } - return list, nil -} - -type pager[T any] interface { - GetPageInfo() *schema.PageInfo - GetNodes() []T -} - -func apply[In, Out any](f func(In) Out, x []In) []Out { - var out []Out - for _, in := range x { - out = append(out, f(in)) - } - return out -} - -func toTime(s schema.DateTime) time.Time { - t, err := time.ParseInLocation(time.RFC3339Nano, string(s), time.UTC) - if err != nil { - return time.Time{} - } - return t -} - -func toDate(s schema.Date) time.Time { - t, err := time.ParseInLocation("2006-01-02", string(s), time.UTC) - if err != nil { - return time.Time{} - } - return t -} blob - d43db3b0a8857f587d11534f8ddcd716ffb390a5 (mode 644) blob + /dev/null --- github.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package github provides idiomatic Go APIs for accessing basic GitHub issue operations. -// -// The entire GitHub API can be accessed by using the [Client] with GraphQL schema from -// [rsc.io/github/schema]. -package github blob - 910b6dddad5c02ae723216f3262ac6aee13f2845 blob + edb8683857f395ab16b08df3c79853cfcfec8f2e --- go.mod +++ go.mod @@ -5,10 +5,7 @@ go 1.22.0 require ( 9fans.net/go v0.0.7 github.com/google/go-github v17.0.0+incompatible - golang.org/x/oauth2 v0.21.0 - rsc.io/dbstore v0.1.1 - rsc.io/sqlite v1.0.0 - rsc.io/todo v0.0.3 + golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 ) require ( blob - 9574c0d9380dcc5a8b49c28fb646063b3444e352 blob + 0461a2f8975819b1bf7290595de5b782fc956f4c --- go.sum +++ go.sum @@ -1,4 +1,3 @@ -9fans.net/go v0.0.1/go.mod h1:lfPdxjq9v8pVQXUMBCx5EO5oLXWQFlKRQgs1kEkjoIM= 9fans.net/go v0.0.7 h1:H5CsYJTf99C8EYAQr+uSoEJnLP/iZU8RmDuhyk30iSM= 9fans.net/go v0.0.7/go.mod h1:Rxvbbc1e+1TyGMjAvLthGTyO97t+6JMQ6ly+Lcs9Uf0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= @@ -42,11 +41,5 @@ golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/ golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -rsc.io/dbstore v0.1.1 h1:LI4gBJUwbejn0wHJWe0KTwgCM33zUVP3BsNz5y2fkEE= -rsc.io/dbstore v0.1.1/go.mod h1:zI7k1PCSLg9r/T2rBM4E/SctbGmqdtt3kjQSemVh1Rs= -rsc.io/sqlite v0.5.0/go.mod h1:fqHuveM9iIqMzjD0WiZIvKYMty/WqTo2bxE9+zC54WE= -rsc.io/sqlite v1.0.0 h1:zUGL/JDeFfblrma2rToXG+fUsGZe+CShUHI3KlUNwQc= -rsc.io/sqlite v1.0.0/go.mod h1:bRoHdqsJCgrcQDvBeCS454l4kLoFAQKHdwfwpoweIOo= -rsc.io/todo v0.0.3 h1:DWSgkhecAPVCwVYwfR553iqD7RDbb2xkQX2aLgfxY0g= -rsc.io/todo v0.0.3/go.mod h1:+iFBcy95zGkDzsHTv8yqeQ+6biho3V6DQbNbcC67X3A= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= blob - 6dded839130fa7914138b66efc2aef9cabb5f484 (mode 644) blob + /dev/null --- issue.go +++ /dev/null @@ -1,552 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package github - -import ( - "fmt" - "time" - - "rsc.io/github/schema" -) - -const issueFields = ` - number - title - id - author { __typename login } - closed - closedAt - createdAt - lastEditedAt - milestone { id number title } - repository { name owner { __typename login } } - body - url - labels(first: 100) { - nodes { - name - description - id - repository { name owner { __typename login } } - } - } -` - -func (c *Client) Issue(org, repo string, n int) (*Issue, error) { - graphql := ` - query($Org: String!, $Repo: String!, $Number: Int!) { - organization(login: $Org) { - repository(name: $Repo) { - issue(number: $Number) { - ` + issueFields + ` - } - } - } - } - ` - - vars := Vars{"Org": org, "Repo": repo, "Number": n} - q, err := c.GraphQLQuery(graphql, vars) - if err != nil { - return nil, err - } - issue := toIssue(q.Organization.Repository.Issue) - return issue, nil -} - -func (c *Client) SearchLabels(org, repo, query string) ([]*Label, error) { - graphql := ` - query($Org: String!, $Repo: String!, $Query: String, $Cursor: String) { - repository(owner: $Org, name: $Repo) { - labels(first: 100, query: $Query, after: $Cursor) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - name - description - id - repository { name owner { __typename login } } - } - } - } - } - ` - - vars := Vars{"Org": org, "Repo": repo} - if query != "" { - vars["Query"] = query - } - return collect(c, graphql, vars, toLabel, - func(q *schema.Query) pager[*schema.Label] { return q.Repository.Labels }, - ) -} - -func (c *Client) Discussions(org, repo string) ([]*Discussion, error) { - graphql := ` - query($Org: String!, $Repo: String!, $Cursor: String) { - repository(owner: $Org, name: $Repo) { - discussions(first: 100, after: $Cursor) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - locked - number - title - repository { name owner { __typename login } } - body - } - } - } - } - ` - - vars := Vars{"Org": org, "Repo": repo} - return collect(c, graphql, vars, toDiscussion, - func(q *schema.Query) pager[*schema.Discussion] { return q.Repository.Discussions }, - ) -} - -func (c *Client) SearchMilestones(org, repo, query string) ([]*Milestone, error) { - graphql := ` - query($Org: String!, $Repo: String!, $Query: String, $Cursor: String) { - repository(owner: $Org, name: $Repo) { - milestones(first: 100, query: $Query, after: $Cursor) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - id - number - title - } - } - } - } - ` - - vars := Vars{"Org": org, "Repo": repo} - if query != "" { - vars["Query"] = query - } - return collect(c, graphql, vars, toMilestone, - func(q *schema.Query) pager[*schema.Milestone] { return q.Repository.Milestones }, - ) -} - -func (c *Client) IssueComments(issue *Issue) ([]*IssueComment, error) { - graphql := ` - query($Org: String!, $Repo: String!, $Number: Int!, $Cursor: String) { - repository(owner: $Org, name: $Repo) { - issue(number: $Number) { - comments(first: 100, after: $Cursor) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - author { __typename login } - id - body - createdAt - publishedAt - updatedAt - issue { number } - repository { name owner { __typename login } } - } - } - } - } - } - ` - - vars := Vars{"Org": issue.Owner, "Repo": issue.Repo, "Number": issue.Number} - return collect(c, graphql, vars, toIssueComment, - func(q *schema.Query) pager[*schema.IssueComment] { return q.Repository.Issue.Comments }, - ) -} - -func (c *Client) UserComments(user string) ([]*IssueComment, error) { - graphql := ` - query($User: String!, $Cursor: String) { - user(login: $User) { - issueComments(first: 100, after: $Cursor) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - author { __typename login } - id - body - createdAt - publishedAt - updatedAt - issue { number } - repository { name owner { __typename login } } - } - } - } - } - ` - - vars := Vars{"User": user} - return collect(c, graphql, vars, toIssueComment, - func(q *schema.Query) pager[*schema.IssueComment] { return q.User.IssueComments }, - ) -} - -func (c *Client) AddIssueComment(issue *Issue, text string) error { - graphql := ` - mutation($ID: ID!, $Text: String!) { - addComment(input: {subjectId: $ID, body: $Text}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"ID": issue.ID, "Text": text}) - return err -} - -func (c *Client) CloseIssue(issue *Issue) error { - graphql := ` - mutation($ID: ID!) { - closeIssue(input: {issueId: $ID}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"ID": issue.ID}) - return err -} - -func (c *Client) ReopenIssue(issue *Issue) error { - graphql := ` - mutation($ID: ID!) { - reopenIssue(input: {issueId: $ID}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"ID": issue.ID}) - return err -} - -func (c *Client) AddIssueLabels(issue *Issue, labels ...*Label) error { - var labelIDs []string - for _, lab := range labels { - labelIDs = append(labelIDs, lab.ID) - } - graphql := ` - mutation($Issue: ID!, $Labels: [ID!]!) { - addLabelsToLabelable(input: {labelableId: $Issue, labelIds: $Labels}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Issue": issue.ID, "Labels": labelIDs}) - return err -} - -func (c *Client) RemoveIssueLabels(issue *Issue, labels ...*Label) error { - var labelIDs []string - for _, lab := range labels { - labelIDs = append(labelIDs, lab.ID) - } - graphql := ` - mutation($Issue: ID!, $Labels: [ID!]!) { - removeLabelsFromLabelable(input: {labelableId: $Issue, labelIds: $Labels}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Issue": issue.ID, "Labels": labelIDs}) - return err -} - -func (c *Client) CreateIssue(repo *Repo, title, body string, extra ...any) (*Issue, error) { - var labelIDs []string - var projectIDs []string - for _, x := range extra { - switch x := x.(type) { - default: - return nil, fmt.Errorf("cannot create issue with extra of type %T", x) - case *Label: - labelIDs = append(labelIDs, x.ID) - case *Project: - projectIDs = append(projectIDs, x.ID) - } - } - graphql := ` - mutation($Repo: ID!, $Title: String!, $Body: String!, $Labels: [ID!]!) { - createIssue(input: {repositoryId: $Repo, title: $Title, body: $Body, labelIds: $Labels}) { - clientMutationId - issue { - ` + issueFields + ` - } - } - } - ` - m, err := c.GraphQLMutation(graphql, Vars{"Repo": repo.ID, "Title": title, "Body": body, "Labels": labelIDs, "Projects": projectIDs}) - if err != nil { - return nil, err - } - issue := toIssue(m.CreateIssue.Issue) - for _, id := range projectIDs { - graphql := ` - mutation($Project: ID!, $Issue: ID!) { - addProjectV2ItemById(input: {projectId: $Project, contentId: $Issue}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Project": id, "Issue": string(m.CreateIssue.Issue.Id)}) - if err != nil { - return issue, err - } - } - return issue, nil -} - -func (c *Client) RetitleIssue(issue *Issue, title string) error { - graphql := ` - mutation($Issue: ID!, $Title: String!) { - updateIssue(input: {id: $Issue, title: $Title}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Issue": issue.ID, "Title": title}) - return err -} - -func (c *Client) EditIssueComment(comment *IssueComment, body string) error { - graphql := ` - mutation($Comment: ID!, $Body: String!) { - updateIssueComment(input: {id: $Comment, body: $Body}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Comment": comment.ID, "Body": body}) - return err -} - -func (c *Client) DeleteIssue(issue *Issue) error { - graphql := ` - mutation($Issue: ID!) { - deleteIssue(input: {issueId: $Issue}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Issue": issue.ID}) - return err -} - -func (c *Client) RemilestoneIssue(issue *Issue, milestone *Milestone) error { - graphql := ` - mutation($Issue: ID!, $Milestone: ID!) { - updateIssue(input: {id: $Issue, milestoneId: $Milestone}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Issue": issue.ID, "Milestone": milestone.ID}) - return err -} - -func (c *Client) SetProjectItemFieldOption(project *Project, item *ProjectItem, field *ProjectField, option *ProjectFieldOption) error { - graphql := ` - mutation($Project: ID!, $Item: ID!, $Field: ID!, $Option: String!) { - updateProjectV2ItemFieldValue(input: {projectId: $Project, itemId: $Item, fieldId: $Field, value: {singleSelectOptionId: $Option}}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Project": project.ID, "Item": item.ID, "Field": field.ID, "Option": option.ID}) - return err -} - -func (c *Client) DeleteProjectItem(project *Project, item *ProjectItem) error { - graphql := ` - mutation($Project: ID!, $Item: ID!) { - deleteProjectV2Item(input: {projectId: $Project, itemId: $Item}) { - clientMutationId - } - } - ` - _, err := c.GraphQLMutation(graphql, Vars{"Project": project.ID, "Item": item.ID}) - return err -} - -type Label struct { - Name string - Description string - ID string - Owner string - Repo string -} - -func toLabel(s *schema.Label) *Label { - return &Label{ - Name: s.Name, - Description: s.Description, - ID: string(s.Id), - Owner: toOwner(&s.Repository.Owner), - Repo: s.Repository.Name, - } -} - -type Discussion struct { - Locked bool - Title string - Number int - Owner string - Repo string - Body string -} - -func toAuthor(a *schema.Actor) string { - if a != nil && a.Interface != nil { - return a.Interface.GetLogin() - } - return "" -} - -func toOwner(o *schema.RepositoryOwner) string { - if o != nil && o.Interface != nil { - return o.Interface.(interface{ GetLogin() string }).GetLogin() - } - return "" -} - -func toDiscussion(s *schema.Discussion) *Discussion { - return &Discussion{ - Locked: s.Locked, - Title: s.Title, - Number: s.Number, - Owner: toOwner(&s.Repository.Owner), - Repo: s.Repository.Name, - Body: s.Body, - } -} - -type Milestone struct { - Title string - ID string -} - -func toMilestone(s *schema.Milestone) *Milestone { - if s == nil { - return nil - } - return &Milestone{ - Title: s.Title, - ID: string(s.Id), - } -} - -type Issue struct { - ID string - Title string - Number int - Closed bool - ClosedAt time.Time - CreatedAt time.Time - LastEditedAt time.Time - Labels []*Label - Milestone *Milestone - Author string - Owner string - Repo string - Body string - URL string -} - -func toIssue(s *schema.Issue) *Issue { - return &Issue{ - ID: string(s.Id), - Title: s.Title, - Number: s.Number, - Author: toAuthor(&s.Author), - Closed: s.Closed, - ClosedAt: toTime(s.ClosedAt), - CreatedAt: toTime(s.CreatedAt), - LastEditedAt: toTime(s.LastEditedAt), - Owner: toOwner(&s.Repository.Owner), - Repo: s.Repository.Name, - Milestone: toMilestone(s.Milestone), - Labels: apply(toLabel, s.Labels.Nodes), - Body: s.Body, - URL: string(s.Url), - } -} - -func (i *Issue) LabelByName(name string) *Label { - for _, lab := range i.Labels { - if lab.Name == name { - return lab - } - } - return nil -} - -type IssueComment struct { - ID string - Author string - Body string - CreatedAt time.Time - PublishedAt time.Time - UpdatedAt time.Time - Issue int - Owner string - Repo string -} - -func toIssueComment(s *schema.IssueComment) *IssueComment { - return &IssueComment{ - Author: toAuthor(&s.Author), - Body: s.Body, - CreatedAt: toTime(s.CreatedAt), - ID: string(s.Id), - PublishedAt: toTime(s.PublishedAt), - UpdatedAt: toTime(s.UpdatedAt), - Issue: s.Issue.GetNumber(), - Owner: toOwner(&s.Repository.Owner), - Repo: s.Repository.Name, - } -} - -type Repo struct { - Owner string - Repo string - ID string -} - -func (c *Client) Repo(org, repo string) (*Repo, error) { - graphql := ` - query($Org: String!, $Repo: String!) { - repository(owner: $Org, name: $Repo) { - id - } - } - ` - vars := Vars{"Org": org, "Repo": repo} - q, err := c.GraphQLQuery(graphql, vars) - if err != nil { - return nil, err - } - return &Repo{org, repo, string(q.Repository.Id)}, nil -} blob - bbb2243bb6e51fc1fa9ce28a57321aa735c09687 (mode 644) blob + /dev/null --- issuedb/main.go +++ /dev/null @@ -1,636 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package main - -import ( - "database/sql" - "encoding/json" - "errors" - "flag" - "fmt" - "io/ioutil" - "log" - "net/http" - "net/url" - "os" - "strconv" - "strings" - "time" - - "rsc.io/dbstore" - _ "rsc.io/sqlite" -) - -// TODO: pragma journal_mode=WAL - -// Database tables. DO NOT CHANGE. - -type Auth struct { - Key string `dbstore:",key"` - ClientID string - ClientSecret string -} - -type ProjectSync struct { - Name string `dbstore:",key"` // "owner/repo" - EventETag string - EventID int64 - IssueDate string - CommentDate string - RefillID int64 -} - -type RawJSON struct { - URL string `dbstore:",key"` - Project string - Issue int64 - Type string - JSON []byte `dbstore:",blob"` - Time string -} - -var ( - file = flag.String("f", os.Getenv("HOME")+"/githubissue.db", "database `file` to use") - storage = new(dbstore.Storage) - db *sql.DB - auth Auth -) - -func usage() { - fmt.Fprintf(os.Stderr, `usage: issuedb [-f db] command [args] - -Commands are: - - init (initialize new database) - add (add new repository) - sync (sync repositories) - resync (full resync to catch very old events) - -The default database is $HOME/githubissue.db. -`) - os.Exit(2) -} - -func main() { - log.SetPrefix("issuedb: ") - log.SetFlags(0) - - storage.Register(new(Auth)) - storage.Register(new(ProjectSync)) - storage.Register(new(RawJSON)) - - flag.Usage = usage - flag.Parse() - args := flag.Args() - if len(args) == 0 { - usage() - } - - if args[0] == "init" { - if len(args) != 3 { - fmt.Fprintf(os.Stderr, "usage: issuedb [-f db] init clientid clientsecret\n") - os.Exit(2) - } - _, err := os.Stat(*file) - if err == nil { - log.Fatalf("creating database: file %s already exists", *file) - } - db, err := sql.Open("sqlite3", *file) - if err != nil { - log.Fatalf("creating database: %v", err) - } - defer db.Close() - if err := storage.CreateTables(db); err != nil { - log.Fatalf("initializing database: %v", err) - } - auth = Auth{Key: "unauth", ClientID: args[1], ClientSecret: args[2]} - if err := storage.Insert(db, &auth); err != nil { - log.Fatal(err) - } - return - } - - _, err := os.Stat(*file) - if err != nil { - log.Fatalf("opening database: %v", err) - } - db, err = sql.Open("sqlite3", *file) - if err != nil { - log.Fatalf("opening database: %v", err) - } - defer db.Close() - - auth.Key = "unauth" - if err := storage.Read(db, &auth, "ALL"); err != nil { - log.Fatalf("reading database: %v", err) - } - - // TODO: Remove or deal with better. - // This is here so that if we add new tables they get created in old databases. - // But there is nothing to recreate or expand tables in old databases. - - switch args[0] { - default: - usage() - - case "add": - if len(args) != 2 { - fmt.Fprintf(os.Stderr, "usage: issuedb [-f db] add owner/repo\n") - os.Exit(2) - } - var proj ProjectSync - proj.Name = args[1] - if err := storage.Read(db, &proj); err == nil { - log.Fatalf("project %s already stored in database", proj.Name) - } - - proj.Name = args[1] - if err := storage.Insert(db, &proj); err != nil { - log.Fatalf("adding project: %v", err) - } - return - - case "sync", "resync": - var projects []ProjectSync - if err := storage.Select(db, &projects, ""); err != nil { - log.Fatalf("reading projects: %v", err) - } - for _, proj := range projects { - if match(proj.Name, args[1:]) { - doSync(&proj, args[0] == "resync") - } - } - for _, arg := range args[1:] { - if arg != didArg { - log.Printf("unknown project: %s", arg) - } - } - - case "retime": - retime() - - case "todo": - var projects []ProjectSync - if err := storage.Select(db, &projects, ""); err != nil { - log.Fatalf("reading projects: %v", err) - } - for _, proj := range projects { - if match(proj.Name, args[1:]) { - todo(&proj) - } - } - for _, arg := range args[1:] { - if arg != didArg { - log.Printf("unknown project: %s", arg) - } - } - } -} - -const didArg = "\x00" - -func match(name string, args []string) bool { - if len(args) == 0 { - return true - } - ok := false - for i, arg := range args { - if name == arg { - args[i] = didArg - ok = true - } - } - return ok -} - -func doSync(proj *ProjectSync, resync bool) { - println("WOULD SYNC", proj.Name) - syncIssues(proj) - syncIssueComments(proj) - if resync { - syncIssueEvents(proj, 0, true) - syncIssueEventsByIssue(proj) - } else { - syncIssueEvents(proj, 0, false) - } -} - -func syncIssueComments(proj *ProjectSync) { - downloadByDate(proj, "/issues/comments", &proj.CommentDate, "CommentDate") -} - -func syncIssues(proj *ProjectSync) { - downloadByDate(proj, "/issues", &proj.IssueDate, "IssueDate") -} - -func downloadByDate(proj *ProjectSync, api string, since *string, sinceName string) { - values := url.Values{ - "sort": {"updated"}, - "direction": {"asc"}, - "page": {"1"}, - "per_page": {"100"}, - } - if api == "/issues" { - values.Set("state", "all") - } - if api == "/issues/comments" { - delete(values, "per_page") - } - if since != nil && *since != "" { - values.Set("since", *since) - } - urlStr := "https://api.github.com/repos/" + proj.Name + api + "?" + values.Encode() - - err := downloadPages(urlStr, "", func(_ *http.Response, all []json.RawMessage) error { - tx, err := db.Begin() - if err != nil { - return fmt.Errorf("starting db transaction: %v", err) - } - defer tx.Rollback() - var last string - for _, m := range all { - var meta struct { - URL string - Updated string `json:"updated_at"` - Number int64 // for /issues feed - IssueURL string `json:"issue_url"` // for /issues/comments feed - CreatedAt string `json:"created_at"` - } - if err := json.Unmarshal(m, &meta); err != nil { - return fmt.Errorf("parsing message: %v", err) - } - if meta.Updated == "" { - return fmt.Errorf("parsing message: no updated_at: %s", string(m)) - } - last = meta.Updated - - var raw RawJSON - raw.URL = meta.URL - raw.Project = proj.Name - switch api { - default: - log.Fatalf("downloadByDate: unknown API: %v", api) - case "/issues": - raw.Issue = meta.Number - case "/issues/comments": - i := strings.LastIndex(meta.IssueURL, "/") - n, err := strconv.ParseInt(meta.IssueURL[i+1:], 10, 64) - if err != nil { - log.Fatalf("cannot find issue number in /issues/comments API: %v", urlStr) - } - raw.Issue = n - } - raw.Type = api - raw.JSON = m - raw.Time = meta.CreatedAt - if err := storage.Insert(tx, &raw); err != nil { - return fmt.Errorf("writing JSON to database: %v", err) - } - } - if since != nil { - *since = last - if err := storage.Write(tx, proj, sinceName); err != nil { - return fmt.Errorf("updating database metadata: %v", err) - } - } - if err := tx.Commit(); err != nil { - return err - } - return nil - }) - - if err != nil { - log.Fatal(err) - } -} - -func syncIssueEvents(proj *ProjectSync, id int, short bool) { - tx, err := db.Begin() - if err != nil { - log.Fatalf("starting db transaction: %v", err) - } - defer tx.Rollback() - - values := url.Values{ - "client_id": {auth.ClientID}, - "client_secret": {auth.ClientSecret}, - "page": {"1"}, - "per_page": {"100"}, - } - var api = "/issues/events" - if id > 0 { - api = fmt.Sprintf("/issues/%d/events", id) - } - urlStr := "https://api.github.com/repos/" + proj.Name + api + "?" + values.Encode() - var ( - firstID int64 - firstETag string - ) - done := errors.New("DONE") - err = downloadPages(urlStr, proj.EventETag, func(resp *http.Response, all []json.RawMessage) error { - for _, m := range all { - var meta struct { - ID int64 `json:"id"` - URL string `json:"url"` - Issue struct { - Number int64 - } - } - if err := json.Unmarshal(m, &meta); err != nil { - return fmt.Errorf("parsing message: %v", err) - } - if meta.ID == 0 { - return fmt.Errorf("parsing message: no id: %s", string(m)) - } - println(meta.ID) - if firstID == 0 { - firstID = meta.ID - firstETag = resp.Header.Get("Etag") - } - if id == 0 && (proj.EventID != 0 && meta.ID <= proj.EventID || short) { - return done - } - - var raw RawJSON - raw.URL = meta.URL - raw.Project = proj.Name - raw.Type = "/issues/events" - if id > 0 { - raw.Issue = int64(id) - } else { - raw.Issue = meta.Issue.Number - } - raw.JSON = m - if err := storage.Insert(tx, &raw); err != nil { - return fmt.Errorf("writing JSON to database: %v", err) - } - } - return nil - }) - if err == done { - err = nil - } - if err != nil { - if strings.Contains(err.Error(), "304 Not Modified") { - return - } - log.Fatalf("syncing events: %v", err) - } - - if id == 0 && firstID != 0 { - proj.EventID = firstID - proj.EventETag = firstETag - if err := storage.Write(tx, proj, "EventID", "EventETag"); err != nil { - log.Fatalf("updating database metadata: %v", err) - } - } - - if err := tx.Commit(); err != nil { - log.Fatal(err) - } -} - -func syncIssueEventsByIssue(proj *ProjectSync) { - rows, err := db.Query("select URL from RawJSON where Type = ? group by URL", "/issues") - if err != nil { - log.Fatal(err) - } - var ids []int - suffix := "repos/" + proj.Name + "/issues/" - for rows.Next() { - var url string - if err := rows.Scan(&url); err != nil { - log.Fatal(err) - } - i := strings.LastIndex(url, "/") - if !strings.HasSuffix(url[:i+1], suffix) { - continue - } - id, err := strconv.Atoi(url[i+1:]) - if err != nil { - log.Fatal(url, err) - } - ids = append(ids, id) - } - for _, id := range ids { - println("ID", id) - syncIssueEvents(proj, id, false) - } -} - -func downloadPages(url, etag string, do func(*http.Response, []json.RawMessage) error) error { - nfail := 0 - for n := 0; url != ""; n++ { - again: - println("URL:", url) - req, err := http.NewRequest("GET", url, nil) - if err != nil { - return err - } - if etag != "" { - req.Header.Set("If-None-Match", etag) - } - req.SetBasicAuth(auth.ClientID, auth.ClientSecret) - resp, err := http.DefaultClient.Do(req) - if err != nil { - return err - } - //println("RESP:", js(resp.Header)) - - data, err := ioutil.ReadAll(resp.Body) - if err != nil { - return fmt.Errorf("reading body: %v", err) - } - if resp.StatusCode != 200 { - if resp.StatusCode == 403 { - if resp.Header.Get("X-Ratelimit-Remaining") == "0" { - n, _ := strconv.Atoi(resp.Header.Get("X-Ratelimit-Reset")) - if n > 0 { - t := time.Unix(int64(n), 0) - println("RATELIMIT", t.String()) - time.Sleep(t.Sub(time.Now()) + 1*time.Minute) - goto again - } - } - } - if resp.StatusCode == 500 || resp.StatusCode == 502 { - nfail++ - if nfail < 2 { - println("REPEAT:", resp.Status, string(data)) - time.Sleep(time.Duration(nfail) * 2 * time.Second) - goto again - } - } - return fmt.Errorf("%s\n%s", resp.Status, data) - } - checkRateLimit(resp) - - var all []json.RawMessage - if err := json.Unmarshal(data, &all); err != nil { - return fmt.Errorf("parsing body: %v", err) - } - println("GOT", len(all), "messages") - - if err := do(resp, all); err != nil { - return err - } - - url = findNext(resp.Header.Get("Link")) - } - return nil -} - -func findNext(link string) string { - for link != "" { - link = strings.TrimSpace(link) - if !strings.HasPrefix(link, "<") { - break - } - i := strings.Index(link, ">") - if i < 0 { - break - } - linkURL := link[1:i] - link = strings.TrimSpace(link[i+1:]) - for strings.HasPrefix(link, ";") { - link = strings.TrimSpace(link[1:]) - i := strings.Index(link, ";") - j := strings.Index(link, ",") - if i < 0 || j >= 0 && j < i { - i = j - } - if i < 0 { - i = len(link) - } - attr := strings.TrimSpace(link[:i]) - if attr == `rel="next"` { - return linkURL - } - link = link[i:] - } - if !strings.HasPrefix(link, ",") { - break - } - link = strings.TrimSpace(link[1:]) - } - return "" -} - -func checkRateLimit(resp *http.Response) { - // TODO -} - -func js(x interface{}) string { - data, err := json.MarshalIndent(x, "", "\t") - if err != nil { - return "ERROR: " + err.Error() - } - return string(data) -} - -type ghIssueEvent struct { - // NOTE: Issue field is not present when downloading for a specific issue, - // only in the master feed for the whole repo. So do not add it here. - Actor struct { - Login string `json:"login"` - } `json:"actor"` - Event string `json:"event"` - Labels []struct { - Name string `json:"name"` - } `json:"labels"` - LockReason string `json:"lock_reason"` - CreatedAt string `json:"created_at"` - CommitID string `json:"commit_id"` - Assigner struct { - Login string `json:"login"` - } `json:"assigner"` - Assignees []struct { - Login string `json:"login"` - } `json:"assignees"` - Milestone struct { - Title string `json:"title"` - } `json:"milestone"` - Rename struct { - From string `json:"from"` - To string `json:"to"` - } `json:"rename"` -} - -type ghIssueComment struct { - IssueURL string `json:"issue_url"` - HTMLURL string `json:"html_url"` - User struct { - Login string `json:"login"` - } `json:"user"` - CreatedAt string `json:"created_at"` - UpdatedAt string `json:"updated_at"` - Body string `json:"body"` -} - -type ghIssue struct { - URL string `json:"url"` - HTMLURL string `json:"html_url"` - User struct { - Login string `json:"login"` - } `json:"user"` - Title string `json:"title"` - CreatedAt string `json:"created_at"` - UpdatedAt string `json:"updated_at"` - ClosedAt string `json:"closed_at"` - Body string `json:"body"` - Assignees []struct { - Login string `json:"login"` - } `json:"assignees"` - Milestone struct { - Title string `json:"title"` - } `json:"milestone"` - State string `json:"state"` - PullRequest *struct{} `json:"pull_request"` - Locked bool - ActiveLockReason string `json:"active_lock_reason"` - Labels []struct { - Name string `json:"name"` - } `json:"labels"` -} - -func retime() { - last := "" - for { - var all []RawJSON - if err := storage.Select(db, &all, "where URL > ? and Time = ? order by URL asc limit 100", last, ""); err != nil { - log.Fatalf("sql: %v", err) - } - if len(all) == 0 { - break - } - println("GOT", len(all), all[0].URL, all[0].Type, all[len(all)-1].URL, all[len(all)-1].Type) - tx, err := db.Begin() - if err != nil { - log.Fatal(err) - } - for _, m := range all { - var meta struct { - CreatedAt string `json:"created_at"` - } - if err := json.Unmarshal(m.JSON, &meta); err != nil { - log.Fatal(err) - } - if meta.CreatedAt == "" { - log.Fatalf("missing created_at: %s", m.JSON) - } - tm, err := time.Parse(time.RFC3339, meta.CreatedAt) - if err != nil { - log.Fatalf("parse: %v", err) - } - if _, err := tx.Exec("update RawJSON set Time = ? where URL = ?", tm.UTC().Format(time.RFC3339Nano), m.URL); err != nil { - log.Fatal(err) - } - last = m.URL - } - if err := tx.Commit(); err != nil { - log.Fatal(err) - } - } -} blob - 0dd54c64a6b3a56e8a7468a675dc67c56b581307 (mode 644) blob + /dev/null --- issuedb/todo.go +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright 2019 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package main - -import ( - "crypto/sha256" - "encoding/json" - "fmt" - "io/ioutil" - "log" - "os" - "path/filepath" - "strings" - "time" - - "rsc.io/todo/task" -) - -type ghItem struct { - Type string - URL string - Time time.Time - Issue ghIssue - Event ghIssueEvent - Comment ghIssueComment -} - -const timeFormat = "2006-01-02 15:04:05 -0700" - -func todo(proj *ProjectSync) { - println("#", proj.Name) - root := filepath.Join(os.Getenv("HOME"), "todo/github", filepath.Base(proj.Name)) - data, _ := ioutil.ReadFile(filepath.Join(root, "synctime")) - var syncTime time.Time - if len(data) > 0 { - t, err := time.Parse(time.RFC3339, string(data)) - if err != nil { - log.Fatalf("parsing %s: %v", filepath.Join(root, "synctime"), err) - } - syncTime = t - } - - l := task.OpenList(root) - - // Start 10 minutes back just in case there is time skew in some way on GitHub. - // (If this is not good enough, we can always impose our own sequence numbering - // in the RawJSON table.) - startTime := syncTime.Add(-10 * time.Minute) - endTime := syncTime - process(proj, startTime, func(proj *ProjectSync, issue int64, items []*ghItem) { - fmt.Fprintf(os.Stderr, "%v#%v\n", proj.Name, issue) - if end := items[len(items)-1].Time; endTime.Before(end) { - endTime = end - } - todoIssue(l, proj, issue, items) - }) - - if err := ioutil.WriteFile(filepath.Join(root, "synctime"), []byte(endTime.Local().Format(time.RFC3339)), 0666); err != nil { - log.Fatal(err) - } -} - -func todoIssue(l *task.List, proj *ProjectSync, issue int64, items []*ghItem) { - id := fmt.Sprint(issue) - t, err := l.Read(id) - var last time.Time - if err != nil { - if items[0].Type != "/issues" { - log.Printf("sync: missing creation for %v/%v", proj.Name, issue) - return - } - it := &items[0].Issue - last = items[0].Time - hdr := map[string]string{ - "url": it.HTMLURL, - "author": it.User.Login, - "title": it.Title, - "updated": last.Format(timeFormat), - } - syncHdr(hdr, hdr, it) - t, err = l.Create(id, items[0].Time.Local(), hdr, []byte(bodyText(it.User.Login, "reported", it.Body))) - if err != nil { - log.Fatal(err) - } - items = items[1:] - } else { - last, err = time.Parse(timeFormat, t.Header("updated")) - if err != nil { - log.Fatalf("sync: bad updated time in %v", issue) - } - } - - haveEID := make(map[string]bool) - for _, eid := range t.EIDs() { - haveEID[eid] = true - } - - for _, it := range items { - if last.Before(it.Time) { - last = it.Time - } - h := sha256.Sum256([]byte(it.URL)) - eid := fmt.Sprintf("%x", h)[:8] - if haveEID[eid] { - continue - } - - switch it.Type { - default: - log.Fatalf("unexpected type %s", it.Type) - case "/issues": - continue - case "/issues/events": - ev := &it.Event - hdr := map[string]string{ - "#id": eid, - "updated": last.Local().Format(timeFormat), - } - what := "@" + ev.Actor.Login + " " + ev.Event - switch ev.Event { - case "closed", "merged", "referenced": - what += ": " + "https://github.com/" + proj.Name + "/commit/" + ev.CommitID - if ev.Event == "closed" || ev.Event == "merged" { - hdr["closed"] = it.Time.Local().Format(time.RFC3339) - } - case "assigned", "unassigned": - var list []string - for _, who := range ev.Assignees { - list = append(list, who.Login) - } - what += ": " + strings.Join(list, ", ") - if ev.Event == "assigned" { - hdr["assign"] = addList(t.Header("assign"), list) - } else { - hdr["assign"] = deleteList(t.Header("assign"), list) - } - case "labeled", "unlabeled": - var list []string - for _, lab := range ev.Labels { - list = append(list, lab.Name) - } - what += ": " + strings.Join(list, ", ") - if ev.Event == "labeled" { - hdr["label"] = addList(t.Header("label"), list) - } else { - hdr["label"] = deleteList(t.Header("label"), list) - } - case "milestoned": - what += ": " + ev.Milestone.Title - hdr["milestone"] = ev.Milestone.Title - case "demilestoned": - hdr["milestone"] = "" - case "renamed": - what += ":\n\t" + ev.Rename.From + " →\n\t" + ev.Rename.To - } - if err := l.Write(t, it.Time.Local(), hdr, []byte(what)); err != nil { - log.Fatal(err) - } - case "/issues/comments": - com := &it.Comment - hdr := map[string]string{ - "#id": eid, - "#url": com.HTMLURL, - "updated": last.Local().Format(timeFormat), - } - if err := l.Write(t, it.Time.Local(), hdr, []byte(bodyText(com.User.Login, "commented", com.Body))); err != nil { - log.Fatal(err) - } - } - } -} - -func addList(old string, add []string) string { - have := make(map[string]bool) - for _, name := range strings.Split(old, ", ") { - have[name] = true - } - for _, name := range add { - if !have[name] { - old += ", " + name - have[name] = true - } - } - return old -} - -func deleteList(old string, del []string) string { - drop := make(map[string]bool) - for _, name := range del { - drop[name] = true - } - var list []string - for _, name := range strings.Split(old, ", ") { - if name != "" && !drop[name] { - list = append(list, name) - } - } - return strings.Join(list, ", ") -} - -func syncHdr(old, hdr map[string]string, it *ghIssue) { - pr := "" - if it.PullRequest != nil { - pr = "pr" - } - if old["pr"] != pr { - hdr["pr"] = pr - } - if old["milestone"] != it.Milestone.Title { - hdr["milestone"] = it.Milestone.Title - } - locked := "" - if it.Locked { - locked := it.ActiveLockReason - if locked == "" { - locked = "locked" - } - } - if old["locked"] != locked { - hdr["locked"] = locked - } - closed := "" - if it.ClosedAt != "" { - closed = it.ClosedAt - } - if old["closed"] != closed { - hdr["closed"] = closed - } - var list []string - for _, who := range it.Assignees { - list = append(list, who.Login) - } - all := strings.Join(list, ", ") - if old["assign"] != all { - hdr["assign"] = all - } - list = nil - for _, lab := range it.Labels { - list = append(list, lab.Name) - } - all = strings.Join(list, ", ") - if old["label"] != all { - hdr["label"] = all - } -} - -func process(proj *ProjectSync, since time.Time, do func(proj *ProjectSync, issue int64, item []*ghItem)) { - rows, err := db.Query("select * from RawJSON where Project = ? and Time >= ? order by Issue, Time, Type", proj.Name, since.UTC().Format(time.RFC3339)) - if err != nil { - log.Fatalf("sql: %v", err) - } - - var items []*ghItem - var lastIssue int64 - for rows.Next() { - var raw RawJSON - if err := rows.Scan(&raw.URL, &raw.Project, &raw.Issue, &raw.Type, &raw.JSON, &raw.Time); err != nil { - log.Fatalf("sql scan RawJSON: %v", err) - } - if raw.Issue != lastIssue { - if len(items) > 0 { - do(proj, lastIssue, items) - } - items = items[:0] - lastIssue = raw.Issue - } - - var ev ghIssueEvent - var com ghIssueComment - var issue ghIssue - switch raw.Type { - default: - log.Fatalf("unknown type %s", raw.Type) - case "/issues/comments": - err = json.Unmarshal(raw.JSON, &com) - case "/issues/events": - err = json.Unmarshal(raw.JSON, &ev) - case "/issues": - err = json.Unmarshal(raw.JSON, &issue) - } - if err != nil { - log.Fatalf("unmarshal: %v", err) - } - tm, err := time.Parse(time.RFC3339, raw.Time) - if err != nil { - log.Fatalf("parse time: %v", err) - } - - items = append(items, &ghItem{Type: raw.Type, URL: raw.URL, Time: tm, Issue: issue, Event: ev, Comment: com}) - } - if len(items) > 0 { - do(proj, lastIssue, items) - } -} - -func bodyText(who, verb, data string) []byte { - body := "@" + who + " " + verb + ":\n" - b := strings.Replace(data, "\r\n", "\n", -1) - b = strings.TrimRight(b, "\n") - b = strings.Replace(b, "\n", "\n\t", -1) - body += "\n\t" + b - return []byte(body) -} blob - 95bbbe60caf280b7b89e113655d8c9434abc7dad (mode 644) blob + /dev/null --- project.go +++ /dev/null @@ -1,479 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package github - -import ( - "fmt" - "time" - - "rsc.io/github/schema" -) - -func (c *Client) Projects(org, query string) ([]*Project, error) { - commonField := ` - createdAt - dataType - id - name - updatedAt - ` - graphql := ` - query($Org: String!, $Query: String, $Cursor: String) { - organization(login: $Org) { - projectsV2(first: 100, query: $Query, after: $Cursor) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - closed - closedAt - createdAt - updatedAt - id - number - title - url - fields(first: 100) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - __typename - ... on ProjectV2Field { - ` + commonField + ` - } - ... on ProjectV2IterationField { - ` + commonField + ` - configuration { - completedIterations { - duration - id - startDate - title - titleHTML - } - iterations { - duration - id - startDate - title - titleHTML - } - duration - startDay - } - } - ... on ProjectV2SingleSelectField { - ` + commonField + ` - options { - id - name - nameHTML - } - } - } - } - } - } - } - } - ` - - vars := Vars{"Org": org} - if query != "" { - vars["Query"] = query - } - return collect(c, graphql, vars, - toProject(org), - func(q *schema.Query) pager[*schema.ProjectV2] { return q.Organization.ProjectsV2 }, - ) -} - -func (c *Client) ProjectItems(p *Project) ([]*ProjectItem, error) { - graphql := ` - query($Org: String!, $ProjectNumber: Int!, $Cursor: String) { - organization(login: $Org) { - projectV2(number: $ProjectNumber) { - items(first: 100, after: $Cursor) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - databaseId - fieldValues(first: 100) { - pageInfo { - hasNextPage - endCursor - } - totalCount - nodes { - __typename - ... on ProjectV2ItemFieldDateValue { - createdAt databaseId id updatedAt - date - field { __typename ... on ProjectV2Field { databaseId id name } } - } - ... on ProjectV2ItemFieldIterationValue { - createdAt databaseId id updatedAt - field { __typename ... on ProjectV2IterationField { databaseId id name } } - } - ... on ProjectV2ItemFieldLabelValue { - field { __typename ... on ProjectV2Field { databaseId id name } } - } - ... on ProjectV2ItemFieldMilestoneValue { - field { __typename ... on ProjectV2Field { databaseId id name } } - } - ... on ProjectV2ItemFieldNumberValue { - createdAt databaseId id updatedAt - number - field { __typename ... on ProjectV2Field { databaseId id name } } - } - ... on ProjectV2ItemFieldPullRequestValue { - field { __typename ... on ProjectV2Field { databaseId id name } } - } - ... on ProjectV2ItemFieldRepositoryValue { - field { __typename ... on ProjectV2Field { databaseId id name } } - } - ... on ProjectV2ItemFieldReviewerValue { - field { __typename ... on ProjectV2Field { databaseId id name } } - } - ... on ProjectV2ItemFieldSingleSelectValue { - createdAt databaseId id updatedAt - name nameHTML optionId - field { __typename ... on ProjectV2SingleSelectField { databaseId id name } } - } - ... on ProjectV2ItemFieldTextValue { - createdAt databaseId id updatedAt - text - field { __typename ... on ProjectV2Field { databaseId id name } } - } - ... on ProjectV2ItemFieldUserValue { - field { __typename ... on ProjectV2Field { databaseId id name } } - } - } - } - id - isArchived - type - updatedAt - createdAt - content { - __typename - ... on Issue { - ` + issueFields + ` - } - } - } - } - } - } - } - ` - - vars := Vars{"Org": p.Org, "ProjectNumber": p.Number} - return collect(c, graphql, vars, - p.toProjectItem, - func(q *schema.Query) pager[*schema.ProjectV2Item] { return q.Organization.ProjectV2.Items }, - ) -} - -type Project struct { - ID string - Closed bool - ClosedAt time.Time - CreatedAt time.Time - UpdatedAt time.Time - Fields []*ProjectField - Number int - Title string - URL string - Org string -} - -func (p *Project) FieldByName(name string) *ProjectField { - for _, f := range p.Fields { - if f.Name == name { - return f - } - } - return nil -} - -func toProject(org string) func(*schema.ProjectV2) *Project { - return func(s *schema.ProjectV2) *Project { - // TODO: Check p.Fields.PageInfo.HasNextPage. - return &Project{ - ID: string(s.Id), - Closed: s.Closed, - ClosedAt: toTime(s.ClosedAt), - CreatedAt: toTime(s.CreatedAt), - UpdatedAt: toTime(s.UpdatedAt), - Fields: apply(toProjectField, s.Fields.Nodes), - Number: s.Number, - Title: s.Title, - URL: string(s.Url), - Org: org, - } - } -} - -type ProjectField struct { - Kind string // "field", "iteration", "select" - CreatedAt time.Time - UpdatedAt time.Time - DataType schema.ProjectV2FieldType // TODO - DatabaseID int - ID schema.ID - Name string - Iterations *ProjectIterations - Options []*ProjectFieldOption -} - -func (f *ProjectField) OptionByName(name string) *ProjectFieldOption { - for _, o := range f.Options { - if o.Name == name { - return o - } - } - return nil -} - -func toProjectField(su schema.ProjectV2FieldConfiguration) *ProjectField { - s, _ := su.Interface.(schema.ProjectV2FieldCommon_Interface) - f := &ProjectField{ - CreatedAt: toTime(s.GetCreatedAt()), - UpdatedAt: toTime(s.GetUpdatedAt()), - DatabaseID: s.GetDatabaseId(), - ID: s.GetId(), - Name: s.GetName(), - } - switch s := s.(type) { - case *schema.ProjectV2Field: - f.Kind = "field" - case *schema.ProjectV2IterationField: - f.Kind = "iteration" - f.Iterations = toProjectIterations(s.Configuration) - case *schema.ProjectV2SingleSelectField: - f.Kind = "select" - f.Options = apply(toProjectFieldOption, s.Options) - } - return f -} - -type ProjectIterations struct { - Completed []*ProjectIteration - Active []*ProjectIteration - Days int - StartDay time.Weekday -} - -func toProjectIterations(s *schema.ProjectV2IterationFieldConfiguration) *ProjectIterations { - return &ProjectIterations{ - Completed: apply(toProjectIteration, s.CompletedIterations), - Active: apply(toProjectIteration, s.Iterations), - StartDay: time.Weekday(s.StartDay), - Days: s.Duration, - } -} - -type ProjectIteration struct { - Days int - ID string - Start time.Time - Title string - TitleHTML string -} - -func toProjectIteration(s *schema.ProjectV2IterationFieldIteration) *ProjectIteration { - return &ProjectIteration{ - Days: s.Duration, - ID: s.Id, - Start: toDate(s.StartDate), - Title: s.Title, - TitleHTML: s.TitleHTML, - } -} - -type ProjectFieldOption struct { - ID string - Name string - NameHTML string -} - -func (o *ProjectFieldOption) String() string { - return fmt.Sprintf("%+v", *o) -} - -func toProjectFieldOption(s *schema.ProjectV2SingleSelectFieldOption) *ProjectFieldOption { - return &ProjectFieldOption{ - ID: s.Id, - Name: s.Name, - NameHTML: s.NameHTML, - } -} - -type ProjectItem struct { - CreatedAt time.Time - DatabaseID int - ID schema.ID - IsArchived bool - Type schema.ProjectV2ItemType - UpdatedAt time.Time - Fields []*ProjectFieldValue - Issue *Issue -} - -func (it *ProjectItem) FieldByName(name string) *ProjectFieldValue { - for _, f := range it.Fields { - if f.Field == name { - return f - } - } - return nil -} - -func (p *Project) toProjectItem(s *schema.ProjectV2Item) *ProjectItem { - // TODO: Check p.Fields.PageInfo.HasNextPage. - it := &ProjectItem{ - CreatedAt: toTime(s.CreatedAt), - DatabaseID: s.DatabaseId, - ID: s.Id, - IsArchived: s.IsArchived, - Type: s.Type, - UpdatedAt: toTime(s.UpdatedAt), - Fields: apply(p.toProjectFieldValue, s.FieldValues.Nodes), - // TODO Issue - } - if si, ok := s.Content.Interface.(*schema.Issue); ok { - it.Issue = toIssue(si) - } - return it -} - -type ProjectFieldValue struct { - CreatedAt time.Time - UpdatedAt time.Time - Kind string - ID string - DatabaseID int - Field string - Option *ProjectFieldOption - Date time.Time - Text string -} - -func (v *ProjectFieldValue) String() string { - switch v.Kind { - case "date": - return fmt.Sprintf("%s:%v", v.Field, v.Date.Format("2006-01-02")) - case "text": - return fmt.Sprintf("%s:%q", v.Field, v.Text) - case "select": - return fmt.Sprintf("%s:%q", v.Field, v.Option) - } - return fmt.Sprintf("%s:???", v.Field) -} - -func (p *Project) optionByID(id string) *ProjectFieldOption { - for _, f := range p.Fields { - for _, o := range f.Options { - if o.ID == id { - return o - } - } - } - return nil -} - -func (p *Project) toProjectFieldValue(s schema.ProjectV2ItemFieldValue) *ProjectFieldValue { - switch sv := s.Interface.(type) { - case *schema.ProjectV2ItemFieldDateValue: - return &ProjectFieldValue{ - Kind: "date", - CreatedAt: toTime(sv.CreatedAt), - DatabaseID: sv.DatabaseId, - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - ID: string(sv.Id), - UpdatedAt: toTime(sv.UpdatedAt), - Date: toDate(sv.Date), - } - case *schema.ProjectV2ItemFieldIterationValue: - return &ProjectFieldValue{ - Kind: "iteration", - CreatedAt: toTime(sv.CreatedAt), - DatabaseID: sv.DatabaseId, - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - ID: string(sv.Id), - UpdatedAt: toTime(sv.UpdatedAt), - } - case *schema.ProjectV2ItemFieldLabelValue: - return &ProjectFieldValue{ - Kind: "label", - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - } - case *schema.ProjectV2ItemFieldMilestoneValue: - return &ProjectFieldValue{ - Kind: "milestone", - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - } - case *schema.ProjectV2ItemFieldNumberValue: - return &ProjectFieldValue{ - Kind: "number", - CreatedAt: toTime(sv.CreatedAt), - DatabaseID: sv.DatabaseId, - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - ID: string(sv.Id), - UpdatedAt: toTime(sv.UpdatedAt), - } - case *schema.ProjectV2ItemFieldPullRequestValue: - return &ProjectFieldValue{ - Kind: "pr", - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - } - case *schema.ProjectV2ItemFieldRepositoryValue: - return &ProjectFieldValue{ - Kind: "repo", - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - } - case *schema.ProjectV2ItemFieldReviewerValue: - return &ProjectFieldValue{ - Kind: "reviewer", - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - } - case *schema.ProjectV2ItemFieldSingleSelectValue: - return &ProjectFieldValue{ - Kind: "select", - CreatedAt: toTime(sv.CreatedAt), - DatabaseID: sv.DatabaseId, - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - ID: string(sv.Id), - UpdatedAt: toTime(sv.UpdatedAt), - - Option: p.optionByID(sv.OptionId), - } - case *schema.ProjectV2ItemFieldTextValue: - return &ProjectFieldValue{ - Kind: "text", - CreatedAt: toTime(sv.CreatedAt), - DatabaseID: sv.DatabaseId, - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - ID: string(sv.Id), - UpdatedAt: toTime(sv.UpdatedAt), - Text: sv.Text, - } - case *schema.ProjectV2ItemFieldUserValue: - return &ProjectFieldValue{ - Kind: "user", - Field: sv.Field.Interface.(schema.ProjectV2FieldCommon_Interface).GetName(), - } - } - return &ProjectFieldValue{} -} blob - 9fc3deb80ce9819f276dbcc62c8585df690ecb1a (mode 644) blob + /dev/null --- schema/doc.go +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package schema is Go data structures corresponding to the GitHub GraphQL schema. -// -// It is generated by generate.go. -package schema blob - eb7354e296b4a6c73842429cbbe4f51016cf19ed (mode 644) blob + /dev/null --- schema/generate.go +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build ignore - -// go run generate.go downloads the latest GraphQL schema from GitHub -// and generates corresponding Go data structures in schema.go. -package main - -import ( - "bytes" - "encoding/json" - "log" - "os" - "os/exec" - "sort" - "strings" - "text/template" - "unicode" - "unicode/utf8" - - "rsc.io/github/internal/graphql" - "rsc.io/tmplfunc" -) - -func main() { - log.SetFlags(log.Lshortfile) - data, err := os.ReadFile("schema.js") - if err != nil { - c, err := graphql.Dial() - if err != nil { - log.Fatal(err) - } - - type schema struct { - Types []Type `json:"types"` - } - var reply any - err = c.GraphQL("schema", nil, &reply) - if err != nil { - log.Fatal(err) - } - js, err := json.MarshalIndent(reply, "", "\t") - if err != nil { - log.Fatal(err) - } - js = append(js, '\n') - if err := os.WriteFile("schema.js", js, 0666); err != nil { - log.Fatal(err) - } - data = js - } - var x struct { - Schema *Schema `json:"__schema"` - } - if err := json.Unmarshal(data, &x); err != nil { - log.Fatal(err) - } - - tmpl := template.New("") - tmpl.Funcs(template.FuncMap{ - "registerType": registerType, - "link": link, - "strings": func() stringsPkg { return stringsPkg{} }, - "upper": upper, - }) - if err := tmplfunc.ParseFiles(tmpl, "schema.tmpl"); err != nil { - log.Fatal(err) - } - var b bytes.Buffer - if err := tmpl.ExecuteTemplate(&b, "main", x.Schema); err != nil { - log.Fatal(err) - } - - if err := os.WriteFile("schema.go", b.Bytes(), 0666); err != nil { - log.Fatal(err) - } - out, err := exec.Command("gofmt", "-w", "schema.go").CombinedOutput() - if err != nil { - log.Fatalf("gofmt schema.go: %v\n%s", err, out) - } -} - -type stringsPkg struct{} - -func (stringsPkg) ReplaceAll(s, old, new string) string { - return strings.ReplaceAll(s, old, new) -} - -func (stringsPkg) TrimSuffix(s, suffix string) string { - return strings.TrimSuffix(s, suffix) -} - -var types []string - -func registerType(name string) string { - types = append(types, name) - return "" -} - -func upper(s string) string { - r, size := utf8.DecodeRuneInString(s) - return string(unicode.ToUpper(r)) + s[size:] -} - -var docReplacer *strings.Replacer - -func link(text string) string { - if docReplacer == nil { - sort.Strings(types) - sort.SliceStable(types, func(i, j int) bool { - return len(types[i]) > len(types[j]) - }) - var args []string - for _, typ := range types { - args = append(args, typ, "["+typ+"]") - } - docReplacer = strings.NewReplacer(args...) - } - return docReplacer.Replace(text) -} - -type Directive struct { - Name string `json:"name"` - Args []*InputValue `json:"args"` - Description string `json:"description,omitempty"` - Locations []*DirectiveLocation `json:"locations,omitempty"` -} - -type DirectiveLocation string // an enum - -type EnumValue struct { - Name string `json:"name,omitempty"` - Description string `json:"description,omitempty"` - DeprecationReason string `json:"deprecationReason,omitempty"` - IsDeprecated bool `json:"isDeprecated,omitempty"` -} - -type Field struct { - Name string `json:"name,omitempty"` - Description string `json:"description,omitempty"` - Args []*InputValue `json:"args,omitempty"` - DeprecationReason string `json:"deprecationReason,omitempty"` - IsDeprecated bool `json:"isDeprecated,omitempty"` - Type *ShortType `json:"type,omitempty"` -} - -type InputValue struct { - Name string `json:"name,omitempty"` - Description string `json:"description,omitempty"` - DefaultValue any `json:"defaultValue,omitempty"` - DeprecationReason string `json:"deprecationReason,omitempty"` - IsDeprecated bool `json:"isDeprecated,omitempty"` - Type *ShortType `json:"type,omitempty"` -} - -type Schema struct { - Directives []*Directive `json:"directives,omitempty"` - MutationType *ShortType `json:"mutationType,omitempty"` - QueryType *ShortType `json:"queryType,omitempty"` - SubscriptionType *ShortType `json:"subscriptionType,omitempty"` - Types []*Type `json:"types,omitempty"` -} - -type Type struct { - Name string `json:"name,omitempty"` - Description string `json:"description,omitempty"` - EnumValues []*EnumValue `json:"enumValues,omitempty"` - Fields []*Field `json:"fields,omitempty"` - InputFields []*InputValue `json:"inputFields,omitempty"` - Interfaces []*ShortType `json:"interfaces,omitempty"` - Kind string `json:"kind,omitempty"` - OfType *ShortType `json:"ofType,omitempty"` - PossibleTypes []*ShortType `json:"possibleTypes,omitempty"` -} - -type TypeKind string // an enum - -type ShortType struct { - Name string `json:"name,omitempty"` - Kind string `json:"kind,omitempty"` - OfType *ShortType `json:"ofType,omitempty"` -} - -const query = ` -query { - __schema { - directives { - args ` + inputValue + ` - description - name - locations - } - mutationType ` + shortType + ` - queryType ` + shortType + ` - subscriptionType ` + shortType + ` - types { - description - enumValues { - deprecationReason - description - isDeprecated - name - } - fields { - args ` + inputValue + ` - deprecationReason - description - isDeprecated - name - type ` + shortType + ` - } - inputFields ` + inputValue + ` - interfaces ` + shortType + ` - kind - name - ofType ` + shortType + ` - possibleTypes ` + shortType + ` - } - } -} -` - -const inputValue = ` -{ - defaultValue - deprecationReason - isDeprecated - description - name - type ` + shortType + ` -} -` - -const shortType = ` -{ - name - kind - ofType { - name - kind - ofType { - name - kind - ofType { - name - kind - } - } - } -} -` blob - b189f49a1a3708383f23676357fa7cb6da75998f (mode 644) blob + /dev/null --- schema/schema.go +++ /dev/null @@ -1,44081 +0,0 @@ -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package schema - -import ( - "encoding/json" - "fmt" - "html/template" -) - -var ( - _ = template.Must - _ = fmt.Sprint - _ = json.Marshal -) - -// AbortQueuedMigrationsInput (INPUT_OBJECT): Autogenerated input type of AbortQueuedMigrations. -type AbortQueuedMigrationsInput struct { - // OwnerId: The ID of the organization that is running the migrations. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AbortQueuedMigrationsPayload (OBJECT): Autogenerated return type of AbortQueuedMigrations. -type AbortQueuedMigrationsPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Success: Did the operation succeed?. - Success bool `json:"success,omitempty"` -} - -func (x *AbortQueuedMigrationsPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AbortQueuedMigrationsPayload) GetSuccess() bool { return x.Success } - -// AcceptEnterpriseAdministratorInvitationInput (INPUT_OBJECT): Autogenerated input type of AcceptEnterpriseAdministratorInvitation. -type AcceptEnterpriseAdministratorInvitationInput struct { - // InvitationId: The id of the invitation being accepted. - // - // GraphQL type: ID! - InvitationId ID `json:"invitationId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AcceptEnterpriseAdministratorInvitationPayload (OBJECT): Autogenerated return type of AcceptEnterpriseAdministratorInvitation. -type AcceptEnterpriseAdministratorInvitationPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Invitation: The invitation that was accepted. - Invitation *EnterpriseAdministratorInvitation `json:"invitation,omitempty"` - - // Message: A message confirming the result of accepting an administrator invitation. - Message string `json:"message,omitempty"` -} - -func (x *AcceptEnterpriseAdministratorInvitationPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *AcceptEnterpriseAdministratorInvitationPayload) GetInvitation() *EnterpriseAdministratorInvitation { - return x.Invitation -} -func (x *AcceptEnterpriseAdministratorInvitationPayload) GetMessage() string { return x.Message } - -// AcceptTopicSuggestionInput (INPUT_OBJECT): Autogenerated input type of AcceptTopicSuggestion. -type AcceptTopicSuggestionInput struct { - // RepositoryId: The Node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Name: The name of the suggested topic. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AcceptTopicSuggestionPayload (OBJECT): Autogenerated return type of AcceptTopicSuggestion. -type AcceptTopicSuggestionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Topic: The accepted topic. - Topic *Topic `json:"topic,omitempty"` -} - -func (x *AcceptTopicSuggestionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AcceptTopicSuggestionPayload) GetTopic() *Topic { return x.Topic } - -// Actor (INTERFACE): Represents an object which can take actions on GitHub. Typically a User or Bot. -// Actor_Interface: Represents an object which can take actions on GitHub. Typically a User or Bot. -// -// Possible types: -// -// - *Bot -// - *EnterpriseUserAccount -// - *Mannequin -// - *Organization -// - *User -type Actor_Interface interface { - isActor() - GetAvatarUrl() URI - GetLogin() string - GetResourcePath() URI - GetUrl() URI -} - -func (*Bot) isActor() {} -func (*EnterpriseUserAccount) isActor() {} -func (*Mannequin) isActor() {} -func (*Organization) isActor() {} -func (*User) isActor() {} - -type Actor struct { - Interface Actor_Interface -} - -func (x *Actor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Actor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Actor", info.Typename) - case "": - x.Interface = nil - return nil - case "Bot": - x.Interface = new(Bot) - case "EnterpriseUserAccount": - x.Interface = new(EnterpriseUserAccount) - case "Mannequin": - x.Interface = new(Mannequin) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// ActorLocation (OBJECT): Location information for an actor. -type ActorLocation struct { - // City: City. - City string `json:"city,omitempty"` - - // Country: Country name. - Country string `json:"country,omitempty"` - - // CountryCode: Country code. - CountryCode string `json:"countryCode,omitempty"` - - // Region: Region name. - Region string `json:"region,omitempty"` - - // RegionCode: Region or state code. - RegionCode string `json:"regionCode,omitempty"` -} - -func (x *ActorLocation) GetCity() string { return x.City } -func (x *ActorLocation) GetCountry() string { return x.Country } -func (x *ActorLocation) GetCountryCode() string { return x.CountryCode } -func (x *ActorLocation) GetRegion() string { return x.Region } -func (x *ActorLocation) GetRegionCode() string { return x.RegionCode } - -// ActorType (ENUM): The actor's type. -type ActorType string - -// ActorType_USER: Indicates a user actor. -const ActorType_USER ActorType = "USER" - -// ActorType_TEAM: Indicates a team actor. -const ActorType_TEAM ActorType = "TEAM" - -// AddAssigneesToAssignableInput (INPUT_OBJECT): Autogenerated input type of AddAssigneesToAssignable. -type AddAssigneesToAssignableInput struct { - // AssignableId: The id of the assignable object to add assignees to. - // - // GraphQL type: ID! - AssignableId ID `json:"assignableId,omitempty"` - - // AssigneeIds: The id of users to add as assignees. - // - // GraphQL type: [ID!]! - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddAssigneesToAssignablePayload (OBJECT): Autogenerated return type of AddAssigneesToAssignable. -type AddAssigneesToAssignablePayload struct { - // Assignable: The item that was assigned. - Assignable Assignable `json:"assignable,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *AddAssigneesToAssignablePayload) GetAssignable() Assignable { return x.Assignable } -func (x *AddAssigneesToAssignablePayload) GetClientMutationId() string { return x.ClientMutationId } - -// AddCommentInput (INPUT_OBJECT): Autogenerated input type of AddComment. -type AddCommentInput struct { - // SubjectId: The Node ID of the subject to modify. - // - // GraphQL type: ID! - SubjectId ID `json:"subjectId,omitempty"` - - // Body: The contents of the comment. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddCommentPayload (OBJECT): Autogenerated return type of AddComment. -type AddCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // CommentEdge: The edge from the subject's comment connection. - CommentEdge *IssueCommentEdge `json:"commentEdge,omitempty"` - - // Subject: The subject. - Subject Node `json:"subject,omitempty"` - - // TimelineEdge: The edge from the subject's timeline connection. - TimelineEdge *IssueTimelineItemEdge `json:"timelineEdge,omitempty"` -} - -func (x *AddCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddCommentPayload) GetCommentEdge() *IssueCommentEdge { return x.CommentEdge } -func (x *AddCommentPayload) GetSubject() Node { return x.Subject } -func (x *AddCommentPayload) GetTimelineEdge() *IssueTimelineItemEdge { return x.TimelineEdge } - -// AddDiscussionCommentInput (INPUT_OBJECT): Autogenerated input type of AddDiscussionComment. -type AddDiscussionCommentInput struct { - // DiscussionId: The Node ID of the discussion to comment on. - // - // GraphQL type: ID! - DiscussionId ID `json:"discussionId,omitempty"` - - // ReplyToId: The Node ID of the discussion comment within this discussion to reply to. - // - // GraphQL type: ID - ReplyToId ID `json:"replyToId,omitempty"` - - // Body: The contents of the comment. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddDiscussionCommentPayload (OBJECT): Autogenerated return type of AddDiscussionComment. -type AddDiscussionCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Comment: The newly created discussion comment. - Comment *DiscussionComment `json:"comment,omitempty"` -} - -func (x *AddDiscussionCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddDiscussionCommentPayload) GetComment() *DiscussionComment { return x.Comment } - -// AddDiscussionPollVoteInput (INPUT_OBJECT): Autogenerated input type of AddDiscussionPollVote. -type AddDiscussionPollVoteInput struct { - // PollOptionId: The Node ID of the discussion poll option to vote for. - // - // GraphQL type: ID! - PollOptionId ID `json:"pollOptionId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddDiscussionPollVotePayload (OBJECT): Autogenerated return type of AddDiscussionPollVote. -type AddDiscussionPollVotePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PollOption: The poll option that a vote was added to. - PollOption *DiscussionPollOption `json:"pollOption,omitempty"` -} - -func (x *AddDiscussionPollVotePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddDiscussionPollVotePayload) GetPollOption() *DiscussionPollOption { return x.PollOption } - -// AddEnterpriseSupportEntitlementInput (INPUT_OBJECT): Autogenerated input type of AddEnterpriseSupportEntitlement. -type AddEnterpriseSupportEntitlementInput struct { - // EnterpriseId: The ID of the Enterprise which the admin belongs to. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Login: The login of a member who will receive the support entitlement. - // - // GraphQL type: String! - Login string `json:"login,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddEnterpriseSupportEntitlementPayload (OBJECT): Autogenerated return type of AddEnterpriseSupportEntitlement. -type AddEnterpriseSupportEntitlementPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Message: A message confirming the result of adding the support entitlement. - Message string `json:"message,omitempty"` -} - -func (x *AddEnterpriseSupportEntitlementPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *AddEnterpriseSupportEntitlementPayload) GetMessage() string { return x.Message } - -// AddLabelsToLabelableInput (INPUT_OBJECT): Autogenerated input type of AddLabelsToLabelable. -type AddLabelsToLabelableInput struct { - // LabelableId: The id of the labelable object to add labels to. - // - // GraphQL type: ID! - LabelableId ID `json:"labelableId,omitempty"` - - // LabelIds: The ids of the labels to add. - // - // GraphQL type: [ID!]! - LabelIds []ID `json:"labelIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddLabelsToLabelablePayload (OBJECT): Autogenerated return type of AddLabelsToLabelable. -type AddLabelsToLabelablePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Labelable: The item that was labeled. - Labelable Labelable `json:"labelable,omitempty"` -} - -func (x *AddLabelsToLabelablePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddLabelsToLabelablePayload) GetLabelable() Labelable { return x.Labelable } - -// AddProjectCardInput (INPUT_OBJECT): Autogenerated input type of AddProjectCard. -type AddProjectCardInput struct { - // ProjectColumnId: The Node ID of the ProjectColumn. - // - // GraphQL type: ID! - ProjectColumnId ID `json:"projectColumnId,omitempty"` - - // ContentId: The content of the card. Must be a member of the ProjectCardItem union. - // - // GraphQL type: ID - ContentId ID `json:"contentId,omitempty"` - - // Note: The note on the card. - // - // GraphQL type: String - Note string `json:"note,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddProjectCardPayload (OBJECT): Autogenerated return type of AddProjectCard. -type AddProjectCardPayload struct { - // CardEdge: The edge from the ProjectColumn's card connection. - CardEdge *ProjectCardEdge `json:"cardEdge,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectColumn: The ProjectColumn. - ProjectColumn *ProjectColumn `json:"projectColumn,omitempty"` -} - -func (x *AddProjectCardPayload) GetCardEdge() *ProjectCardEdge { return x.CardEdge } -func (x *AddProjectCardPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddProjectCardPayload) GetProjectColumn() *ProjectColumn { return x.ProjectColumn } - -// AddProjectColumnInput (INPUT_OBJECT): Autogenerated input type of AddProjectColumn. -type AddProjectColumnInput struct { - // ProjectId: The Node ID of the project. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // Name: The name of the column. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddProjectColumnPayload (OBJECT): Autogenerated return type of AddProjectColumn. -type AddProjectColumnPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ColumnEdge: The edge from the project's column connection. - ColumnEdge *ProjectColumnEdge `json:"columnEdge,omitempty"` - - // Project: The project. - Project *Project `json:"project,omitempty"` -} - -func (x *AddProjectColumnPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddProjectColumnPayload) GetColumnEdge() *ProjectColumnEdge { return x.ColumnEdge } -func (x *AddProjectColumnPayload) GetProject() *Project { return x.Project } - -// AddProjectDraftIssueInput (INPUT_OBJECT): Autogenerated input type of AddProjectDraftIssue. -type AddProjectDraftIssueInput struct { - // ProjectId: The ID of the Project to add the draft issue to. This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: ID - ProjectId ID `json:"projectId,omitempty"` - - // Title: The title of the draft issue. This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `title` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Body: The body of the draft issue. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `body` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // AssigneeIds: The IDs of the assignees of the draft issue. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `assigneeIds` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: [ID!] - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddProjectDraftIssuePayload (OBJECT): Autogenerated return type of AddProjectDraftIssue. -type AddProjectDraftIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectNextItem: The draft issue added to the project. - // - // Deprecated: The draft issue added to the project. - ProjectNextItem *ProjectNextItem `json:"projectNextItem,omitempty"` -} - -func (x *AddProjectDraftIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddProjectDraftIssuePayload) GetProjectNextItem() *ProjectNextItem { return x.ProjectNextItem } - -// AddProjectNextItemInput (INPUT_OBJECT): Autogenerated input type of AddProjectNextItem. -type AddProjectNextItemInput struct { - // ProjectId: The ID of the Project to add the item to. This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: ID - ProjectId ID `json:"projectId,omitempty"` - - // ContentId: The content id of the item (Issue or PullRequest). This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `contentId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: ID - ContentId ID `json:"contentId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddProjectNextItemPayload (OBJECT): Autogenerated return type of AddProjectNextItem. -type AddProjectNextItemPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectNextItem: The item added to the project. - // - // Deprecated: The item added to the project. - ProjectNextItem *ProjectNextItem `json:"projectNextItem,omitempty"` -} - -func (x *AddProjectNextItemPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddProjectNextItemPayload) GetProjectNextItem() *ProjectNextItem { return x.ProjectNextItem } - -// AddProjectV2DraftIssueInput (INPUT_OBJECT): Autogenerated input type of AddProjectV2DraftIssue. -type AddProjectV2DraftIssueInput struct { - // ProjectId: The ID of the Project to add the draft issue to. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // Title: The title of the draft issue. - // - // GraphQL type: String! - Title string `json:"title,omitempty"` - - // Body: The body of the draft issue. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // AssigneeIds: The IDs of the assignees of the draft issue. - // - // GraphQL type: [ID!] - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddProjectV2DraftIssuePayload (OBJECT): Autogenerated return type of AddProjectV2DraftIssue. -type AddProjectV2DraftIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectItem: The draft issue added to the project. - ProjectItem *ProjectV2Item `json:"projectItem,omitempty"` -} - -func (x *AddProjectV2DraftIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddProjectV2DraftIssuePayload) GetProjectItem() *ProjectV2Item { return x.ProjectItem } - -// AddProjectV2ItemByIdInput (INPUT_OBJECT): Autogenerated input type of AddProjectV2ItemById. -type AddProjectV2ItemByIdInput struct { - // ProjectId: The ID of the Project to add the item to. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // ContentId: The id of the Issue or Pull Request to add. - // - // GraphQL type: ID! - ContentId ID `json:"contentId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddProjectV2ItemByIdPayload (OBJECT): Autogenerated return type of AddProjectV2ItemById. -type AddProjectV2ItemByIdPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Item: The item added to the project. - Item *ProjectV2Item `json:"item,omitempty"` -} - -func (x *AddProjectV2ItemByIdPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddProjectV2ItemByIdPayload) GetItem() *ProjectV2Item { return x.Item } - -// AddPullRequestReviewCommentInput (INPUT_OBJECT): Autogenerated input type of AddPullRequestReviewComment. -type AddPullRequestReviewCommentInput struct { - // PullRequestId: The node ID of the pull request reviewing. - // - // GraphQL type: ID - PullRequestId ID `json:"pullRequestId,omitempty"` - - // PullRequestReviewId: The Node ID of the review to modify. - // - // GraphQL type: ID - PullRequestReviewId ID `json:"pullRequestReviewId,omitempty"` - - // CommitOID: The SHA of the commit to comment on. - // - // GraphQL type: GitObjectID - CommitOID GitObjectID `json:"commitOID,omitempty"` - - // Body: The text of the comment. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // Path: The relative path of the file to comment on. - // - // GraphQL type: String - Path string `json:"path,omitempty"` - - // Position: The line index in the diff to comment on. - // - // GraphQL type: Int - Position int `json:"position,omitempty"` - - // InReplyTo: The comment id to reply to. - // - // GraphQL type: ID - InReplyTo ID `json:"inReplyTo,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddPullRequestReviewCommentPayload (OBJECT): Autogenerated return type of AddPullRequestReviewComment. -type AddPullRequestReviewCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Comment: The newly created comment. - Comment *PullRequestReviewComment `json:"comment,omitempty"` - - // CommentEdge: The edge from the review's comment connection. - CommentEdge *PullRequestReviewCommentEdge `json:"commentEdge,omitempty"` -} - -func (x *AddPullRequestReviewCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddPullRequestReviewCommentPayload) GetComment() *PullRequestReviewComment { return x.Comment } -func (x *AddPullRequestReviewCommentPayload) GetCommentEdge() *PullRequestReviewCommentEdge { - return x.CommentEdge -} - -// AddPullRequestReviewInput (INPUT_OBJECT): Autogenerated input type of AddPullRequestReview. -type AddPullRequestReviewInput struct { - // PullRequestId: The Node ID of the pull request to modify. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // CommitOID: The commit OID the review pertains to. - // - // GraphQL type: GitObjectID - CommitOID GitObjectID `json:"commitOID,omitempty"` - - // Body: The contents of the review body comment. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // Event: The event to perform on the pull request review. - // - // GraphQL type: PullRequestReviewEvent - Event PullRequestReviewEvent `json:"event,omitempty"` - - // Comments: The review line comments. - // - // GraphQL type: [DraftPullRequestReviewComment] - Comments []*DraftPullRequestReviewComment `json:"comments,omitempty"` - - // Threads: The review line comment threads. - // - // GraphQL type: [DraftPullRequestReviewThread] - Threads []*DraftPullRequestReviewThread `json:"threads,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddPullRequestReviewPayload (OBJECT): Autogenerated return type of AddPullRequestReview. -type AddPullRequestReviewPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequestReview: The newly created pull request review. - PullRequestReview *PullRequestReview `json:"pullRequestReview,omitempty"` - - // ReviewEdge: The edge from the pull request's review connection. - ReviewEdge *PullRequestReviewEdge `json:"reviewEdge,omitempty"` -} - -func (x *AddPullRequestReviewPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddPullRequestReviewPayload) GetPullRequestReview() *PullRequestReview { - return x.PullRequestReview -} -func (x *AddPullRequestReviewPayload) GetReviewEdge() *PullRequestReviewEdge { return x.ReviewEdge } - -// AddPullRequestReviewThreadInput (INPUT_OBJECT): Autogenerated input type of AddPullRequestReviewThread. -type AddPullRequestReviewThreadInput struct { - // Path: Path to the file being commented on. - // - // GraphQL type: String! - Path string `json:"path,omitempty"` - - // Body: Body of the thread's first comment. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // PullRequestId: The node ID of the pull request reviewing. - // - // GraphQL type: ID - PullRequestId ID `json:"pullRequestId,omitempty"` - - // PullRequestReviewId: The Node ID of the review to modify. - // - // GraphQL type: ID - PullRequestReviewId ID `json:"pullRequestReviewId,omitempty"` - - // Line: The line of the blob to which the thread refers. The end of the line range for multi-line comments. - // - // GraphQL type: Int! - Line int `json:"line,omitempty"` - - // Side: The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. - // - // GraphQL type: DiffSide - Side DiffSide `json:"side,omitempty"` - - // StartLine: The first line of the range to which the comment refers. - // - // GraphQL type: Int - StartLine int `json:"startLine,omitempty"` - - // StartSide: The side of the diff on which the start line resides. - // - // GraphQL type: DiffSide - StartSide DiffSide `json:"startSide,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddPullRequestReviewThreadPayload (OBJECT): Autogenerated return type of AddPullRequestReviewThread. -type AddPullRequestReviewThreadPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Thread: The newly created thread. - Thread *PullRequestReviewThread `json:"thread,omitempty"` -} - -func (x *AddPullRequestReviewThreadPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddPullRequestReviewThreadPayload) GetThread() *PullRequestReviewThread { return x.Thread } - -// AddReactionInput (INPUT_OBJECT): Autogenerated input type of AddReaction. -type AddReactionInput struct { - // SubjectId: The Node ID of the subject to modify. - // - // GraphQL type: ID! - SubjectId ID `json:"subjectId,omitempty"` - - // Content: The name of the emoji to react with. - // - // GraphQL type: ReactionContent! - Content ReactionContent `json:"content,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddReactionPayload (OBJECT): Autogenerated return type of AddReaction. -type AddReactionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Reaction: The reaction object. - Reaction *Reaction `json:"reaction,omitempty"` - - // Subject: The reactable subject. - Subject Reactable `json:"subject,omitempty"` -} - -func (x *AddReactionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddReactionPayload) GetReaction() *Reaction { return x.Reaction } -func (x *AddReactionPayload) GetSubject() Reactable { return x.Subject } - -// AddStarInput (INPUT_OBJECT): Autogenerated input type of AddStar. -type AddStarInput struct { - // StarrableId: The Starrable ID to star. - // - // GraphQL type: ID! - StarrableId ID `json:"starrableId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddStarPayload (OBJECT): Autogenerated return type of AddStar. -type AddStarPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Starrable: The starrable. - Starrable Starrable `json:"starrable,omitempty"` -} - -func (x *AddStarPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddStarPayload) GetStarrable() Starrable { return x.Starrable } - -// AddUpvoteInput (INPUT_OBJECT): Autogenerated input type of AddUpvote. -type AddUpvoteInput struct { - // SubjectId: The Node ID of the discussion or comment to upvote. - // - // GraphQL type: ID! - SubjectId ID `json:"subjectId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddUpvotePayload (OBJECT): Autogenerated return type of AddUpvote. -type AddUpvotePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Subject: The votable subject. - Subject Votable `json:"subject,omitempty"` -} - -func (x *AddUpvotePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddUpvotePayload) GetSubject() Votable { return x.Subject } - -// AddVerifiableDomainInput (INPUT_OBJECT): Autogenerated input type of AddVerifiableDomain. -type AddVerifiableDomainInput struct { - // OwnerId: The ID of the owner to add the domain to. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // Domain: The URL of the domain. - // - // GraphQL type: URI! - Domain URI `json:"domain,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// AddVerifiableDomainPayload (OBJECT): Autogenerated return type of AddVerifiableDomain. -type AddVerifiableDomainPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Domain: The verifiable domain that was added. - Domain *VerifiableDomain `json:"domain,omitempty"` -} - -func (x *AddVerifiableDomainPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *AddVerifiableDomainPayload) GetDomain() *VerifiableDomain { return x.Domain } - -// AddedToProjectEvent (OBJECT): Represents a 'added_to_project' event on a given issue or pull request. -type AddedToProjectEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Project: Project referenced by event. - Project *Project `json:"project,omitempty"` - - // ProjectCard: Project card referenced by this project event. - ProjectCard *ProjectCard `json:"projectCard,omitempty"` - - // ProjectColumnName: Column name referenced by this project event. - ProjectColumnName string `json:"projectColumnName,omitempty"` -} - -func (x *AddedToProjectEvent) GetActor() Actor { return x.Actor } -func (x *AddedToProjectEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *AddedToProjectEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *AddedToProjectEvent) GetId() ID { return x.Id } -func (x *AddedToProjectEvent) GetProject() *Project { return x.Project } -func (x *AddedToProjectEvent) GetProjectCard() *ProjectCard { return x.ProjectCard } -func (x *AddedToProjectEvent) GetProjectColumnName() string { return x.ProjectColumnName } - -// App (OBJECT): A GitHub App. -type App struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Description: The description of the app. - Description string `json:"description,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IpAllowListEntries: The IP addresses of the app. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy IpAllowListEntryOrder - IpAllowListEntries *IpAllowListEntryConnection `json:"ipAllowListEntries,omitempty"` - - // LogoBackgroundColor: The hex color code, without the leading '#', for the logo background. - LogoBackgroundColor string `json:"logoBackgroundColor,omitempty"` - - // LogoUrl: A URL pointing to the app's logo. - // - // Query arguments: - // - size Int - LogoUrl URI `json:"logoUrl,omitempty"` - - // Name: The name of the app. - Name string `json:"name,omitempty"` - - // Slug: A slug based on the name of the app for use in URLs. - Slug string `json:"slug,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The URL to the app's homepage. - Url URI `json:"url,omitempty"` -} - -func (x *App) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *App) GetDatabaseId() int { return x.DatabaseId } -func (x *App) GetDescription() string { return x.Description } -func (x *App) GetId() ID { return x.Id } -func (x *App) GetIpAllowListEntries() *IpAllowListEntryConnection { return x.IpAllowListEntries } -func (x *App) GetLogoBackgroundColor() string { return x.LogoBackgroundColor } -func (x *App) GetLogoUrl() URI { return x.LogoUrl } -func (x *App) GetName() string { return x.Name } -func (x *App) GetSlug() string { return x.Slug } -func (x *App) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *App) GetUrl() URI { return x.Url } - -// ApproveDeploymentsInput (INPUT_OBJECT): Autogenerated input type of ApproveDeployments. -type ApproveDeploymentsInput struct { - // WorkflowRunId: The node ID of the workflow run containing the pending deployments. - // - // GraphQL type: ID! - WorkflowRunId ID `json:"workflowRunId,omitempty"` - - // EnvironmentIds: The ids of environments to reject deployments. - // - // GraphQL type: [ID!]! - EnvironmentIds []ID `json:"environmentIds,omitempty"` - - // Comment: Optional comment for approving deployments. - // - // GraphQL type: String - Comment string `json:"comment,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ApproveDeploymentsPayload (OBJECT): Autogenerated return type of ApproveDeployments. -type ApproveDeploymentsPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Deployments: The affected deployments. - Deployments []*Deployment `json:"deployments,omitempty"` -} - -func (x *ApproveDeploymentsPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ApproveDeploymentsPayload) GetDeployments() []*Deployment { return x.Deployments } - -// ApproveVerifiableDomainInput (INPUT_OBJECT): Autogenerated input type of ApproveVerifiableDomain. -type ApproveVerifiableDomainInput struct { - // Id: The ID of the verifiable domain to approve. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ApproveVerifiableDomainPayload (OBJECT): Autogenerated return type of ApproveVerifiableDomain. -type ApproveVerifiableDomainPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Domain: The verifiable domain that was approved. - Domain *VerifiableDomain `json:"domain,omitempty"` -} - -func (x *ApproveVerifiableDomainPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ApproveVerifiableDomainPayload) GetDomain() *VerifiableDomain { return x.Domain } - -// ArchiveRepositoryInput (INPUT_OBJECT): Autogenerated input type of ArchiveRepository. -type ArchiveRepositoryInput struct { - // RepositoryId: The ID of the repository to mark as archived. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ArchiveRepositoryPayload (OBJECT): Autogenerated return type of ArchiveRepository. -type ArchiveRepositoryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The repository that was marked as archived. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *ArchiveRepositoryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ArchiveRepositoryPayload) GetRepository() *Repository { return x.Repository } - -// Assignable (INTERFACE): An object that can have users assigned to it. -// Assignable_Interface: An object that can have users assigned to it. -// -// Possible types: -// -// - *Issue -// - *PullRequest -type Assignable_Interface interface { - isAssignable() - GetAssignees() *UserConnection -} - -func (*Issue) isAssignable() {} -func (*PullRequest) isAssignable() {} - -type Assignable struct { - Interface Assignable_Interface -} - -func (x *Assignable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Assignable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Assignable", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// AssignedEvent (OBJECT): Represents an 'assigned' event on any assignable object. -type AssignedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // Assignable: Identifies the assignable associated with the event. - Assignable Assignable `json:"assignable,omitempty"` - - // Assignee: Identifies the user or mannequin that was assigned. - Assignee Assignee `json:"assignee,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // User: Identifies the user who was assigned. - // - // Deprecated: Identifies the user who was assigned. - User *User `json:"user,omitempty"` -} - -func (x *AssignedEvent) GetActor() Actor { return x.Actor } -func (x *AssignedEvent) GetAssignable() Assignable { return x.Assignable } -func (x *AssignedEvent) GetAssignee() Assignee { return x.Assignee } -func (x *AssignedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *AssignedEvent) GetId() ID { return x.Id } -func (x *AssignedEvent) GetUser() *User { return x.User } - -// Assignee (UNION): Types that can be assigned to issues. -// Assignee_Interface: Types that can be assigned to issues. -// -// Possible types: -// -// - *Bot -// - *Mannequin -// - *Organization -// - *User -type Assignee_Interface interface { - isAssignee() -} - -func (*Bot) isAssignee() {} -func (*Mannequin) isAssignee() {} -func (*Organization) isAssignee() {} -func (*User) isAssignee() {} - -type Assignee struct { - Interface Assignee_Interface -} - -func (x *Assignee) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Assignee) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Assignee", info.Typename) - case "Bot": - x.Interface = new(Bot) - case "Mannequin": - x.Interface = new(Mannequin) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// AuditEntry (INTERFACE): An entry in the audit log. -// AuditEntry_Interface: An entry in the audit log. -// -// Possible types: -// -// - *MembersCanDeleteReposClearAuditEntry -// - *MembersCanDeleteReposDisableAuditEntry -// - *MembersCanDeleteReposEnableAuditEntry -// - *OauthApplicationCreateAuditEntry -// - *OrgAddBillingManagerAuditEntry -// - *OrgAddMemberAuditEntry -// - *OrgBlockUserAuditEntry -// - *OrgConfigDisableCollaboratorsOnlyAuditEntry -// - *OrgConfigEnableCollaboratorsOnlyAuditEntry -// - *OrgCreateAuditEntry -// - *OrgDisableOauthAppRestrictionsAuditEntry -// - *OrgDisableSamlAuditEntry -// - *OrgDisableTwoFactorRequirementAuditEntry -// - *OrgEnableOauthAppRestrictionsAuditEntry -// - *OrgEnableSamlAuditEntry -// - *OrgEnableTwoFactorRequirementAuditEntry -// - *OrgInviteMemberAuditEntry -// - *OrgInviteToBusinessAuditEntry -// - *OrgOauthAppAccessApprovedAuditEntry -// - *OrgOauthAppAccessDeniedAuditEntry -// - *OrgOauthAppAccessRequestedAuditEntry -// - *OrgRemoveBillingManagerAuditEntry -// - *OrgRemoveMemberAuditEntry -// - *OrgRemoveOutsideCollaboratorAuditEntry -// - *OrgRestoreMemberAuditEntry -// - *OrgUnblockUserAuditEntry -// - *OrgUpdateDefaultRepositoryPermissionAuditEntry -// - *OrgUpdateMemberAuditEntry -// - *OrgUpdateMemberRepositoryCreationPermissionAuditEntry -// - *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry -// - *PrivateRepositoryForkingDisableAuditEntry -// - *PrivateRepositoryForkingEnableAuditEntry -// - *RepoAccessAuditEntry -// - *RepoAddMemberAuditEntry -// - *RepoAddTopicAuditEntry -// - *RepoArchivedAuditEntry -// - *RepoChangeMergeSettingAuditEntry -// - *RepoConfigDisableAnonymousGitAccessAuditEntry -// - *RepoConfigDisableCollaboratorsOnlyAuditEntry -// - *RepoConfigDisableContributorsOnlyAuditEntry -// - *RepoConfigDisableSockpuppetDisallowedAuditEntry -// - *RepoConfigEnableAnonymousGitAccessAuditEntry -// - *RepoConfigEnableCollaboratorsOnlyAuditEntry -// - *RepoConfigEnableContributorsOnlyAuditEntry -// - *RepoConfigEnableSockpuppetDisallowedAuditEntry -// - *RepoConfigLockAnonymousGitAccessAuditEntry -// - *RepoConfigUnlockAnonymousGitAccessAuditEntry -// - *RepoCreateAuditEntry -// - *RepoDestroyAuditEntry -// - *RepoRemoveMemberAuditEntry -// - *RepoRemoveTopicAuditEntry -// - *RepositoryVisibilityChangeDisableAuditEntry -// - *RepositoryVisibilityChangeEnableAuditEntry -// - *TeamAddMemberAuditEntry -// - *TeamAddRepositoryAuditEntry -// - *TeamChangeParentTeamAuditEntry -// - *TeamRemoveMemberAuditEntry -// - *TeamRemoveRepositoryAuditEntry -type AuditEntry_Interface interface { - isAuditEntry() - GetAction() string - GetActor() AuditEntryActor - GetActorIp() string - GetActorLocation() *ActorLocation - GetActorLogin() string - GetActorResourcePath() URI - GetActorUrl() URI - GetCreatedAt() PreciseDateTime - GetOperationType() OperationType - GetUser() *User - GetUserLogin() string - GetUserResourcePath() URI - GetUserUrl() URI -} - -func (*MembersCanDeleteReposClearAuditEntry) isAuditEntry() {} -func (*MembersCanDeleteReposDisableAuditEntry) isAuditEntry() {} -func (*MembersCanDeleteReposEnableAuditEntry) isAuditEntry() {} -func (*OauthApplicationCreateAuditEntry) isAuditEntry() {} -func (*OrgAddBillingManagerAuditEntry) isAuditEntry() {} -func (*OrgAddMemberAuditEntry) isAuditEntry() {} -func (*OrgBlockUserAuditEntry) isAuditEntry() {} -func (*OrgConfigDisableCollaboratorsOnlyAuditEntry) isAuditEntry() {} -func (*OrgConfigEnableCollaboratorsOnlyAuditEntry) isAuditEntry() {} -func (*OrgCreateAuditEntry) isAuditEntry() {} -func (*OrgDisableOauthAppRestrictionsAuditEntry) isAuditEntry() {} -func (*OrgDisableSamlAuditEntry) isAuditEntry() {} -func (*OrgDisableTwoFactorRequirementAuditEntry) isAuditEntry() {} -func (*OrgEnableOauthAppRestrictionsAuditEntry) isAuditEntry() {} -func (*OrgEnableSamlAuditEntry) isAuditEntry() {} -func (*OrgEnableTwoFactorRequirementAuditEntry) isAuditEntry() {} -func (*OrgInviteMemberAuditEntry) isAuditEntry() {} -func (*OrgInviteToBusinessAuditEntry) isAuditEntry() {} -func (*OrgOauthAppAccessApprovedAuditEntry) isAuditEntry() {} -func (*OrgOauthAppAccessDeniedAuditEntry) isAuditEntry() {} -func (*OrgOauthAppAccessRequestedAuditEntry) isAuditEntry() {} -func (*OrgRemoveBillingManagerAuditEntry) isAuditEntry() {} -func (*OrgRemoveMemberAuditEntry) isAuditEntry() {} -func (*OrgRemoveOutsideCollaboratorAuditEntry) isAuditEntry() {} -func (*OrgRestoreMemberAuditEntry) isAuditEntry() {} -func (*OrgUnblockUserAuditEntry) isAuditEntry() {} -func (*OrgUpdateDefaultRepositoryPermissionAuditEntry) isAuditEntry() {} -func (*OrgUpdateMemberAuditEntry) isAuditEntry() {} -func (*OrgUpdateMemberRepositoryCreationPermissionAuditEntry) isAuditEntry() {} -func (*OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) isAuditEntry() {} -func (*PrivateRepositoryForkingDisableAuditEntry) isAuditEntry() {} -func (*PrivateRepositoryForkingEnableAuditEntry) isAuditEntry() {} -func (*RepoAccessAuditEntry) isAuditEntry() {} -func (*RepoAddMemberAuditEntry) isAuditEntry() {} -func (*RepoAddTopicAuditEntry) isAuditEntry() {} -func (*RepoArchivedAuditEntry) isAuditEntry() {} -func (*RepoChangeMergeSettingAuditEntry) isAuditEntry() {} -func (*RepoConfigDisableAnonymousGitAccessAuditEntry) isAuditEntry() {} -func (*RepoConfigDisableCollaboratorsOnlyAuditEntry) isAuditEntry() {} -func (*RepoConfigDisableContributorsOnlyAuditEntry) isAuditEntry() {} -func (*RepoConfigDisableSockpuppetDisallowedAuditEntry) isAuditEntry() {} -func (*RepoConfigEnableAnonymousGitAccessAuditEntry) isAuditEntry() {} -func (*RepoConfigEnableCollaboratorsOnlyAuditEntry) isAuditEntry() {} -func (*RepoConfigEnableContributorsOnlyAuditEntry) isAuditEntry() {} -func (*RepoConfigEnableSockpuppetDisallowedAuditEntry) isAuditEntry() {} -func (*RepoConfigLockAnonymousGitAccessAuditEntry) isAuditEntry() {} -func (*RepoConfigUnlockAnonymousGitAccessAuditEntry) isAuditEntry() {} -func (*RepoCreateAuditEntry) isAuditEntry() {} -func (*RepoDestroyAuditEntry) isAuditEntry() {} -func (*RepoRemoveMemberAuditEntry) isAuditEntry() {} -func (*RepoRemoveTopicAuditEntry) isAuditEntry() {} -func (*RepositoryVisibilityChangeDisableAuditEntry) isAuditEntry() {} -func (*RepositoryVisibilityChangeEnableAuditEntry) isAuditEntry() {} -func (*TeamAddMemberAuditEntry) isAuditEntry() {} -func (*TeamAddRepositoryAuditEntry) isAuditEntry() {} -func (*TeamChangeParentTeamAuditEntry) isAuditEntry() {} -func (*TeamRemoveMemberAuditEntry) isAuditEntry() {} -func (*TeamRemoveRepositoryAuditEntry) isAuditEntry() {} - -type AuditEntry struct { - Interface AuditEntry_Interface -} - -func (x *AuditEntry) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *AuditEntry) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for AuditEntry", info.Typename) - case "MembersCanDeleteReposClearAuditEntry": - x.Interface = new(MembersCanDeleteReposClearAuditEntry) - case "MembersCanDeleteReposDisableAuditEntry": - x.Interface = new(MembersCanDeleteReposDisableAuditEntry) - case "MembersCanDeleteReposEnableAuditEntry": - x.Interface = new(MembersCanDeleteReposEnableAuditEntry) - case "OauthApplicationCreateAuditEntry": - x.Interface = new(OauthApplicationCreateAuditEntry) - case "OrgAddBillingManagerAuditEntry": - x.Interface = new(OrgAddBillingManagerAuditEntry) - case "OrgAddMemberAuditEntry": - x.Interface = new(OrgAddMemberAuditEntry) - case "OrgBlockUserAuditEntry": - x.Interface = new(OrgBlockUserAuditEntry) - case "OrgConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(OrgConfigDisableCollaboratorsOnlyAuditEntry) - case "OrgConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(OrgConfigEnableCollaboratorsOnlyAuditEntry) - case "OrgCreateAuditEntry": - x.Interface = new(OrgCreateAuditEntry) - case "OrgDisableOauthAppRestrictionsAuditEntry": - x.Interface = new(OrgDisableOauthAppRestrictionsAuditEntry) - case "OrgDisableSamlAuditEntry": - x.Interface = new(OrgDisableSamlAuditEntry) - case "OrgDisableTwoFactorRequirementAuditEntry": - x.Interface = new(OrgDisableTwoFactorRequirementAuditEntry) - case "OrgEnableOauthAppRestrictionsAuditEntry": - x.Interface = new(OrgEnableOauthAppRestrictionsAuditEntry) - case "OrgEnableSamlAuditEntry": - x.Interface = new(OrgEnableSamlAuditEntry) - case "OrgEnableTwoFactorRequirementAuditEntry": - x.Interface = new(OrgEnableTwoFactorRequirementAuditEntry) - case "OrgInviteMemberAuditEntry": - x.Interface = new(OrgInviteMemberAuditEntry) - case "OrgInviteToBusinessAuditEntry": - x.Interface = new(OrgInviteToBusinessAuditEntry) - case "OrgOauthAppAccessApprovedAuditEntry": - x.Interface = new(OrgOauthAppAccessApprovedAuditEntry) - case "OrgOauthAppAccessDeniedAuditEntry": - x.Interface = new(OrgOauthAppAccessDeniedAuditEntry) - case "OrgOauthAppAccessRequestedAuditEntry": - x.Interface = new(OrgOauthAppAccessRequestedAuditEntry) - case "OrgRemoveBillingManagerAuditEntry": - x.Interface = new(OrgRemoveBillingManagerAuditEntry) - case "OrgRemoveMemberAuditEntry": - x.Interface = new(OrgRemoveMemberAuditEntry) - case "OrgRemoveOutsideCollaboratorAuditEntry": - x.Interface = new(OrgRemoveOutsideCollaboratorAuditEntry) - case "OrgRestoreMemberAuditEntry": - x.Interface = new(OrgRestoreMemberAuditEntry) - case "OrgUnblockUserAuditEntry": - x.Interface = new(OrgUnblockUserAuditEntry) - case "OrgUpdateDefaultRepositoryPermissionAuditEntry": - x.Interface = new(OrgUpdateDefaultRepositoryPermissionAuditEntry) - case "OrgUpdateMemberAuditEntry": - x.Interface = new(OrgUpdateMemberAuditEntry) - case "OrgUpdateMemberRepositoryCreationPermissionAuditEntry": - x.Interface = new(OrgUpdateMemberRepositoryCreationPermissionAuditEntry) - case "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry": - x.Interface = new(OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) - case "PrivateRepositoryForkingDisableAuditEntry": - x.Interface = new(PrivateRepositoryForkingDisableAuditEntry) - case "PrivateRepositoryForkingEnableAuditEntry": - x.Interface = new(PrivateRepositoryForkingEnableAuditEntry) - case "RepoAccessAuditEntry": - x.Interface = new(RepoAccessAuditEntry) - case "RepoAddMemberAuditEntry": - x.Interface = new(RepoAddMemberAuditEntry) - case "RepoAddTopicAuditEntry": - x.Interface = new(RepoAddTopicAuditEntry) - case "RepoArchivedAuditEntry": - x.Interface = new(RepoArchivedAuditEntry) - case "RepoChangeMergeSettingAuditEntry": - x.Interface = new(RepoChangeMergeSettingAuditEntry) - case "RepoConfigDisableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigDisableAnonymousGitAccessAuditEntry) - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableCollaboratorsOnlyAuditEntry) - case "RepoConfigDisableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableContributorsOnlyAuditEntry) - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigDisableSockpuppetDisallowedAuditEntry) - case "RepoConfigEnableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigEnableAnonymousGitAccessAuditEntry) - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableCollaboratorsOnlyAuditEntry) - case "RepoConfigEnableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableContributorsOnlyAuditEntry) - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigEnableSockpuppetDisallowedAuditEntry) - case "RepoConfigLockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigLockAnonymousGitAccessAuditEntry) - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigUnlockAnonymousGitAccessAuditEntry) - case "RepoCreateAuditEntry": - x.Interface = new(RepoCreateAuditEntry) - case "RepoDestroyAuditEntry": - x.Interface = new(RepoDestroyAuditEntry) - case "RepoRemoveMemberAuditEntry": - x.Interface = new(RepoRemoveMemberAuditEntry) - case "RepoRemoveTopicAuditEntry": - x.Interface = new(RepoRemoveTopicAuditEntry) - case "RepositoryVisibilityChangeDisableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeDisableAuditEntry) - case "RepositoryVisibilityChangeEnableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeEnableAuditEntry) - case "TeamAddMemberAuditEntry": - x.Interface = new(TeamAddMemberAuditEntry) - case "TeamAddRepositoryAuditEntry": - x.Interface = new(TeamAddRepositoryAuditEntry) - case "TeamChangeParentTeamAuditEntry": - x.Interface = new(TeamChangeParentTeamAuditEntry) - case "TeamRemoveMemberAuditEntry": - x.Interface = new(TeamRemoveMemberAuditEntry) - case "TeamRemoveRepositoryAuditEntry": - x.Interface = new(TeamRemoveRepositoryAuditEntry) - } - return json.Unmarshal(js, x.Interface) -} - -// AuditEntryActor (UNION): Types that can initiate an audit log event. -// AuditEntryActor_Interface: Types that can initiate an audit log event. -// -// Possible types: -// -// - *Bot -// - *Organization -// - *User -type AuditEntryActor_Interface interface { - isAuditEntryActor() -} - -func (*Bot) isAuditEntryActor() {} -func (*Organization) isAuditEntryActor() {} -func (*User) isAuditEntryActor() {} - -type AuditEntryActor struct { - Interface AuditEntryActor_Interface -} - -func (x *AuditEntryActor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *AuditEntryActor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for AuditEntryActor", info.Typename) - case "Bot": - x.Interface = new(Bot) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// AuditLogOrder (INPUT_OBJECT): Ordering options for Audit Log connections. -type AuditLogOrder struct { - // Field: The field to order Audit Logs by. - // - // GraphQL type: AuditLogOrderField - Field AuditLogOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection - Direction OrderDirection `json:"direction,omitempty"` -} - -// AuditLogOrderField (ENUM): Properties by which Audit Log connections can be ordered. -type AuditLogOrderField string - -// AuditLogOrderField_CREATED_AT: Order audit log entries by timestamp. -const AuditLogOrderField_CREATED_AT AuditLogOrderField = "CREATED_AT" - -// AutoMergeDisabledEvent (OBJECT): Represents a 'auto_merge_disabled' event on a given pull request. -type AutoMergeDisabledEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Disabler: The user who disabled auto-merge for this Pull Request. - Disabler *User `json:"disabler,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // Reason: The reason auto-merge was disabled. - Reason string `json:"reason,omitempty"` - - // ReasonCode: The reason_code relating to why auto-merge was disabled. - ReasonCode string `json:"reasonCode,omitempty"` -} - -func (x *AutoMergeDisabledEvent) GetActor() Actor { return x.Actor } -func (x *AutoMergeDisabledEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *AutoMergeDisabledEvent) GetDisabler() *User { return x.Disabler } -func (x *AutoMergeDisabledEvent) GetId() ID { return x.Id } -func (x *AutoMergeDisabledEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *AutoMergeDisabledEvent) GetReason() string { return x.Reason } -func (x *AutoMergeDisabledEvent) GetReasonCode() string { return x.ReasonCode } - -// AutoMergeEnabledEvent (OBJECT): Represents a 'auto_merge_enabled' event on a given pull request. -type AutoMergeEnabledEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Enabler: The user who enabled auto-merge for this Pull Request. - Enabler *User `json:"enabler,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *AutoMergeEnabledEvent) GetActor() Actor { return x.Actor } -func (x *AutoMergeEnabledEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *AutoMergeEnabledEvent) GetEnabler() *User { return x.Enabler } -func (x *AutoMergeEnabledEvent) GetId() ID { return x.Id } -func (x *AutoMergeEnabledEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// AutoMergeRequest (OBJECT): Represents an auto-merge request for a pull request. -type AutoMergeRequest struct { - // AuthorEmail: The email address of the author of this auto-merge request. - AuthorEmail string `json:"authorEmail,omitempty"` - - // CommitBody: The commit message of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging. - CommitBody string `json:"commitBody,omitempty"` - - // CommitHeadline: The commit title of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging. - CommitHeadline string `json:"commitHeadline,omitempty"` - - // EnabledAt: When was this auto-merge request was enabled. - EnabledAt DateTime `json:"enabledAt,omitempty"` - - // EnabledBy: The actor who created the auto-merge request. - EnabledBy Actor `json:"enabledBy,omitempty"` - - // MergeMethod: The merge method of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging. - MergeMethod PullRequestMergeMethod `json:"mergeMethod,omitempty"` - - // PullRequest: The pull request that this auto-merge request is set against. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *AutoMergeRequest) GetAuthorEmail() string { return x.AuthorEmail } -func (x *AutoMergeRequest) GetCommitBody() string { return x.CommitBody } -func (x *AutoMergeRequest) GetCommitHeadline() string { return x.CommitHeadline } -func (x *AutoMergeRequest) GetEnabledAt() DateTime { return x.EnabledAt } -func (x *AutoMergeRequest) GetEnabledBy() Actor { return x.EnabledBy } -func (x *AutoMergeRequest) GetMergeMethod() PullRequestMergeMethod { return x.MergeMethod } -func (x *AutoMergeRequest) GetPullRequest() *PullRequest { return x.PullRequest } - -// AutoRebaseEnabledEvent (OBJECT): Represents a 'auto_rebase_enabled' event on a given pull request. -type AutoRebaseEnabledEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Enabler: The user who enabled auto-merge (rebase) for this Pull Request. - Enabler *User `json:"enabler,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *AutoRebaseEnabledEvent) GetActor() Actor { return x.Actor } -func (x *AutoRebaseEnabledEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *AutoRebaseEnabledEvent) GetEnabler() *User { return x.Enabler } -func (x *AutoRebaseEnabledEvent) GetId() ID { return x.Id } -func (x *AutoRebaseEnabledEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// AutoSquashEnabledEvent (OBJECT): Represents a 'auto_squash_enabled' event on a given pull request. -type AutoSquashEnabledEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Enabler: The user who enabled auto-merge (squash) for this Pull Request. - Enabler *User `json:"enabler,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *AutoSquashEnabledEvent) GetActor() Actor { return x.Actor } -func (x *AutoSquashEnabledEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *AutoSquashEnabledEvent) GetEnabler() *User { return x.Enabler } -func (x *AutoSquashEnabledEvent) GetId() ID { return x.Id } -func (x *AutoSquashEnabledEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// AutomaticBaseChangeFailedEvent (OBJECT): Represents a 'automatic_base_change_failed' event on a given pull request. -type AutomaticBaseChangeFailedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // NewBase: The new base for this PR. - NewBase string `json:"newBase,omitempty"` - - // OldBase: The old base for this PR. - OldBase string `json:"oldBase,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *AutomaticBaseChangeFailedEvent) GetActor() Actor { return x.Actor } -func (x *AutomaticBaseChangeFailedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *AutomaticBaseChangeFailedEvent) GetId() ID { return x.Id } -func (x *AutomaticBaseChangeFailedEvent) GetNewBase() string { return x.NewBase } -func (x *AutomaticBaseChangeFailedEvent) GetOldBase() string { return x.OldBase } -func (x *AutomaticBaseChangeFailedEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// AutomaticBaseChangeSucceededEvent (OBJECT): Represents a 'automatic_base_change_succeeded' event on a given pull request. -type AutomaticBaseChangeSucceededEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // NewBase: The new base for this PR. - NewBase string `json:"newBase,omitempty"` - - // OldBase: The old base for this PR. - OldBase string `json:"oldBase,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *AutomaticBaseChangeSucceededEvent) GetActor() Actor { return x.Actor } -func (x *AutomaticBaseChangeSucceededEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *AutomaticBaseChangeSucceededEvent) GetId() ID { return x.Id } -func (x *AutomaticBaseChangeSucceededEvent) GetNewBase() string { return x.NewBase } -func (x *AutomaticBaseChangeSucceededEvent) GetOldBase() string { return x.OldBase } -func (x *AutomaticBaseChangeSucceededEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// Base64String (SCALAR): A (potentially binary) string encoded using base64. -type Base64String string - -// BaseRefChangedEvent (OBJECT): Represents a 'base_ref_changed' event on a given issue or pull request. -type BaseRefChangedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CurrentRefName: Identifies the name of the base ref for the pull request after it was changed. - CurrentRefName string `json:"currentRefName,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PreviousRefName: Identifies the name of the base ref for the pull request before it was changed. - PreviousRefName string `json:"previousRefName,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *BaseRefChangedEvent) GetActor() Actor { return x.Actor } -func (x *BaseRefChangedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *BaseRefChangedEvent) GetCurrentRefName() string { return x.CurrentRefName } -func (x *BaseRefChangedEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *BaseRefChangedEvent) GetId() ID { return x.Id } -func (x *BaseRefChangedEvent) GetPreviousRefName() string { return x.PreviousRefName } -func (x *BaseRefChangedEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// BaseRefDeletedEvent (OBJECT): Represents a 'base_ref_deleted' event on a given pull request. -type BaseRefDeletedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // BaseRefName: Identifies the name of the Ref associated with the `base_ref_deleted` event. - BaseRefName string `json:"baseRefName,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *BaseRefDeletedEvent) GetActor() Actor { return x.Actor } -func (x *BaseRefDeletedEvent) GetBaseRefName() string { return x.BaseRefName } -func (x *BaseRefDeletedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *BaseRefDeletedEvent) GetId() ID { return x.Id } -func (x *BaseRefDeletedEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// BaseRefForcePushedEvent (OBJECT): Represents a 'base_ref_force_pushed' event on a given pull request. -type BaseRefForcePushedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // AfterCommit: Identifies the after commit SHA for the 'base_ref_force_pushed' event. - AfterCommit *Commit `json:"afterCommit,omitempty"` - - // BeforeCommit: Identifies the before commit SHA for the 'base_ref_force_pushed' event. - BeforeCommit *Commit `json:"beforeCommit,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // Ref: Identifies the fully qualified ref name for the 'base_ref_force_pushed' event. - Ref *Ref `json:"ref,omitempty"` -} - -func (x *BaseRefForcePushedEvent) GetActor() Actor { return x.Actor } -func (x *BaseRefForcePushedEvent) GetAfterCommit() *Commit { return x.AfterCommit } -func (x *BaseRefForcePushedEvent) GetBeforeCommit() *Commit { return x.BeforeCommit } -func (x *BaseRefForcePushedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *BaseRefForcePushedEvent) GetId() ID { return x.Id } -func (x *BaseRefForcePushedEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *BaseRefForcePushedEvent) GetRef() *Ref { return x.Ref } - -// Blame (OBJECT): Represents a Git blame. -type Blame struct { - // Ranges: The list of ranges from a Git blame. - Ranges []*BlameRange `json:"ranges,omitempty"` -} - -func (x *Blame) GetRanges() []*BlameRange { return x.Ranges } - -// BlameRange (OBJECT): Represents a range of information from a Git blame. -type BlameRange struct { - // Age: Identifies the recency of the change, from 1 (new) to 10 (old). This is calculated as a 2-quantile and determines the length of distance between the median age of all the changes in the file and the recency of the current range's change. - Age int `json:"age,omitempty"` - - // Commit: Identifies the line author. - Commit *Commit `json:"commit,omitempty"` - - // EndingLine: The ending line for the range. - EndingLine int `json:"endingLine,omitempty"` - - // StartingLine: The starting line for the range. - StartingLine int `json:"startingLine,omitempty"` -} - -func (x *BlameRange) GetAge() int { return x.Age } -func (x *BlameRange) GetCommit() *Commit { return x.Commit } -func (x *BlameRange) GetEndingLine() int { return x.EndingLine } -func (x *BlameRange) GetStartingLine() int { return x.StartingLine } - -// Blob (OBJECT): Represents a Git blob. -type Blob struct { - // AbbreviatedOid: An abbreviated version of the Git object ID. - AbbreviatedOid string `json:"abbreviatedOid,omitempty"` - - // ByteSize: Byte size of Blob object. - ByteSize int `json:"byteSize,omitempty"` - - // CommitResourcePath: The HTTP path for this Git object. - CommitResourcePath URI `json:"commitResourcePath,omitempty"` - - // CommitUrl: The HTTP URL for this Git object. - CommitUrl URI `json:"commitUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsBinary: Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding. - IsBinary bool `json:"isBinary,omitempty"` - - // IsTruncated: Indicates whether the contents is truncated. - IsTruncated bool `json:"isTruncated,omitempty"` - - // Oid: The Git object ID. - Oid GitObjectID `json:"oid,omitempty"` - - // Repository: The Repository the Git object belongs to. - Repository *Repository `json:"repository,omitempty"` - - // Text: UTF8 text data or null if the Blob is binary. - Text string `json:"text,omitempty"` -} - -func (x *Blob) GetAbbreviatedOid() string { return x.AbbreviatedOid } -func (x *Blob) GetByteSize() int { return x.ByteSize } -func (x *Blob) GetCommitResourcePath() URI { return x.CommitResourcePath } -func (x *Blob) GetCommitUrl() URI { return x.CommitUrl } -func (x *Blob) GetId() ID { return x.Id } -func (x *Blob) GetIsBinary() bool { return x.IsBinary } -func (x *Blob) GetIsTruncated() bool { return x.IsTruncated } -func (x *Blob) GetOid() GitObjectID { return x.Oid } -func (x *Blob) GetRepository() *Repository { return x.Repository } -func (x *Blob) GetText() string { return x.Text } - -// Boolean (SCALAR): Represents `true` or `false` values. -type Boolean bool - -// Bot (OBJECT): A special type of user which takes actions on behalf of GitHub Apps. -type Bot struct { - // AvatarUrl: A URL pointing to the GitHub App's public avatar. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Login: The username of the actor. - Login string `json:"login,omitempty"` - - // ResourcePath: The HTTP path for this bot. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this bot. - Url URI `json:"url,omitempty"` -} - -func (x *Bot) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *Bot) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Bot) GetDatabaseId() int { return x.DatabaseId } -func (x *Bot) GetId() ID { return x.Id } -func (x *Bot) GetLogin() string { return x.Login } -func (x *Bot) GetResourcePath() URI { return x.ResourcePath } -func (x *Bot) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Bot) GetUrl() URI { return x.Url } - -// BranchActorAllowanceActor (UNION): Types which can be actors for `BranchActorAllowance` objects. -// BranchActorAllowanceActor_Interface: Types which can be actors for `BranchActorAllowance` objects. -// -// Possible types: -// -// - *App -// - *Team -// - *User -type BranchActorAllowanceActor_Interface interface { - isBranchActorAllowanceActor() -} - -func (*App) isBranchActorAllowanceActor() {} -func (*Team) isBranchActorAllowanceActor() {} -func (*User) isBranchActorAllowanceActor() {} - -type BranchActorAllowanceActor struct { - Interface BranchActorAllowanceActor_Interface -} - -func (x *BranchActorAllowanceActor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *BranchActorAllowanceActor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for BranchActorAllowanceActor", info.Typename) - case "App": - x.Interface = new(App) - case "Team": - x.Interface = new(Team) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// BranchProtectionRule (OBJECT): A branch protection rule. -type BranchProtectionRule struct { - // AllowsDeletions: Can this branch be deleted. - AllowsDeletions bool `json:"allowsDeletions,omitempty"` - - // AllowsForcePushes: Are force pushes allowed on this branch. - AllowsForcePushes bool `json:"allowsForcePushes,omitempty"` - - // BlocksCreations: Is branch creation a protected operation. - BlocksCreations bool `json:"blocksCreations,omitempty"` - - // BranchProtectionRuleConflicts: A list of conflicts matching branches protection rule and other branch protection rules. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - BranchProtectionRuleConflicts *BranchProtectionRuleConflictConnection `json:"branchProtectionRuleConflicts,omitempty"` - - // BypassForcePushAllowances: A list of actors able to force push for this branch protection rule. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - BypassForcePushAllowances *BypassForcePushAllowanceConnection `json:"bypassForcePushAllowances,omitempty"` - - // BypassPullRequestAllowances: A list of actors able to bypass PRs for this branch protection rule. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - BypassPullRequestAllowances *BypassPullRequestAllowanceConnection `json:"bypassPullRequestAllowances,omitempty"` - - // Creator: The actor who created this branch protection rule. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // DismissesStaleReviews: Will new commits pushed to matching branches dismiss pull request review approvals. - DismissesStaleReviews bool `json:"dismissesStaleReviews,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsAdminEnforced: Can admins overwrite branch protection. - IsAdminEnforced bool `json:"isAdminEnforced,omitempty"` - - // MatchingRefs: Repository refs that are protected by this rule. - // - // Query arguments: - // - query String - // - after String - // - before String - // - first Int - // - last Int - MatchingRefs *RefConnection `json:"matchingRefs,omitempty"` - - // Pattern: Identifies the protection rule pattern. - Pattern string `json:"pattern,omitempty"` - - // PushAllowances: A list push allowances for this branch protection rule. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - PushAllowances *PushAllowanceConnection `json:"pushAllowances,omitempty"` - - // Repository: The repository associated with this branch protection rule. - Repository *Repository `json:"repository,omitempty"` - - // RequiredApprovingReviewCount: Number of approving reviews required to update matching branches. - RequiredApprovingReviewCount int `json:"requiredApprovingReviewCount,omitempty"` - - // RequiredStatusCheckContexts: List of required status check contexts that must pass for commits to be accepted to matching branches. - RequiredStatusCheckContexts []string `json:"requiredStatusCheckContexts,omitempty"` - - // RequiredStatusChecks: List of required status checks that must pass for commits to be accepted to matching branches. - RequiredStatusChecks []*RequiredStatusCheckDescription `json:"requiredStatusChecks,omitempty"` - - // RequiresApprovingReviews: Are approving reviews required to update matching branches. - RequiresApprovingReviews bool `json:"requiresApprovingReviews,omitempty"` - - // RequiresCodeOwnerReviews: Are reviews from code owners required to update matching branches. - RequiresCodeOwnerReviews bool `json:"requiresCodeOwnerReviews,omitempty"` - - // RequiresCommitSignatures: Are commits required to be signed. - RequiresCommitSignatures bool `json:"requiresCommitSignatures,omitempty"` - - // RequiresConversationResolution: Are conversations required to be resolved before merging. - RequiresConversationResolution bool `json:"requiresConversationResolution,omitempty"` - - // RequiresLinearHistory: Are merge commits prohibited from being pushed to this branch. - RequiresLinearHistory bool `json:"requiresLinearHistory,omitempty"` - - // RequiresStatusChecks: Are status checks required to update matching branches. - RequiresStatusChecks bool `json:"requiresStatusChecks,omitempty"` - - // RequiresStrictStatusChecks: Are branches required to be up to date before merging. - RequiresStrictStatusChecks bool `json:"requiresStrictStatusChecks,omitempty"` - - // RestrictsPushes: Is pushing to matching branches restricted. - RestrictsPushes bool `json:"restrictsPushes,omitempty"` - - // RestrictsReviewDismissals: Is dismissal of pull request reviews restricted. - RestrictsReviewDismissals bool `json:"restrictsReviewDismissals,omitempty"` - - // ReviewDismissalAllowances: A list review dismissal allowances for this branch protection rule. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - ReviewDismissalAllowances *ReviewDismissalAllowanceConnection `json:"reviewDismissalAllowances,omitempty"` -} - -func (x *BranchProtectionRule) GetAllowsDeletions() bool { return x.AllowsDeletions } -func (x *BranchProtectionRule) GetAllowsForcePushes() bool { return x.AllowsForcePushes } -func (x *BranchProtectionRule) GetBlocksCreations() bool { return x.BlocksCreations } -func (x *BranchProtectionRule) GetBranchProtectionRuleConflicts() *BranchProtectionRuleConflictConnection { - return x.BranchProtectionRuleConflicts -} -func (x *BranchProtectionRule) GetBypassForcePushAllowances() *BypassForcePushAllowanceConnection { - return x.BypassForcePushAllowances -} -func (x *BranchProtectionRule) GetBypassPullRequestAllowances() *BypassPullRequestAllowanceConnection { - return x.BypassPullRequestAllowances -} -func (x *BranchProtectionRule) GetCreator() Actor { return x.Creator } -func (x *BranchProtectionRule) GetDatabaseId() int { return x.DatabaseId } -func (x *BranchProtectionRule) GetDismissesStaleReviews() bool { return x.DismissesStaleReviews } -func (x *BranchProtectionRule) GetId() ID { return x.Id } -func (x *BranchProtectionRule) GetIsAdminEnforced() bool { return x.IsAdminEnforced } -func (x *BranchProtectionRule) GetMatchingRefs() *RefConnection { return x.MatchingRefs } -func (x *BranchProtectionRule) GetPattern() string { return x.Pattern } -func (x *BranchProtectionRule) GetPushAllowances() *PushAllowanceConnection { return x.PushAllowances } -func (x *BranchProtectionRule) GetRepository() *Repository { return x.Repository } -func (x *BranchProtectionRule) GetRequiredApprovingReviewCount() int { - return x.RequiredApprovingReviewCount -} -func (x *BranchProtectionRule) GetRequiredStatusCheckContexts() []string { - return x.RequiredStatusCheckContexts -} -func (x *BranchProtectionRule) GetRequiredStatusChecks() []*RequiredStatusCheckDescription { - return x.RequiredStatusChecks -} -func (x *BranchProtectionRule) GetRequiresApprovingReviews() bool { return x.RequiresApprovingReviews } -func (x *BranchProtectionRule) GetRequiresCodeOwnerReviews() bool { return x.RequiresCodeOwnerReviews } -func (x *BranchProtectionRule) GetRequiresCommitSignatures() bool { return x.RequiresCommitSignatures } -func (x *BranchProtectionRule) GetRequiresConversationResolution() bool { - return x.RequiresConversationResolution -} -func (x *BranchProtectionRule) GetRequiresLinearHistory() bool { return x.RequiresLinearHistory } -func (x *BranchProtectionRule) GetRequiresStatusChecks() bool { return x.RequiresStatusChecks } -func (x *BranchProtectionRule) GetRequiresStrictStatusChecks() bool { - return x.RequiresStrictStatusChecks -} -func (x *BranchProtectionRule) GetRestrictsPushes() bool { return x.RestrictsPushes } -func (x *BranchProtectionRule) GetRestrictsReviewDismissals() bool { - return x.RestrictsReviewDismissals -} -func (x *BranchProtectionRule) GetReviewDismissalAllowances() *ReviewDismissalAllowanceConnection { - return x.ReviewDismissalAllowances -} - -// BranchProtectionRuleConflict (OBJECT): A conflict between two branch protection rules. -type BranchProtectionRuleConflict struct { - // BranchProtectionRule: Identifies the branch protection rule. - BranchProtectionRule *BranchProtectionRule `json:"branchProtectionRule,omitempty"` - - // ConflictingBranchProtectionRule: Identifies the conflicting branch protection rule. - ConflictingBranchProtectionRule *BranchProtectionRule `json:"conflictingBranchProtectionRule,omitempty"` - - // Ref: Identifies the branch ref that has conflicting rules. - Ref *Ref `json:"ref,omitempty"` -} - -func (x *BranchProtectionRuleConflict) GetBranchProtectionRule() *BranchProtectionRule { - return x.BranchProtectionRule -} -func (x *BranchProtectionRuleConflict) GetConflictingBranchProtectionRule() *BranchProtectionRule { - return x.ConflictingBranchProtectionRule -} -func (x *BranchProtectionRuleConflict) GetRef() *Ref { return x.Ref } - -// BranchProtectionRuleConflictConnection (OBJECT): The connection type for BranchProtectionRuleConflict. -type BranchProtectionRuleConflictConnection struct { - // Edges: A list of edges. - Edges []*BranchProtectionRuleConflictEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*BranchProtectionRuleConflict `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *BranchProtectionRuleConflictConnection) GetEdges() []*BranchProtectionRuleConflictEdge { - return x.Edges -} -func (x *BranchProtectionRuleConflictConnection) GetNodes() []*BranchProtectionRuleConflict { - return x.Nodes -} -func (x *BranchProtectionRuleConflictConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *BranchProtectionRuleConflictConnection) GetTotalCount() int { return x.TotalCount } - -// BranchProtectionRuleConflictEdge (OBJECT): An edge in a connection. -type BranchProtectionRuleConflictEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *BranchProtectionRuleConflict `json:"node,omitempty"` -} - -func (x *BranchProtectionRuleConflictEdge) GetCursor() string { return x.Cursor } -func (x *BranchProtectionRuleConflictEdge) GetNode() *BranchProtectionRuleConflict { return x.Node } - -// BranchProtectionRuleConnection (OBJECT): The connection type for BranchProtectionRule. -type BranchProtectionRuleConnection struct { - // Edges: A list of edges. - Edges []*BranchProtectionRuleEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*BranchProtectionRule `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *BranchProtectionRuleConnection) GetEdges() []*BranchProtectionRuleEdge { return x.Edges } -func (x *BranchProtectionRuleConnection) GetNodes() []*BranchProtectionRule { return x.Nodes } -func (x *BranchProtectionRuleConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *BranchProtectionRuleConnection) GetTotalCount() int { return x.TotalCount } - -// BranchProtectionRuleEdge (OBJECT): An edge in a connection. -type BranchProtectionRuleEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *BranchProtectionRule `json:"node,omitempty"` -} - -func (x *BranchProtectionRuleEdge) GetCursor() string { return x.Cursor } -func (x *BranchProtectionRuleEdge) GetNode() *BranchProtectionRule { return x.Node } - -// BypassForcePushAllowance (OBJECT): A user, team, or app who has the ability to bypass a force push requirement on a protected branch. -type BypassForcePushAllowance struct { - // Actor: The actor that can force push. - Actor BranchActorAllowanceActor `json:"actor,omitempty"` - - // BranchProtectionRule: Identifies the branch protection rule associated with the allowed user, team, or app. - BranchProtectionRule *BranchProtectionRule `json:"branchProtectionRule,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` -} - -func (x *BypassForcePushAllowance) GetActor() BranchActorAllowanceActor { return x.Actor } -func (x *BypassForcePushAllowance) GetBranchProtectionRule() *BranchProtectionRule { - return x.BranchProtectionRule -} -func (x *BypassForcePushAllowance) GetId() ID { return x.Id } - -// BypassForcePushAllowanceConnection (OBJECT): The connection type for BypassForcePushAllowance. -type BypassForcePushAllowanceConnection struct { - // Edges: A list of edges. - Edges []*BypassForcePushAllowanceEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*BypassForcePushAllowance `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *BypassForcePushAllowanceConnection) GetEdges() []*BypassForcePushAllowanceEdge { - return x.Edges -} -func (x *BypassForcePushAllowanceConnection) GetNodes() []*BypassForcePushAllowance { return x.Nodes } -func (x *BypassForcePushAllowanceConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *BypassForcePushAllowanceConnection) GetTotalCount() int { return x.TotalCount } - -// BypassForcePushAllowanceEdge (OBJECT): An edge in a connection. -type BypassForcePushAllowanceEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *BypassForcePushAllowance `json:"node,omitempty"` -} - -func (x *BypassForcePushAllowanceEdge) GetCursor() string { return x.Cursor } -func (x *BypassForcePushAllowanceEdge) GetNode() *BypassForcePushAllowance { return x.Node } - -// BypassPullRequestAllowance (OBJECT): A user, team, or app who has the ability to bypass a pull request requirement on a protected branch. -type BypassPullRequestAllowance struct { - // Actor: The actor that can bypass. - Actor BranchActorAllowanceActor `json:"actor,omitempty"` - - // BranchProtectionRule: Identifies the branch protection rule associated with the allowed user, team, or app. - BranchProtectionRule *BranchProtectionRule `json:"branchProtectionRule,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` -} - -func (x *BypassPullRequestAllowance) GetActor() BranchActorAllowanceActor { return x.Actor } -func (x *BypassPullRequestAllowance) GetBranchProtectionRule() *BranchProtectionRule { - return x.BranchProtectionRule -} -func (x *BypassPullRequestAllowance) GetId() ID { return x.Id } - -// BypassPullRequestAllowanceConnection (OBJECT): The connection type for BypassPullRequestAllowance. -type BypassPullRequestAllowanceConnection struct { - // Edges: A list of edges. - Edges []*BypassPullRequestAllowanceEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*BypassPullRequestAllowance `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *BypassPullRequestAllowanceConnection) GetEdges() []*BypassPullRequestAllowanceEdge { - return x.Edges -} -func (x *BypassPullRequestAllowanceConnection) GetNodes() []*BypassPullRequestAllowance { - return x.Nodes -} -func (x *BypassPullRequestAllowanceConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *BypassPullRequestAllowanceConnection) GetTotalCount() int { return x.TotalCount } - -// BypassPullRequestAllowanceEdge (OBJECT): An edge in a connection. -type BypassPullRequestAllowanceEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *BypassPullRequestAllowance `json:"node,omitempty"` -} - -func (x *BypassPullRequestAllowanceEdge) GetCursor() string { return x.Cursor } -func (x *BypassPullRequestAllowanceEdge) GetNode() *BypassPullRequestAllowance { return x.Node } - -// CVSS (OBJECT): The Common Vulnerability Scoring System. -type CVSS struct { - // Score: The CVSS score associated with this advisory. - Score float64 `json:"score,omitempty"` - - // VectorString: The CVSS vector string associated with this advisory. - VectorString string `json:"vectorString,omitempty"` -} - -func (x *CVSS) GetScore() float64 { return x.Score } -func (x *CVSS) GetVectorString() string { return x.VectorString } - -// CWE (OBJECT): A common weakness enumeration. -type CWE struct { - // CweId: The id of the CWE. - CweId string `json:"cweId,omitempty"` - - // Description: A detailed description of this CWE. - Description string `json:"description,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The name of this CWE. - Name string `json:"name,omitempty"` -} - -func (x *CWE) GetCweId() string { return x.CweId } -func (x *CWE) GetDescription() string { return x.Description } -func (x *CWE) GetId() ID { return x.Id } -func (x *CWE) GetName() string { return x.Name } - -// CWEConnection (OBJECT): The connection type for CWE. -type CWEConnection struct { - // Edges: A list of edges. - Edges []*CWEEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CWE `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CWEConnection) GetEdges() []*CWEEdge { return x.Edges } -func (x *CWEConnection) GetNodes() []*CWE { return x.Nodes } -func (x *CWEConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CWEConnection) GetTotalCount() int { return x.TotalCount } - -// CWEEdge (OBJECT): An edge in a connection. -type CWEEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CWE `json:"node,omitempty"` -} - -func (x *CWEEdge) GetCursor() string { return x.Cursor } -func (x *CWEEdge) GetNode() *CWE { return x.Node } - -// CancelEnterpriseAdminInvitationInput (INPUT_OBJECT): Autogenerated input type of CancelEnterpriseAdminInvitation. -type CancelEnterpriseAdminInvitationInput struct { - // InvitationId: The Node ID of the pending enterprise administrator invitation. - // - // GraphQL type: ID! - InvitationId ID `json:"invitationId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CancelEnterpriseAdminInvitationPayload (OBJECT): Autogenerated return type of CancelEnterpriseAdminInvitation. -type CancelEnterpriseAdminInvitationPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Invitation: The invitation that was canceled. - Invitation *EnterpriseAdministratorInvitation `json:"invitation,omitempty"` - - // Message: A message confirming the result of canceling an administrator invitation. - Message string `json:"message,omitempty"` -} - -func (x *CancelEnterpriseAdminInvitationPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *CancelEnterpriseAdminInvitationPayload) GetInvitation() *EnterpriseAdministratorInvitation { - return x.Invitation -} -func (x *CancelEnterpriseAdminInvitationPayload) GetMessage() string { return x.Message } - -// CancelSponsorshipInput (INPUT_OBJECT): Autogenerated input type of CancelSponsorship. -type CancelSponsorshipInput struct { - // SponsorId: The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. - // - // GraphQL type: ID - SponsorId ID `json:"sponsorId,omitempty"` - - // SponsorLogin: The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. - // - // GraphQL type: String - SponsorLogin string `json:"sponsorLogin,omitempty"` - - // SponsorableId: The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. - // - // GraphQL type: ID - SponsorableId ID `json:"sponsorableId,omitempty"` - - // SponsorableLogin: The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. - // - // GraphQL type: String - SponsorableLogin string `json:"sponsorableLogin,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CancelSponsorshipPayload (OBJECT): Autogenerated return type of CancelSponsorship. -type CancelSponsorshipPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // SponsorsTier: The tier that was being used at the time of cancellation. - SponsorsTier *SponsorsTier `json:"sponsorsTier,omitempty"` -} - -func (x *CancelSponsorshipPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CancelSponsorshipPayload) GetSponsorsTier() *SponsorsTier { return x.SponsorsTier } - -// ChangeUserStatusInput (INPUT_OBJECT): Autogenerated input type of ChangeUserStatus. -type ChangeUserStatusInput struct { - // Emoji: The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., :grinning:. - // - // GraphQL type: String - Emoji string `json:"emoji,omitempty"` - - // Message: A short description of your current status. - // - // GraphQL type: String - Message string `json:"message,omitempty"` - - // OrganizationId: The ID of the organization whose members will be allowed to see the status. If omitted, the status will be publicly visible. - // - // GraphQL type: ID - OrganizationId ID `json:"organizationId,omitempty"` - - // LimitedAvailability: Whether this status should indicate you are not fully available on GitHub, e.g., you are away. - // - // GraphQL type: Boolean - LimitedAvailability bool `json:"limitedAvailability,omitempty"` - - // ExpiresAt: If set, the user status will not be shown after this date. - // - // GraphQL type: DateTime - ExpiresAt DateTime `json:"expiresAt,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ChangeUserStatusPayload (OBJECT): Autogenerated return type of ChangeUserStatus. -type ChangeUserStatusPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Status: Your updated status. - Status *UserStatus `json:"status,omitempty"` -} - -func (x *ChangeUserStatusPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ChangeUserStatusPayload) GetStatus() *UserStatus { return x.Status } - -// CheckAnnotation (OBJECT): A single check annotation. -type CheckAnnotation struct { - // AnnotationLevel: The annotation's severity level. - AnnotationLevel CheckAnnotationLevel `json:"annotationLevel,omitempty"` - - // BlobUrl: The path to the file that this annotation was made on. - BlobUrl URI `json:"blobUrl,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Location: The position of this annotation. - Location *CheckAnnotationSpan `json:"location,omitempty"` - - // Message: The annotation's message. - Message string `json:"message,omitempty"` - - // Path: The path that this annotation was made on. - Path string `json:"path,omitempty"` - - // RawDetails: Additional information about the annotation. - RawDetails string `json:"rawDetails,omitempty"` - - // Title: The annotation's title. - Title string `json:"title,omitempty"` -} - -func (x *CheckAnnotation) GetAnnotationLevel() CheckAnnotationLevel { return x.AnnotationLevel } -func (x *CheckAnnotation) GetBlobUrl() URI { return x.BlobUrl } -func (x *CheckAnnotation) GetDatabaseId() int { return x.DatabaseId } -func (x *CheckAnnotation) GetLocation() *CheckAnnotationSpan { return x.Location } -func (x *CheckAnnotation) GetMessage() string { return x.Message } -func (x *CheckAnnotation) GetPath() string { return x.Path } -func (x *CheckAnnotation) GetRawDetails() string { return x.RawDetails } -func (x *CheckAnnotation) GetTitle() string { return x.Title } - -// CheckAnnotationConnection (OBJECT): The connection type for CheckAnnotation. -type CheckAnnotationConnection struct { - // Edges: A list of edges. - Edges []*CheckAnnotationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CheckAnnotation `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CheckAnnotationConnection) GetEdges() []*CheckAnnotationEdge { return x.Edges } -func (x *CheckAnnotationConnection) GetNodes() []*CheckAnnotation { return x.Nodes } -func (x *CheckAnnotationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CheckAnnotationConnection) GetTotalCount() int { return x.TotalCount } - -// CheckAnnotationData (INPUT_OBJECT): Information from a check run analysis to specific lines of code. -type CheckAnnotationData struct { - // Path: The path of the file to add an annotation to. - // - // GraphQL type: String! - Path string `json:"path,omitempty"` - - // Location: The location of the annotation. - // - // GraphQL type: CheckAnnotationRange! - Location *CheckAnnotationRange `json:"location,omitempty"` - - // AnnotationLevel: Represents an annotation's information level. - // - // GraphQL type: CheckAnnotationLevel! - AnnotationLevel CheckAnnotationLevel `json:"annotationLevel,omitempty"` - - // Message: A short description of the feedback for these lines of code. - // - // GraphQL type: String! - Message string `json:"message,omitempty"` - - // Title: The title that represents the annotation. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // RawDetails: Details about this annotation. - // - // GraphQL type: String - RawDetails string `json:"rawDetails,omitempty"` -} - -// CheckAnnotationEdge (OBJECT): An edge in a connection. -type CheckAnnotationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CheckAnnotation `json:"node,omitempty"` -} - -func (x *CheckAnnotationEdge) GetCursor() string { return x.Cursor } -func (x *CheckAnnotationEdge) GetNode() *CheckAnnotation { return x.Node } - -// CheckAnnotationLevel (ENUM): Represents an annotation's information level. -type CheckAnnotationLevel string - -// CheckAnnotationLevel_FAILURE: An annotation indicating an inescapable error. -const CheckAnnotationLevel_FAILURE CheckAnnotationLevel = "FAILURE" - -// CheckAnnotationLevel_NOTICE: An annotation indicating some information. -const CheckAnnotationLevel_NOTICE CheckAnnotationLevel = "NOTICE" - -// CheckAnnotationLevel_WARNING: An annotation indicating an ignorable error. -const CheckAnnotationLevel_WARNING CheckAnnotationLevel = "WARNING" - -// CheckAnnotationPosition (OBJECT): A character position in a check annotation. -type CheckAnnotationPosition struct { - // Column: Column number (1 indexed). - Column int `json:"column,omitempty"` - - // Line: Line number (1 indexed). - Line int `json:"line,omitempty"` -} - -func (x *CheckAnnotationPosition) GetColumn() int { return x.Column } -func (x *CheckAnnotationPosition) GetLine() int { return x.Line } - -// CheckAnnotationRange (INPUT_OBJECT): Information from a check run analysis to specific lines of code. -type CheckAnnotationRange struct { - // StartLine: The starting line of the range. - // - // GraphQL type: Int! - StartLine int `json:"startLine,omitempty"` - - // StartColumn: The starting column of the range. - // - // GraphQL type: Int - StartColumn int `json:"startColumn,omitempty"` - - // EndLine: The ending line of the range. - // - // GraphQL type: Int! - EndLine int `json:"endLine,omitempty"` - - // EndColumn: The ending column of the range. - // - // GraphQL type: Int - EndColumn int `json:"endColumn,omitempty"` -} - -// CheckAnnotationSpan (OBJECT): An inclusive pair of positions for a check annotation. -type CheckAnnotationSpan struct { - // End: End position (inclusive). - End *CheckAnnotationPosition `json:"end,omitempty"` - - // Start: Start position (inclusive). - Start *CheckAnnotationPosition `json:"start,omitempty"` -} - -func (x *CheckAnnotationSpan) GetEnd() *CheckAnnotationPosition { return x.End } -func (x *CheckAnnotationSpan) GetStart() *CheckAnnotationPosition { return x.Start } - -// CheckConclusionState (ENUM): The possible states for a check suite or run conclusion. -type CheckConclusionState string - -// CheckConclusionState_ACTION_REQUIRED: The check suite or run requires action. -const CheckConclusionState_ACTION_REQUIRED CheckConclusionState = "ACTION_REQUIRED" - -// CheckConclusionState_TIMED_OUT: The check suite or run has timed out. -const CheckConclusionState_TIMED_OUT CheckConclusionState = "TIMED_OUT" - -// CheckConclusionState_CANCELLED: The check suite or run has been cancelled. -const CheckConclusionState_CANCELLED CheckConclusionState = "CANCELLED" - -// CheckConclusionState_FAILURE: The check suite or run has failed. -const CheckConclusionState_FAILURE CheckConclusionState = "FAILURE" - -// CheckConclusionState_SUCCESS: The check suite or run has succeeded. -const CheckConclusionState_SUCCESS CheckConclusionState = "SUCCESS" - -// CheckConclusionState_NEUTRAL: The check suite or run was neutral. -const CheckConclusionState_NEUTRAL CheckConclusionState = "NEUTRAL" - -// CheckConclusionState_SKIPPED: The check suite or run was skipped. -const CheckConclusionState_SKIPPED CheckConclusionState = "SKIPPED" - -// CheckConclusionState_STARTUP_FAILURE: The check suite or run has failed at startup. -const CheckConclusionState_STARTUP_FAILURE CheckConclusionState = "STARTUP_FAILURE" - -// CheckConclusionState_STALE: The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion. -const CheckConclusionState_STALE CheckConclusionState = "STALE" - -// CheckRun (OBJECT): A check run. -type CheckRun struct { - // Annotations: The check run's annotations. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Annotations *CheckAnnotationConnection `json:"annotations,omitempty"` - - // CheckSuite: The check suite that this run is a part of. - CheckSuite *CheckSuite `json:"checkSuite,omitempty"` - - // CompletedAt: Identifies the date and time when the check run was completed. - CompletedAt DateTime `json:"completedAt,omitempty"` - - // Conclusion: The conclusion of the check run. - Conclusion CheckConclusionState `json:"conclusion,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Deployment: The corresponding deployment for this job, if any. - Deployment *Deployment `json:"deployment,omitempty"` - - // DetailsUrl: The URL from which to find full details of the check run on the integrator's site. - DetailsUrl URI `json:"detailsUrl,omitempty"` - - // ExternalId: A reference for the check run on the integrator's system. - ExternalId string `json:"externalId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsRequired: Whether this is required to pass before merging for a specific pull request. - // - // Query arguments: - // - pullRequestId ID - // - pullRequestNumber Int - IsRequired bool `json:"isRequired,omitempty"` - - // Name: The name of the check for this check run. - Name string `json:"name,omitempty"` - - // PendingDeploymentRequest: Information about a pending deployment, if any, in this check run. - PendingDeploymentRequest *DeploymentRequest `json:"pendingDeploymentRequest,omitempty"` - - // Permalink: The permalink to the check run summary. - Permalink URI `json:"permalink,omitempty"` - - // Repository: The repository associated with this check run. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this check run. - ResourcePath URI `json:"resourcePath,omitempty"` - - // StartedAt: Identifies the date and time when the check run was started. - StartedAt DateTime `json:"startedAt,omitempty"` - - // Status: The current status of the check run. - Status CheckStatusState `json:"status,omitempty"` - - // Steps: The check run's steps. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - number Int - Steps *CheckStepConnection `json:"steps,omitempty"` - - // Summary: A string representing the check run's summary. - Summary string `json:"summary,omitempty"` - - // Text: A string representing the check run's text. - Text string `json:"text,omitempty"` - - // Title: A string representing the check run. - Title string `json:"title,omitempty"` - - // Url: The HTTP URL for this check run. - Url URI `json:"url,omitempty"` -} - -func (x *CheckRun) GetAnnotations() *CheckAnnotationConnection { return x.Annotations } -func (x *CheckRun) GetCheckSuite() *CheckSuite { return x.CheckSuite } -func (x *CheckRun) GetCompletedAt() DateTime { return x.CompletedAt } -func (x *CheckRun) GetConclusion() CheckConclusionState { return x.Conclusion } -func (x *CheckRun) GetDatabaseId() int { return x.DatabaseId } -func (x *CheckRun) GetDeployment() *Deployment { return x.Deployment } -func (x *CheckRun) GetDetailsUrl() URI { return x.DetailsUrl } -func (x *CheckRun) GetExternalId() string { return x.ExternalId } -func (x *CheckRun) GetId() ID { return x.Id } -func (x *CheckRun) GetIsRequired() bool { return x.IsRequired } -func (x *CheckRun) GetName() string { return x.Name } -func (x *CheckRun) GetPendingDeploymentRequest() *DeploymentRequest { - return x.PendingDeploymentRequest -} -func (x *CheckRun) GetPermalink() URI { return x.Permalink } -func (x *CheckRun) GetRepository() *Repository { return x.Repository } -func (x *CheckRun) GetResourcePath() URI { return x.ResourcePath } -func (x *CheckRun) GetStartedAt() DateTime { return x.StartedAt } -func (x *CheckRun) GetStatus() CheckStatusState { return x.Status } -func (x *CheckRun) GetSteps() *CheckStepConnection { return x.Steps } -func (x *CheckRun) GetSummary() string { return x.Summary } -func (x *CheckRun) GetText() string { return x.Text } -func (x *CheckRun) GetTitle() string { return x.Title } -func (x *CheckRun) GetUrl() URI { return x.Url } - -// CheckRunAction (INPUT_OBJECT): Possible further actions the integrator can perform. -type CheckRunAction struct { - // Label: The text to be displayed on a button in the web UI. - // - // GraphQL type: String! - Label string `json:"label,omitempty"` - - // Description: A short explanation of what this action would do. - // - // GraphQL type: String! - Description string `json:"description,omitempty"` - - // Identifier: A reference for the action on the integrator's system. . - // - // GraphQL type: String! - Identifier string `json:"identifier,omitempty"` -} - -// CheckRunConnection (OBJECT): The connection type for CheckRun. -type CheckRunConnection struct { - // Edges: A list of edges. - Edges []*CheckRunEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CheckRun `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CheckRunConnection) GetEdges() []*CheckRunEdge { return x.Edges } -func (x *CheckRunConnection) GetNodes() []*CheckRun { return x.Nodes } -func (x *CheckRunConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CheckRunConnection) GetTotalCount() int { return x.TotalCount } - -// CheckRunEdge (OBJECT): An edge in a connection. -type CheckRunEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CheckRun `json:"node,omitempty"` -} - -func (x *CheckRunEdge) GetCursor() string { return x.Cursor } -func (x *CheckRunEdge) GetNode() *CheckRun { return x.Node } - -// CheckRunFilter (INPUT_OBJECT): The filters that are available when fetching check runs. -type CheckRunFilter struct { - // CheckType: Filters the check runs by this type. - // - // GraphQL type: CheckRunType - CheckType CheckRunType `json:"checkType,omitempty"` - - // AppId: Filters the check runs created by this application ID. - // - // GraphQL type: Int - AppId int `json:"appId,omitempty"` - - // CheckName: Filters the check runs by this name. - // - // GraphQL type: String - CheckName string `json:"checkName,omitempty"` - - // Status: Filters the check runs by this status. - // - // GraphQL type: CheckStatusState - Status CheckStatusState `json:"status,omitempty"` -} - -// CheckRunOutput (INPUT_OBJECT): Descriptive details about the check run. -type CheckRunOutput struct { - // Title: A title to provide for this check run. - // - // GraphQL type: String! - Title string `json:"title,omitempty"` - - // Summary: The summary of the check run (supports Commonmark). - // - // GraphQL type: String! - Summary string `json:"summary,omitempty"` - - // Text: The details of the check run (supports Commonmark). - // - // GraphQL type: String - Text string `json:"text,omitempty"` - - // Annotations: The annotations that are made as part of the check run. - // - // GraphQL type: [CheckAnnotationData!] - Annotations []*CheckAnnotationData `json:"annotations,omitempty"` - - // Images: Images attached to the check run output displayed in the GitHub pull request UI. - // - // GraphQL type: [CheckRunOutputImage!] - Images []*CheckRunOutputImage `json:"images,omitempty"` -} - -// CheckRunOutputImage (INPUT_OBJECT): Images attached to the check run output displayed in the GitHub pull request UI. -type CheckRunOutputImage struct { - // Alt: The alternative text for the image. - // - // GraphQL type: String! - Alt string `json:"alt,omitempty"` - - // ImageUrl: The full URL of the image. - // - // GraphQL type: URI! - ImageUrl URI `json:"imageUrl,omitempty"` - - // Caption: A short image description. - // - // GraphQL type: String - Caption string `json:"caption,omitempty"` -} - -// CheckRunType (ENUM): The possible types of check runs. -type CheckRunType string - -// CheckRunType_ALL: Every check run available. -const CheckRunType_ALL CheckRunType = "ALL" - -// CheckRunType_LATEST: The latest check run. -const CheckRunType_LATEST CheckRunType = "LATEST" - -// CheckStatusState (ENUM): The possible states for a check suite or run status. -type CheckStatusState string - -// CheckStatusState_QUEUED: The check suite or run has been queued. -const CheckStatusState_QUEUED CheckStatusState = "QUEUED" - -// CheckStatusState_IN_PROGRESS: The check suite or run is in progress. -const CheckStatusState_IN_PROGRESS CheckStatusState = "IN_PROGRESS" - -// CheckStatusState_COMPLETED: The check suite or run has been completed. -const CheckStatusState_COMPLETED CheckStatusState = "COMPLETED" - -// CheckStatusState_WAITING: The check suite or run is in waiting state. -const CheckStatusState_WAITING CheckStatusState = "WAITING" - -// CheckStatusState_PENDING: The check suite or run is in pending state. -const CheckStatusState_PENDING CheckStatusState = "PENDING" - -// CheckStatusState_REQUESTED: The check suite or run has been requested. -const CheckStatusState_REQUESTED CheckStatusState = "REQUESTED" - -// CheckStep (OBJECT): A single check step. -type CheckStep struct { - // CompletedAt: Identifies the date and time when the check step was completed. - CompletedAt DateTime `json:"completedAt,omitempty"` - - // Conclusion: The conclusion of the check step. - Conclusion CheckConclusionState `json:"conclusion,omitempty"` - - // ExternalId: A reference for the check step on the integrator's system. - ExternalId string `json:"externalId,omitempty"` - - // Name: The step's name. - Name string `json:"name,omitempty"` - - // Number: The index of the step in the list of steps of the parent check run. - Number int `json:"number,omitempty"` - - // SecondsToCompletion: Number of seconds to completion. - SecondsToCompletion int `json:"secondsToCompletion,omitempty"` - - // StartedAt: Identifies the date and time when the check step was started. - StartedAt DateTime `json:"startedAt,omitempty"` - - // Status: The current status of the check step. - Status CheckStatusState `json:"status,omitempty"` -} - -func (x *CheckStep) GetCompletedAt() DateTime { return x.CompletedAt } -func (x *CheckStep) GetConclusion() CheckConclusionState { return x.Conclusion } -func (x *CheckStep) GetExternalId() string { return x.ExternalId } -func (x *CheckStep) GetName() string { return x.Name } -func (x *CheckStep) GetNumber() int { return x.Number } -func (x *CheckStep) GetSecondsToCompletion() int { return x.SecondsToCompletion } -func (x *CheckStep) GetStartedAt() DateTime { return x.StartedAt } -func (x *CheckStep) GetStatus() CheckStatusState { return x.Status } - -// CheckStepConnection (OBJECT): The connection type for CheckStep. -type CheckStepConnection struct { - // Edges: A list of edges. - Edges []*CheckStepEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CheckStep `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CheckStepConnection) GetEdges() []*CheckStepEdge { return x.Edges } -func (x *CheckStepConnection) GetNodes() []*CheckStep { return x.Nodes } -func (x *CheckStepConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CheckStepConnection) GetTotalCount() int { return x.TotalCount } - -// CheckStepEdge (OBJECT): An edge in a connection. -type CheckStepEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CheckStep `json:"node,omitempty"` -} - -func (x *CheckStepEdge) GetCursor() string { return x.Cursor } -func (x *CheckStepEdge) GetNode() *CheckStep { return x.Node } - -// CheckSuite (OBJECT): A check suite. -type CheckSuite struct { - // App: The GitHub App which created this check suite. - App *App `json:"app,omitempty"` - - // Branch: The name of the branch for this check suite. - Branch *Ref `json:"branch,omitempty"` - - // CheckRuns: The check runs associated with a check suite. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - filterBy CheckRunFilter - CheckRuns *CheckRunConnection `json:"checkRuns,omitempty"` - - // Commit: The commit for this check suite. - Commit *Commit `json:"commit,omitempty"` - - // Conclusion: The conclusion of this check suite. - Conclusion CheckConclusionState `json:"conclusion,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The user who triggered the check suite. - Creator *User `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // MatchingPullRequests: A list of open pull requests matching the check suite. - // - // Query arguments: - // - states [PullRequestState!] - // - labels [String!] - // - headRefName String - // - baseRefName String - // - orderBy IssueOrder - // - after String - // - before String - // - first Int - // - last Int - MatchingPullRequests *PullRequestConnection `json:"matchingPullRequests,omitempty"` - - // Push: The push that triggered this check suite. - Push *Push `json:"push,omitempty"` - - // Repository: The repository associated with this check suite. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this check suite. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Status: The status of this check suite. - Status CheckStatusState `json:"status,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this check suite. - Url URI `json:"url,omitempty"` - - // WorkflowRun: The workflow run associated with this check suite. - WorkflowRun *WorkflowRun `json:"workflowRun,omitempty"` -} - -func (x *CheckSuite) GetApp() *App { return x.App } -func (x *CheckSuite) GetBranch() *Ref { return x.Branch } -func (x *CheckSuite) GetCheckRuns() *CheckRunConnection { return x.CheckRuns } -func (x *CheckSuite) GetCommit() *Commit { return x.Commit } -func (x *CheckSuite) GetConclusion() CheckConclusionState { return x.Conclusion } -func (x *CheckSuite) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *CheckSuite) GetCreator() *User { return x.Creator } -func (x *CheckSuite) GetDatabaseId() int { return x.DatabaseId } -func (x *CheckSuite) GetId() ID { return x.Id } -func (x *CheckSuite) GetMatchingPullRequests() *PullRequestConnection { return x.MatchingPullRequests } -func (x *CheckSuite) GetPush() *Push { return x.Push } -func (x *CheckSuite) GetRepository() *Repository { return x.Repository } -func (x *CheckSuite) GetResourcePath() URI { return x.ResourcePath } -func (x *CheckSuite) GetStatus() CheckStatusState { return x.Status } -func (x *CheckSuite) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *CheckSuite) GetUrl() URI { return x.Url } -func (x *CheckSuite) GetWorkflowRun() *WorkflowRun { return x.WorkflowRun } - -// CheckSuiteAutoTriggerPreference (INPUT_OBJECT): The auto-trigger preferences that are available for check suites. -type CheckSuiteAutoTriggerPreference struct { - // AppId: The node ID of the application that owns the check suite. - // - // GraphQL type: ID! - AppId ID `json:"appId,omitempty"` - - // Setting: Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository. - // - // GraphQL type: Boolean! - Setting bool `json:"setting,omitempty"` -} - -// CheckSuiteConnection (OBJECT): The connection type for CheckSuite. -type CheckSuiteConnection struct { - // Edges: A list of edges. - Edges []*CheckSuiteEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CheckSuite `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CheckSuiteConnection) GetEdges() []*CheckSuiteEdge { return x.Edges } -func (x *CheckSuiteConnection) GetNodes() []*CheckSuite { return x.Nodes } -func (x *CheckSuiteConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CheckSuiteConnection) GetTotalCount() int { return x.TotalCount } - -// CheckSuiteEdge (OBJECT): An edge in a connection. -type CheckSuiteEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CheckSuite `json:"node,omitempty"` -} - -func (x *CheckSuiteEdge) GetCursor() string { return x.Cursor } -func (x *CheckSuiteEdge) GetNode() *CheckSuite { return x.Node } - -// CheckSuiteFilter (INPUT_OBJECT): The filters that are available when fetching check suites. -type CheckSuiteFilter struct { - // AppId: Filters the check suites created by this application ID. - // - // GraphQL type: Int - AppId int `json:"appId,omitempty"` - - // CheckName: Filters the check suites by this name. - // - // GraphQL type: String - CheckName string `json:"checkName,omitempty"` -} - -// ClearLabelsFromLabelableInput (INPUT_OBJECT): Autogenerated input type of ClearLabelsFromLabelable. -type ClearLabelsFromLabelableInput struct { - // LabelableId: The id of the labelable object to clear the labels from. - // - // GraphQL type: ID! - LabelableId ID `json:"labelableId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ClearLabelsFromLabelablePayload (OBJECT): Autogenerated return type of ClearLabelsFromLabelable. -type ClearLabelsFromLabelablePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Labelable: The item that was unlabeled. - Labelable Labelable `json:"labelable,omitempty"` -} - -func (x *ClearLabelsFromLabelablePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ClearLabelsFromLabelablePayload) GetLabelable() Labelable { return x.Labelable } - -// CloneProjectInput (INPUT_OBJECT): Autogenerated input type of CloneProject. -type CloneProjectInput struct { - // TargetOwnerId: The owner ID to create the project under. - // - // GraphQL type: ID! - TargetOwnerId ID `json:"targetOwnerId,omitempty"` - - // SourceId: The source project to clone. - // - // GraphQL type: ID! - SourceId ID `json:"sourceId,omitempty"` - - // IncludeWorkflows: Whether or not to clone the source project's workflows. - // - // GraphQL type: Boolean! - IncludeWorkflows bool `json:"includeWorkflows,omitempty"` - - // Name: The name of the project. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // Body: The description of the project. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // Public: The visibility of the project, defaults to false (private). - // - // GraphQL type: Boolean - Public bool `json:"public,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CloneProjectPayload (OBJECT): Autogenerated return type of CloneProject. -type CloneProjectPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // JobStatusId: The id of the JobStatus for populating cloned fields. - JobStatusId string `json:"jobStatusId,omitempty"` - - // Project: The new cloned project. - Project *Project `json:"project,omitempty"` -} - -func (x *CloneProjectPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CloneProjectPayload) GetJobStatusId() string { return x.JobStatusId } -func (x *CloneProjectPayload) GetProject() *Project { return x.Project } - -// CloneTemplateRepositoryInput (INPUT_OBJECT): Autogenerated input type of CloneTemplateRepository. -type CloneTemplateRepositoryInput struct { - // RepositoryId: The Node ID of the template repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Name: The name of the new repository. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // OwnerId: The ID of the owner for the new repository. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // Description: A short description of the new repository. - // - // GraphQL type: String - Description string `json:"description,omitempty"` - - // Visibility: Indicates the repository's visibility level. - // - // GraphQL type: RepositoryVisibility! - Visibility RepositoryVisibility `json:"visibility,omitempty"` - - // IncludeAllBranches: Whether to copy all branches from the template to the new repository. Defaults to copying only the default branch of the template. - // - // GraphQL type: Boolean - IncludeAllBranches bool `json:"includeAllBranches,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CloneTemplateRepositoryPayload (OBJECT): Autogenerated return type of CloneTemplateRepository. -type CloneTemplateRepositoryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The new repository. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *CloneTemplateRepositoryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CloneTemplateRepositoryPayload) GetRepository() *Repository { return x.Repository } - -// Closable (INTERFACE): An object that can be closed. -// Closable_Interface: An object that can be closed. -// -// Possible types: -// -// - *Issue -// - *Milestone -// - *Project -// - *ProjectNext -// - *ProjectV2 -// - *PullRequest -type Closable_Interface interface { - isClosable() - GetClosed() bool - GetClosedAt() DateTime -} - -func (*Issue) isClosable() {} -func (*Milestone) isClosable() {} -func (*Project) isClosable() {} -func (*ProjectNext) isClosable() {} -func (*ProjectV2) isClosable() {} -func (*PullRequest) isClosable() {} - -type Closable struct { - Interface Closable_Interface -} - -func (x *Closable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Closable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Closable", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "Milestone": - x.Interface = new(Milestone) - case "Project": - x.Interface = new(Project) - case "ProjectNext": - x.Interface = new(ProjectNext) - case "ProjectV2": - x.Interface = new(ProjectV2) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// CloseIssueInput (INPUT_OBJECT): Autogenerated input type of CloseIssue. -type CloseIssueInput struct { - // IssueId: ID of the issue to be closed. - // - // GraphQL type: ID! - IssueId ID `json:"issueId,omitempty"` - - // StateReason: The reason the issue is to be closed. - // - // GraphQL type: IssueClosedStateReason - StateReason IssueClosedStateReason `json:"stateReason,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CloseIssuePayload (OBJECT): Autogenerated return type of CloseIssue. -type CloseIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Issue: The issue that was closed. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *CloseIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CloseIssuePayload) GetIssue() *Issue { return x.Issue } - -// ClosePullRequestInput (INPUT_OBJECT): Autogenerated input type of ClosePullRequest. -type ClosePullRequestInput struct { - // PullRequestId: ID of the pull request to be closed. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ClosePullRequestPayload (OBJECT): Autogenerated return type of ClosePullRequest. -type ClosePullRequestPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The pull request that was closed. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *ClosePullRequestPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ClosePullRequestPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// ClosedEvent (OBJECT): Represents a 'closed' event on any `Closable`. -type ClosedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // Closable: Object that was closed. - Closable Closable `json:"closable,omitempty"` - - // Closer: Object which triggered the creation of this event. - Closer Closer `json:"closer,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // ResourcePath: The HTTP path for this closed event. - ResourcePath URI `json:"resourcePath,omitempty"` - - // StateReason: The reason the issue state was changed to closed. - StateReason IssueStateReason `json:"stateReason,omitempty"` - - // Url: The HTTP URL for this closed event. - Url URI `json:"url,omitempty"` -} - -func (x *ClosedEvent) GetActor() Actor { return x.Actor } -func (x *ClosedEvent) GetClosable() Closable { return x.Closable } -func (x *ClosedEvent) GetCloser() Closer { return x.Closer } -func (x *ClosedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ClosedEvent) GetId() ID { return x.Id } -func (x *ClosedEvent) GetResourcePath() URI { return x.ResourcePath } -func (x *ClosedEvent) GetStateReason() IssueStateReason { return x.StateReason } -func (x *ClosedEvent) GetUrl() URI { return x.Url } - -// Closer (UNION): The object which triggered a `ClosedEvent`. -// Closer_Interface: The object which triggered a `ClosedEvent`. -// -// Possible types: -// -// - *Commit -// - *PullRequest -type Closer_Interface interface { - isCloser() -} - -func (*Commit) isCloser() {} -func (*PullRequest) isCloser() {} - -type Closer struct { - Interface Closer_Interface -} - -func (x *Closer) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Closer) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Closer", info.Typename) - case "Commit": - x.Interface = new(Commit) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// CodeOfConduct (OBJECT): The Code of Conduct for a repository. -type CodeOfConduct struct { - // Body: The body of the Code of Conduct. - Body string `json:"body,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Key: The key for the Code of Conduct. - Key string `json:"key,omitempty"` - - // Name: The formal name of the Code of Conduct. - Name string `json:"name,omitempty"` - - // ResourcePath: The HTTP path for this Code of Conduct. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this Code of Conduct. - Url URI `json:"url,omitempty"` -} - -func (x *CodeOfConduct) GetBody() string { return x.Body } -func (x *CodeOfConduct) GetId() ID { return x.Id } -func (x *CodeOfConduct) GetKey() string { return x.Key } -func (x *CodeOfConduct) GetName() string { return x.Name } -func (x *CodeOfConduct) GetResourcePath() URI { return x.ResourcePath } -func (x *CodeOfConduct) GetUrl() URI { return x.Url } - -// CollaboratorAffiliation (ENUM): Collaborators affiliation level with a subject. -type CollaboratorAffiliation string - -// CollaboratorAffiliation_OUTSIDE: All outside collaborators of an organization-owned subject. -const CollaboratorAffiliation_OUTSIDE CollaboratorAffiliation = "OUTSIDE" - -// CollaboratorAffiliation_DIRECT: All collaborators with permissions to an organization-owned subject, regardless of organization membership status. -const CollaboratorAffiliation_DIRECT CollaboratorAffiliation = "DIRECT" - -// CollaboratorAffiliation_ALL: All collaborators the authenticated user can see. -const CollaboratorAffiliation_ALL CollaboratorAffiliation = "ALL" - -// Comment (INTERFACE): Represents a comment. -// Comment_Interface: Represents a comment. -// -// Possible types: -// -// - *CommitComment -// - *Discussion -// - *DiscussionComment -// - *GistComment -// - *Issue -// - *IssueComment -// - *PullRequest -// - *PullRequestReview -// - *PullRequestReviewComment -// - *TeamDiscussion -// - *TeamDiscussionComment -type Comment_Interface interface { - isComment() - GetAuthor() Actor - GetAuthorAssociation() CommentAuthorAssociation - GetBody() string - GetBodyHTML() template.HTML - GetBodyText() string - GetCreatedAt() DateTime - GetCreatedViaEmail() bool - GetEditor() Actor - GetId() ID - GetIncludesCreatedEdit() bool - GetLastEditedAt() DateTime - GetPublishedAt() DateTime - GetUpdatedAt() DateTime - GetUserContentEdits() *UserContentEditConnection - GetViewerDidAuthor() bool -} - -func (*CommitComment) isComment() {} -func (*Discussion) isComment() {} -func (*DiscussionComment) isComment() {} -func (*GistComment) isComment() {} -func (*Issue) isComment() {} -func (*IssueComment) isComment() {} -func (*PullRequest) isComment() {} -func (*PullRequestReview) isComment() {} -func (*PullRequestReviewComment) isComment() {} -func (*TeamDiscussion) isComment() {} -func (*TeamDiscussionComment) isComment() {} - -type Comment struct { - Interface Comment_Interface -} - -func (x *Comment) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Comment) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Comment", info.Typename) - case "CommitComment": - x.Interface = new(CommitComment) - case "Discussion": - x.Interface = new(Discussion) - case "DiscussionComment": - x.Interface = new(DiscussionComment) - case "GistComment": - x.Interface = new(GistComment) - case "Issue": - x.Interface = new(Issue) - case "IssueComment": - x.Interface = new(IssueComment) - case "PullRequest": - x.Interface = new(PullRequest) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - case "TeamDiscussion": - x.Interface = new(TeamDiscussion) - case "TeamDiscussionComment": - x.Interface = new(TeamDiscussionComment) - } - return json.Unmarshal(js, x.Interface) -} - -// CommentAuthorAssociation (ENUM): A comment author association with repository. -type CommentAuthorAssociation string - -// CommentAuthorAssociation_MEMBER: Author is a member of the organization that owns the repository. -const CommentAuthorAssociation_MEMBER CommentAuthorAssociation = "MEMBER" - -// CommentAuthorAssociation_OWNER: Author is the owner of the repository. -const CommentAuthorAssociation_OWNER CommentAuthorAssociation = "OWNER" - -// CommentAuthorAssociation_MANNEQUIN: Author is a placeholder for an unclaimed user. -const CommentAuthorAssociation_MANNEQUIN CommentAuthorAssociation = "MANNEQUIN" - -// CommentAuthorAssociation_COLLABORATOR: Author has been invited to collaborate on the repository. -const CommentAuthorAssociation_COLLABORATOR CommentAuthorAssociation = "COLLABORATOR" - -// CommentAuthorAssociation_CONTRIBUTOR: Author has previously committed to the repository. -const CommentAuthorAssociation_CONTRIBUTOR CommentAuthorAssociation = "CONTRIBUTOR" - -// CommentAuthorAssociation_FIRST_TIME_CONTRIBUTOR: Author has not previously committed to the repository. -const CommentAuthorAssociation_FIRST_TIME_CONTRIBUTOR CommentAuthorAssociation = "FIRST_TIME_CONTRIBUTOR" - -// CommentAuthorAssociation_FIRST_TIMER: Author has not previously committed to GitHub. -const CommentAuthorAssociation_FIRST_TIMER CommentAuthorAssociation = "FIRST_TIMER" - -// CommentAuthorAssociation_NONE: Author has no association with the repository. -const CommentAuthorAssociation_NONE CommentAuthorAssociation = "NONE" - -// CommentCannotUpdateReason (ENUM): The possible errors that will prevent a user from updating a comment. -type CommentCannotUpdateReason string - -// CommentCannotUpdateReason_ARCHIVED: Unable to create comment because repository is archived. -const CommentCannotUpdateReason_ARCHIVED CommentCannotUpdateReason = "ARCHIVED" - -// CommentCannotUpdateReason_INSUFFICIENT_ACCESS: You must be the author or have write access to this repository to update this comment. -const CommentCannotUpdateReason_INSUFFICIENT_ACCESS CommentCannotUpdateReason = "INSUFFICIENT_ACCESS" - -// CommentCannotUpdateReason_LOCKED: Unable to create comment because issue is locked. -const CommentCannotUpdateReason_LOCKED CommentCannotUpdateReason = "LOCKED" - -// CommentCannotUpdateReason_LOGIN_REQUIRED: You must be logged in to update this comment. -const CommentCannotUpdateReason_LOGIN_REQUIRED CommentCannotUpdateReason = "LOGIN_REQUIRED" - -// CommentCannotUpdateReason_MAINTENANCE: Repository is under maintenance. -const CommentCannotUpdateReason_MAINTENANCE CommentCannotUpdateReason = "MAINTENANCE" - -// CommentCannotUpdateReason_VERIFIED_EMAIL_REQUIRED: At least one email address must be verified to update this comment. -const CommentCannotUpdateReason_VERIFIED_EMAIL_REQUIRED CommentCannotUpdateReason = "VERIFIED_EMAIL_REQUIRED" - -// CommentCannotUpdateReason_DENIED: You cannot update this comment. -const CommentCannotUpdateReason_DENIED CommentCannotUpdateReason = "DENIED" - -// CommentDeletedEvent (OBJECT): Represents a 'comment_deleted' event on a given issue or pull request. -type CommentDeletedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // DeletedCommentAuthor: The user who authored the deleted comment. - DeletedCommentAuthor Actor `json:"deletedCommentAuthor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` -} - -func (x *CommentDeletedEvent) GetActor() Actor { return x.Actor } -func (x *CommentDeletedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *CommentDeletedEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *CommentDeletedEvent) GetDeletedCommentAuthor() Actor { return x.DeletedCommentAuthor } -func (x *CommentDeletedEvent) GetId() ID { return x.Id } - -// Commit (OBJECT): Represents a Git commit. -type Commit struct { - // AbbreviatedOid: An abbreviated version of the Git object ID. - AbbreviatedOid string `json:"abbreviatedOid,omitempty"` - - // Additions: The number of additions in this commit. - Additions int `json:"additions,omitempty"` - - // AssociatedPullRequests: The merged Pull Request that introduced the commit to the repository. If the commit is not present in the default branch, additionally returns open Pull Requests associated with the commit. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy PullRequestOrder - AssociatedPullRequests *PullRequestConnection `json:"associatedPullRequests,omitempty"` - - // Author: Authorship details of the commit. - Author *GitActor `json:"author,omitempty"` - - // AuthoredByCommitter: Check if the committer and the author match. - AuthoredByCommitter bool `json:"authoredByCommitter,omitempty"` - - // AuthoredDate: The datetime when this commit was authored. - AuthoredDate DateTime `json:"authoredDate,omitempty"` - - // Authors: The list of authors for this commit based on the git author and the Co-authored-by - // message trailer. The git author will always be first. - // . - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Authors *GitActorConnection `json:"authors,omitempty"` - - // Blame: Fetches `git blame` information. - // - // Query arguments: - // - path String! - Blame *Blame `json:"blame,omitempty"` - - // ChangedFiles: The number of changed files in this commit. - ChangedFiles int `json:"changedFiles,omitempty"` - - // CheckSuites: The check suites associated with a commit. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - filterBy CheckSuiteFilter - CheckSuites *CheckSuiteConnection `json:"checkSuites,omitempty"` - - // Comments: Comments made on the commit. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Comments *CommitCommentConnection `json:"comments,omitempty"` - - // CommitResourcePath: The HTTP path for this Git object. - CommitResourcePath URI `json:"commitResourcePath,omitempty"` - - // CommitUrl: The HTTP URL for this Git object. - CommitUrl URI `json:"commitUrl,omitempty"` - - // CommittedDate: The datetime when this commit was committed. - CommittedDate DateTime `json:"committedDate,omitempty"` - - // CommittedViaWeb: Check if committed via GitHub web UI. - CommittedViaWeb bool `json:"committedViaWeb,omitempty"` - - // Committer: Committer details of the commit. - Committer *GitActor `json:"committer,omitempty"` - - // Deletions: The number of deletions in this commit. - Deletions int `json:"deletions,omitempty"` - - // Deployments: The deployments associated with a commit. - // - // Query arguments: - // - environments [String!] - // - orderBy DeploymentOrder - // - after String - // - before String - // - first Int - // - last Int - Deployments *DeploymentConnection `json:"deployments,omitempty"` - - // File: The tree entry representing the file located at the given path. - // - // Query arguments: - // - path String! - File *TreeEntry `json:"file,omitempty"` - - // History: The linear commit history starting from (and including) this commit, in the same order as `git log`. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - path String - // - author CommitAuthor - // - since GitTimestamp - // - until GitTimestamp - History *CommitHistoryConnection `json:"history,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Message: The Git commit message. - Message string `json:"message,omitempty"` - - // MessageBody: The Git commit message body. - MessageBody string `json:"messageBody,omitempty"` - - // MessageBodyHTML: The commit message body rendered to HTML. - MessageBodyHTML template.HTML `json:"messageBodyHTML,omitempty"` - - // MessageHeadline: The Git commit message headline. - MessageHeadline string `json:"messageHeadline,omitempty"` - - // MessageHeadlineHTML: The commit message headline rendered to HTML. - MessageHeadlineHTML template.HTML `json:"messageHeadlineHTML,omitempty"` - - // Oid: The Git object ID. - Oid GitObjectID `json:"oid,omitempty"` - - // OnBehalfOf: The organization this commit was made on behalf of. - OnBehalfOf *Organization `json:"onBehalfOf,omitempty"` - - // Parents: The parents of a commit. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Parents *CommitConnection `json:"parents,omitempty"` - - // PushedDate: The datetime when this commit was pushed. - PushedDate DateTime `json:"pushedDate,omitempty"` - - // Repository: The Repository this commit belongs to. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this commit. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Signature: Commit signing information, if present. - Signature GitSignature `json:"signature,omitempty"` - - // Status: Status information for this commit. - Status *Status `json:"status,omitempty"` - - // StatusCheckRollup: Check and Status rollup information for this commit. - StatusCheckRollup *StatusCheckRollup `json:"statusCheckRollup,omitempty"` - - // Submodules: Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Submodules *SubmoduleConnection `json:"submodules,omitempty"` - - // TarballUrl: Returns a URL to download a tarball archive for a repository. - // Note: For private repositories, these links are temporary and expire after five minutes. - TarballUrl URI `json:"tarballUrl,omitempty"` - - // Tree: Commit's root Tree. - Tree *Tree `json:"tree,omitempty"` - - // TreeResourcePath: The HTTP path for the tree of this commit. - TreeResourcePath URI `json:"treeResourcePath,omitempty"` - - // TreeUrl: The HTTP URL for the tree of this commit. - TreeUrl URI `json:"treeUrl,omitempty"` - - // Url: The HTTP URL for this commit. - Url URI `json:"url,omitempty"` - - // ViewerCanSubscribe: Check if the viewer is able to change their subscription status for the repository. - ViewerCanSubscribe bool `json:"viewerCanSubscribe,omitempty"` - - // ViewerSubscription: Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - ViewerSubscription SubscriptionState `json:"viewerSubscription,omitempty"` - - // ZipballUrl: Returns a URL to download a zipball archive for a repository. - // Note: For private repositories, these links are temporary and expire after five minutes. - ZipballUrl URI `json:"zipballUrl,omitempty"` -} - -func (x *Commit) GetAbbreviatedOid() string { return x.AbbreviatedOid } -func (x *Commit) GetAdditions() int { return x.Additions } -func (x *Commit) GetAssociatedPullRequests() *PullRequestConnection { return x.AssociatedPullRequests } -func (x *Commit) GetAuthor() *GitActor { return x.Author } -func (x *Commit) GetAuthoredByCommitter() bool { return x.AuthoredByCommitter } -func (x *Commit) GetAuthoredDate() DateTime { return x.AuthoredDate } -func (x *Commit) GetAuthors() *GitActorConnection { return x.Authors } -func (x *Commit) GetBlame() *Blame { return x.Blame } -func (x *Commit) GetChangedFiles() int { return x.ChangedFiles } -func (x *Commit) GetCheckSuites() *CheckSuiteConnection { return x.CheckSuites } -func (x *Commit) GetComments() *CommitCommentConnection { return x.Comments } -func (x *Commit) GetCommitResourcePath() URI { return x.CommitResourcePath } -func (x *Commit) GetCommitUrl() URI { return x.CommitUrl } -func (x *Commit) GetCommittedDate() DateTime { return x.CommittedDate } -func (x *Commit) GetCommittedViaWeb() bool { return x.CommittedViaWeb } -func (x *Commit) GetCommitter() *GitActor { return x.Committer } -func (x *Commit) GetDeletions() int { return x.Deletions } -func (x *Commit) GetDeployments() *DeploymentConnection { return x.Deployments } -func (x *Commit) GetFile() *TreeEntry { return x.File } -func (x *Commit) GetHistory() *CommitHistoryConnection { return x.History } -func (x *Commit) GetId() ID { return x.Id } -func (x *Commit) GetMessage() string { return x.Message } -func (x *Commit) GetMessageBody() string { return x.MessageBody } -func (x *Commit) GetMessageBodyHTML() template.HTML { return x.MessageBodyHTML } -func (x *Commit) GetMessageHeadline() string { return x.MessageHeadline } -func (x *Commit) GetMessageHeadlineHTML() template.HTML { return x.MessageHeadlineHTML } -func (x *Commit) GetOid() GitObjectID { return x.Oid } -func (x *Commit) GetOnBehalfOf() *Organization { return x.OnBehalfOf } -func (x *Commit) GetParents() *CommitConnection { return x.Parents } -func (x *Commit) GetPushedDate() DateTime { return x.PushedDate } -func (x *Commit) GetRepository() *Repository { return x.Repository } -func (x *Commit) GetResourcePath() URI { return x.ResourcePath } -func (x *Commit) GetSignature() GitSignature { return x.Signature } -func (x *Commit) GetStatus() *Status { return x.Status } -func (x *Commit) GetStatusCheckRollup() *StatusCheckRollup { return x.StatusCheckRollup } -func (x *Commit) GetSubmodules() *SubmoduleConnection { return x.Submodules } -func (x *Commit) GetTarballUrl() URI { return x.TarballUrl } -func (x *Commit) GetTree() *Tree { return x.Tree } -func (x *Commit) GetTreeResourcePath() URI { return x.TreeResourcePath } -func (x *Commit) GetTreeUrl() URI { return x.TreeUrl } -func (x *Commit) GetUrl() URI { return x.Url } -func (x *Commit) GetViewerCanSubscribe() bool { return x.ViewerCanSubscribe } -func (x *Commit) GetViewerSubscription() SubscriptionState { return x.ViewerSubscription } -func (x *Commit) GetZipballUrl() URI { return x.ZipballUrl } - -// CommitAuthor (INPUT_OBJECT): Specifies an author for filtering Git commits. -type CommitAuthor struct { - // Id: ID of a User to filter by. If non-null, only commits authored by this user will be returned. This field takes precedence over emails. - // - // GraphQL type: ID - Id ID `json:"id,omitempty"` - - // Emails: Email addresses to filter by. Commits authored by any of the specified email addresses will be returned. - // - // GraphQL type: [String!] - Emails []string `json:"emails,omitempty"` -} - -// CommitComment (OBJECT): Represents a comment on a given Commit. -type CommitComment struct { - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the subject of the comment. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: Identifies the comment body. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // Commit: Identifies the commit associated with the comment, if the commit exists. - Commit *Commit `json:"commit,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // IsMinimized: Returns whether or not a comment has been minimized. - IsMinimized bool `json:"isMinimized,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // MinimizedReason: Returns why the comment was minimized. - MinimizedReason string `json:"minimizedReason,omitempty"` - - // Path: Identifies the file path associated with the comment. - Path string `json:"path,omitempty"` - - // Position: Identifies the line position associated with the comment. - Position int `json:"position,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path permalink for this commit comment. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL permalink for this commit comment. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanMinimize: Check if the current viewer can minimize this object. - ViewerCanMinimize bool `json:"viewerCanMinimize,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` -} - -func (x *CommitComment) GetAuthor() Actor { return x.Author } -func (x *CommitComment) GetAuthorAssociation() CommentAuthorAssociation { return x.AuthorAssociation } -func (x *CommitComment) GetBody() string { return x.Body } -func (x *CommitComment) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *CommitComment) GetBodyText() string { return x.BodyText } -func (x *CommitComment) GetCommit() *Commit { return x.Commit } -func (x *CommitComment) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *CommitComment) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *CommitComment) GetDatabaseId() int { return x.DatabaseId } -func (x *CommitComment) GetEditor() Actor { return x.Editor } -func (x *CommitComment) GetId() ID { return x.Id } -func (x *CommitComment) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *CommitComment) GetIsMinimized() bool { return x.IsMinimized } -func (x *CommitComment) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *CommitComment) GetMinimizedReason() string { return x.MinimizedReason } -func (x *CommitComment) GetPath() string { return x.Path } -func (x *CommitComment) GetPosition() int { return x.Position } -func (x *CommitComment) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *CommitComment) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *CommitComment) GetReactions() *ReactionConnection { return x.Reactions } -func (x *CommitComment) GetRepository() *Repository { return x.Repository } -func (x *CommitComment) GetResourcePath() URI { return x.ResourcePath } -func (x *CommitComment) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *CommitComment) GetUrl() URI { return x.Url } -func (x *CommitComment) GetUserContentEdits() *UserContentEditConnection { return x.UserContentEdits } -func (x *CommitComment) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *CommitComment) GetViewerCanMinimize() bool { return x.ViewerCanMinimize } -func (x *CommitComment) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *CommitComment) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *CommitComment) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *CommitComment) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } - -// CommitCommentConnection (OBJECT): The connection type for CommitComment. -type CommitCommentConnection struct { - // Edges: A list of edges. - Edges []*CommitCommentEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CommitComment `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CommitCommentConnection) GetEdges() []*CommitCommentEdge { return x.Edges } -func (x *CommitCommentConnection) GetNodes() []*CommitComment { return x.Nodes } -func (x *CommitCommentConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CommitCommentConnection) GetTotalCount() int { return x.TotalCount } - -// CommitCommentEdge (OBJECT): An edge in a connection. -type CommitCommentEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CommitComment `json:"node,omitempty"` -} - -func (x *CommitCommentEdge) GetCursor() string { return x.Cursor } -func (x *CommitCommentEdge) GetNode() *CommitComment { return x.Node } - -// CommitCommentThread (OBJECT): A thread of comments on a commit. -type CommitCommentThread struct { - // Comments: The comments that exist in this thread. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Comments *CommitCommentConnection `json:"comments,omitempty"` - - // Commit: The commit the comments were made on. - Commit *Commit `json:"commit,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Path: The file the comments were made on. - Path string `json:"path,omitempty"` - - // Position: The position in the diff for the commit that the comment was made on. - Position int `json:"position,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *CommitCommentThread) GetComments() *CommitCommentConnection { return x.Comments } -func (x *CommitCommentThread) GetCommit() *Commit { return x.Commit } -func (x *CommitCommentThread) GetId() ID { return x.Id } -func (x *CommitCommentThread) GetPath() string { return x.Path } -func (x *CommitCommentThread) GetPosition() int { return x.Position } -func (x *CommitCommentThread) GetRepository() *Repository { return x.Repository } - -// CommitConnection (OBJECT): The connection type for Commit. -type CommitConnection struct { - // Edges: A list of edges. - Edges []*CommitEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Commit `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CommitConnection) GetEdges() []*CommitEdge { return x.Edges } -func (x *CommitConnection) GetNodes() []*Commit { return x.Nodes } -func (x *CommitConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CommitConnection) GetTotalCount() int { return x.TotalCount } - -// CommitContributionOrder (INPUT_OBJECT): Ordering options for commit contribution connections. -type CommitContributionOrder struct { - // Field: The field by which to order commit contributions. - // - // GraphQL type: CommitContributionOrderField! - Field CommitContributionOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// CommitContributionOrderField (ENUM): Properties by which commit contribution connections can be ordered. -type CommitContributionOrderField string - -// CommitContributionOrderField_OCCURRED_AT: Order commit contributions by when they were made. -const CommitContributionOrderField_OCCURRED_AT CommitContributionOrderField = "OCCURRED_AT" - -// CommitContributionOrderField_COMMIT_COUNT: Order commit contributions by how many commits they represent. -const CommitContributionOrderField_COMMIT_COUNT CommitContributionOrderField = "COMMIT_COUNT" - -// CommitContributionsByRepository (OBJECT): This aggregates commits made by a user within one repository. -type CommitContributionsByRepository struct { - // Contributions: The commit contributions, each representing a day. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy CommitContributionOrder - Contributions *CreatedCommitContributionConnection `json:"contributions,omitempty"` - - // Repository: The repository in which the commits were made. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for the user's commits to the repository in this time range. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for the user's commits to the repository in this time range. - Url URI `json:"url,omitempty"` -} - -func (x *CommitContributionsByRepository) GetContributions() *CreatedCommitContributionConnection { - return x.Contributions -} -func (x *CommitContributionsByRepository) GetRepository() *Repository { return x.Repository } -func (x *CommitContributionsByRepository) GetResourcePath() URI { return x.ResourcePath } -func (x *CommitContributionsByRepository) GetUrl() URI { return x.Url } - -// CommitEdge (OBJECT): An edge in a connection. -type CommitEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Commit `json:"node,omitempty"` -} - -func (x *CommitEdge) GetCursor() string { return x.Cursor } -func (x *CommitEdge) GetNode() *Commit { return x.Node } - -// CommitHistoryConnection (OBJECT): The connection type for Commit. -type CommitHistoryConnection struct { - // Edges: A list of edges. - Edges []*CommitEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Commit `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CommitHistoryConnection) GetEdges() []*CommitEdge { return x.Edges } -func (x *CommitHistoryConnection) GetNodes() []*Commit { return x.Nodes } -func (x *CommitHistoryConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CommitHistoryConnection) GetTotalCount() int { return x.TotalCount } - -// CommitMessage (INPUT_OBJECT): A message to include with a new commit. -type CommitMessage struct { - // Headline: The headline of the message. - // - // GraphQL type: String! - Headline string `json:"headline,omitempty"` - - // Body: The body of the message. - // - // GraphQL type: String - Body string `json:"body,omitempty"` -} - -// CommittableBranch (INPUT_OBJECT): A git ref for a commit to be appended to. -// -// The ref must be a branch, i.e. its fully qualified name must start -// with `refs/heads/` (although the input is not required to be fully -// qualified). -// -// The Ref may be specified by its global node ID or by the -// repository nameWithOwner and branch name. -// -// ### Examples -// -// Specify a branch using a global node ID: -// -// { "id": "MDM6UmVmMTpyZWZzL2hlYWRzL21haW4=" } -// -// Specify a branch using nameWithOwner and branch name: -// -// { -// "nameWithOwner": "github/graphql-client", -// "branchName": "main" -// } -// -// . -type CommittableBranch struct { - // Id: The Node ID of the Ref to be updated. - // - // GraphQL type: ID - Id ID `json:"id,omitempty"` - - // RepositoryNameWithOwner: The nameWithOwner of the repository to commit to. - // - // GraphQL type: String - RepositoryNameWithOwner string `json:"repositoryNameWithOwner,omitempty"` - - // BranchName: The unqualified name of the branch to append the commit to. - // - // GraphQL type: String - BranchName string `json:"branchName,omitempty"` -} - -// ConnectedEvent (OBJECT): Represents a 'connected' event on a given issue or pull request. -type ConnectedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCrossRepository: Reference originated in a different repository. - IsCrossRepository bool `json:"isCrossRepository,omitempty"` - - // Source: Issue or pull request that made the reference. - Source ReferencedSubject `json:"source,omitempty"` - - // Subject: Issue or pull request which was connected. - Subject ReferencedSubject `json:"subject,omitempty"` -} - -func (x *ConnectedEvent) GetActor() Actor { return x.Actor } -func (x *ConnectedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ConnectedEvent) GetId() ID { return x.Id } -func (x *ConnectedEvent) GetIsCrossRepository() bool { return x.IsCrossRepository } -func (x *ConnectedEvent) GetSource() ReferencedSubject { return x.Source } -func (x *ConnectedEvent) GetSubject() ReferencedSubject { return x.Subject } - -// Contribution (INTERFACE): Represents a contribution a user made on GitHub, such as opening an issue. -// Contribution_Interface: Represents a contribution a user made on GitHub, such as opening an issue. -// -// Possible types: -// -// - *CreatedCommitContribution -// - *CreatedIssueContribution -// - *CreatedPullRequestContribution -// - *CreatedPullRequestReviewContribution -// - *CreatedRepositoryContribution -// - *JoinedGitHubContribution -// - *RestrictedContribution -type Contribution_Interface interface { - isContribution() - GetIsRestricted() bool - GetOccurredAt() DateTime - GetResourcePath() URI - GetUrl() URI - GetUser() *User -} - -func (*CreatedCommitContribution) isContribution() {} -func (*CreatedIssueContribution) isContribution() {} -func (*CreatedPullRequestContribution) isContribution() {} -func (*CreatedPullRequestReviewContribution) isContribution() {} -func (*CreatedRepositoryContribution) isContribution() {} -func (*JoinedGitHubContribution) isContribution() {} -func (*RestrictedContribution) isContribution() {} - -type Contribution struct { - Interface Contribution_Interface -} - -func (x *Contribution) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Contribution) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Contribution", info.Typename) - case "CreatedCommitContribution": - x.Interface = new(CreatedCommitContribution) - case "CreatedIssueContribution": - x.Interface = new(CreatedIssueContribution) - case "CreatedPullRequestContribution": - x.Interface = new(CreatedPullRequestContribution) - case "CreatedPullRequestReviewContribution": - x.Interface = new(CreatedPullRequestReviewContribution) - case "CreatedRepositoryContribution": - x.Interface = new(CreatedRepositoryContribution) - case "JoinedGitHubContribution": - x.Interface = new(JoinedGitHubContribution) - case "RestrictedContribution": - x.Interface = new(RestrictedContribution) - } - return json.Unmarshal(js, x.Interface) -} - -// ContributionCalendar (OBJECT): A calendar of contributions made on GitHub by a user. -type ContributionCalendar struct { - // Colors: A list of hex color codes used in this calendar. The darker the color, the more contributions it represents. - Colors []string `json:"colors,omitempty"` - - // IsHalloween: Determine if the color set was chosen because it's currently Halloween. - IsHalloween bool `json:"isHalloween,omitempty"` - - // Months: A list of the months of contributions in this calendar. - Months []*ContributionCalendarMonth `json:"months,omitempty"` - - // TotalContributions: The count of total contributions in the calendar. - TotalContributions int `json:"totalContributions,omitempty"` - - // Weeks: A list of the weeks of contributions in this calendar. - Weeks []*ContributionCalendarWeek `json:"weeks,omitempty"` -} - -func (x *ContributionCalendar) GetColors() []string { return x.Colors } -func (x *ContributionCalendar) GetIsHalloween() bool { return x.IsHalloween } -func (x *ContributionCalendar) GetMonths() []*ContributionCalendarMonth { return x.Months } -func (x *ContributionCalendar) GetTotalContributions() int { return x.TotalContributions } -func (x *ContributionCalendar) GetWeeks() []*ContributionCalendarWeek { return x.Weeks } - -// ContributionCalendarDay (OBJECT): Represents a single day of contributions on GitHub by a user. -type ContributionCalendarDay struct { - // Color: The hex color code that represents how many contributions were made on this day compared to others in the calendar. - Color string `json:"color,omitempty"` - - // ContributionCount: How many contributions were made by the user on this day. - ContributionCount int `json:"contributionCount,omitempty"` - - // ContributionLevel: Indication of contributions, relative to other days. Can be used to indicate which color to represent this day on a calendar. - ContributionLevel ContributionLevel `json:"contributionLevel,omitempty"` - - // Date: The day this square represents. - Date Date `json:"date,omitempty"` - - // Weekday: A number representing which day of the week this square represents, e.g., 1 is Monday. - Weekday int `json:"weekday,omitempty"` -} - -func (x *ContributionCalendarDay) GetColor() string { return x.Color } -func (x *ContributionCalendarDay) GetContributionCount() int { return x.ContributionCount } -func (x *ContributionCalendarDay) GetContributionLevel() ContributionLevel { - return x.ContributionLevel -} -func (x *ContributionCalendarDay) GetDate() Date { return x.Date } -func (x *ContributionCalendarDay) GetWeekday() int { return x.Weekday } - -// ContributionCalendarMonth (OBJECT): A month of contributions in a user's contribution graph. -type ContributionCalendarMonth struct { - // FirstDay: The date of the first day of this month. - FirstDay Date `json:"firstDay,omitempty"` - - // Name: The name of the month. - Name string `json:"name,omitempty"` - - // TotalWeeks: How many weeks started in this month. - TotalWeeks int `json:"totalWeeks,omitempty"` - - // Year: The year the month occurred in. - Year int `json:"year,omitempty"` -} - -func (x *ContributionCalendarMonth) GetFirstDay() Date { return x.FirstDay } -func (x *ContributionCalendarMonth) GetName() string { return x.Name } -func (x *ContributionCalendarMonth) GetTotalWeeks() int { return x.TotalWeeks } -func (x *ContributionCalendarMonth) GetYear() int { return x.Year } - -// ContributionCalendarWeek (OBJECT): A week of contributions in a user's contribution graph. -type ContributionCalendarWeek struct { - // ContributionDays: The days of contributions in this week. - ContributionDays []*ContributionCalendarDay `json:"contributionDays,omitempty"` - - // FirstDay: The date of the earliest square in this week. - FirstDay Date `json:"firstDay,omitempty"` -} - -func (x *ContributionCalendarWeek) GetContributionDays() []*ContributionCalendarDay { - return x.ContributionDays -} -func (x *ContributionCalendarWeek) GetFirstDay() Date { return x.FirstDay } - -// ContributionLevel (ENUM): Varying levels of contributions from none to many. -type ContributionLevel string - -// ContributionLevel_NONE: No contributions occurred. -const ContributionLevel_NONE ContributionLevel = "NONE" - -// ContributionLevel_FIRST_QUARTILE: Lowest 25% of days of contributions. -const ContributionLevel_FIRST_QUARTILE ContributionLevel = "FIRST_QUARTILE" - -// ContributionLevel_SECOND_QUARTILE: Second lowest 25% of days of contributions. More contributions than the first quartile. -const ContributionLevel_SECOND_QUARTILE ContributionLevel = "SECOND_QUARTILE" - -// ContributionLevel_THIRD_QUARTILE: Second highest 25% of days of contributions. More contributions than second quartile, less than the fourth quartile. -const ContributionLevel_THIRD_QUARTILE ContributionLevel = "THIRD_QUARTILE" - -// ContributionLevel_FOURTH_QUARTILE: Highest 25% of days of contributions. More contributions than the third quartile. -const ContributionLevel_FOURTH_QUARTILE ContributionLevel = "FOURTH_QUARTILE" - -// ContributionOrder (INPUT_OBJECT): Ordering options for contribution connections. -type ContributionOrder struct { - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ContributionsCollection (OBJECT): A contributions collection aggregates contributions such as opened issues and commits created by a user. -type ContributionsCollection struct { - // CommitContributionsByRepository: Commit contributions made by the user, grouped by repository. - // - // Query arguments: - // - maxRepositories Int - CommitContributionsByRepository []*CommitContributionsByRepository `json:"commitContributionsByRepository,omitempty"` - - // ContributionCalendar: A calendar of this user's contributions on GitHub. - ContributionCalendar *ContributionCalendar `json:"contributionCalendar,omitempty"` - - // ContributionYears: The years the user has been making contributions with the most recent year first. - ContributionYears []int `json:"contributionYears,omitempty"` - - // DoesEndInCurrentMonth: Determine if this collection's time span ends in the current month. - // . - DoesEndInCurrentMonth bool `json:"doesEndInCurrentMonth,omitempty"` - - // EarliestRestrictedContributionDate: The date of the first restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. - EarliestRestrictedContributionDate Date `json:"earliestRestrictedContributionDate,omitempty"` - - // EndedAt: The ending date and time of this collection. - EndedAt DateTime `json:"endedAt,omitempty"` - - // FirstIssueContribution: 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. - FirstIssueContribution CreatedIssueOrRestrictedContribution `json:"firstIssueContribution,omitempty"` - - // FirstPullRequestContribution: 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. - FirstPullRequestContribution CreatedPullRequestOrRestrictedContribution `json:"firstPullRequestContribution,omitempty"` - - // FirstRepositoryContribution: 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. - FirstRepositoryContribution CreatedRepositoryOrRestrictedContribution `json:"firstRepositoryContribution,omitempty"` - - // HasActivityInThePast: Does the user have any more activity in the timeline that occurred prior to the collection's time range?. - HasActivityInThePast bool `json:"hasActivityInThePast,omitempty"` - - // HasAnyContributions: Determine if there are any contributions in this collection. - HasAnyContributions bool `json:"hasAnyContributions,omitempty"` - - // HasAnyRestrictedContributions: Determine if the user made any contributions in this time frame whose details are not visible because they were made in a private repository. Can only be true if the user enabled private contribution counts. - HasAnyRestrictedContributions bool `json:"hasAnyRestrictedContributions,omitempty"` - - // IsSingleDay: Whether or not the collector's time span is all within the same day. - IsSingleDay bool `json:"isSingleDay,omitempty"` - - // IssueContributions: A list of issues the user opened. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - excludeFirst Boolean - // - excludePopular Boolean - // - orderBy ContributionOrder - IssueContributions *CreatedIssueContributionConnection `json:"issueContributions,omitempty"` - - // IssueContributionsByRepository: Issue contributions made by the user, grouped by repository. - // - // Query arguments: - // - maxRepositories Int - // - excludeFirst Boolean - // - excludePopular Boolean - IssueContributionsByRepository []*IssueContributionsByRepository `json:"issueContributionsByRepository,omitempty"` - - // JoinedGitHubContribution: 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. - JoinedGitHubContribution *JoinedGitHubContribution `json:"joinedGitHubContribution,omitempty"` - - // LatestRestrictedContributionDate: 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. - LatestRestrictedContributionDate Date `json:"latestRestrictedContributionDate,omitempty"` - - // MostRecentCollectionWithActivity: When this collection's time range does not include any activity from the user, use this - // to get a different collection from an earlier time range that does have activity. - // . - MostRecentCollectionWithActivity *ContributionsCollection `json:"mostRecentCollectionWithActivity,omitempty"` - - // MostRecentCollectionWithoutActivity: Returns a different contributions collection from an earlier time range than this one - // that does not have any contributions. - // . - MostRecentCollectionWithoutActivity *ContributionsCollection `json:"mostRecentCollectionWithoutActivity,omitempty"` - - // PopularIssueContribution: The issue the user opened on GitHub that received the most comments in the specified - // time frame. - // . - PopularIssueContribution *CreatedIssueContribution `json:"popularIssueContribution,omitempty"` - - // PopularPullRequestContribution: The pull request the user opened on GitHub that received the most comments in the - // specified time frame. - // . - PopularPullRequestContribution *CreatedPullRequestContribution `json:"popularPullRequestContribution,omitempty"` - - // PullRequestContributions: Pull request contributions made by the user. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - excludeFirst Boolean - // - excludePopular Boolean - // - orderBy ContributionOrder - PullRequestContributions *CreatedPullRequestContributionConnection `json:"pullRequestContributions,omitempty"` - - // PullRequestContributionsByRepository: Pull request contributions made by the user, grouped by repository. - // - // Query arguments: - // - maxRepositories Int - // - excludeFirst Boolean - // - excludePopular Boolean - PullRequestContributionsByRepository []*PullRequestContributionsByRepository `json:"pullRequestContributionsByRepository,omitempty"` - - // PullRequestReviewContributions: Pull request review contributions made by the user. Returns the most recently - // submitted review for each PR reviewed by the user. - // . - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ContributionOrder - PullRequestReviewContributions *CreatedPullRequestReviewContributionConnection `json:"pullRequestReviewContributions,omitempty"` - - // PullRequestReviewContributionsByRepository: Pull request review contributions made by the user, grouped by repository. - // - // Query arguments: - // - maxRepositories Int - PullRequestReviewContributionsByRepository []*PullRequestReviewContributionsByRepository `json:"pullRequestReviewContributionsByRepository,omitempty"` - - // RepositoryContributions: A list of repositories owned by the user that the user created in this time range. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - excludeFirst Boolean - // - orderBy ContributionOrder - RepositoryContributions *CreatedRepositoryContributionConnection `json:"repositoryContributions,omitempty"` - - // RestrictedContributionsCount: A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts. - RestrictedContributionsCount int `json:"restrictedContributionsCount,omitempty"` - - // StartedAt: The beginning date and time of this collection. - StartedAt DateTime `json:"startedAt,omitempty"` - - // TotalCommitContributions: How many commits were made by the user in this time span. - TotalCommitContributions int `json:"totalCommitContributions,omitempty"` - - // TotalIssueContributions: How many issues the user opened. - // - // Query arguments: - // - excludeFirst Boolean - // - excludePopular Boolean - TotalIssueContributions int `json:"totalIssueContributions,omitempty"` - - // TotalPullRequestContributions: How many pull requests the user opened. - // - // Query arguments: - // - excludeFirst Boolean - // - excludePopular Boolean - TotalPullRequestContributions int `json:"totalPullRequestContributions,omitempty"` - - // TotalPullRequestReviewContributions: How many pull request reviews the user left. - TotalPullRequestReviewContributions int `json:"totalPullRequestReviewContributions,omitempty"` - - // TotalRepositoriesWithContributedCommits: How many different repositories the user committed to. - TotalRepositoriesWithContributedCommits int `json:"totalRepositoriesWithContributedCommits,omitempty"` - - // TotalRepositoriesWithContributedIssues: How many different repositories the user opened issues in. - // - // Query arguments: - // - excludeFirst Boolean - // - excludePopular Boolean - TotalRepositoriesWithContributedIssues int `json:"totalRepositoriesWithContributedIssues,omitempty"` - - // TotalRepositoriesWithContributedPullRequestReviews: How many different repositories the user left pull request reviews in. - TotalRepositoriesWithContributedPullRequestReviews int `json:"totalRepositoriesWithContributedPullRequestReviews,omitempty"` - - // TotalRepositoriesWithContributedPullRequests: How many different repositories the user opened pull requests in. - // - // Query arguments: - // - excludeFirst Boolean - // - excludePopular Boolean - TotalRepositoriesWithContributedPullRequests int `json:"totalRepositoriesWithContributedPullRequests,omitempty"` - - // TotalRepositoryContributions: How many repositories the user created. - // - // Query arguments: - // - excludeFirst Boolean - TotalRepositoryContributions int `json:"totalRepositoryContributions,omitempty"` - - // User: The user who made the contributions in this collection. - User *User `json:"user,omitempty"` -} - -func (x *ContributionsCollection) GetCommitContributionsByRepository() []*CommitContributionsByRepository { - return x.CommitContributionsByRepository -} -func (x *ContributionsCollection) GetContributionCalendar() *ContributionCalendar { - return x.ContributionCalendar -} -func (x *ContributionsCollection) GetContributionYears() []int { return x.ContributionYears } -func (x *ContributionsCollection) GetDoesEndInCurrentMonth() bool { return x.DoesEndInCurrentMonth } -func (x *ContributionsCollection) GetEarliestRestrictedContributionDate() Date { - return x.EarliestRestrictedContributionDate -} -func (x *ContributionsCollection) GetEndedAt() DateTime { return x.EndedAt } -func (x *ContributionsCollection) GetFirstIssueContribution() CreatedIssueOrRestrictedContribution { - return x.FirstIssueContribution -} -func (x *ContributionsCollection) GetFirstPullRequestContribution() CreatedPullRequestOrRestrictedContribution { - return x.FirstPullRequestContribution -} -func (x *ContributionsCollection) GetFirstRepositoryContribution() CreatedRepositoryOrRestrictedContribution { - return x.FirstRepositoryContribution -} -func (x *ContributionsCollection) GetHasActivityInThePast() bool { return x.HasActivityInThePast } -func (x *ContributionsCollection) GetHasAnyContributions() bool { return x.HasAnyContributions } -func (x *ContributionsCollection) GetHasAnyRestrictedContributions() bool { - return x.HasAnyRestrictedContributions -} -func (x *ContributionsCollection) GetIsSingleDay() bool { return x.IsSingleDay } -func (x *ContributionsCollection) GetIssueContributions() *CreatedIssueContributionConnection { - return x.IssueContributions -} -func (x *ContributionsCollection) GetIssueContributionsByRepository() []*IssueContributionsByRepository { - return x.IssueContributionsByRepository -} -func (x *ContributionsCollection) GetJoinedGitHubContribution() *JoinedGitHubContribution { - return x.JoinedGitHubContribution -} -func (x *ContributionsCollection) GetLatestRestrictedContributionDate() Date { - return x.LatestRestrictedContributionDate -} -func (x *ContributionsCollection) GetMostRecentCollectionWithActivity() *ContributionsCollection { - return x.MostRecentCollectionWithActivity -} -func (x *ContributionsCollection) GetMostRecentCollectionWithoutActivity() *ContributionsCollection { - return x.MostRecentCollectionWithoutActivity -} -func (x *ContributionsCollection) GetPopularIssueContribution() *CreatedIssueContribution { - return x.PopularIssueContribution -} -func (x *ContributionsCollection) GetPopularPullRequestContribution() *CreatedPullRequestContribution { - return x.PopularPullRequestContribution -} -func (x *ContributionsCollection) GetPullRequestContributions() *CreatedPullRequestContributionConnection { - return x.PullRequestContributions -} -func (x *ContributionsCollection) GetPullRequestContributionsByRepository() []*PullRequestContributionsByRepository { - return x.PullRequestContributionsByRepository -} -func (x *ContributionsCollection) GetPullRequestReviewContributions() *CreatedPullRequestReviewContributionConnection { - return x.PullRequestReviewContributions -} -func (x *ContributionsCollection) GetPullRequestReviewContributionsByRepository() []*PullRequestReviewContributionsByRepository { - return x.PullRequestReviewContributionsByRepository -} -func (x *ContributionsCollection) GetRepositoryContributions() *CreatedRepositoryContributionConnection { - return x.RepositoryContributions -} -func (x *ContributionsCollection) GetRestrictedContributionsCount() int { - return x.RestrictedContributionsCount -} -func (x *ContributionsCollection) GetStartedAt() DateTime { return x.StartedAt } -func (x *ContributionsCollection) GetTotalCommitContributions() int { - return x.TotalCommitContributions -} -func (x *ContributionsCollection) GetTotalIssueContributions() int { return x.TotalIssueContributions } -func (x *ContributionsCollection) GetTotalPullRequestContributions() int { - return x.TotalPullRequestContributions -} -func (x *ContributionsCollection) GetTotalPullRequestReviewContributions() int { - return x.TotalPullRequestReviewContributions -} -func (x *ContributionsCollection) GetTotalRepositoriesWithContributedCommits() int { - return x.TotalRepositoriesWithContributedCommits -} -func (x *ContributionsCollection) GetTotalRepositoriesWithContributedIssues() int { - return x.TotalRepositoriesWithContributedIssues -} -func (x *ContributionsCollection) GetTotalRepositoriesWithContributedPullRequestReviews() int { - return x.TotalRepositoriesWithContributedPullRequestReviews -} -func (x *ContributionsCollection) GetTotalRepositoriesWithContributedPullRequests() int { - return x.TotalRepositoriesWithContributedPullRequests -} -func (x *ContributionsCollection) GetTotalRepositoryContributions() int { - return x.TotalRepositoryContributions -} -func (x *ContributionsCollection) GetUser() *User { return x.User } - -// ConvertProjectCardNoteToIssueInput (INPUT_OBJECT): Autogenerated input type of ConvertProjectCardNoteToIssue. -type ConvertProjectCardNoteToIssueInput struct { - // ProjectCardId: The ProjectCard ID to convert. - // - // GraphQL type: ID! - ProjectCardId ID `json:"projectCardId,omitempty"` - - // RepositoryId: The ID of the repository to create the issue in. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Title: The title of the newly created issue. Defaults to the card's note text. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Body: The body of the newly created issue. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ConvertProjectCardNoteToIssuePayload (OBJECT): Autogenerated return type of ConvertProjectCardNoteToIssue. -type ConvertProjectCardNoteToIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectCard: The updated ProjectCard. - ProjectCard *ProjectCard `json:"projectCard,omitempty"` -} - -func (x *ConvertProjectCardNoteToIssuePayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *ConvertProjectCardNoteToIssuePayload) GetProjectCard() *ProjectCard { return x.ProjectCard } - -// ConvertPullRequestToDraftInput (INPUT_OBJECT): Autogenerated input type of ConvertPullRequestToDraft. -type ConvertPullRequestToDraftInput struct { - // PullRequestId: ID of the pull request to convert to draft. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ConvertPullRequestToDraftPayload (OBJECT): Autogenerated return type of ConvertPullRequestToDraft. -type ConvertPullRequestToDraftPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The pull request that is now a draft. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *ConvertPullRequestToDraftPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ConvertPullRequestToDraftPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// ConvertToDraftEvent (OBJECT): Represents a 'convert_to_draft' event on a given pull request. -type ConvertToDraftEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // ResourcePath: The HTTP path for this convert to draft event. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this convert to draft event. - Url URI `json:"url,omitempty"` -} - -func (x *ConvertToDraftEvent) GetActor() Actor { return x.Actor } -func (x *ConvertToDraftEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ConvertToDraftEvent) GetId() ID { return x.Id } -func (x *ConvertToDraftEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *ConvertToDraftEvent) GetResourcePath() URI { return x.ResourcePath } -func (x *ConvertToDraftEvent) GetUrl() URI { return x.Url } - -// ConvertedNoteToIssueEvent (OBJECT): Represents a 'converted_note_to_issue' event on a given issue or pull request. -type ConvertedNoteToIssueEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Project: Project referenced by event. - Project *Project `json:"project,omitempty"` - - // ProjectCard: Project card referenced by this project event. - ProjectCard *ProjectCard `json:"projectCard,omitempty"` - - // ProjectColumnName: Column name referenced by this project event. - ProjectColumnName string `json:"projectColumnName,omitempty"` -} - -func (x *ConvertedNoteToIssueEvent) GetActor() Actor { return x.Actor } -func (x *ConvertedNoteToIssueEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ConvertedNoteToIssueEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *ConvertedNoteToIssueEvent) GetId() ID { return x.Id } -func (x *ConvertedNoteToIssueEvent) GetProject() *Project { return x.Project } -func (x *ConvertedNoteToIssueEvent) GetProjectCard() *ProjectCard { return x.ProjectCard } -func (x *ConvertedNoteToIssueEvent) GetProjectColumnName() string { return x.ProjectColumnName } - -// ConvertedToDiscussionEvent (OBJECT): Represents a 'converted_to_discussion' event on a given issue. -type ConvertedToDiscussionEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Discussion: The discussion that the issue was converted into. - Discussion *Discussion `json:"discussion,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` -} - -func (x *ConvertedToDiscussionEvent) GetActor() Actor { return x.Actor } -func (x *ConvertedToDiscussionEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ConvertedToDiscussionEvent) GetDiscussion() *Discussion { return x.Discussion } -func (x *ConvertedToDiscussionEvent) GetId() ID { return x.Id } - -// CreateBranchProtectionRuleInput (INPUT_OBJECT): Autogenerated input type of CreateBranchProtectionRule. -type CreateBranchProtectionRuleInput struct { - // RepositoryId: The global relay id of the repository in which a new branch protection rule should be created in. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Pattern: The glob-like pattern used to determine matching branches. - // - // GraphQL type: String! - Pattern string `json:"pattern,omitempty"` - - // RequiresApprovingReviews: Are approving reviews required to update matching branches. - // - // GraphQL type: Boolean - RequiresApprovingReviews bool `json:"requiresApprovingReviews,omitempty"` - - // RequiredApprovingReviewCount: Number of approving reviews required to update matching branches. - // - // GraphQL type: Int - RequiredApprovingReviewCount int `json:"requiredApprovingReviewCount,omitempty"` - - // RequiresCommitSignatures: Are commits required to be signed. - // - // GraphQL type: Boolean - RequiresCommitSignatures bool `json:"requiresCommitSignatures,omitempty"` - - // RequiresLinearHistory: Are merge commits prohibited from being pushed to this branch. - // - // GraphQL type: Boolean - RequiresLinearHistory bool `json:"requiresLinearHistory,omitempty"` - - // BlocksCreations: Is branch creation a protected operation. - // - // GraphQL type: Boolean - BlocksCreations bool `json:"blocksCreations,omitempty"` - - // AllowsForcePushes: Are force pushes allowed on this branch. - // - // GraphQL type: Boolean - AllowsForcePushes bool `json:"allowsForcePushes,omitempty"` - - // AllowsDeletions: Can this branch be deleted. - // - // GraphQL type: Boolean - AllowsDeletions bool `json:"allowsDeletions,omitempty"` - - // IsAdminEnforced: Can admins overwrite branch protection. - // - // GraphQL type: Boolean - IsAdminEnforced bool `json:"isAdminEnforced,omitempty"` - - // RequiresStatusChecks: Are status checks required to update matching branches. - // - // GraphQL type: Boolean - RequiresStatusChecks bool `json:"requiresStatusChecks,omitempty"` - - // RequiresStrictStatusChecks: Are branches required to be up to date before merging. - // - // GraphQL type: Boolean - RequiresStrictStatusChecks bool `json:"requiresStrictStatusChecks,omitempty"` - - // RequiresCodeOwnerReviews: Are reviews from code owners required to update matching branches. - // - // GraphQL type: Boolean - RequiresCodeOwnerReviews bool `json:"requiresCodeOwnerReviews,omitempty"` - - // DismissesStaleReviews: Will new commits pushed to matching branches dismiss pull request review approvals. - // - // GraphQL type: Boolean - DismissesStaleReviews bool `json:"dismissesStaleReviews,omitempty"` - - // RestrictsReviewDismissals: Is dismissal of pull request reviews restricted. - // - // GraphQL type: Boolean - RestrictsReviewDismissals bool `json:"restrictsReviewDismissals,omitempty"` - - // ReviewDismissalActorIds: A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches. - // - // GraphQL type: [ID!] - ReviewDismissalActorIds []ID `json:"reviewDismissalActorIds,omitempty"` - - // BypassPullRequestActorIds: A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches. - // - // GraphQL type: [ID!] - BypassPullRequestActorIds []ID `json:"bypassPullRequestActorIds,omitempty"` - - // BypassForcePushActorIds: A list of User, Team, or App IDs allowed to bypass force push targeting matching branches. - // - // GraphQL type: [ID!] - BypassForcePushActorIds []ID `json:"bypassForcePushActorIds,omitempty"` - - // RestrictsPushes: Is pushing to matching branches restricted. - // - // GraphQL type: Boolean - RestrictsPushes bool `json:"restrictsPushes,omitempty"` - - // PushActorIds: A list of User, Team, or App IDs allowed to push to matching branches. - // - // GraphQL type: [ID!] - PushActorIds []ID `json:"pushActorIds,omitempty"` - - // RequiredStatusCheckContexts: List of required status check contexts that must pass for commits to be accepted to matching branches. - // - // GraphQL type: [String!] - RequiredStatusCheckContexts []string `json:"requiredStatusCheckContexts,omitempty"` - - // RequiredStatusChecks: The list of required status checks. - // - // GraphQL type: [RequiredStatusCheckInput!] - RequiredStatusChecks []*RequiredStatusCheckInput `json:"requiredStatusChecks,omitempty"` - - // RequiresConversationResolution: Are conversations required to be resolved before merging. - // - // GraphQL type: Boolean - RequiresConversationResolution bool `json:"requiresConversationResolution,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateBranchProtectionRulePayload (OBJECT): Autogenerated return type of CreateBranchProtectionRule. -type CreateBranchProtectionRulePayload struct { - // BranchProtectionRule: The newly created BranchProtectionRule. - BranchProtectionRule *BranchProtectionRule `json:"branchProtectionRule,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *CreateBranchProtectionRulePayload) GetBranchProtectionRule() *BranchProtectionRule { - return x.BranchProtectionRule -} -func (x *CreateBranchProtectionRulePayload) GetClientMutationId() string { return x.ClientMutationId } - -// CreateCheckRunInput (INPUT_OBJECT): Autogenerated input type of CreateCheckRun. -type CreateCheckRunInput struct { - // RepositoryId: The node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Name: The name of the check. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // HeadSha: The SHA of the head commit. - // - // GraphQL type: GitObjectID! - HeadSha GitObjectID `json:"headSha,omitempty"` - - // DetailsUrl: The URL of the integrator's site that has the full details of the check. - // - // GraphQL type: URI - DetailsUrl URI `json:"detailsUrl,omitempty"` - - // ExternalId: A reference for the run on the integrator's system. - // - // GraphQL type: String - ExternalId string `json:"externalId,omitempty"` - - // Status: The current status. - // - // GraphQL type: RequestableCheckStatusState - Status RequestableCheckStatusState `json:"status,omitempty"` - - // StartedAt: The time that the check run began. - // - // GraphQL type: DateTime - StartedAt DateTime `json:"startedAt,omitempty"` - - // Conclusion: The final conclusion of the check. - // - // GraphQL type: CheckConclusionState - Conclusion CheckConclusionState `json:"conclusion,omitempty"` - - // CompletedAt: The time that the check run finished. - // - // GraphQL type: DateTime - CompletedAt DateTime `json:"completedAt,omitempty"` - - // Output: Descriptive details about the run. - // - // GraphQL type: CheckRunOutput - Output *CheckRunOutput `json:"output,omitempty"` - - // Actions: Possible further actions the integrator can perform, which a user may trigger. - // - // GraphQL type: [CheckRunAction!] - Actions []*CheckRunAction `json:"actions,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateCheckRunPayload (OBJECT): Autogenerated return type of CreateCheckRun. -type CreateCheckRunPayload struct { - // CheckRun: The newly created check run. - CheckRun *CheckRun `json:"checkRun,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *CreateCheckRunPayload) GetCheckRun() *CheckRun { return x.CheckRun } -func (x *CreateCheckRunPayload) GetClientMutationId() string { return x.ClientMutationId } - -// CreateCheckSuiteInput (INPUT_OBJECT): Autogenerated input type of CreateCheckSuite. -type CreateCheckSuiteInput struct { - // RepositoryId: The Node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // HeadSha: The SHA of the head commit. - // - // GraphQL type: GitObjectID! - HeadSha GitObjectID `json:"headSha,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateCheckSuitePayload (OBJECT): Autogenerated return type of CreateCheckSuite. -type CreateCheckSuitePayload struct { - // CheckSuite: The newly created check suite. - CheckSuite *CheckSuite `json:"checkSuite,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *CreateCheckSuitePayload) GetCheckSuite() *CheckSuite { return x.CheckSuite } -func (x *CreateCheckSuitePayload) GetClientMutationId() string { return x.ClientMutationId } - -// CreateCommitOnBranchInput (INPUT_OBJECT): Autogenerated input type of CreateCommitOnBranch. -type CreateCommitOnBranchInput struct { - // Branch: The Ref to be updated. Must be a branch. - // - // GraphQL type: CommittableBranch! - Branch *CommittableBranch `json:"branch,omitempty"` - - // FileChanges: A description of changes to files in this commit. - // - // GraphQL type: FileChanges - FileChanges *FileChanges `json:"fileChanges,omitempty"` - - // Message: The commit message the be included with the commit. - // - // GraphQL type: CommitMessage! - Message *CommitMessage `json:"message,omitempty"` - - // ExpectedHeadOid: The git commit oid expected at the head of the branch prior to the commit. - // - // GraphQL type: GitObjectID! - ExpectedHeadOid GitObjectID `json:"expectedHeadOid,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateCommitOnBranchPayload (OBJECT): Autogenerated return type of CreateCommitOnBranch. -type CreateCommitOnBranchPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Commit: The new commit. - Commit *Commit `json:"commit,omitempty"` - - // Ref: The ref which has been updated to point to the new commit. - Ref *Ref `json:"ref,omitempty"` -} - -func (x *CreateCommitOnBranchPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateCommitOnBranchPayload) GetCommit() *Commit { return x.Commit } -func (x *CreateCommitOnBranchPayload) GetRef() *Ref { return x.Ref } - -// CreateDiscussionInput (INPUT_OBJECT): Autogenerated input type of CreateDiscussion. -type CreateDiscussionInput struct { - // RepositoryId: The id of the repository on which to create the discussion. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Title: The title of the discussion. - // - // GraphQL type: String! - Title string `json:"title,omitempty"` - - // Body: The body of the discussion. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // CategoryId: The id of the discussion category to associate with this discussion. - // - // GraphQL type: ID! - CategoryId ID `json:"categoryId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateDiscussionPayload (OBJECT): Autogenerated return type of CreateDiscussion. -type CreateDiscussionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Discussion: The discussion that was just created. - Discussion *Discussion `json:"discussion,omitempty"` -} - -func (x *CreateDiscussionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateDiscussionPayload) GetDiscussion() *Discussion { return x.Discussion } - -// CreateEnterpriseOrganizationInput (INPUT_OBJECT): Autogenerated input type of CreateEnterpriseOrganization. -type CreateEnterpriseOrganizationInput struct { - // EnterpriseId: The ID of the enterprise owning the new organization. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Login: The login of the new organization. - // - // GraphQL type: String! - Login string `json:"login,omitempty"` - - // ProfileName: The profile name of the new organization. - // - // GraphQL type: String! - ProfileName string `json:"profileName,omitempty"` - - // BillingEmail: The email used for sending billing receipts. - // - // GraphQL type: String! - BillingEmail string `json:"billingEmail,omitempty"` - - // AdminLogins: The logins for the administrators of the new organization. - // - // GraphQL type: [String!]! - AdminLogins []string `json:"adminLogins,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateEnterpriseOrganizationPayload (OBJECT): Autogenerated return type of CreateEnterpriseOrganization. -type CreateEnterpriseOrganizationPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise that owns the created organization. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Organization: The organization that was created. - Organization *Organization `json:"organization,omitempty"` -} - -func (x *CreateEnterpriseOrganizationPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateEnterpriseOrganizationPayload) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *CreateEnterpriseOrganizationPayload) GetOrganization() *Organization { return x.Organization } - -// CreateEnvironmentInput (INPUT_OBJECT): Autogenerated input type of CreateEnvironment. -type CreateEnvironmentInput struct { - // RepositoryId: The node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Name: The name of the environment. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateEnvironmentPayload (OBJECT): Autogenerated return type of CreateEnvironment. -type CreateEnvironmentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Environment: The new or existing environment. - Environment *Environment `json:"environment,omitempty"` -} - -func (x *CreateEnvironmentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateEnvironmentPayload) GetEnvironment() *Environment { return x.Environment } - -// CreateIpAllowListEntryInput (INPUT_OBJECT): Autogenerated input type of CreateIpAllowListEntry. -type CreateIpAllowListEntryInput struct { - // OwnerId: The ID of the owner for which to create the new IP allow list entry. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // AllowListValue: An IP address or range of addresses in CIDR notation. - // - // GraphQL type: String! - AllowListValue string `json:"allowListValue,omitempty"` - - // Name: An optional name for the IP allow list entry. - // - // GraphQL type: String - Name string `json:"name,omitempty"` - - // IsActive: Whether the IP allow list entry is active when an IP allow list is enabled. - // - // GraphQL type: Boolean! - IsActive bool `json:"isActive,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateIpAllowListEntryPayload (OBJECT): Autogenerated return type of CreateIpAllowListEntry. -type CreateIpAllowListEntryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // IpAllowListEntry: The IP allow list entry that was created. - IpAllowListEntry *IpAllowListEntry `json:"ipAllowListEntry,omitempty"` -} - -func (x *CreateIpAllowListEntryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateIpAllowListEntryPayload) GetIpAllowListEntry() *IpAllowListEntry { - return x.IpAllowListEntry -} - -// CreateIssueInput (INPUT_OBJECT): Autogenerated input type of CreateIssue. -type CreateIssueInput struct { - // RepositoryId: The Node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Title: The title for the issue. - // - // GraphQL type: String! - Title string `json:"title,omitempty"` - - // Body: The body for the issue description. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // AssigneeIds: The Node ID for the user assignee for this issue. - // - // GraphQL type: [ID!] - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // MilestoneId: The Node ID of the milestone for this issue. - // - // GraphQL type: ID - MilestoneId ID `json:"milestoneId,omitempty"` - - // LabelIds: An array of Node IDs of labels for this issue. - // - // GraphQL type: [ID!] - LabelIds []ID `json:"labelIds,omitempty"` - - // ProjectIds: An array of Node IDs for projects associated with this issue. - // - // GraphQL type: [ID!] - ProjectIds []ID `json:"projectIds,omitempty"` - - // IssueTemplate: The name of an issue template in the repository, assigns labels and assignees from the template to the issue. - // - // GraphQL type: String - IssueTemplate string `json:"issueTemplate,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateIssuePayload (OBJECT): Autogenerated return type of CreateIssue. -type CreateIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Issue: The new issue. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *CreateIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateIssuePayload) GetIssue() *Issue { return x.Issue } - -// CreateMigrationSourceInput (INPUT_OBJECT): Autogenerated input type of CreateMigrationSource. -type CreateMigrationSourceInput struct { - // Name: The Octoshift migration source name. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // Url: The Octoshift migration source URL. - // - // GraphQL type: String! - Url string `json:"url,omitempty"` - - // AccessToken: The Octoshift migration source access token. - // - // GraphQL type: String - AccessToken string `json:"accessToken,omitempty"` - - // Type: The Octoshift migration source type. - // - // GraphQL type: MigrationSourceType! - Type MigrationSourceType `json:"type,omitempty"` - - // OwnerId: The ID of the organization that will own the Octoshift migration source. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // GithubPat: The GitHub personal access token of the user importing to the target repository. - // - // GraphQL type: String - GithubPat string `json:"githubPat,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateMigrationSourcePayload (OBJECT): Autogenerated return type of CreateMigrationSource. -type CreateMigrationSourcePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // MigrationSource: The created Octoshift migration source. - MigrationSource *MigrationSource `json:"migrationSource,omitempty"` -} - -func (x *CreateMigrationSourcePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateMigrationSourcePayload) GetMigrationSource() *MigrationSource { - return x.MigrationSource -} - -// CreateProjectInput (INPUT_OBJECT): Autogenerated input type of CreateProject. -type CreateProjectInput struct { - // OwnerId: The owner ID to create the project under. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // Name: The name of project. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // Body: The description of project. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // Template: The name of the GitHub-provided template. - // - // GraphQL type: ProjectTemplate - Template ProjectTemplate `json:"template,omitempty"` - - // RepositoryIds: A list of repository IDs to create as linked repositories for the project. - // - // GraphQL type: [ID!] - RepositoryIds []ID `json:"repositoryIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateProjectPayload (OBJECT): Autogenerated return type of CreateProject. -type CreateProjectPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Project: The new project. - Project *Project `json:"project,omitempty"` -} - -func (x *CreateProjectPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateProjectPayload) GetProject() *Project { return x.Project } - -// CreateProjectV2Input (INPUT_OBJECT): Autogenerated input type of CreateProjectV2. -type CreateProjectV2Input struct { - // OwnerId: The owner ID to create the project under. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // Title: The title of the project. - // - // GraphQL type: String! - Title string `json:"title,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateProjectV2Payload (OBJECT): Autogenerated return type of CreateProjectV2. -type CreateProjectV2Payload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectV2: The new project. - ProjectV2 *ProjectV2 `json:"projectV2,omitempty"` -} - -func (x *CreateProjectV2Payload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateProjectV2Payload) GetProjectV2() *ProjectV2 { return x.ProjectV2 } - -// CreatePullRequestInput (INPUT_OBJECT): Autogenerated input type of CreatePullRequest. -type CreatePullRequestInput struct { - // RepositoryId: The Node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // BaseRefName: The name of the branch you want your changes pulled into. This should be an existing branch - // on the current repository. You cannot update the base branch on a pull request to point - // to another repository. - // . - // - // GraphQL type: String! - BaseRefName string `json:"baseRefName,omitempty"` - - // HeadRefName: The name of the branch where your changes are implemented. For cross-repository pull requests - // in the same network, namespace `head_ref_name` with a user like this: `username:branch`. - // . - // - // GraphQL type: String! - HeadRefName string `json:"headRefName,omitempty"` - - // Title: The title of the pull request. - // - // GraphQL type: String! - Title string `json:"title,omitempty"` - - // Body: The contents of the pull request. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // MaintainerCanModify: Indicates whether maintainers can modify the pull request. - // - // GraphQL type: Boolean - MaintainerCanModify bool `json:"maintainerCanModify,omitempty"` - - // Draft: Indicates whether this pull request should be a draft. - // - // GraphQL type: Boolean - Draft bool `json:"draft,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreatePullRequestPayload (OBJECT): Autogenerated return type of CreatePullRequest. -type CreatePullRequestPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The new pull request. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *CreatePullRequestPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreatePullRequestPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// CreateRefInput (INPUT_OBJECT): Autogenerated input type of CreateRef. -type CreateRefInput struct { - // RepositoryId: The Node ID of the Repository to create the Ref in. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Name: The fully qualified name of the new Ref (ie: `refs/heads/my_new_branch`). - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // Oid: The GitObjectID that the new Ref shall target. Must point to a commit. - // - // GraphQL type: GitObjectID! - Oid GitObjectID `json:"oid,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateRefPayload (OBJECT): Autogenerated return type of CreateRef. -type CreateRefPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Ref: The newly created ref. - Ref *Ref `json:"ref,omitempty"` -} - -func (x *CreateRefPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateRefPayload) GetRef() *Ref { return x.Ref } - -// CreateRepositoryInput (INPUT_OBJECT): Autogenerated input type of CreateRepository. -type CreateRepositoryInput struct { - // Name: The name of the new repository. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // OwnerId: The ID of the owner for the new repository. - // - // GraphQL type: ID - OwnerId ID `json:"ownerId,omitempty"` - - // Description: A short description of the new repository. - // - // GraphQL type: String - Description string `json:"description,omitempty"` - - // Visibility: Indicates the repository's visibility level. - // - // GraphQL type: RepositoryVisibility! - Visibility RepositoryVisibility `json:"visibility,omitempty"` - - // Template: Whether this repository should be marked as a template such that anyone who can access it can create new repositories with the same files and directory structure. - // - // GraphQL type: Boolean - Template bool `json:"template,omitempty"` - - // HomepageUrl: The URL for a web page about this repository. - // - // GraphQL type: URI - HomepageUrl URI `json:"homepageUrl,omitempty"` - - // HasWikiEnabled: Indicates if the repository should have the wiki feature enabled. - // - // GraphQL type: Boolean - HasWikiEnabled bool `json:"hasWikiEnabled,omitempty"` - - // HasIssuesEnabled: Indicates if the repository should have the issues feature enabled. - // - // GraphQL type: Boolean - HasIssuesEnabled bool `json:"hasIssuesEnabled,omitempty"` - - // TeamId: When an organization is specified as the owner, this ID identifies the team that should be granted access to the new repository. - // - // GraphQL type: ID - TeamId ID `json:"teamId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateRepositoryPayload (OBJECT): Autogenerated return type of CreateRepository. -type CreateRepositoryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The new repository. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *CreateRepositoryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateRepositoryPayload) GetRepository() *Repository { return x.Repository } - -// CreateSponsorsTierInput (INPUT_OBJECT): Autogenerated input type of CreateSponsorsTier. -type CreateSponsorsTierInput struct { - // SponsorableId: The ID of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableLogin is not given. - // - // GraphQL type: ID - SponsorableId ID `json:"sponsorableId,omitempty"` - - // SponsorableLogin: The username of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableId is not given. - // - // GraphQL type: String - SponsorableLogin string `json:"sponsorableLogin,omitempty"` - - // Amount: The value of the new tier in US dollars. Valid values: 1-12000. - // - // GraphQL type: Int! - Amount int `json:"amount,omitempty"` - - // IsRecurring: Whether sponsorships using this tier should happen monthly/yearly or just once. - // - // GraphQL type: Boolean - IsRecurring bool `json:"isRecurring,omitempty"` - - // RepositoryId: Optional ID of the private repository that sponsors at this tier should gain read-only access to. Must be owned by an organization. - // - // GraphQL type: ID - RepositoryId ID `json:"repositoryId,omitempty"` - - // RepositoryOwnerLogin: Optional login of the organization owner of the private repository that sponsors at this tier should gain read-only access to. Necessary if repositoryName is given. Will be ignored if repositoryId is given. - // - // GraphQL type: String - RepositoryOwnerLogin string `json:"repositoryOwnerLogin,omitempty"` - - // RepositoryName: Optional name of the private repository that sponsors at this tier should gain read-only access to. Must be owned by an organization. Necessary if repositoryOwnerLogin is given. Will be ignored if repositoryId is given. - // - // GraphQL type: String - RepositoryName string `json:"repositoryName,omitempty"` - - // WelcomeMessage: Optional message new sponsors at this tier will receive. - // - // GraphQL type: String - WelcomeMessage string `json:"welcomeMessage,omitempty"` - - // Description: A description of what this tier is, what perks sponsors might receive, what a sponsorship at this tier means for you, etc. - // - // GraphQL type: String! - Description string `json:"description,omitempty"` - - // Publish: Whether to make the tier available immediately for sponsors to choose. Defaults to creating a draft tier that will not be publicly visible. - // - // GraphQL type: Boolean - Publish bool `json:"publish,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateSponsorsTierPayload (OBJECT): Autogenerated return type of CreateSponsorsTier. -type CreateSponsorsTierPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // SponsorsTier: The new tier. - SponsorsTier *SponsorsTier `json:"sponsorsTier,omitempty"` -} - -func (x *CreateSponsorsTierPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateSponsorsTierPayload) GetSponsorsTier() *SponsorsTier { return x.SponsorsTier } - -// CreateSponsorshipInput (INPUT_OBJECT): Autogenerated input type of CreateSponsorship. -type CreateSponsorshipInput struct { - // SponsorId: The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. - // - // GraphQL type: ID - SponsorId ID `json:"sponsorId,omitempty"` - - // SponsorLogin: The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. - // - // GraphQL type: String - SponsorLogin string `json:"sponsorLogin,omitempty"` - - // SponsorableId: The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. - // - // GraphQL type: ID - SponsorableId ID `json:"sponsorableId,omitempty"` - - // SponsorableLogin: The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. - // - // GraphQL type: String - SponsorableLogin string `json:"sponsorableLogin,omitempty"` - - // TierId: The ID of one of sponsorable's existing tiers to sponsor at. Required if amount is not specified. - // - // GraphQL type: ID - TierId ID `json:"tierId,omitempty"` - - // Amount: The amount to pay to the sponsorable in US dollars. Required if a tierId is not specified. Valid values: 1-12000. - // - // GraphQL type: Int - Amount int `json:"amount,omitempty"` - - // IsRecurring: Whether the sponsorship should happen monthly/yearly or just this one time. Required if a tierId is not specified. - // - // GraphQL type: Boolean - IsRecurring bool `json:"isRecurring,omitempty"` - - // ReceiveEmails: Whether the sponsor should receive email updates from the sponsorable. - // - // GraphQL type: Boolean - ReceiveEmails bool `json:"receiveEmails,omitempty"` - - // PrivacyLevel: Specify whether others should be able to see that the sponsor is sponsoring the sponsorable. Public visibility still does not reveal which tier is used. - // - // GraphQL type: SponsorshipPrivacy - PrivacyLevel SponsorshipPrivacy `json:"privacyLevel,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateSponsorshipPayload (OBJECT): Autogenerated return type of CreateSponsorship. -type CreateSponsorshipPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Sponsorship: The sponsorship that was started. - Sponsorship *Sponsorship `json:"sponsorship,omitempty"` -} - -func (x *CreateSponsorshipPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateSponsorshipPayload) GetSponsorship() *Sponsorship { return x.Sponsorship } - -// CreateTeamDiscussionCommentInput (INPUT_OBJECT): Autogenerated input type of CreateTeamDiscussionComment. -type CreateTeamDiscussionCommentInput struct { - // DiscussionId: The ID of the discussion to which the comment belongs. - // - // GraphQL type: ID! - DiscussionId ID `json:"discussionId,omitempty"` - - // Body: The content of the comment. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateTeamDiscussionCommentPayload (OBJECT): Autogenerated return type of CreateTeamDiscussionComment. -type CreateTeamDiscussionCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // TeamDiscussionComment: The new comment. - TeamDiscussionComment *TeamDiscussionComment `json:"teamDiscussionComment,omitempty"` -} - -func (x *CreateTeamDiscussionCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateTeamDiscussionCommentPayload) GetTeamDiscussionComment() *TeamDiscussionComment { - return x.TeamDiscussionComment -} - -// CreateTeamDiscussionInput (INPUT_OBJECT): Autogenerated input type of CreateTeamDiscussion. -type CreateTeamDiscussionInput struct { - // TeamId: The ID of the team to which the discussion belongs. - // - // GraphQL type: ID! - TeamId ID `json:"teamId,omitempty"` - - // Title: The title of the discussion. - // - // GraphQL type: String! - Title string `json:"title,omitempty"` - - // Body: The content of the discussion. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // Private: If true, restricts the visibility of this discussion to team members and organization admins. If false or not specified, allows any organization member to view this discussion. - // - // GraphQL type: Boolean - Private bool `json:"private,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// CreateTeamDiscussionPayload (OBJECT): Autogenerated return type of CreateTeamDiscussion. -type CreateTeamDiscussionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // TeamDiscussion: The new discussion. - TeamDiscussion *TeamDiscussion `json:"teamDiscussion,omitempty"` -} - -func (x *CreateTeamDiscussionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *CreateTeamDiscussionPayload) GetTeamDiscussion() *TeamDiscussion { return x.TeamDiscussion } - -// CreatedCommitContribution (OBJECT): Represents the contribution a user made by committing to a repository. -type CreatedCommitContribution struct { - // CommitCount: How many commits were made on this day to this repository by the user. - CommitCount int `json:"commitCount,omitempty"` - - // IsRestricted: Whether this contribution is associated with a record you do not have access to. For - // example, your own 'first issue' contribution may have been made on a repository you can no - // longer access. - // . - IsRestricted bool `json:"isRestricted,omitempty"` - - // OccurredAt: When this contribution was made. - OccurredAt DateTime `json:"occurredAt,omitempty"` - - // Repository: The repository the user made a commit in. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this contribution. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this contribution. - Url URI `json:"url,omitempty"` - - // User: The user who made this contribution. - // . - User *User `json:"user,omitempty"` -} - -func (x *CreatedCommitContribution) GetCommitCount() int { return x.CommitCount } -func (x *CreatedCommitContribution) GetIsRestricted() bool { return x.IsRestricted } -func (x *CreatedCommitContribution) GetOccurredAt() DateTime { return x.OccurredAt } -func (x *CreatedCommitContribution) GetRepository() *Repository { return x.Repository } -func (x *CreatedCommitContribution) GetResourcePath() URI { return x.ResourcePath } -func (x *CreatedCommitContribution) GetUrl() URI { return x.Url } -func (x *CreatedCommitContribution) GetUser() *User { return x.User } - -// CreatedCommitContributionConnection (OBJECT): The connection type for CreatedCommitContribution. -type CreatedCommitContributionConnection struct { - // Edges: A list of edges. - Edges []*CreatedCommitContributionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CreatedCommitContribution `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of commits across days and repositories in the connection. - // . - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CreatedCommitContributionConnection) GetEdges() []*CreatedCommitContributionEdge { - return x.Edges -} -func (x *CreatedCommitContributionConnection) GetNodes() []*CreatedCommitContribution { return x.Nodes } -func (x *CreatedCommitContributionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CreatedCommitContributionConnection) GetTotalCount() int { return x.TotalCount } - -// CreatedCommitContributionEdge (OBJECT): An edge in a connection. -type CreatedCommitContributionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CreatedCommitContribution `json:"node,omitempty"` -} - -func (x *CreatedCommitContributionEdge) GetCursor() string { return x.Cursor } -func (x *CreatedCommitContributionEdge) GetNode() *CreatedCommitContribution { return x.Node } - -// CreatedIssueContribution (OBJECT): Represents the contribution a user made on GitHub by opening an issue. -type CreatedIssueContribution struct { - // IsRestricted: Whether this contribution is associated with a record you do not have access to. For - // example, your own 'first issue' contribution may have been made on a repository you can no - // longer access. - // . - IsRestricted bool `json:"isRestricted,omitempty"` - - // Issue: The issue that was opened. - Issue *Issue `json:"issue,omitempty"` - - // OccurredAt: When this contribution was made. - OccurredAt DateTime `json:"occurredAt,omitempty"` - - // ResourcePath: The HTTP path for this contribution. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this contribution. - Url URI `json:"url,omitempty"` - - // User: The user who made this contribution. - // . - User *User `json:"user,omitempty"` -} - -func (x *CreatedIssueContribution) GetIsRestricted() bool { return x.IsRestricted } -func (x *CreatedIssueContribution) GetIssue() *Issue { return x.Issue } -func (x *CreatedIssueContribution) GetOccurredAt() DateTime { return x.OccurredAt } -func (x *CreatedIssueContribution) GetResourcePath() URI { return x.ResourcePath } -func (x *CreatedIssueContribution) GetUrl() URI { return x.Url } -func (x *CreatedIssueContribution) GetUser() *User { return x.User } - -// CreatedIssueContributionConnection (OBJECT): The connection type for CreatedIssueContribution. -type CreatedIssueContributionConnection struct { - // Edges: A list of edges. - Edges []*CreatedIssueContributionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CreatedIssueContribution `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CreatedIssueContributionConnection) GetEdges() []*CreatedIssueContributionEdge { - return x.Edges -} -func (x *CreatedIssueContributionConnection) GetNodes() []*CreatedIssueContribution { return x.Nodes } -func (x *CreatedIssueContributionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CreatedIssueContributionConnection) GetTotalCount() int { return x.TotalCount } - -// CreatedIssueContributionEdge (OBJECT): An edge in a connection. -type CreatedIssueContributionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CreatedIssueContribution `json:"node,omitempty"` -} - -func (x *CreatedIssueContributionEdge) GetCursor() string { return x.Cursor } -func (x *CreatedIssueContributionEdge) GetNode() *CreatedIssueContribution { return x.Node } - -// CreatedIssueOrRestrictedContribution (UNION): Represents either a issue the viewer can access or a restricted contribution. -// CreatedIssueOrRestrictedContribution_Interface: Represents either a issue the viewer can access or a restricted contribution. -// -// Possible types: -// -// - *CreatedIssueContribution -// - *RestrictedContribution -type CreatedIssueOrRestrictedContribution_Interface interface { - isCreatedIssueOrRestrictedContribution() -} - -func (*CreatedIssueContribution) isCreatedIssueOrRestrictedContribution() {} -func (*RestrictedContribution) isCreatedIssueOrRestrictedContribution() {} - -type CreatedIssueOrRestrictedContribution struct { - Interface CreatedIssueOrRestrictedContribution_Interface -} - -func (x *CreatedIssueOrRestrictedContribution) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *CreatedIssueOrRestrictedContribution) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for CreatedIssueOrRestrictedContribution", info.Typename) - case "CreatedIssueContribution": - x.Interface = new(CreatedIssueContribution) - case "RestrictedContribution": - x.Interface = new(RestrictedContribution) - } - return json.Unmarshal(js, x.Interface) -} - -// CreatedPullRequestContribution (OBJECT): Represents the contribution a user made on GitHub by opening a pull request. -type CreatedPullRequestContribution struct { - // IsRestricted: Whether this contribution is associated with a record you do not have access to. For - // example, your own 'first issue' contribution may have been made on a repository you can no - // longer access. - // . - IsRestricted bool `json:"isRestricted,omitempty"` - - // OccurredAt: When this contribution was made. - OccurredAt DateTime `json:"occurredAt,omitempty"` - - // PullRequest: The pull request that was opened. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // ResourcePath: The HTTP path for this contribution. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this contribution. - Url URI `json:"url,omitempty"` - - // User: The user who made this contribution. - // . - User *User `json:"user,omitempty"` -} - -func (x *CreatedPullRequestContribution) GetIsRestricted() bool { return x.IsRestricted } -func (x *CreatedPullRequestContribution) GetOccurredAt() DateTime { return x.OccurredAt } -func (x *CreatedPullRequestContribution) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *CreatedPullRequestContribution) GetResourcePath() URI { return x.ResourcePath } -func (x *CreatedPullRequestContribution) GetUrl() URI { return x.Url } -func (x *CreatedPullRequestContribution) GetUser() *User { return x.User } - -// CreatedPullRequestContributionConnection (OBJECT): The connection type for CreatedPullRequestContribution. -type CreatedPullRequestContributionConnection struct { - // Edges: A list of edges. - Edges []*CreatedPullRequestContributionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CreatedPullRequestContribution `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CreatedPullRequestContributionConnection) GetEdges() []*CreatedPullRequestContributionEdge { - return x.Edges -} -func (x *CreatedPullRequestContributionConnection) GetNodes() []*CreatedPullRequestContribution { - return x.Nodes -} -func (x *CreatedPullRequestContributionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CreatedPullRequestContributionConnection) GetTotalCount() int { return x.TotalCount } - -// CreatedPullRequestContributionEdge (OBJECT): An edge in a connection. -type CreatedPullRequestContributionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CreatedPullRequestContribution `json:"node,omitempty"` -} - -func (x *CreatedPullRequestContributionEdge) GetCursor() string { return x.Cursor } -func (x *CreatedPullRequestContributionEdge) GetNode() *CreatedPullRequestContribution { return x.Node } - -// CreatedPullRequestOrRestrictedContribution (UNION): Represents either a pull request the viewer can access or a restricted contribution. -// CreatedPullRequestOrRestrictedContribution_Interface: Represents either a pull request the viewer can access or a restricted contribution. -// -// Possible types: -// -// - *CreatedPullRequestContribution -// - *RestrictedContribution -type CreatedPullRequestOrRestrictedContribution_Interface interface { - isCreatedPullRequestOrRestrictedContribution() -} - -func (*CreatedPullRequestContribution) isCreatedPullRequestOrRestrictedContribution() {} -func (*RestrictedContribution) isCreatedPullRequestOrRestrictedContribution() {} - -type CreatedPullRequestOrRestrictedContribution struct { - Interface CreatedPullRequestOrRestrictedContribution_Interface -} - -func (x *CreatedPullRequestOrRestrictedContribution) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *CreatedPullRequestOrRestrictedContribution) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for CreatedPullRequestOrRestrictedContribution", info.Typename) - case "CreatedPullRequestContribution": - x.Interface = new(CreatedPullRequestContribution) - case "RestrictedContribution": - x.Interface = new(RestrictedContribution) - } - return json.Unmarshal(js, x.Interface) -} - -// CreatedPullRequestReviewContribution (OBJECT): Represents the contribution a user made by leaving a review on a pull request. -type CreatedPullRequestReviewContribution struct { - // IsRestricted: Whether this contribution is associated with a record you do not have access to. For - // example, your own 'first issue' contribution may have been made on a repository you can no - // longer access. - // . - IsRestricted bool `json:"isRestricted,omitempty"` - - // OccurredAt: When this contribution was made. - OccurredAt DateTime `json:"occurredAt,omitempty"` - - // PullRequest: The pull request the user reviewed. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // PullRequestReview: The review the user left on the pull request. - PullRequestReview *PullRequestReview `json:"pullRequestReview,omitempty"` - - // Repository: The repository containing the pull request that the user reviewed. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this contribution. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this contribution. - Url URI `json:"url,omitempty"` - - // User: The user who made this contribution. - // . - User *User `json:"user,omitempty"` -} - -func (x *CreatedPullRequestReviewContribution) GetIsRestricted() bool { return x.IsRestricted } -func (x *CreatedPullRequestReviewContribution) GetOccurredAt() DateTime { return x.OccurredAt } -func (x *CreatedPullRequestReviewContribution) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *CreatedPullRequestReviewContribution) GetPullRequestReview() *PullRequestReview { - return x.PullRequestReview -} -func (x *CreatedPullRequestReviewContribution) GetRepository() *Repository { return x.Repository } -func (x *CreatedPullRequestReviewContribution) GetResourcePath() URI { return x.ResourcePath } -func (x *CreatedPullRequestReviewContribution) GetUrl() URI { return x.Url } -func (x *CreatedPullRequestReviewContribution) GetUser() *User { return x.User } - -// CreatedPullRequestReviewContributionConnection (OBJECT): The connection type for CreatedPullRequestReviewContribution. -type CreatedPullRequestReviewContributionConnection struct { - // Edges: A list of edges. - Edges []*CreatedPullRequestReviewContributionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CreatedPullRequestReviewContribution `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CreatedPullRequestReviewContributionConnection) GetEdges() []*CreatedPullRequestReviewContributionEdge { - return x.Edges -} -func (x *CreatedPullRequestReviewContributionConnection) GetNodes() []*CreatedPullRequestReviewContribution { - return x.Nodes -} -func (x *CreatedPullRequestReviewContributionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CreatedPullRequestReviewContributionConnection) GetTotalCount() int { return x.TotalCount } - -// CreatedPullRequestReviewContributionEdge (OBJECT): An edge in a connection. -type CreatedPullRequestReviewContributionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CreatedPullRequestReviewContribution `json:"node,omitempty"` -} - -func (x *CreatedPullRequestReviewContributionEdge) GetCursor() string { return x.Cursor } -func (x *CreatedPullRequestReviewContributionEdge) GetNode() *CreatedPullRequestReviewContribution { - return x.Node -} - -// CreatedRepositoryContribution (OBJECT): Represents the contribution a user made on GitHub by creating a repository. -type CreatedRepositoryContribution struct { - // IsRestricted: Whether this contribution is associated with a record you do not have access to. For - // example, your own 'first issue' contribution may have been made on a repository you can no - // longer access. - // . - IsRestricted bool `json:"isRestricted,omitempty"` - - // OccurredAt: When this contribution was made. - OccurredAt DateTime `json:"occurredAt,omitempty"` - - // Repository: The repository that was created. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this contribution. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this contribution. - Url URI `json:"url,omitempty"` - - // User: The user who made this contribution. - // . - User *User `json:"user,omitempty"` -} - -func (x *CreatedRepositoryContribution) GetIsRestricted() bool { return x.IsRestricted } -func (x *CreatedRepositoryContribution) GetOccurredAt() DateTime { return x.OccurredAt } -func (x *CreatedRepositoryContribution) GetRepository() *Repository { return x.Repository } -func (x *CreatedRepositoryContribution) GetResourcePath() URI { return x.ResourcePath } -func (x *CreatedRepositoryContribution) GetUrl() URI { return x.Url } -func (x *CreatedRepositoryContribution) GetUser() *User { return x.User } - -// CreatedRepositoryContributionConnection (OBJECT): The connection type for CreatedRepositoryContribution. -type CreatedRepositoryContributionConnection struct { - // Edges: A list of edges. - Edges []*CreatedRepositoryContributionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*CreatedRepositoryContribution `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *CreatedRepositoryContributionConnection) GetEdges() []*CreatedRepositoryContributionEdge { - return x.Edges -} -func (x *CreatedRepositoryContributionConnection) GetNodes() []*CreatedRepositoryContribution { - return x.Nodes -} -func (x *CreatedRepositoryContributionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *CreatedRepositoryContributionConnection) GetTotalCount() int { return x.TotalCount } - -// CreatedRepositoryContributionEdge (OBJECT): An edge in a connection. -type CreatedRepositoryContributionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *CreatedRepositoryContribution `json:"node,omitempty"` -} - -func (x *CreatedRepositoryContributionEdge) GetCursor() string { return x.Cursor } -func (x *CreatedRepositoryContributionEdge) GetNode() *CreatedRepositoryContribution { return x.Node } - -// CreatedRepositoryOrRestrictedContribution (UNION): Represents either a repository the viewer can access or a restricted contribution. -// CreatedRepositoryOrRestrictedContribution_Interface: Represents either a repository the viewer can access or a restricted contribution. -// -// Possible types: -// -// - *CreatedRepositoryContribution -// - *RestrictedContribution -type CreatedRepositoryOrRestrictedContribution_Interface interface { - isCreatedRepositoryOrRestrictedContribution() -} - -func (*CreatedRepositoryContribution) isCreatedRepositoryOrRestrictedContribution() {} -func (*RestrictedContribution) isCreatedRepositoryOrRestrictedContribution() {} - -type CreatedRepositoryOrRestrictedContribution struct { - Interface CreatedRepositoryOrRestrictedContribution_Interface -} - -func (x *CreatedRepositoryOrRestrictedContribution) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *CreatedRepositoryOrRestrictedContribution) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for CreatedRepositoryOrRestrictedContribution", info.Typename) - case "CreatedRepositoryContribution": - x.Interface = new(CreatedRepositoryContribution) - case "RestrictedContribution": - x.Interface = new(RestrictedContribution) - } - return json.Unmarshal(js, x.Interface) -} - -// CrossReferencedEvent (OBJECT): Represents a mention made by one issue or pull request to another. -type CrossReferencedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCrossRepository: Reference originated in a different repository. - IsCrossRepository bool `json:"isCrossRepository,omitempty"` - - // ReferencedAt: Identifies when the reference was made. - ReferencedAt DateTime `json:"referencedAt,omitempty"` - - // ResourcePath: The HTTP path for this pull request. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Source: Issue or pull request that made the reference. - Source ReferencedSubject `json:"source,omitempty"` - - // Target: Issue or pull request to which the reference was made. - Target ReferencedSubject `json:"target,omitempty"` - - // Url: The HTTP URL for this pull request. - Url URI `json:"url,omitempty"` - - // WillCloseTarget: Checks if the target will be closed when the source is merged. - WillCloseTarget bool `json:"willCloseTarget,omitempty"` -} - -func (x *CrossReferencedEvent) GetActor() Actor { return x.Actor } -func (x *CrossReferencedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *CrossReferencedEvent) GetId() ID { return x.Id } -func (x *CrossReferencedEvent) GetIsCrossRepository() bool { return x.IsCrossRepository } -func (x *CrossReferencedEvent) GetReferencedAt() DateTime { return x.ReferencedAt } -func (x *CrossReferencedEvent) GetResourcePath() URI { return x.ResourcePath } -func (x *CrossReferencedEvent) GetSource() ReferencedSubject { return x.Source } -func (x *CrossReferencedEvent) GetTarget() ReferencedSubject { return x.Target } -func (x *CrossReferencedEvent) GetUrl() URI { return x.Url } -func (x *CrossReferencedEvent) GetWillCloseTarget() bool { return x.WillCloseTarget } - -// Date (SCALAR): An ISO-8601 encoded date string. -type Date string - -// DateTime (SCALAR): An ISO-8601 encoded UTC date string. -type DateTime string - -// DeclineTopicSuggestionInput (INPUT_OBJECT): Autogenerated input type of DeclineTopicSuggestion. -type DeclineTopicSuggestionInput struct { - // RepositoryId: The Node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Name: The name of the suggested topic. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // Reason: The reason why the suggested topic is declined. - // - // GraphQL type: TopicSuggestionDeclineReason! - Reason TopicSuggestionDeclineReason `json:"reason,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeclineTopicSuggestionPayload (OBJECT): Autogenerated return type of DeclineTopicSuggestion. -type DeclineTopicSuggestionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Topic: The declined topic. - Topic *Topic `json:"topic,omitempty"` -} - -func (x *DeclineTopicSuggestionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeclineTopicSuggestionPayload) GetTopic() *Topic { return x.Topic } - -// DefaultRepositoryPermissionField (ENUM): The possible base permissions for repositories. -type DefaultRepositoryPermissionField string - -// DefaultRepositoryPermissionField_NONE: No access. -const DefaultRepositoryPermissionField_NONE DefaultRepositoryPermissionField = "NONE" - -// DefaultRepositoryPermissionField_READ: Can read repos by default. -const DefaultRepositoryPermissionField_READ DefaultRepositoryPermissionField = "READ" - -// DefaultRepositoryPermissionField_WRITE: Can read and write repos by default. -const DefaultRepositoryPermissionField_WRITE DefaultRepositoryPermissionField = "WRITE" - -// DefaultRepositoryPermissionField_ADMIN: Can read, write, and administrate repos by default. -const DefaultRepositoryPermissionField_ADMIN DefaultRepositoryPermissionField = "ADMIN" - -// Deletable (INTERFACE): Entities that can be deleted. -// Deletable_Interface: Entities that can be deleted. -// -// Possible types: -// -// - *CommitComment -// - *Discussion -// - *DiscussionComment -// - *GistComment -// - *IssueComment -// - *PullRequestReview -// - *PullRequestReviewComment -// - *TeamDiscussion -// - *TeamDiscussionComment -type Deletable_Interface interface { - isDeletable() - GetViewerCanDelete() bool -} - -func (*CommitComment) isDeletable() {} -func (*Discussion) isDeletable() {} -func (*DiscussionComment) isDeletable() {} -func (*GistComment) isDeletable() {} -func (*IssueComment) isDeletable() {} -func (*PullRequestReview) isDeletable() {} -func (*PullRequestReviewComment) isDeletable() {} -func (*TeamDiscussion) isDeletable() {} -func (*TeamDiscussionComment) isDeletable() {} - -type Deletable struct { - Interface Deletable_Interface -} - -func (x *Deletable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Deletable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Deletable", info.Typename) - case "CommitComment": - x.Interface = new(CommitComment) - case "Discussion": - x.Interface = new(Discussion) - case "DiscussionComment": - x.Interface = new(DiscussionComment) - case "GistComment": - x.Interface = new(GistComment) - case "IssueComment": - x.Interface = new(IssueComment) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - case "TeamDiscussion": - x.Interface = new(TeamDiscussion) - case "TeamDiscussionComment": - x.Interface = new(TeamDiscussionComment) - } - return json.Unmarshal(js, x.Interface) -} - -// DeleteBranchProtectionRuleInput (INPUT_OBJECT): Autogenerated input type of DeleteBranchProtectionRule. -type DeleteBranchProtectionRuleInput struct { - // BranchProtectionRuleId: The global relay id of the branch protection rule to be deleted. - // - // GraphQL type: ID! - BranchProtectionRuleId ID `json:"branchProtectionRuleId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteBranchProtectionRulePayload (OBJECT): Autogenerated return type of DeleteBranchProtectionRule. -type DeleteBranchProtectionRulePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *DeleteBranchProtectionRulePayload) GetClientMutationId() string { return x.ClientMutationId } - -// DeleteDeploymentInput (INPUT_OBJECT): Autogenerated input type of DeleteDeployment. -type DeleteDeploymentInput struct { - // Id: The Node ID of the deployment to be deleted. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteDeploymentPayload (OBJECT): Autogenerated return type of DeleteDeployment. -type DeleteDeploymentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *DeleteDeploymentPayload) GetClientMutationId() string { return x.ClientMutationId } - -// DeleteDiscussionCommentInput (INPUT_OBJECT): Autogenerated input type of DeleteDiscussionComment. -type DeleteDiscussionCommentInput struct { - // Id: The Node id of the discussion comment to delete. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteDiscussionCommentPayload (OBJECT): Autogenerated return type of DeleteDiscussionComment. -type DeleteDiscussionCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Comment: The discussion comment that was just deleted. - Comment *DiscussionComment `json:"comment,omitempty"` -} - -func (x *DeleteDiscussionCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteDiscussionCommentPayload) GetComment() *DiscussionComment { return x.Comment } - -// DeleteDiscussionInput (INPUT_OBJECT): Autogenerated input type of DeleteDiscussion. -type DeleteDiscussionInput struct { - // Id: The id of the discussion to delete. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteDiscussionPayload (OBJECT): Autogenerated return type of DeleteDiscussion. -type DeleteDiscussionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Discussion: The discussion that was just deleted. - Discussion *Discussion `json:"discussion,omitempty"` -} - -func (x *DeleteDiscussionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteDiscussionPayload) GetDiscussion() *Discussion { return x.Discussion } - -// DeleteEnvironmentInput (INPUT_OBJECT): Autogenerated input type of DeleteEnvironment. -type DeleteEnvironmentInput struct { - // Id: The Node ID of the environment to be deleted. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteEnvironmentPayload (OBJECT): Autogenerated return type of DeleteEnvironment. -type DeleteEnvironmentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *DeleteEnvironmentPayload) GetClientMutationId() string { return x.ClientMutationId } - -// DeleteIpAllowListEntryInput (INPUT_OBJECT): Autogenerated input type of DeleteIpAllowListEntry. -type DeleteIpAllowListEntryInput struct { - // IpAllowListEntryId: The ID of the IP allow list entry to delete. - // - // GraphQL type: ID! - IpAllowListEntryId ID `json:"ipAllowListEntryId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteIpAllowListEntryPayload (OBJECT): Autogenerated return type of DeleteIpAllowListEntry. -type DeleteIpAllowListEntryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // IpAllowListEntry: The IP allow list entry that was deleted. - IpAllowListEntry *IpAllowListEntry `json:"ipAllowListEntry,omitempty"` -} - -func (x *DeleteIpAllowListEntryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteIpAllowListEntryPayload) GetIpAllowListEntry() *IpAllowListEntry { - return x.IpAllowListEntry -} - -// DeleteIssueCommentInput (INPUT_OBJECT): Autogenerated input type of DeleteIssueComment. -type DeleteIssueCommentInput struct { - // Id: The ID of the comment to delete. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteIssueCommentPayload (OBJECT): Autogenerated return type of DeleteIssueComment. -type DeleteIssueCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *DeleteIssueCommentPayload) GetClientMutationId() string { return x.ClientMutationId } - -// DeleteIssueInput (INPUT_OBJECT): Autogenerated input type of DeleteIssue. -type DeleteIssueInput struct { - // IssueId: The ID of the issue to delete. - // - // GraphQL type: ID! - IssueId ID `json:"issueId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteIssuePayload (OBJECT): Autogenerated return type of DeleteIssue. -type DeleteIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The repository the issue belonged to. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *DeleteIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteIssuePayload) GetRepository() *Repository { return x.Repository } - -// DeleteProjectCardInput (INPUT_OBJECT): Autogenerated input type of DeleteProjectCard. -type DeleteProjectCardInput struct { - // CardId: The id of the card to delete. - // - // GraphQL type: ID! - CardId ID `json:"cardId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteProjectCardPayload (OBJECT): Autogenerated return type of DeleteProjectCard. -type DeleteProjectCardPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Column: The column the deleted card was in. - Column *ProjectColumn `json:"column,omitempty"` - - // DeletedCardId: The deleted card ID. - DeletedCardId ID `json:"deletedCardId,omitempty"` -} - -func (x *DeleteProjectCardPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteProjectCardPayload) GetColumn() *ProjectColumn { return x.Column } -func (x *DeleteProjectCardPayload) GetDeletedCardId() ID { return x.DeletedCardId } - -// DeleteProjectColumnInput (INPUT_OBJECT): Autogenerated input type of DeleteProjectColumn. -type DeleteProjectColumnInput struct { - // ColumnId: The id of the column to delete. - // - // GraphQL type: ID! - ColumnId ID `json:"columnId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteProjectColumnPayload (OBJECT): Autogenerated return type of DeleteProjectColumn. -type DeleteProjectColumnPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // DeletedColumnId: The deleted column ID. - DeletedColumnId ID `json:"deletedColumnId,omitempty"` - - // Project: The project the deleted column was in. - Project *Project `json:"project,omitempty"` -} - -func (x *DeleteProjectColumnPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteProjectColumnPayload) GetDeletedColumnId() ID { return x.DeletedColumnId } -func (x *DeleteProjectColumnPayload) GetProject() *Project { return x.Project } - -// DeleteProjectInput (INPUT_OBJECT): Autogenerated input type of DeleteProject. -type DeleteProjectInput struct { - // ProjectId: The Project ID to update. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteProjectNextItemInput (INPUT_OBJECT): Autogenerated input type of DeleteProjectNextItem. -type DeleteProjectNextItemInput struct { - // ProjectId: The ID of the Project from which the item should be removed. This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: ID - ProjectId ID `json:"projectId,omitempty"` - - // ItemId: The ID of the item to be removed. This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `itemId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: ID - ItemId ID `json:"itemId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteProjectNextItemPayload (OBJECT): Autogenerated return type of DeleteProjectNextItem. -type DeleteProjectNextItemPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // DeletedItemId: The ID of the deleted item. - // - // Deprecated: The ID of the deleted item. - DeletedItemId ID `json:"deletedItemId,omitempty"` -} - -func (x *DeleteProjectNextItemPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteProjectNextItemPayload) GetDeletedItemId() ID { return x.DeletedItemId } - -// DeleteProjectPayload (OBJECT): Autogenerated return type of DeleteProject. -type DeleteProjectPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Owner: The repository or organization the project was removed from. - Owner ProjectOwner `json:"owner,omitempty"` -} - -func (x *DeleteProjectPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteProjectPayload) GetOwner() ProjectOwner { return x.Owner } - -// DeleteProjectV2ItemInput (INPUT_OBJECT): Autogenerated input type of DeleteProjectV2Item. -type DeleteProjectV2ItemInput struct { - // ProjectId: The ID of the Project from which the item should be removed. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // ItemId: The ID of the item to be removed. - // - // GraphQL type: ID! - ItemId ID `json:"itemId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteProjectV2ItemPayload (OBJECT): Autogenerated return type of DeleteProjectV2Item. -type DeleteProjectV2ItemPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // DeletedItemId: The ID of the deleted item. - DeletedItemId ID `json:"deletedItemId,omitempty"` -} - -func (x *DeleteProjectV2ItemPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteProjectV2ItemPayload) GetDeletedItemId() ID { return x.DeletedItemId } - -// DeletePullRequestReviewCommentInput (INPUT_OBJECT): Autogenerated input type of DeletePullRequestReviewComment. -type DeletePullRequestReviewCommentInput struct { - // Id: The ID of the comment to delete. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeletePullRequestReviewCommentPayload (OBJECT): Autogenerated return type of DeletePullRequestReviewComment. -type DeletePullRequestReviewCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequestReview: The pull request review the deleted comment belonged to. - PullRequestReview *PullRequestReview `json:"pullRequestReview,omitempty"` -} - -func (x *DeletePullRequestReviewCommentPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *DeletePullRequestReviewCommentPayload) GetPullRequestReview() *PullRequestReview { - return x.PullRequestReview -} - -// DeletePullRequestReviewInput (INPUT_OBJECT): Autogenerated input type of DeletePullRequestReview. -type DeletePullRequestReviewInput struct { - // PullRequestReviewId: The Node ID of the pull request review to delete. - // - // GraphQL type: ID! - PullRequestReviewId ID `json:"pullRequestReviewId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeletePullRequestReviewPayload (OBJECT): Autogenerated return type of DeletePullRequestReview. -type DeletePullRequestReviewPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequestReview: The deleted pull request review. - PullRequestReview *PullRequestReview `json:"pullRequestReview,omitempty"` -} - -func (x *DeletePullRequestReviewPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeletePullRequestReviewPayload) GetPullRequestReview() *PullRequestReview { - return x.PullRequestReview -} - -// DeleteRefInput (INPUT_OBJECT): Autogenerated input type of DeleteRef. -type DeleteRefInput struct { - // RefId: The Node ID of the Ref to be deleted. - // - // GraphQL type: ID! - RefId ID `json:"refId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteRefPayload (OBJECT): Autogenerated return type of DeleteRef. -type DeleteRefPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *DeleteRefPayload) GetClientMutationId() string { return x.ClientMutationId } - -// DeleteTeamDiscussionCommentInput (INPUT_OBJECT): Autogenerated input type of DeleteTeamDiscussionComment. -type DeleteTeamDiscussionCommentInput struct { - // Id: The ID of the comment to delete. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteTeamDiscussionCommentPayload (OBJECT): Autogenerated return type of DeleteTeamDiscussionComment. -type DeleteTeamDiscussionCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *DeleteTeamDiscussionCommentPayload) GetClientMutationId() string { return x.ClientMutationId } - -// DeleteTeamDiscussionInput (INPUT_OBJECT): Autogenerated input type of DeleteTeamDiscussion. -type DeleteTeamDiscussionInput struct { - // Id: The discussion ID to delete. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteTeamDiscussionPayload (OBJECT): Autogenerated return type of DeleteTeamDiscussion. -type DeleteTeamDiscussionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *DeleteTeamDiscussionPayload) GetClientMutationId() string { return x.ClientMutationId } - -// DeleteVerifiableDomainInput (INPUT_OBJECT): Autogenerated input type of DeleteVerifiableDomain. -type DeleteVerifiableDomainInput struct { - // Id: The ID of the verifiable domain to delete. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DeleteVerifiableDomainPayload (OBJECT): Autogenerated return type of DeleteVerifiableDomain. -type DeleteVerifiableDomainPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Owner: The owning account from which the domain was deleted. - Owner VerifiableDomainOwner `json:"owner,omitempty"` -} - -func (x *DeleteVerifiableDomainPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DeleteVerifiableDomainPayload) GetOwner() VerifiableDomainOwner { return x.Owner } - -// DemilestonedEvent (OBJECT): Represents a 'demilestoned' event on a given issue or pull request. -type DemilestonedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // MilestoneTitle: Identifies the milestone title associated with the 'demilestoned' event. - MilestoneTitle string `json:"milestoneTitle,omitempty"` - - // Subject: Object referenced by event. - Subject MilestoneItem `json:"subject,omitempty"` -} - -func (x *DemilestonedEvent) GetActor() Actor { return x.Actor } -func (x *DemilestonedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DemilestonedEvent) GetId() ID { return x.Id } -func (x *DemilestonedEvent) GetMilestoneTitle() string { return x.MilestoneTitle } -func (x *DemilestonedEvent) GetSubject() MilestoneItem { return x.Subject } - -// DependabotUpdate (OBJECT): A Dependabot Update for a dependency in a repository. -type DependabotUpdate struct { - // Error: The error from a dependency update. - Error *DependabotUpdateError `json:"error,omitempty"` - - // PullRequest: The associated pull request. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *DependabotUpdate) GetError() *DependabotUpdateError { return x.Error } -func (x *DependabotUpdate) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *DependabotUpdate) GetRepository() *Repository { return x.Repository } - -// DependabotUpdateError (OBJECT): An error produced from a Dependabot Update. -type DependabotUpdateError struct { - // Body: The body of the error. - Body string `json:"body,omitempty"` - - // ErrorType: The error code. - ErrorType string `json:"errorType,omitempty"` - - // Title: The title of the error. - Title string `json:"title,omitempty"` -} - -func (x *DependabotUpdateError) GetBody() string { return x.Body } -func (x *DependabotUpdateError) GetErrorType() string { return x.ErrorType } -func (x *DependabotUpdateError) GetTitle() string { return x.Title } - -// DependencyGraphEcosystem (ENUM): The possible ecosystems of a dependency graph package. -type DependencyGraphEcosystem string - -// DependencyGraphEcosystem_RUBYGEMS: Ruby gems hosted at RubyGems.org. -const DependencyGraphEcosystem_RUBYGEMS DependencyGraphEcosystem = "RUBYGEMS" - -// DependencyGraphEcosystem_NPM: JavaScript packages hosted at npmjs.com. -const DependencyGraphEcosystem_NPM DependencyGraphEcosystem = "NPM" - -// DependencyGraphEcosystem_PIP: Python packages hosted at PyPI.org. -const DependencyGraphEcosystem_PIP DependencyGraphEcosystem = "PIP" - -// DependencyGraphEcosystem_MAVEN: Java artifacts hosted at the Maven central repository. -const DependencyGraphEcosystem_MAVEN DependencyGraphEcosystem = "MAVEN" - -// DependencyGraphEcosystem_NUGET: .NET packages hosted at the NuGet Gallery. -const DependencyGraphEcosystem_NUGET DependencyGraphEcosystem = "NUGET" - -// DependencyGraphEcosystem_COMPOSER: PHP packages hosted at packagist.org. -const DependencyGraphEcosystem_COMPOSER DependencyGraphEcosystem = "COMPOSER" - -// DependencyGraphEcosystem_GO: Go modules. -const DependencyGraphEcosystem_GO DependencyGraphEcosystem = "GO" - -// DependencyGraphEcosystem_ACTIONS: GitHub Actions. -const DependencyGraphEcosystem_ACTIONS DependencyGraphEcosystem = "ACTIONS" - -// DependencyGraphEcosystem_RUST: Rust crates. -const DependencyGraphEcosystem_RUST DependencyGraphEcosystem = "RUST" - -// DeployKey (OBJECT): A repository deploy key. -type DeployKey struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Key: The deploy key. - Key string `json:"key,omitempty"` - - // ReadOnly: Whether or not the deploy key is read only. - ReadOnly bool `json:"readOnly,omitempty"` - - // Title: The deploy key title. - Title string `json:"title,omitempty"` - - // Verified: Whether or not the deploy key has been verified. - Verified bool `json:"verified,omitempty"` -} - -func (x *DeployKey) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DeployKey) GetId() ID { return x.Id } -func (x *DeployKey) GetKey() string { return x.Key } -func (x *DeployKey) GetReadOnly() bool { return x.ReadOnly } -func (x *DeployKey) GetTitle() string { return x.Title } -func (x *DeployKey) GetVerified() bool { return x.Verified } - -// DeployKeyConnection (OBJECT): The connection type for DeployKey. -type DeployKeyConnection struct { - // Edges: A list of edges. - Edges []*DeployKeyEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*DeployKey `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DeployKeyConnection) GetEdges() []*DeployKeyEdge { return x.Edges } -func (x *DeployKeyConnection) GetNodes() []*DeployKey { return x.Nodes } -func (x *DeployKeyConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DeployKeyConnection) GetTotalCount() int { return x.TotalCount } - -// DeployKeyEdge (OBJECT): An edge in a connection. -type DeployKeyEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *DeployKey `json:"node,omitempty"` -} - -func (x *DeployKeyEdge) GetCursor() string { return x.Cursor } -func (x *DeployKeyEdge) GetNode() *DeployKey { return x.Node } - -// DeployedEvent (OBJECT): Represents a 'deployed' event on a given pull request. -type DeployedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Deployment: The deployment associated with the 'deployed' event. - Deployment *Deployment `json:"deployment,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // Ref: The ref associated with the 'deployed' event. - Ref *Ref `json:"ref,omitempty"` -} - -func (x *DeployedEvent) GetActor() Actor { return x.Actor } -func (x *DeployedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DeployedEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *DeployedEvent) GetDeployment() *Deployment { return x.Deployment } -func (x *DeployedEvent) GetId() ID { return x.Id } -func (x *DeployedEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *DeployedEvent) GetRef() *Ref { return x.Ref } - -// Deployment (OBJECT): Represents triggered deployment instance. -type Deployment struct { - // Commit: Identifies the commit sha of the deployment. - Commit *Commit `json:"commit,omitempty"` - - // CommitOid: Identifies the oid of the deployment commit, even if the commit has been deleted. - CommitOid string `json:"commitOid,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: Identifies the actor who triggered the deployment. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Description: The deployment description. - Description string `json:"description,omitempty"` - - // Environment: The latest environment to which this deployment was made. - Environment string `json:"environment,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // LatestEnvironment: The latest environment to which this deployment was made. - LatestEnvironment string `json:"latestEnvironment,omitempty"` - - // LatestStatus: The latest status of this deployment. - LatestStatus *DeploymentStatus `json:"latestStatus,omitempty"` - - // OriginalEnvironment: The original environment to which this deployment was made. - OriginalEnvironment string `json:"originalEnvironment,omitempty"` - - // Payload: Extra information that a deployment system might need. - Payload string `json:"payload,omitempty"` - - // Ref: Identifies the Ref of the deployment, if the deployment was created by ref. - Ref *Ref `json:"ref,omitempty"` - - // Repository: Identifies the repository associated with the deployment. - Repository *Repository `json:"repository,omitempty"` - - // State: The current state of the deployment. - State DeploymentState `json:"state,omitempty"` - - // Statuses: A list of statuses associated with the deployment. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Statuses *DeploymentStatusConnection `json:"statuses,omitempty"` - - // Task: The deployment task. - Task string `json:"task,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *Deployment) GetCommit() *Commit { return x.Commit } -func (x *Deployment) GetCommitOid() string { return x.CommitOid } -func (x *Deployment) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Deployment) GetCreator() Actor { return x.Creator } -func (x *Deployment) GetDatabaseId() int { return x.DatabaseId } -func (x *Deployment) GetDescription() string { return x.Description } -func (x *Deployment) GetEnvironment() string { return x.Environment } -func (x *Deployment) GetId() ID { return x.Id } -func (x *Deployment) GetLatestEnvironment() string { return x.LatestEnvironment } -func (x *Deployment) GetLatestStatus() *DeploymentStatus { return x.LatestStatus } -func (x *Deployment) GetOriginalEnvironment() string { return x.OriginalEnvironment } -func (x *Deployment) GetPayload() string { return x.Payload } -func (x *Deployment) GetRef() *Ref { return x.Ref } -func (x *Deployment) GetRepository() *Repository { return x.Repository } -func (x *Deployment) GetState() DeploymentState { return x.State } -func (x *Deployment) GetStatuses() *DeploymentStatusConnection { return x.Statuses } -func (x *Deployment) GetTask() string { return x.Task } -func (x *Deployment) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// DeploymentConnection (OBJECT): The connection type for Deployment. -type DeploymentConnection struct { - // Edges: A list of edges. - Edges []*DeploymentEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Deployment `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DeploymentConnection) GetEdges() []*DeploymentEdge { return x.Edges } -func (x *DeploymentConnection) GetNodes() []*Deployment { return x.Nodes } -func (x *DeploymentConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DeploymentConnection) GetTotalCount() int { return x.TotalCount } - -// DeploymentEdge (OBJECT): An edge in a connection. -type DeploymentEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Deployment `json:"node,omitempty"` -} - -func (x *DeploymentEdge) GetCursor() string { return x.Cursor } -func (x *DeploymentEdge) GetNode() *Deployment { return x.Node } - -// DeploymentEnvironmentChangedEvent (OBJECT): Represents a 'deployment_environment_changed' event on a given pull request. -type DeploymentEnvironmentChangedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DeploymentStatus: The deployment status that updated the deployment environment. - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *DeploymentEnvironmentChangedEvent) GetActor() Actor { return x.Actor } -func (x *DeploymentEnvironmentChangedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DeploymentEnvironmentChangedEvent) GetDeploymentStatus() *DeploymentStatus { - return x.DeploymentStatus -} -func (x *DeploymentEnvironmentChangedEvent) GetId() ID { return x.Id } -func (x *DeploymentEnvironmentChangedEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// DeploymentOrder (INPUT_OBJECT): Ordering options for deployment connections. -type DeploymentOrder struct { - // Field: The field to order deployments by. - // - // GraphQL type: DeploymentOrderField! - Field DeploymentOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// DeploymentOrderField (ENUM): Properties by which deployment connections can be ordered. -type DeploymentOrderField string - -// DeploymentOrderField_CREATED_AT: Order collection by creation time. -const DeploymentOrderField_CREATED_AT DeploymentOrderField = "CREATED_AT" - -// DeploymentProtectionRule (OBJECT): A protection rule. -type DeploymentProtectionRule struct { - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Reviewers: The teams or users that can review the deployment. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Reviewers *DeploymentReviewerConnection `json:"reviewers,omitempty"` - - // Timeout: The timeout in minutes for this protection rule. - Timeout int `json:"timeout,omitempty"` - - // Type: The type of protection rule. - Type DeploymentProtectionRuleType `json:"type,omitempty"` -} - -func (x *DeploymentProtectionRule) GetDatabaseId() int { return x.DatabaseId } -func (x *DeploymentProtectionRule) GetReviewers() *DeploymentReviewerConnection { return x.Reviewers } -func (x *DeploymentProtectionRule) GetTimeout() int { return x.Timeout } -func (x *DeploymentProtectionRule) GetType() DeploymentProtectionRuleType { return x.Type } - -// DeploymentProtectionRuleConnection (OBJECT): The connection type for DeploymentProtectionRule. -type DeploymentProtectionRuleConnection struct { - // Edges: A list of edges. - Edges []*DeploymentProtectionRuleEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*DeploymentProtectionRule `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DeploymentProtectionRuleConnection) GetEdges() []*DeploymentProtectionRuleEdge { - return x.Edges -} -func (x *DeploymentProtectionRuleConnection) GetNodes() []*DeploymentProtectionRule { return x.Nodes } -func (x *DeploymentProtectionRuleConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DeploymentProtectionRuleConnection) GetTotalCount() int { return x.TotalCount } - -// DeploymentProtectionRuleEdge (OBJECT): An edge in a connection. -type DeploymentProtectionRuleEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *DeploymentProtectionRule `json:"node,omitempty"` -} - -func (x *DeploymentProtectionRuleEdge) GetCursor() string { return x.Cursor } -func (x *DeploymentProtectionRuleEdge) GetNode() *DeploymentProtectionRule { return x.Node } - -// DeploymentProtectionRuleType (ENUM): The possible protection rule types. -type DeploymentProtectionRuleType string - -// DeploymentProtectionRuleType_REQUIRED_REVIEWERS: Required reviewers. -const DeploymentProtectionRuleType_REQUIRED_REVIEWERS DeploymentProtectionRuleType = "REQUIRED_REVIEWERS" - -// DeploymentProtectionRuleType_WAIT_TIMER: Wait timer. -const DeploymentProtectionRuleType_WAIT_TIMER DeploymentProtectionRuleType = "WAIT_TIMER" - -// DeploymentRequest (OBJECT): A request to deploy a workflow run to an environment. -type DeploymentRequest struct { - // CurrentUserCanApprove: Whether or not the current user can approve the deployment. - CurrentUserCanApprove bool `json:"currentUserCanApprove,omitempty"` - - // Environment: The target environment of the deployment. - Environment *Environment `json:"environment,omitempty"` - - // Reviewers: The teams or users that can review the deployment. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Reviewers *DeploymentReviewerConnection `json:"reviewers,omitempty"` - - // WaitTimer: The wait timer in minutes configured in the environment. - WaitTimer int `json:"waitTimer,omitempty"` - - // WaitTimerStartedAt: The wait timer in minutes configured in the environment. - WaitTimerStartedAt DateTime `json:"waitTimerStartedAt,omitempty"` -} - -func (x *DeploymentRequest) GetCurrentUserCanApprove() bool { return x.CurrentUserCanApprove } -func (x *DeploymentRequest) GetEnvironment() *Environment { return x.Environment } -func (x *DeploymentRequest) GetReviewers() *DeploymentReviewerConnection { return x.Reviewers } -func (x *DeploymentRequest) GetWaitTimer() int { return x.WaitTimer } -func (x *DeploymentRequest) GetWaitTimerStartedAt() DateTime { return x.WaitTimerStartedAt } - -// DeploymentRequestConnection (OBJECT): The connection type for DeploymentRequest. -type DeploymentRequestConnection struct { - // Edges: A list of edges. - Edges []*DeploymentRequestEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*DeploymentRequest `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DeploymentRequestConnection) GetEdges() []*DeploymentRequestEdge { return x.Edges } -func (x *DeploymentRequestConnection) GetNodes() []*DeploymentRequest { return x.Nodes } -func (x *DeploymentRequestConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DeploymentRequestConnection) GetTotalCount() int { return x.TotalCount } - -// DeploymentRequestEdge (OBJECT): An edge in a connection. -type DeploymentRequestEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *DeploymentRequest `json:"node,omitempty"` -} - -func (x *DeploymentRequestEdge) GetCursor() string { return x.Cursor } -func (x *DeploymentRequestEdge) GetNode() *DeploymentRequest { return x.Node } - -// DeploymentReview (OBJECT): A deployment review. -type DeploymentReview struct { - // Comment: The comment the user left. - Comment string `json:"comment,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Environments: The environments approved or rejected. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Environments *EnvironmentConnection `json:"environments,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // State: The decision of the user. - State DeploymentReviewState `json:"state,omitempty"` - - // User: The user that reviewed the deployment. - User *User `json:"user,omitempty"` -} - -func (x *DeploymentReview) GetComment() string { return x.Comment } -func (x *DeploymentReview) GetDatabaseId() int { return x.DatabaseId } -func (x *DeploymentReview) GetEnvironments() *EnvironmentConnection { return x.Environments } -func (x *DeploymentReview) GetId() ID { return x.Id } -func (x *DeploymentReview) GetState() DeploymentReviewState { return x.State } -func (x *DeploymentReview) GetUser() *User { return x.User } - -// DeploymentReviewConnection (OBJECT): The connection type for DeploymentReview. -type DeploymentReviewConnection struct { - // Edges: A list of edges. - Edges []*DeploymentReviewEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*DeploymentReview `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DeploymentReviewConnection) GetEdges() []*DeploymentReviewEdge { return x.Edges } -func (x *DeploymentReviewConnection) GetNodes() []*DeploymentReview { return x.Nodes } -func (x *DeploymentReviewConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DeploymentReviewConnection) GetTotalCount() int { return x.TotalCount } - -// DeploymentReviewEdge (OBJECT): An edge in a connection. -type DeploymentReviewEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *DeploymentReview `json:"node,omitempty"` -} - -func (x *DeploymentReviewEdge) GetCursor() string { return x.Cursor } -func (x *DeploymentReviewEdge) GetNode() *DeploymentReview { return x.Node } - -// DeploymentReviewState (ENUM): The possible states for a deployment review. -type DeploymentReviewState string - -// DeploymentReviewState_APPROVED: The deployment was approved. -const DeploymentReviewState_APPROVED DeploymentReviewState = "APPROVED" - -// DeploymentReviewState_REJECTED: The deployment was rejected. -const DeploymentReviewState_REJECTED DeploymentReviewState = "REJECTED" - -// DeploymentReviewer (UNION): Users and teams. -// DeploymentReviewer_Interface: Users and teams. -// -// Possible types: -// -// - *Team -// - *User -type DeploymentReviewer_Interface interface { - isDeploymentReviewer() -} - -func (*Team) isDeploymentReviewer() {} -func (*User) isDeploymentReviewer() {} - -type DeploymentReviewer struct { - Interface DeploymentReviewer_Interface -} - -func (x *DeploymentReviewer) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *DeploymentReviewer) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for DeploymentReviewer", info.Typename) - case "Team": - x.Interface = new(Team) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// DeploymentReviewerConnection (OBJECT): The connection type for DeploymentReviewer. -type DeploymentReviewerConnection struct { - // Edges: A list of edges. - Edges []*DeploymentReviewerEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []DeploymentReviewer `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DeploymentReviewerConnection) GetEdges() []*DeploymentReviewerEdge { return x.Edges } -func (x *DeploymentReviewerConnection) GetNodes() []DeploymentReviewer { return x.Nodes } -func (x *DeploymentReviewerConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DeploymentReviewerConnection) GetTotalCount() int { return x.TotalCount } - -// DeploymentReviewerEdge (OBJECT): An edge in a connection. -type DeploymentReviewerEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node DeploymentReviewer `json:"node,omitempty"` -} - -func (x *DeploymentReviewerEdge) GetCursor() string { return x.Cursor } -func (x *DeploymentReviewerEdge) GetNode() DeploymentReviewer { return x.Node } - -// DeploymentState (ENUM): The possible states in which a deployment can be. -type DeploymentState string - -// DeploymentState_ABANDONED: The pending deployment was not updated after 30 minutes. -const DeploymentState_ABANDONED DeploymentState = "ABANDONED" - -// DeploymentState_ACTIVE: The deployment is currently active. -const DeploymentState_ACTIVE DeploymentState = "ACTIVE" - -// DeploymentState_DESTROYED: An inactive transient deployment. -const DeploymentState_DESTROYED DeploymentState = "DESTROYED" - -// DeploymentState_ERROR: The deployment experienced an error. -const DeploymentState_ERROR DeploymentState = "ERROR" - -// DeploymentState_FAILURE: The deployment has failed. -const DeploymentState_FAILURE DeploymentState = "FAILURE" - -// DeploymentState_INACTIVE: The deployment is inactive. -const DeploymentState_INACTIVE DeploymentState = "INACTIVE" - -// DeploymentState_PENDING: The deployment is pending. -const DeploymentState_PENDING DeploymentState = "PENDING" - -// DeploymentState_QUEUED: The deployment has queued. -const DeploymentState_QUEUED DeploymentState = "QUEUED" - -// DeploymentState_IN_PROGRESS: The deployment is in progress. -const DeploymentState_IN_PROGRESS DeploymentState = "IN_PROGRESS" - -// DeploymentState_WAITING: The deployment is waiting. -const DeploymentState_WAITING DeploymentState = "WAITING" - -// DeploymentStatus (OBJECT): Describes the status of a given deployment attempt. -type DeploymentStatus struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: Identifies the actor who triggered the deployment. - Creator Actor `json:"creator,omitempty"` - - // Deployment: Identifies the deployment associated with status. - Deployment *Deployment `json:"deployment,omitempty"` - - // Description: Identifies the description of the deployment. - Description string `json:"description,omitempty"` - - // EnvironmentUrl: Identifies the environment URL of the deployment. - EnvironmentUrl URI `json:"environmentUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // LogUrl: Identifies the log URL of the deployment. - LogUrl URI `json:"logUrl,omitempty"` - - // State: Identifies the current state of the deployment. - State DeploymentStatusState `json:"state,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *DeploymentStatus) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DeploymentStatus) GetCreator() Actor { return x.Creator } -func (x *DeploymentStatus) GetDeployment() *Deployment { return x.Deployment } -func (x *DeploymentStatus) GetDescription() string { return x.Description } -func (x *DeploymentStatus) GetEnvironmentUrl() URI { return x.EnvironmentUrl } -func (x *DeploymentStatus) GetId() ID { return x.Id } -func (x *DeploymentStatus) GetLogUrl() URI { return x.LogUrl } -func (x *DeploymentStatus) GetState() DeploymentStatusState { return x.State } -func (x *DeploymentStatus) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// DeploymentStatusConnection (OBJECT): The connection type for DeploymentStatus. -type DeploymentStatusConnection struct { - // Edges: A list of edges. - Edges []*DeploymentStatusEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*DeploymentStatus `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DeploymentStatusConnection) GetEdges() []*DeploymentStatusEdge { return x.Edges } -func (x *DeploymentStatusConnection) GetNodes() []*DeploymentStatus { return x.Nodes } -func (x *DeploymentStatusConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DeploymentStatusConnection) GetTotalCount() int { return x.TotalCount } - -// DeploymentStatusEdge (OBJECT): An edge in a connection. -type DeploymentStatusEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *DeploymentStatus `json:"node,omitempty"` -} - -func (x *DeploymentStatusEdge) GetCursor() string { return x.Cursor } -func (x *DeploymentStatusEdge) GetNode() *DeploymentStatus { return x.Node } - -// DeploymentStatusState (ENUM): The possible states for a deployment status. -type DeploymentStatusState string - -// DeploymentStatusState_PENDING: The deployment is pending. -const DeploymentStatusState_PENDING DeploymentStatusState = "PENDING" - -// DeploymentStatusState_SUCCESS: The deployment was successful. -const DeploymentStatusState_SUCCESS DeploymentStatusState = "SUCCESS" - -// DeploymentStatusState_FAILURE: The deployment has failed. -const DeploymentStatusState_FAILURE DeploymentStatusState = "FAILURE" - -// DeploymentStatusState_INACTIVE: The deployment is inactive. -const DeploymentStatusState_INACTIVE DeploymentStatusState = "INACTIVE" - -// DeploymentStatusState_ERROR: The deployment experienced an error. -const DeploymentStatusState_ERROR DeploymentStatusState = "ERROR" - -// DeploymentStatusState_QUEUED: The deployment is queued. -const DeploymentStatusState_QUEUED DeploymentStatusState = "QUEUED" - -// DeploymentStatusState_IN_PROGRESS: The deployment is in progress. -const DeploymentStatusState_IN_PROGRESS DeploymentStatusState = "IN_PROGRESS" - -// DeploymentStatusState_WAITING: The deployment is waiting. -const DeploymentStatusState_WAITING DeploymentStatusState = "WAITING" - -// DiffSide (ENUM): The possible sides of a diff. -type DiffSide string - -// DiffSide_LEFT: The left side of the diff. -const DiffSide_LEFT DiffSide = "LEFT" - -// DiffSide_RIGHT: The right side of the diff. -const DiffSide_RIGHT DiffSide = "RIGHT" - -// DisablePullRequestAutoMergeInput (INPUT_OBJECT): Autogenerated input type of DisablePullRequestAutoMerge. -type DisablePullRequestAutoMergeInput struct { - // PullRequestId: ID of the pull request to disable auto merge on. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DisablePullRequestAutoMergePayload (OBJECT): Autogenerated return type of DisablePullRequestAutoMerge. -type DisablePullRequestAutoMergePayload struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The pull request auto merge was disabled on. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *DisablePullRequestAutoMergePayload) GetActor() Actor { return x.Actor } -func (x *DisablePullRequestAutoMergePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DisablePullRequestAutoMergePayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// DisconnectedEvent (OBJECT): Represents a 'disconnected' event on a given issue or pull request. -type DisconnectedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCrossRepository: Reference originated in a different repository. - IsCrossRepository bool `json:"isCrossRepository,omitempty"` - - // Source: Issue or pull request from which the issue was disconnected. - Source ReferencedSubject `json:"source,omitempty"` - - // Subject: Issue or pull request which was disconnected. - Subject ReferencedSubject `json:"subject,omitempty"` -} - -func (x *DisconnectedEvent) GetActor() Actor { return x.Actor } -func (x *DisconnectedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DisconnectedEvent) GetId() ID { return x.Id } -func (x *DisconnectedEvent) GetIsCrossRepository() bool { return x.IsCrossRepository } -func (x *DisconnectedEvent) GetSource() ReferencedSubject { return x.Source } -func (x *DisconnectedEvent) GetSubject() ReferencedSubject { return x.Subject } - -// Discussion (OBJECT): A discussion in a repository. -type Discussion struct { - // ActiveLockReason: Reason that the conversation was locked. - ActiveLockReason LockReason `json:"activeLockReason,omitempty"` - - // Answer: The comment chosen as this discussion's answer, if any. - Answer *DiscussionComment `json:"answer,omitempty"` - - // AnswerChosenAt: The time when a user chose this discussion's answer, if answered. - AnswerChosenAt DateTime `json:"answerChosenAt,omitempty"` - - // AnswerChosenBy: The user who chose this discussion's answer, if answered. - AnswerChosenBy Actor `json:"answerChosenBy,omitempty"` - - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the subject of the comment. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: The main text of the discussion post. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // Category: The category for this discussion. - Category *DiscussionCategory `json:"category,omitempty"` - - // Comments: The replies to the discussion. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Comments *DiscussionCommentConnection `json:"comments,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // Labels: A list of labels associated with the object. - // - // Query arguments: - // - orderBy LabelOrder - // - after String - // - before String - // - first Int - // - last Int - Labels *LabelConnection `json:"labels,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // Locked: `true` if the object is locked. - Locked bool `json:"locked,omitempty"` - - // Number: The number identifying this discussion within the repository. - Number int `json:"number,omitempty"` - - // Poll: The poll associated with this discussion, if one exists. - Poll *DiscussionPoll `json:"poll,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The path for this discussion. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Title: The title of this discussion. - Title string `json:"title,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // UpvoteCount: Number of upvotes that this subject has received. - UpvoteCount int `json:"upvoteCount,omitempty"` - - // Url: The URL for this discussion. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanSubscribe: Check if the viewer is able to change their subscription status for the repository. - ViewerCanSubscribe bool `json:"viewerCanSubscribe,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCanUpvote: Whether or not the current user can add or remove an upvote on this subject. - ViewerCanUpvote bool `json:"viewerCanUpvote,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` - - // ViewerHasUpvoted: Whether or not the current user has already upvoted this subject. - ViewerHasUpvoted bool `json:"viewerHasUpvoted,omitempty"` - - // ViewerSubscription: Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - ViewerSubscription SubscriptionState `json:"viewerSubscription,omitempty"` -} - -func (x *Discussion) GetActiveLockReason() LockReason { return x.ActiveLockReason } -func (x *Discussion) GetAnswer() *DiscussionComment { return x.Answer } -func (x *Discussion) GetAnswerChosenAt() DateTime { return x.AnswerChosenAt } -func (x *Discussion) GetAnswerChosenBy() Actor { return x.AnswerChosenBy } -func (x *Discussion) GetAuthor() Actor { return x.Author } -func (x *Discussion) GetAuthorAssociation() CommentAuthorAssociation { return x.AuthorAssociation } -func (x *Discussion) GetBody() string { return x.Body } -func (x *Discussion) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *Discussion) GetBodyText() string { return x.BodyText } -func (x *Discussion) GetCategory() *DiscussionCategory { return x.Category } -func (x *Discussion) GetComments() *DiscussionCommentConnection { return x.Comments } -func (x *Discussion) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Discussion) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *Discussion) GetDatabaseId() int { return x.DatabaseId } -func (x *Discussion) GetEditor() Actor { return x.Editor } -func (x *Discussion) GetId() ID { return x.Id } -func (x *Discussion) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *Discussion) GetLabels() *LabelConnection { return x.Labels } -func (x *Discussion) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *Discussion) GetLocked() bool { return x.Locked } -func (x *Discussion) GetNumber() int { return x.Number } -func (x *Discussion) GetPoll() *DiscussionPoll { return x.Poll } -func (x *Discussion) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *Discussion) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *Discussion) GetReactions() *ReactionConnection { return x.Reactions } -func (x *Discussion) GetRepository() *Repository { return x.Repository } -func (x *Discussion) GetResourcePath() URI { return x.ResourcePath } -func (x *Discussion) GetTitle() string { return x.Title } -func (x *Discussion) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Discussion) GetUpvoteCount() int { return x.UpvoteCount } -func (x *Discussion) GetUrl() URI { return x.Url } -func (x *Discussion) GetUserContentEdits() *UserContentEditConnection { return x.UserContentEdits } -func (x *Discussion) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *Discussion) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *Discussion) GetViewerCanSubscribe() bool { return x.ViewerCanSubscribe } -func (x *Discussion) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *Discussion) GetViewerCanUpvote() bool { return x.ViewerCanUpvote } -func (x *Discussion) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } -func (x *Discussion) GetViewerHasUpvoted() bool { return x.ViewerHasUpvoted } -func (x *Discussion) GetViewerSubscription() SubscriptionState { return x.ViewerSubscription } - -// DiscussionCategory (OBJECT): A category for discussions in a repository. -type DiscussionCategory struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Description: A description of this category. - Description string `json:"description,omitempty"` - - // Emoji: An emoji representing this category. - Emoji string `json:"emoji,omitempty"` - - // EmojiHTML: This category's emoji rendered as HTML. - EmojiHTML template.HTML `json:"emojiHTML,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsAnswerable: Whether or not discussions in this category support choosing an answer with the markDiscussionCommentAsAnswer mutation. - IsAnswerable bool `json:"isAnswerable,omitempty"` - - // Name: The name of this category. - Name string `json:"name,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *DiscussionCategory) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DiscussionCategory) GetDescription() string { return x.Description } -func (x *DiscussionCategory) GetEmoji() string { return x.Emoji } -func (x *DiscussionCategory) GetEmojiHTML() template.HTML { return x.EmojiHTML } -func (x *DiscussionCategory) GetId() ID { return x.Id } -func (x *DiscussionCategory) GetIsAnswerable() bool { return x.IsAnswerable } -func (x *DiscussionCategory) GetName() string { return x.Name } -func (x *DiscussionCategory) GetRepository() *Repository { return x.Repository } -func (x *DiscussionCategory) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// DiscussionCategoryConnection (OBJECT): The connection type for DiscussionCategory. -type DiscussionCategoryConnection struct { - // Edges: A list of edges. - Edges []*DiscussionCategoryEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*DiscussionCategory `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DiscussionCategoryConnection) GetEdges() []*DiscussionCategoryEdge { return x.Edges } -func (x *DiscussionCategoryConnection) GetNodes() []*DiscussionCategory { return x.Nodes } -func (x *DiscussionCategoryConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DiscussionCategoryConnection) GetTotalCount() int { return x.TotalCount } - -// DiscussionCategoryEdge (OBJECT): An edge in a connection. -type DiscussionCategoryEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *DiscussionCategory `json:"node,omitempty"` -} - -func (x *DiscussionCategoryEdge) GetCursor() string { return x.Cursor } -func (x *DiscussionCategoryEdge) GetNode() *DiscussionCategory { return x.Node } - -// DiscussionComment (OBJECT): A comment on a discussion. -type DiscussionComment struct { - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the subject of the comment. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: The body as Markdown. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // DeletedAt: The time when this replied-to comment was deleted. - DeletedAt DateTime `json:"deletedAt,omitempty"` - - // Discussion: The discussion this comment was created in. - Discussion *Discussion `json:"discussion,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // IsAnswer: Has this comment been chosen as the answer of its discussion?. - IsAnswer bool `json:"isAnswer,omitempty"` - - // IsMinimized: Returns whether or not a comment has been minimized. - IsMinimized bool `json:"isMinimized,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // MinimizedReason: Returns why the comment was minimized. - MinimizedReason string `json:"minimizedReason,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // Replies: The threaded replies to this comment. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Replies *DiscussionCommentConnection `json:"replies,omitempty"` - - // ReplyTo: The discussion comment this comment is a reply to. - ReplyTo *DiscussionComment `json:"replyTo,omitempty"` - - // ResourcePath: The path for this discussion comment. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // UpvoteCount: Number of upvotes that this subject has received. - UpvoteCount int `json:"upvoteCount,omitempty"` - - // Url: The URL for this discussion comment. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanMarkAsAnswer: Can the current user mark this comment as an answer?. - ViewerCanMarkAsAnswer bool `json:"viewerCanMarkAsAnswer,omitempty"` - - // ViewerCanMinimize: Check if the current viewer can minimize this object. - ViewerCanMinimize bool `json:"viewerCanMinimize,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanUnmarkAsAnswer: Can the current user unmark this comment as an answer?. - ViewerCanUnmarkAsAnswer bool `json:"viewerCanUnmarkAsAnswer,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCanUpvote: Whether or not the current user can add or remove an upvote on this subject. - ViewerCanUpvote bool `json:"viewerCanUpvote,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` - - // ViewerHasUpvoted: Whether or not the current user has already upvoted this subject. - ViewerHasUpvoted bool `json:"viewerHasUpvoted,omitempty"` -} - -func (x *DiscussionComment) GetAuthor() Actor { return x.Author } -func (x *DiscussionComment) GetAuthorAssociation() CommentAuthorAssociation { - return x.AuthorAssociation -} -func (x *DiscussionComment) GetBody() string { return x.Body } -func (x *DiscussionComment) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *DiscussionComment) GetBodyText() string { return x.BodyText } -func (x *DiscussionComment) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DiscussionComment) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *DiscussionComment) GetDatabaseId() int { return x.DatabaseId } -func (x *DiscussionComment) GetDeletedAt() DateTime { return x.DeletedAt } -func (x *DiscussionComment) GetDiscussion() *Discussion { return x.Discussion } -func (x *DiscussionComment) GetEditor() Actor { return x.Editor } -func (x *DiscussionComment) GetId() ID { return x.Id } -func (x *DiscussionComment) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *DiscussionComment) GetIsAnswer() bool { return x.IsAnswer } -func (x *DiscussionComment) GetIsMinimized() bool { return x.IsMinimized } -func (x *DiscussionComment) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *DiscussionComment) GetMinimizedReason() string { return x.MinimizedReason } -func (x *DiscussionComment) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *DiscussionComment) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *DiscussionComment) GetReactions() *ReactionConnection { return x.Reactions } -func (x *DiscussionComment) GetReplies() *DiscussionCommentConnection { return x.Replies } -func (x *DiscussionComment) GetReplyTo() *DiscussionComment { return x.ReplyTo } -func (x *DiscussionComment) GetResourcePath() URI { return x.ResourcePath } -func (x *DiscussionComment) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *DiscussionComment) GetUpvoteCount() int { return x.UpvoteCount } -func (x *DiscussionComment) GetUrl() URI { return x.Url } -func (x *DiscussionComment) GetUserContentEdits() *UserContentEditConnection { - return x.UserContentEdits -} -func (x *DiscussionComment) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *DiscussionComment) GetViewerCanMarkAsAnswer() bool { return x.ViewerCanMarkAsAnswer } -func (x *DiscussionComment) GetViewerCanMinimize() bool { return x.ViewerCanMinimize } -func (x *DiscussionComment) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *DiscussionComment) GetViewerCanUnmarkAsAnswer() bool { return x.ViewerCanUnmarkAsAnswer } -func (x *DiscussionComment) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *DiscussionComment) GetViewerCanUpvote() bool { return x.ViewerCanUpvote } -func (x *DiscussionComment) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *DiscussionComment) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } -func (x *DiscussionComment) GetViewerHasUpvoted() bool { return x.ViewerHasUpvoted } - -// DiscussionCommentConnection (OBJECT): The connection type for DiscussionComment. -type DiscussionCommentConnection struct { - // Edges: A list of edges. - Edges []*DiscussionCommentEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*DiscussionComment `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DiscussionCommentConnection) GetEdges() []*DiscussionCommentEdge { return x.Edges } -func (x *DiscussionCommentConnection) GetNodes() []*DiscussionComment { return x.Nodes } -func (x *DiscussionCommentConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DiscussionCommentConnection) GetTotalCount() int { return x.TotalCount } - -// DiscussionCommentEdge (OBJECT): An edge in a connection. -type DiscussionCommentEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *DiscussionComment `json:"node,omitempty"` -} - -func (x *DiscussionCommentEdge) GetCursor() string { return x.Cursor } -func (x *DiscussionCommentEdge) GetNode() *DiscussionComment { return x.Node } - -// DiscussionConnection (OBJECT): The connection type for Discussion. -type DiscussionConnection struct { - // Edges: A list of edges. - Edges []*DiscussionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Discussion `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DiscussionConnection) GetEdges() []*DiscussionEdge { return x.Edges } -func (x *DiscussionConnection) GetNodes() []*Discussion { return x.Nodes } -func (x *DiscussionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DiscussionConnection) GetTotalCount() int { return x.TotalCount } - -// DiscussionEdge (OBJECT): An edge in a connection. -type DiscussionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Discussion `json:"node,omitempty"` -} - -func (x *DiscussionEdge) GetCursor() string { return x.Cursor } -func (x *DiscussionEdge) GetNode() *Discussion { return x.Node } - -// DiscussionOrder (INPUT_OBJECT): Ways in which lists of discussions can be ordered upon return. -type DiscussionOrder struct { - // Field: The field by which to order discussions. - // - // GraphQL type: DiscussionOrderField! - Field DiscussionOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order discussions by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// DiscussionOrderField (ENUM): Properties by which discussion connections can be ordered. -type DiscussionOrderField string - -// DiscussionOrderField_CREATED_AT: Order discussions by creation time. -const DiscussionOrderField_CREATED_AT DiscussionOrderField = "CREATED_AT" - -// DiscussionOrderField_UPDATED_AT: Order discussions by most recent modification time. -const DiscussionOrderField_UPDATED_AT DiscussionOrderField = "UPDATED_AT" - -// DiscussionPoll (OBJECT): A poll for a discussion. -type DiscussionPoll struct { - // Discussion: The discussion that this poll belongs to. - Discussion *Discussion `json:"discussion,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Options: The options for this poll. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy DiscussionPollOptionOrder - Options *DiscussionPollOptionConnection `json:"options,omitempty"` - - // Question: The question that is being asked by this poll. - Question string `json:"question,omitempty"` - - // TotalVoteCount: The total number of votes that have been cast for this poll. - TotalVoteCount int `json:"totalVoteCount,omitempty"` - - // ViewerCanVote: Indicates if the viewer has permission to vote in this poll. - ViewerCanVote bool `json:"viewerCanVote,omitempty"` - - // ViewerHasVoted: Indicates if the viewer has voted for any option in this poll. - ViewerHasVoted bool `json:"viewerHasVoted,omitempty"` -} - -func (x *DiscussionPoll) GetDiscussion() *Discussion { return x.Discussion } -func (x *DiscussionPoll) GetId() ID { return x.Id } -func (x *DiscussionPoll) GetOptions() *DiscussionPollOptionConnection { return x.Options } -func (x *DiscussionPoll) GetQuestion() string { return x.Question } -func (x *DiscussionPoll) GetTotalVoteCount() int { return x.TotalVoteCount } -func (x *DiscussionPoll) GetViewerCanVote() bool { return x.ViewerCanVote } -func (x *DiscussionPoll) GetViewerHasVoted() bool { return x.ViewerHasVoted } - -// DiscussionPollOption (OBJECT): An option for a discussion poll. -type DiscussionPollOption struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Option: The text for this option. - Option string `json:"option,omitempty"` - - // Poll: The discussion poll that this option belongs to. - Poll *DiscussionPoll `json:"poll,omitempty"` - - // TotalVoteCount: The total number of votes that have been cast for this option. - TotalVoteCount int `json:"totalVoteCount,omitempty"` - - // ViewerHasVoted: Indicates if the viewer has voted for this option in the poll. - ViewerHasVoted bool `json:"viewerHasVoted,omitempty"` -} - -func (x *DiscussionPollOption) GetId() ID { return x.Id } -func (x *DiscussionPollOption) GetOption() string { return x.Option } -func (x *DiscussionPollOption) GetPoll() *DiscussionPoll { return x.Poll } -func (x *DiscussionPollOption) GetTotalVoteCount() int { return x.TotalVoteCount } -func (x *DiscussionPollOption) GetViewerHasVoted() bool { return x.ViewerHasVoted } - -// DiscussionPollOptionConnection (OBJECT): The connection type for DiscussionPollOption. -type DiscussionPollOptionConnection struct { - // Edges: A list of edges. - Edges []*DiscussionPollOptionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*DiscussionPollOption `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *DiscussionPollOptionConnection) GetEdges() []*DiscussionPollOptionEdge { return x.Edges } -func (x *DiscussionPollOptionConnection) GetNodes() []*DiscussionPollOption { return x.Nodes } -func (x *DiscussionPollOptionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *DiscussionPollOptionConnection) GetTotalCount() int { return x.TotalCount } - -// DiscussionPollOptionEdge (OBJECT): An edge in a connection. -type DiscussionPollOptionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *DiscussionPollOption `json:"node,omitempty"` -} - -func (x *DiscussionPollOptionEdge) GetCursor() string { return x.Cursor } -func (x *DiscussionPollOptionEdge) GetNode() *DiscussionPollOption { return x.Node } - -// DiscussionPollOptionOrder (INPUT_OBJECT): Ordering options for discussion poll option connections. -type DiscussionPollOptionOrder struct { - // Field: The field to order poll options by. - // - // GraphQL type: DiscussionPollOptionOrderField! - Field DiscussionPollOptionOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// DiscussionPollOptionOrderField (ENUM): Properties by which discussion poll option connections can be ordered. -type DiscussionPollOptionOrderField string - -// DiscussionPollOptionOrderField_AUTHORED_ORDER: Order poll options by the order that the poll author specified when creating the poll. -const DiscussionPollOptionOrderField_AUTHORED_ORDER DiscussionPollOptionOrderField = "AUTHORED_ORDER" - -// DiscussionPollOptionOrderField_VOTE_COUNT: Order poll options by the number of votes it has. -const DiscussionPollOptionOrderField_VOTE_COUNT DiscussionPollOptionOrderField = "VOTE_COUNT" - -// DismissPullRequestReviewInput (INPUT_OBJECT): Autogenerated input type of DismissPullRequestReview. -type DismissPullRequestReviewInput struct { - // PullRequestReviewId: The Node ID of the pull request review to modify. - // - // GraphQL type: ID! - PullRequestReviewId ID `json:"pullRequestReviewId,omitempty"` - - // Message: The contents of the pull request review dismissal message. - // - // GraphQL type: String! - Message string `json:"message,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DismissPullRequestReviewPayload (OBJECT): Autogenerated return type of DismissPullRequestReview. -type DismissPullRequestReviewPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequestReview: The dismissed pull request review. - PullRequestReview *PullRequestReview `json:"pullRequestReview,omitempty"` -} - -func (x *DismissPullRequestReviewPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *DismissPullRequestReviewPayload) GetPullRequestReview() *PullRequestReview { - return x.PullRequestReview -} - -// DismissReason (ENUM): The possible reasons that a Dependabot alert was dismissed. -type DismissReason string - -// DismissReason_FIX_STARTED: A fix has already been started. -const DismissReason_FIX_STARTED DismissReason = "FIX_STARTED" - -// DismissReason_NO_BANDWIDTH: No bandwidth to fix this. -const DismissReason_NO_BANDWIDTH DismissReason = "NO_BANDWIDTH" - -// DismissReason_TOLERABLE_RISK: Risk is tolerable to this project. -const DismissReason_TOLERABLE_RISK DismissReason = "TOLERABLE_RISK" - -// DismissReason_INACCURATE: This alert is inaccurate or incorrect. -const DismissReason_INACCURATE DismissReason = "INACCURATE" - -// DismissReason_NOT_USED: Vulnerable code is not actually used. -const DismissReason_NOT_USED DismissReason = "NOT_USED" - -// DismissRepositoryVulnerabilityAlertInput (INPUT_OBJECT): Autogenerated input type of DismissRepositoryVulnerabilityAlert. -type DismissRepositoryVulnerabilityAlertInput struct { - // RepositoryVulnerabilityAlertId: The Dependabot alert ID to dismiss. - // - // GraphQL type: ID! - RepositoryVulnerabilityAlertId ID `json:"repositoryVulnerabilityAlertId,omitempty"` - - // DismissReason: The reason the Dependabot alert is being dismissed. - // - // GraphQL type: DismissReason! - DismissReason DismissReason `json:"dismissReason,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// DismissRepositoryVulnerabilityAlertPayload (OBJECT): Autogenerated return type of DismissRepositoryVulnerabilityAlert. -type DismissRepositoryVulnerabilityAlertPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // RepositoryVulnerabilityAlert: The Dependabot alert that was dismissed. - RepositoryVulnerabilityAlert *RepositoryVulnerabilityAlert `json:"repositoryVulnerabilityAlert,omitempty"` -} - -func (x *DismissRepositoryVulnerabilityAlertPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *DismissRepositoryVulnerabilityAlertPayload) GetRepositoryVulnerabilityAlert() *RepositoryVulnerabilityAlert { - return x.RepositoryVulnerabilityAlert -} - -// DraftIssue (OBJECT): A draft issue within a project. -type DraftIssue struct { - // Assignees: A list of users to assigned to this draft issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Assignees *UserConnection `json:"assignees,omitempty"` - - // Body: The body of the draft issue. - Body string `json:"body,omitempty"` - - // BodyHTML: The body of the draft issue rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body of the draft issue rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created this draft issue. - Creator Actor `json:"creator,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Project: The project (beta) that contains this draft issue. - Project *ProjectNext `json:"project,omitempty"` - - // ProjectItem: The project (beta) item that wraps this draft issue. - ProjectItem *ProjectNextItem `json:"projectItem,omitempty"` - - // ProjectV2Items: List of items linked with the draft issue (currently draft issue can be linked to only one item). - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - ProjectV2Items *ProjectV2ItemConnection `json:"projectV2Items,omitempty"` - - // ProjectsV2: Projects that link to this draft issue (currently draft issue can be linked to only one project). - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - ProjectsV2 *ProjectV2Connection `json:"projectsV2,omitempty"` - - // Title: The title of the draft issue. - Title string `json:"title,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *DraftIssue) GetAssignees() *UserConnection { return x.Assignees } -func (x *DraftIssue) GetBody() string { return x.Body } -func (x *DraftIssue) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *DraftIssue) GetBodyText() string { return x.BodyText } -func (x *DraftIssue) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *DraftIssue) GetCreator() Actor { return x.Creator } -func (x *DraftIssue) GetId() ID { return x.Id } -func (x *DraftIssue) GetProject() *ProjectNext { return x.Project } -func (x *DraftIssue) GetProjectItem() *ProjectNextItem { return x.ProjectItem } -func (x *DraftIssue) GetProjectV2Items() *ProjectV2ItemConnection { return x.ProjectV2Items } -func (x *DraftIssue) GetProjectsV2() *ProjectV2Connection { return x.ProjectsV2 } -func (x *DraftIssue) GetTitle() string { return x.Title } -func (x *DraftIssue) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// DraftPullRequestReviewComment (INPUT_OBJECT): Specifies a review comment to be left with a Pull Request Review. -type DraftPullRequestReviewComment struct { - // Path: Path to the file being commented on. - // - // GraphQL type: String! - Path string `json:"path,omitempty"` - - // Position: Position in the file to leave a comment on. - // - // GraphQL type: Int! - Position int `json:"position,omitempty"` - - // Body: Body of the comment to leave. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` -} - -// DraftPullRequestReviewThread (INPUT_OBJECT): Specifies a review comment thread to be left with a Pull Request Review. -type DraftPullRequestReviewThread struct { - // Path: Path to the file being commented on. - // - // GraphQL type: String! - Path string `json:"path,omitempty"` - - // Line: The line of the blob to which the thread refers. The end of the line range for multi-line comments. - // - // GraphQL type: Int! - Line int `json:"line,omitempty"` - - // Side: The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. - // - // GraphQL type: DiffSide - Side DiffSide `json:"side,omitempty"` - - // StartLine: The first line of the range to which the comment refers. - // - // GraphQL type: Int - StartLine int `json:"startLine,omitempty"` - - // StartSide: The side of the diff on which the start line resides. - // - // GraphQL type: DiffSide - StartSide DiffSide `json:"startSide,omitempty"` - - // Body: Body of the comment to leave. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` -} - -// EnablePullRequestAutoMergeInput (INPUT_OBJECT): Autogenerated input type of EnablePullRequestAutoMerge. -type EnablePullRequestAutoMergeInput struct { - // PullRequestId: ID of the pull request to enable auto-merge on. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // CommitHeadline: Commit headline to use for the commit when the PR is mergable; if omitted, a default message will be used. - // - // GraphQL type: String - CommitHeadline string `json:"commitHeadline,omitempty"` - - // CommitBody: Commit body to use for the commit when the PR is mergable; if omitted, a default message will be used. - // - // GraphQL type: String - CommitBody string `json:"commitBody,omitempty"` - - // MergeMethod: The merge method to use. If omitted, defaults to 'MERGE'. - // - // GraphQL type: PullRequestMergeMethod - MergeMethod PullRequestMergeMethod `json:"mergeMethod,omitempty"` - - // AuthorEmail: The email address to associate with this merge. - // - // GraphQL type: String - AuthorEmail string `json:"authorEmail,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// EnablePullRequestAutoMergePayload (OBJECT): Autogenerated return type of EnablePullRequestAutoMerge. -type EnablePullRequestAutoMergePayload struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The pull request auto-merge was enabled on. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *EnablePullRequestAutoMergePayload) GetActor() Actor { return x.Actor } -func (x *EnablePullRequestAutoMergePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *EnablePullRequestAutoMergePayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// Enterprise (OBJECT): An account to manage multiple organizations with consolidated policy and billing. -type Enterprise struct { - // AvatarUrl: A URL pointing to the enterprise's public avatar. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // BillingInfo: Enterprise billing information visible to enterprise billing managers. - BillingInfo *EnterpriseBillingInfo `json:"billingInfo,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Description: The description of the enterprise. - Description string `json:"description,omitempty"` - - // DescriptionHTML: The description of the enterprise as HTML. - DescriptionHTML template.HTML `json:"descriptionHTML,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Location: The location of the enterprise. - Location string `json:"location,omitempty"` - - // Members: A list of users who are members of this enterprise. - // - // Query arguments: - // - organizationLogins [String!] - // - query String - // - orderBy EnterpriseMemberOrder - // - role EnterpriseUserAccountMembershipRole - // - deployment EnterpriseUserDeployment - // - after String - // - before String - // - first Int - // - last Int - Members *EnterpriseMemberConnection `json:"members,omitempty"` - - // Name: The name of the enterprise. - Name string `json:"name,omitempty"` - - // Organizations: A list of organizations that belong to this enterprise. - // - // Query arguments: - // - query String - // - viewerOrganizationRole RoleInOrganization - // - orderBy OrganizationOrder - // - after String - // - before String - // - first Int - // - last Int - Organizations *OrganizationConnection `json:"organizations,omitempty"` - - // OwnerInfo: Enterprise information only visible to enterprise owners. - OwnerInfo *EnterpriseOwnerInfo `json:"ownerInfo,omitempty"` - - // ResourcePath: The HTTP path for this enterprise. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Slug: The URL-friendly identifier for the enterprise. - Slug string `json:"slug,omitempty"` - - // Url: The HTTP URL for this enterprise. - Url URI `json:"url,omitempty"` - - // ViewerIsAdmin: Is the current viewer an admin of this enterprise?. - ViewerIsAdmin bool `json:"viewerIsAdmin,omitempty"` - - // WebsiteUrl: The URL of the enterprise website. - WebsiteUrl URI `json:"websiteUrl,omitempty"` -} - -func (x *Enterprise) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *Enterprise) GetBillingInfo() *EnterpriseBillingInfo { return x.BillingInfo } -func (x *Enterprise) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Enterprise) GetDatabaseId() int { return x.DatabaseId } -func (x *Enterprise) GetDescription() string { return x.Description } -func (x *Enterprise) GetDescriptionHTML() template.HTML { return x.DescriptionHTML } -func (x *Enterprise) GetId() ID { return x.Id } -func (x *Enterprise) GetLocation() string { return x.Location } -func (x *Enterprise) GetMembers() *EnterpriseMemberConnection { return x.Members } -func (x *Enterprise) GetName() string { return x.Name } -func (x *Enterprise) GetOrganizations() *OrganizationConnection { return x.Organizations } -func (x *Enterprise) GetOwnerInfo() *EnterpriseOwnerInfo { return x.OwnerInfo } -func (x *Enterprise) GetResourcePath() URI { return x.ResourcePath } -func (x *Enterprise) GetSlug() string { return x.Slug } -func (x *Enterprise) GetUrl() URI { return x.Url } -func (x *Enterprise) GetViewerIsAdmin() bool { return x.ViewerIsAdmin } -func (x *Enterprise) GetWebsiteUrl() URI { return x.WebsiteUrl } - -// EnterpriseAdministratorConnection (OBJECT): The connection type for User. -type EnterpriseAdministratorConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseAdministratorEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseAdministratorConnection) GetEdges() []*EnterpriseAdministratorEdge { return x.Edges } -func (x *EnterpriseAdministratorConnection) GetNodes() []*User { return x.Nodes } -func (x *EnterpriseAdministratorConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseAdministratorConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseAdministratorEdge (OBJECT): A User who is an administrator of an enterprise. -type EnterpriseAdministratorEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *User `json:"node,omitempty"` - - // Role: The role of the administrator. - Role EnterpriseAdministratorRole `json:"role,omitempty"` -} - -func (x *EnterpriseAdministratorEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseAdministratorEdge) GetNode() *User { return x.Node } -func (x *EnterpriseAdministratorEdge) GetRole() EnterpriseAdministratorRole { return x.Role } - -// EnterpriseAdministratorInvitation (OBJECT): An invitation for a user to become an owner or billing manager of an enterprise. -type EnterpriseAdministratorInvitation struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Email: The email of the person who was invited to the enterprise. - Email string `json:"email,omitempty"` - - // Enterprise: The enterprise the invitation is for. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Invitee: The user who was invited to the enterprise. - Invitee *User `json:"invitee,omitempty"` - - // Inviter: The user who created the invitation. - Inviter *User `json:"inviter,omitempty"` - - // Role: The invitee's pending role in the enterprise (owner or billing_manager). - Role EnterpriseAdministratorRole `json:"role,omitempty"` -} - -func (x *EnterpriseAdministratorInvitation) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *EnterpriseAdministratorInvitation) GetEmail() string { return x.Email } -func (x *EnterpriseAdministratorInvitation) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *EnterpriseAdministratorInvitation) GetId() ID { return x.Id } -func (x *EnterpriseAdministratorInvitation) GetInvitee() *User { return x.Invitee } -func (x *EnterpriseAdministratorInvitation) GetInviter() *User { return x.Inviter } -func (x *EnterpriseAdministratorInvitation) GetRole() EnterpriseAdministratorRole { return x.Role } - -// EnterpriseAdministratorInvitationConnection (OBJECT): The connection type for EnterpriseAdministratorInvitation. -type EnterpriseAdministratorInvitationConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseAdministratorInvitationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*EnterpriseAdministratorInvitation `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseAdministratorInvitationConnection) GetEdges() []*EnterpriseAdministratorInvitationEdge { - return x.Edges -} -func (x *EnterpriseAdministratorInvitationConnection) GetNodes() []*EnterpriseAdministratorInvitation { - return x.Nodes -} -func (x *EnterpriseAdministratorInvitationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseAdministratorInvitationConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseAdministratorInvitationEdge (OBJECT): An edge in a connection. -type EnterpriseAdministratorInvitationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *EnterpriseAdministratorInvitation `json:"node,omitempty"` -} - -func (x *EnterpriseAdministratorInvitationEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseAdministratorInvitationEdge) GetNode() *EnterpriseAdministratorInvitation { - return x.Node -} - -// EnterpriseAdministratorInvitationOrder (INPUT_OBJECT): Ordering options for enterprise administrator invitation connections. -type EnterpriseAdministratorInvitationOrder struct { - // Field: The field to order enterprise administrator invitations by. - // - // GraphQL type: EnterpriseAdministratorInvitationOrderField! - Field EnterpriseAdministratorInvitationOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// EnterpriseAdministratorInvitationOrderField (ENUM): Properties by which enterprise administrator invitation connections can be ordered. -type EnterpriseAdministratorInvitationOrderField string - -// EnterpriseAdministratorInvitationOrderField_CREATED_AT: Order enterprise administrator member invitations by creation time. -const EnterpriseAdministratorInvitationOrderField_CREATED_AT EnterpriseAdministratorInvitationOrderField = "CREATED_AT" - -// EnterpriseAdministratorRole (ENUM): The possible administrator roles in an enterprise account. -type EnterpriseAdministratorRole string - -// EnterpriseAdministratorRole_OWNER: Represents an owner of the enterprise account. -const EnterpriseAdministratorRole_OWNER EnterpriseAdministratorRole = "OWNER" - -// EnterpriseAdministratorRole_BILLING_MANAGER: Represents a billing manager of the enterprise account. -const EnterpriseAdministratorRole_BILLING_MANAGER EnterpriseAdministratorRole = "BILLING_MANAGER" - -// EnterpriseAuditEntryData (INTERFACE): Metadata for an audit entry containing enterprise account information. -// EnterpriseAuditEntryData_Interface: Metadata for an audit entry containing enterprise account information. -// -// Possible types: -// -// - *MembersCanDeleteReposClearAuditEntry -// - *MembersCanDeleteReposDisableAuditEntry -// - *MembersCanDeleteReposEnableAuditEntry -// - *OrgInviteToBusinessAuditEntry -// - *PrivateRepositoryForkingDisableAuditEntry -// - *PrivateRepositoryForkingEnableAuditEntry -// - *RepositoryVisibilityChangeDisableAuditEntry -// - *RepositoryVisibilityChangeEnableAuditEntry -type EnterpriseAuditEntryData_Interface interface { - isEnterpriseAuditEntryData() - GetEnterpriseResourcePath() URI - GetEnterpriseSlug() string - GetEnterpriseUrl() URI -} - -func (*MembersCanDeleteReposClearAuditEntry) isEnterpriseAuditEntryData() {} -func (*MembersCanDeleteReposDisableAuditEntry) isEnterpriseAuditEntryData() {} -func (*MembersCanDeleteReposEnableAuditEntry) isEnterpriseAuditEntryData() {} -func (*OrgInviteToBusinessAuditEntry) isEnterpriseAuditEntryData() {} -func (*PrivateRepositoryForkingDisableAuditEntry) isEnterpriseAuditEntryData() {} -func (*PrivateRepositoryForkingEnableAuditEntry) isEnterpriseAuditEntryData() {} -func (*RepositoryVisibilityChangeDisableAuditEntry) isEnterpriseAuditEntryData() {} -func (*RepositoryVisibilityChangeEnableAuditEntry) isEnterpriseAuditEntryData() {} - -type EnterpriseAuditEntryData struct { - Interface EnterpriseAuditEntryData_Interface -} - -func (x *EnterpriseAuditEntryData) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *EnterpriseAuditEntryData) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for EnterpriseAuditEntryData", info.Typename) - case "MembersCanDeleteReposClearAuditEntry": - x.Interface = new(MembersCanDeleteReposClearAuditEntry) - case "MembersCanDeleteReposDisableAuditEntry": - x.Interface = new(MembersCanDeleteReposDisableAuditEntry) - case "MembersCanDeleteReposEnableAuditEntry": - x.Interface = new(MembersCanDeleteReposEnableAuditEntry) - case "OrgInviteToBusinessAuditEntry": - x.Interface = new(OrgInviteToBusinessAuditEntry) - case "PrivateRepositoryForkingDisableAuditEntry": - x.Interface = new(PrivateRepositoryForkingDisableAuditEntry) - case "PrivateRepositoryForkingEnableAuditEntry": - x.Interface = new(PrivateRepositoryForkingEnableAuditEntry) - case "RepositoryVisibilityChangeDisableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeDisableAuditEntry) - case "RepositoryVisibilityChangeEnableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeEnableAuditEntry) - } - return json.Unmarshal(js, x.Interface) -} - -// EnterpriseBillingInfo (OBJECT): Enterprise billing information visible to enterprise billing managers and owners. -type EnterpriseBillingInfo struct { - // AllLicensableUsersCount: The number of licenseable users/emails across the enterprise. - AllLicensableUsersCount int `json:"allLicensableUsersCount,omitempty"` - - // AssetPacks: The number of data packs used by all organizations owned by the enterprise. - AssetPacks int `json:"assetPacks,omitempty"` - - // BandwidthQuota: The bandwidth quota in GB for all organizations owned by the enterprise. - BandwidthQuota float64 `json:"bandwidthQuota,omitempty"` - - // BandwidthUsage: The bandwidth usage in GB for all organizations owned by the enterprise. - BandwidthUsage float64 `json:"bandwidthUsage,omitempty"` - - // BandwidthUsagePercentage: The bandwidth usage as a percentage of the bandwidth quota. - BandwidthUsagePercentage int `json:"bandwidthUsagePercentage,omitempty"` - - // StorageQuota: The storage quota in GB for all organizations owned by the enterprise. - StorageQuota float64 `json:"storageQuota,omitempty"` - - // StorageUsage: The storage usage in GB for all organizations owned by the enterprise. - StorageUsage float64 `json:"storageUsage,omitempty"` - - // StorageUsagePercentage: The storage usage as a percentage of the storage quota. - StorageUsagePercentage int `json:"storageUsagePercentage,omitempty"` - - // TotalAvailableLicenses: The number of available licenses across all owned organizations based on the unique number of billable users. - TotalAvailableLicenses int `json:"totalAvailableLicenses,omitempty"` - - // TotalLicenses: The total number of licenses allocated. - TotalLicenses int `json:"totalLicenses,omitempty"` -} - -func (x *EnterpriseBillingInfo) GetAllLicensableUsersCount() int { return x.AllLicensableUsersCount } -func (x *EnterpriseBillingInfo) GetAssetPacks() int { return x.AssetPacks } -func (x *EnterpriseBillingInfo) GetBandwidthQuota() float64 { return x.BandwidthQuota } -func (x *EnterpriseBillingInfo) GetBandwidthUsage() float64 { return x.BandwidthUsage } -func (x *EnterpriseBillingInfo) GetBandwidthUsagePercentage() int { return x.BandwidthUsagePercentage } -func (x *EnterpriseBillingInfo) GetStorageQuota() float64 { return x.StorageQuota } -func (x *EnterpriseBillingInfo) GetStorageUsage() float64 { return x.StorageUsage } -func (x *EnterpriseBillingInfo) GetStorageUsagePercentage() int { return x.StorageUsagePercentage } -func (x *EnterpriseBillingInfo) GetTotalAvailableLicenses() int { return x.TotalAvailableLicenses } -func (x *EnterpriseBillingInfo) GetTotalLicenses() int { return x.TotalLicenses } - -// EnterpriseDefaultRepositoryPermissionSettingValue (ENUM): The possible values for the enterprise base repository permission setting. -type EnterpriseDefaultRepositoryPermissionSettingValue string - -// EnterpriseDefaultRepositoryPermissionSettingValue_NO_POLICY: Organizations in the enterprise choose base repository permissions for their members. -const EnterpriseDefaultRepositoryPermissionSettingValue_NO_POLICY EnterpriseDefaultRepositoryPermissionSettingValue = "NO_POLICY" - -// EnterpriseDefaultRepositoryPermissionSettingValue_ADMIN: Organization members will be able to clone, pull, push, and add new collaborators to all organization repositories. -const EnterpriseDefaultRepositoryPermissionSettingValue_ADMIN EnterpriseDefaultRepositoryPermissionSettingValue = "ADMIN" - -// EnterpriseDefaultRepositoryPermissionSettingValue_WRITE: Organization members will be able to clone, pull, and push all organization repositories. -const EnterpriseDefaultRepositoryPermissionSettingValue_WRITE EnterpriseDefaultRepositoryPermissionSettingValue = "WRITE" - -// EnterpriseDefaultRepositoryPermissionSettingValue_READ: Organization members will be able to clone and pull all organization repositories. -const EnterpriseDefaultRepositoryPermissionSettingValue_READ EnterpriseDefaultRepositoryPermissionSettingValue = "READ" - -// EnterpriseDefaultRepositoryPermissionSettingValue_NONE: Organization members will only be able to clone and pull public repositories. -const EnterpriseDefaultRepositoryPermissionSettingValue_NONE EnterpriseDefaultRepositoryPermissionSettingValue = "NONE" - -// EnterpriseEnabledDisabledSettingValue (ENUM): The possible values for an enabled/disabled enterprise setting. -type EnterpriseEnabledDisabledSettingValue string - -// EnterpriseEnabledDisabledSettingValue_ENABLED: The setting is enabled for organizations in the enterprise. -const EnterpriseEnabledDisabledSettingValue_ENABLED EnterpriseEnabledDisabledSettingValue = "ENABLED" - -// EnterpriseEnabledDisabledSettingValue_DISABLED: The setting is disabled for organizations in the enterprise. -const EnterpriseEnabledDisabledSettingValue_DISABLED EnterpriseEnabledDisabledSettingValue = "DISABLED" - -// EnterpriseEnabledDisabledSettingValue_NO_POLICY: There is no policy set for organizations in the enterprise. -const EnterpriseEnabledDisabledSettingValue_NO_POLICY EnterpriseEnabledDisabledSettingValue = "NO_POLICY" - -// EnterpriseEnabledSettingValue (ENUM): The possible values for an enabled/no policy enterprise setting. -type EnterpriseEnabledSettingValue string - -// EnterpriseEnabledSettingValue_ENABLED: The setting is enabled for organizations in the enterprise. -const EnterpriseEnabledSettingValue_ENABLED EnterpriseEnabledSettingValue = "ENABLED" - -// EnterpriseEnabledSettingValue_NO_POLICY: There is no policy set for organizations in the enterprise. -const EnterpriseEnabledSettingValue_NO_POLICY EnterpriseEnabledSettingValue = "NO_POLICY" - -// EnterpriseIdentityProvider (OBJECT): An identity provider configured to provision identities for an enterprise. -type EnterpriseIdentityProvider struct { - // DigestMethod: The digest algorithm used to sign SAML requests for the identity provider. - DigestMethod SamlDigestAlgorithm `json:"digestMethod,omitempty"` - - // Enterprise: The enterprise this identity provider belongs to. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // ExternalIdentities: ExternalIdentities provisioned by this identity provider. - // - // Query arguments: - // - membersOnly Boolean - // - login String - // - userName String - // - after String - // - before String - // - first Int - // - last Int - ExternalIdentities *ExternalIdentityConnection `json:"externalIdentities,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IdpCertificate: The x509 certificate used by the identity provider to sign assertions and responses. - IdpCertificate X509Certificate `json:"idpCertificate,omitempty"` - - // Issuer: The Issuer Entity ID for the SAML identity provider. - Issuer string `json:"issuer,omitempty"` - - // RecoveryCodes: Recovery codes that can be used by admins to access the enterprise if the identity provider is unavailable. - RecoveryCodes []string `json:"recoveryCodes,omitempty"` - - // SignatureMethod: The signature algorithm used to sign SAML requests for the identity provider. - SignatureMethod SamlSignatureAlgorithm `json:"signatureMethod,omitempty"` - - // SsoUrl: The URL endpoint for the identity provider's SAML SSO. - SsoUrl URI `json:"ssoUrl,omitempty"` -} - -func (x *EnterpriseIdentityProvider) GetDigestMethod() SamlDigestAlgorithm { return x.DigestMethod } -func (x *EnterpriseIdentityProvider) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *EnterpriseIdentityProvider) GetExternalIdentities() *ExternalIdentityConnection { - return x.ExternalIdentities -} -func (x *EnterpriseIdentityProvider) GetId() ID { return x.Id } -func (x *EnterpriseIdentityProvider) GetIdpCertificate() X509Certificate { return x.IdpCertificate } -func (x *EnterpriseIdentityProvider) GetIssuer() string { return x.Issuer } -func (x *EnterpriseIdentityProvider) GetRecoveryCodes() []string { return x.RecoveryCodes } -func (x *EnterpriseIdentityProvider) GetSignatureMethod() SamlSignatureAlgorithm { - return x.SignatureMethod -} -func (x *EnterpriseIdentityProvider) GetSsoUrl() URI { return x.SsoUrl } - -// EnterpriseMember (UNION): An object that is a member of an enterprise. -// EnterpriseMember_Interface: An object that is a member of an enterprise. -// -// Possible types: -// -// - *EnterpriseUserAccount -// - *User -type EnterpriseMember_Interface interface { - isEnterpriseMember() -} - -func (*EnterpriseUserAccount) isEnterpriseMember() {} -func (*User) isEnterpriseMember() {} - -type EnterpriseMember struct { - Interface EnterpriseMember_Interface -} - -func (x *EnterpriseMember) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *EnterpriseMember) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for EnterpriseMember", info.Typename) - case "EnterpriseUserAccount": - x.Interface = new(EnterpriseUserAccount) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// EnterpriseMemberConnection (OBJECT): The connection type for EnterpriseMember. -type EnterpriseMemberConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseMemberEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []EnterpriseMember `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseMemberConnection) GetEdges() []*EnterpriseMemberEdge { return x.Edges } -func (x *EnterpriseMemberConnection) GetNodes() []EnterpriseMember { return x.Nodes } -func (x *EnterpriseMemberConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseMemberConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseMemberEdge (OBJECT): A User who is a member of an enterprise through one or more organizations. -type EnterpriseMemberEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node EnterpriseMember `json:"node,omitempty"` -} - -func (x *EnterpriseMemberEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseMemberEdge) GetNode() EnterpriseMember { return x.Node } - -// EnterpriseMemberOrder (INPUT_OBJECT): Ordering options for enterprise member connections. -type EnterpriseMemberOrder struct { - // Field: The field to order enterprise members by. - // - // GraphQL type: EnterpriseMemberOrderField! - Field EnterpriseMemberOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// EnterpriseMemberOrderField (ENUM): Properties by which enterprise member connections can be ordered. -type EnterpriseMemberOrderField string - -// EnterpriseMemberOrderField_LOGIN: Order enterprise members by login. -const EnterpriseMemberOrderField_LOGIN EnterpriseMemberOrderField = "LOGIN" - -// EnterpriseMemberOrderField_CREATED_AT: Order enterprise members by creation time. -const EnterpriseMemberOrderField_CREATED_AT EnterpriseMemberOrderField = "CREATED_AT" - -// EnterpriseMembersCanCreateRepositoriesSettingValue (ENUM): The possible values for the enterprise members can create repositories setting. -type EnterpriseMembersCanCreateRepositoriesSettingValue string - -// EnterpriseMembersCanCreateRepositoriesSettingValue_NO_POLICY: Organization administrators choose whether to allow members to create repositories. -const EnterpriseMembersCanCreateRepositoriesSettingValue_NO_POLICY EnterpriseMembersCanCreateRepositoriesSettingValue = "NO_POLICY" - -// EnterpriseMembersCanCreateRepositoriesSettingValue_ALL: Members will be able to create public and private repositories. -const EnterpriseMembersCanCreateRepositoriesSettingValue_ALL EnterpriseMembersCanCreateRepositoriesSettingValue = "ALL" - -// EnterpriseMembersCanCreateRepositoriesSettingValue_PUBLIC: Members will be able to create only public repositories. -const EnterpriseMembersCanCreateRepositoriesSettingValue_PUBLIC EnterpriseMembersCanCreateRepositoriesSettingValue = "PUBLIC" - -// EnterpriseMembersCanCreateRepositoriesSettingValue_PRIVATE: Members will be able to create only private repositories. -const EnterpriseMembersCanCreateRepositoriesSettingValue_PRIVATE EnterpriseMembersCanCreateRepositoriesSettingValue = "PRIVATE" - -// EnterpriseMembersCanCreateRepositoriesSettingValue_DISABLED: Members will not be able to create public or private repositories. -const EnterpriseMembersCanCreateRepositoriesSettingValue_DISABLED EnterpriseMembersCanCreateRepositoriesSettingValue = "DISABLED" - -// EnterpriseMembersCanMakePurchasesSettingValue (ENUM): The possible values for the members can make purchases setting. -type EnterpriseMembersCanMakePurchasesSettingValue string - -// EnterpriseMembersCanMakePurchasesSettingValue_ENABLED: The setting is enabled for organizations in the enterprise. -const EnterpriseMembersCanMakePurchasesSettingValue_ENABLED EnterpriseMembersCanMakePurchasesSettingValue = "ENABLED" - -// EnterpriseMembersCanMakePurchasesSettingValue_DISABLED: The setting is disabled for organizations in the enterprise. -const EnterpriseMembersCanMakePurchasesSettingValue_DISABLED EnterpriseMembersCanMakePurchasesSettingValue = "DISABLED" - -// EnterpriseOrganizationMembershipConnection (OBJECT): The connection type for Organization. -type EnterpriseOrganizationMembershipConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseOrganizationMembershipEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Organization `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseOrganizationMembershipConnection) GetEdges() []*EnterpriseOrganizationMembershipEdge { - return x.Edges -} -func (x *EnterpriseOrganizationMembershipConnection) GetNodes() []*Organization { return x.Nodes } -func (x *EnterpriseOrganizationMembershipConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseOrganizationMembershipConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseOrganizationMembershipEdge (OBJECT): An enterprise organization that a user is a member of. -type EnterpriseOrganizationMembershipEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Organization `json:"node,omitempty"` - - // Role: The role of the user in the enterprise membership. - Role EnterpriseUserAccountMembershipRole `json:"role,omitempty"` -} - -func (x *EnterpriseOrganizationMembershipEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseOrganizationMembershipEdge) GetNode() *Organization { return x.Node } -func (x *EnterpriseOrganizationMembershipEdge) GetRole() EnterpriseUserAccountMembershipRole { - return x.Role -} - -// EnterpriseOutsideCollaboratorConnection (OBJECT): The connection type for User. -type EnterpriseOutsideCollaboratorConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseOutsideCollaboratorEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseOutsideCollaboratorConnection) GetEdges() []*EnterpriseOutsideCollaboratorEdge { - return x.Edges -} -func (x *EnterpriseOutsideCollaboratorConnection) GetNodes() []*User { return x.Nodes } -func (x *EnterpriseOutsideCollaboratorConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseOutsideCollaboratorConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseOutsideCollaboratorEdge (OBJECT): A User who is an outside collaborator of an enterprise through one or more organizations. -type EnterpriseOutsideCollaboratorEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *User `json:"node,omitempty"` - - // Repositories: The enterprise organization repositories this user is a member of. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy RepositoryOrder - Repositories *EnterpriseRepositoryInfoConnection `json:"repositories,omitempty"` -} - -func (x *EnterpriseOutsideCollaboratorEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseOutsideCollaboratorEdge) GetNode() *User { return x.Node } -func (x *EnterpriseOutsideCollaboratorEdge) GetRepositories() *EnterpriseRepositoryInfoConnection { - return x.Repositories -} - -// EnterpriseOwnerInfo (OBJECT): Enterprise information only visible to enterprise owners. -type EnterpriseOwnerInfo struct { - // Admins: A list of all of the administrators for this enterprise. - // - // Query arguments: - // - organizationLogins [String!] - // - query String - // - role EnterpriseAdministratorRole - // - orderBy EnterpriseMemberOrder - // - after String - // - before String - // - first Int - // - last Int - Admins *EnterpriseAdministratorConnection `json:"admins,omitempty"` - - // AffiliatedUsersWithTwoFactorDisabled: A list of users in the enterprise who currently have two-factor authentication disabled. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - AffiliatedUsersWithTwoFactorDisabled *UserConnection `json:"affiliatedUsersWithTwoFactorDisabled,omitempty"` - - // AffiliatedUsersWithTwoFactorDisabledExist: Whether or not affiliated users with two-factor authentication disabled exist in the enterprise. - AffiliatedUsersWithTwoFactorDisabledExist bool `json:"affiliatedUsersWithTwoFactorDisabledExist,omitempty"` - - // AllowPrivateRepositoryForkingSetting: The setting value for whether private repository forking is enabled for repositories in organizations in this enterprise. - AllowPrivateRepositoryForkingSetting EnterpriseEnabledDisabledSettingValue `json:"allowPrivateRepositoryForkingSetting,omitempty"` - - // AllowPrivateRepositoryForkingSettingOrganizations: A list of enterprise organizations configured with the provided private repository forking setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - AllowPrivateRepositoryForkingSettingOrganizations *OrganizationConnection `json:"allowPrivateRepositoryForkingSettingOrganizations,omitempty"` - - // DefaultRepositoryPermissionSetting: The setting value for base repository permissions for organizations in this enterprise. - DefaultRepositoryPermissionSetting EnterpriseDefaultRepositoryPermissionSettingValue `json:"defaultRepositoryPermissionSetting,omitempty"` - - // DefaultRepositoryPermissionSettingOrganizations: A list of enterprise organizations configured with the provided base repository permission. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value DefaultRepositoryPermissionField! - // - orderBy OrganizationOrder - DefaultRepositoryPermissionSettingOrganizations *OrganizationConnection `json:"defaultRepositoryPermissionSettingOrganizations,omitempty"` - - // Domains: A list of domains owned by the enterprise. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - isVerified Boolean - // - isApproved Boolean - // - orderBy VerifiableDomainOrder - Domains *VerifiableDomainConnection `json:"domains,omitempty"` - - // EnterpriseServerInstallations: Enterprise Server installations owned by the enterprise. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - connectedOnly Boolean - // - orderBy EnterpriseServerInstallationOrder - EnterpriseServerInstallations *EnterpriseServerInstallationConnection `json:"enterpriseServerInstallations,omitempty"` - - // IpAllowListEnabledSetting: The setting value for whether the enterprise has an IP allow list enabled. - IpAllowListEnabledSetting IpAllowListEnabledSettingValue `json:"ipAllowListEnabledSetting,omitempty"` - - // IpAllowListEntries: The IP addresses that are allowed to access resources owned by the enterprise. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy IpAllowListEntryOrder - IpAllowListEntries *IpAllowListEntryConnection `json:"ipAllowListEntries,omitempty"` - - // IpAllowListForInstalledAppsEnabledSetting: The setting value for whether the enterprise has IP allow list configuration for installed GitHub Apps enabled. - IpAllowListForInstalledAppsEnabledSetting IpAllowListForInstalledAppsEnabledSettingValue `json:"ipAllowListForInstalledAppsEnabledSetting,omitempty"` - - // IsUpdatingDefaultRepositoryPermission: Whether or not the base repository permission is currently being updated. - IsUpdatingDefaultRepositoryPermission bool `json:"isUpdatingDefaultRepositoryPermission,omitempty"` - - // IsUpdatingTwoFactorRequirement: Whether the two-factor authentication requirement is currently being enforced. - IsUpdatingTwoFactorRequirement bool `json:"isUpdatingTwoFactorRequirement,omitempty"` - - // MembersCanChangeRepositoryVisibilitySetting: The setting value for whether organization members with admin permissions on a repository can change repository visibility. - MembersCanChangeRepositoryVisibilitySetting EnterpriseEnabledDisabledSettingValue `json:"membersCanChangeRepositoryVisibilitySetting,omitempty"` - - // MembersCanChangeRepositoryVisibilitySettingOrganizations: A list of enterprise organizations configured with the provided can change repository visibility setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - MembersCanChangeRepositoryVisibilitySettingOrganizations *OrganizationConnection `json:"membersCanChangeRepositoryVisibilitySettingOrganizations,omitempty"` - - // MembersCanCreateInternalRepositoriesSetting: The setting value for whether members of organizations in the enterprise can create internal repositories. - MembersCanCreateInternalRepositoriesSetting bool `json:"membersCanCreateInternalRepositoriesSetting,omitempty"` - - // MembersCanCreatePrivateRepositoriesSetting: The setting value for whether members of organizations in the enterprise can create private repositories. - MembersCanCreatePrivateRepositoriesSetting bool `json:"membersCanCreatePrivateRepositoriesSetting,omitempty"` - - // MembersCanCreatePublicRepositoriesSetting: The setting value for whether members of organizations in the enterprise can create public repositories. - MembersCanCreatePublicRepositoriesSetting bool `json:"membersCanCreatePublicRepositoriesSetting,omitempty"` - - // MembersCanCreateRepositoriesSetting: The setting value for whether members of organizations in the enterprise can create repositories. - MembersCanCreateRepositoriesSetting EnterpriseMembersCanCreateRepositoriesSettingValue `json:"membersCanCreateRepositoriesSetting,omitempty"` - - // MembersCanCreateRepositoriesSettingOrganizations: A list of enterprise organizations configured with the provided repository creation setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value OrganizationMembersCanCreateRepositoriesSettingValue! - // - orderBy OrganizationOrder - MembersCanCreateRepositoriesSettingOrganizations *OrganizationConnection `json:"membersCanCreateRepositoriesSettingOrganizations,omitempty"` - - // MembersCanDeleteIssuesSetting: The setting value for whether members with admin permissions for repositories can delete issues. - MembersCanDeleteIssuesSetting EnterpriseEnabledDisabledSettingValue `json:"membersCanDeleteIssuesSetting,omitempty"` - - // MembersCanDeleteIssuesSettingOrganizations: A list of enterprise organizations configured with the provided members can delete issues setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - MembersCanDeleteIssuesSettingOrganizations *OrganizationConnection `json:"membersCanDeleteIssuesSettingOrganizations,omitempty"` - - // MembersCanDeleteRepositoriesSetting: The setting value for whether members with admin permissions for repositories can delete or transfer repositories. - MembersCanDeleteRepositoriesSetting EnterpriseEnabledDisabledSettingValue `json:"membersCanDeleteRepositoriesSetting,omitempty"` - - // MembersCanDeleteRepositoriesSettingOrganizations: A list of enterprise organizations configured with the provided members can delete repositories setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - MembersCanDeleteRepositoriesSettingOrganizations *OrganizationConnection `json:"membersCanDeleteRepositoriesSettingOrganizations,omitempty"` - - // MembersCanInviteCollaboratorsSetting: The setting value for whether members of organizations in the enterprise can invite outside collaborators. - MembersCanInviteCollaboratorsSetting EnterpriseEnabledDisabledSettingValue `json:"membersCanInviteCollaboratorsSetting,omitempty"` - - // MembersCanInviteCollaboratorsSettingOrganizations: A list of enterprise organizations configured with the provided members can invite collaborators setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - MembersCanInviteCollaboratorsSettingOrganizations *OrganizationConnection `json:"membersCanInviteCollaboratorsSettingOrganizations,omitempty"` - - // MembersCanMakePurchasesSetting: Indicates whether members of this enterprise's organizations can purchase additional services for those organizations. - MembersCanMakePurchasesSetting EnterpriseMembersCanMakePurchasesSettingValue `json:"membersCanMakePurchasesSetting,omitempty"` - - // MembersCanUpdateProtectedBranchesSetting: The setting value for whether members with admin permissions for repositories can update protected branches. - MembersCanUpdateProtectedBranchesSetting EnterpriseEnabledDisabledSettingValue `json:"membersCanUpdateProtectedBranchesSetting,omitempty"` - - // MembersCanUpdateProtectedBranchesSettingOrganizations: A list of enterprise organizations configured with the provided members can update protected branches setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - MembersCanUpdateProtectedBranchesSettingOrganizations *OrganizationConnection `json:"membersCanUpdateProtectedBranchesSettingOrganizations,omitempty"` - - // MembersCanViewDependencyInsightsSetting: The setting value for whether members can view dependency insights. - MembersCanViewDependencyInsightsSetting EnterpriseEnabledDisabledSettingValue `json:"membersCanViewDependencyInsightsSetting,omitempty"` - - // MembersCanViewDependencyInsightsSettingOrganizations: A list of enterprise organizations configured with the provided members can view dependency insights setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - MembersCanViewDependencyInsightsSettingOrganizations *OrganizationConnection `json:"membersCanViewDependencyInsightsSettingOrganizations,omitempty"` - - // NotificationDeliveryRestrictionEnabledSetting: Indicates if email notification delivery for this enterprise is restricted to verified or approved domains. - NotificationDeliveryRestrictionEnabledSetting NotificationRestrictionSettingValue `json:"notificationDeliveryRestrictionEnabledSetting,omitempty"` - - // OidcProvider: The OIDC Identity Provider for the enterprise. - OidcProvider *OIDCProvider `json:"oidcProvider,omitempty"` - - // OrganizationProjectsSetting: The setting value for whether organization projects are enabled for organizations in this enterprise. - OrganizationProjectsSetting EnterpriseEnabledDisabledSettingValue `json:"organizationProjectsSetting,omitempty"` - - // OrganizationProjectsSettingOrganizations: A list of enterprise organizations configured with the provided organization projects setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - OrganizationProjectsSettingOrganizations *OrganizationConnection `json:"organizationProjectsSettingOrganizations,omitempty"` - - // OutsideCollaborators: A list of outside collaborators across the repositories in the enterprise. - // - // Query arguments: - // - login String - // - query String - // - orderBy EnterpriseMemberOrder - // - visibility RepositoryVisibility - // - hasTwoFactorEnabled Boolean - // - organizationLogins [String!] - // - after String - // - before String - // - first Int - // - last Int - OutsideCollaborators *EnterpriseOutsideCollaboratorConnection `json:"outsideCollaborators,omitempty"` - - // PendingAdminInvitations: A list of pending administrator invitations for the enterprise. - // - // Query arguments: - // - query String - // - orderBy EnterpriseAdministratorInvitationOrder - // - role EnterpriseAdministratorRole - // - after String - // - before String - // - first Int - // - last Int - PendingAdminInvitations *EnterpriseAdministratorInvitationConnection `json:"pendingAdminInvitations,omitempty"` - - // PendingCollaboratorInvitations: A list of pending collaborator invitations across the repositories in the enterprise. - // - // Query arguments: - // - query String - // - orderBy RepositoryInvitationOrder - // - after String - // - before String - // - first Int - // - last Int - PendingCollaboratorInvitations *RepositoryInvitationConnection `json:"pendingCollaboratorInvitations,omitempty"` - - // PendingMemberInvitations: A list of pending member invitations for organizations in the enterprise. - // - // Query arguments: - // - query String - // - organizationLogins [String!] - // - after String - // - before String - // - first Int - // - last Int - PendingMemberInvitations *EnterprisePendingMemberInvitationConnection `json:"pendingMemberInvitations,omitempty"` - - // RepositoryProjectsSetting: The setting value for whether repository projects are enabled in this enterprise. - RepositoryProjectsSetting EnterpriseEnabledDisabledSettingValue `json:"repositoryProjectsSetting,omitempty"` - - // RepositoryProjectsSettingOrganizations: A list of enterprise organizations configured with the provided repository projects setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - RepositoryProjectsSettingOrganizations *OrganizationConnection `json:"repositoryProjectsSettingOrganizations,omitempty"` - - // SamlIdentityProvider: The SAML Identity Provider for the enterprise. When used by a GitHub App, requires an installation token with read and write access to members. - SamlIdentityProvider *EnterpriseIdentityProvider `json:"samlIdentityProvider,omitempty"` - - // SamlIdentityProviderSettingOrganizations: A list of enterprise organizations configured with the SAML single sign-on setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value IdentityProviderConfigurationState! - // - orderBy OrganizationOrder - SamlIdentityProviderSettingOrganizations *OrganizationConnection `json:"samlIdentityProviderSettingOrganizations,omitempty"` - - // SupportEntitlements: A list of members with a support entitlement. - // - // Query arguments: - // - orderBy EnterpriseMemberOrder - // - after String - // - before String - // - first Int - // - last Int - SupportEntitlements *EnterpriseMemberConnection `json:"supportEntitlements,omitempty"` - - // TeamDiscussionsSetting: The setting value for whether team discussions are enabled for organizations in this enterprise. - TeamDiscussionsSetting EnterpriseEnabledDisabledSettingValue `json:"teamDiscussionsSetting,omitempty"` - - // TeamDiscussionsSettingOrganizations: A list of enterprise organizations configured with the provided team discussions setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - TeamDiscussionsSettingOrganizations *OrganizationConnection `json:"teamDiscussionsSettingOrganizations,omitempty"` - - // TwoFactorRequiredSetting: The setting value for whether the enterprise requires two-factor authentication for its organizations and users. - TwoFactorRequiredSetting EnterpriseEnabledSettingValue `json:"twoFactorRequiredSetting,omitempty"` - - // TwoFactorRequiredSettingOrganizations: A list of enterprise organizations configured with the two-factor authentication setting value. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - value Boolean! - // - orderBy OrganizationOrder - TwoFactorRequiredSettingOrganizations *OrganizationConnection `json:"twoFactorRequiredSettingOrganizations,omitempty"` -} - -func (x *EnterpriseOwnerInfo) GetAdmins() *EnterpriseAdministratorConnection { return x.Admins } -func (x *EnterpriseOwnerInfo) GetAffiliatedUsersWithTwoFactorDisabled() *UserConnection { - return x.AffiliatedUsersWithTwoFactorDisabled -} -func (x *EnterpriseOwnerInfo) GetAffiliatedUsersWithTwoFactorDisabledExist() bool { - return x.AffiliatedUsersWithTwoFactorDisabledExist -} -func (x *EnterpriseOwnerInfo) GetAllowPrivateRepositoryForkingSetting() EnterpriseEnabledDisabledSettingValue { - return x.AllowPrivateRepositoryForkingSetting -} -func (x *EnterpriseOwnerInfo) GetAllowPrivateRepositoryForkingSettingOrganizations() *OrganizationConnection { - return x.AllowPrivateRepositoryForkingSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetDefaultRepositoryPermissionSetting() EnterpriseDefaultRepositoryPermissionSettingValue { - return x.DefaultRepositoryPermissionSetting -} -func (x *EnterpriseOwnerInfo) GetDefaultRepositoryPermissionSettingOrganizations() *OrganizationConnection { - return x.DefaultRepositoryPermissionSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetDomains() *VerifiableDomainConnection { return x.Domains } -func (x *EnterpriseOwnerInfo) GetEnterpriseServerInstallations() *EnterpriseServerInstallationConnection { - return x.EnterpriseServerInstallations -} -func (x *EnterpriseOwnerInfo) GetIpAllowListEnabledSetting() IpAllowListEnabledSettingValue { - return x.IpAllowListEnabledSetting -} -func (x *EnterpriseOwnerInfo) GetIpAllowListEntries() *IpAllowListEntryConnection { - return x.IpAllowListEntries -} -func (x *EnterpriseOwnerInfo) GetIpAllowListForInstalledAppsEnabledSetting() IpAllowListForInstalledAppsEnabledSettingValue { - return x.IpAllowListForInstalledAppsEnabledSetting -} -func (x *EnterpriseOwnerInfo) GetIsUpdatingDefaultRepositoryPermission() bool { - return x.IsUpdatingDefaultRepositoryPermission -} -func (x *EnterpriseOwnerInfo) GetIsUpdatingTwoFactorRequirement() bool { - return x.IsUpdatingTwoFactorRequirement -} -func (x *EnterpriseOwnerInfo) GetMembersCanChangeRepositoryVisibilitySetting() EnterpriseEnabledDisabledSettingValue { - return x.MembersCanChangeRepositoryVisibilitySetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanChangeRepositoryVisibilitySettingOrganizations() *OrganizationConnection { - return x.MembersCanChangeRepositoryVisibilitySettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetMembersCanCreateInternalRepositoriesSetting() bool { - return x.MembersCanCreateInternalRepositoriesSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanCreatePrivateRepositoriesSetting() bool { - return x.MembersCanCreatePrivateRepositoriesSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanCreatePublicRepositoriesSetting() bool { - return x.MembersCanCreatePublicRepositoriesSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanCreateRepositoriesSetting() EnterpriseMembersCanCreateRepositoriesSettingValue { - return x.MembersCanCreateRepositoriesSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanCreateRepositoriesSettingOrganizations() *OrganizationConnection { - return x.MembersCanCreateRepositoriesSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetMembersCanDeleteIssuesSetting() EnterpriseEnabledDisabledSettingValue { - return x.MembersCanDeleteIssuesSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanDeleteIssuesSettingOrganizations() *OrganizationConnection { - return x.MembersCanDeleteIssuesSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetMembersCanDeleteRepositoriesSetting() EnterpriseEnabledDisabledSettingValue { - return x.MembersCanDeleteRepositoriesSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanDeleteRepositoriesSettingOrganizations() *OrganizationConnection { - return x.MembersCanDeleteRepositoriesSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetMembersCanInviteCollaboratorsSetting() EnterpriseEnabledDisabledSettingValue { - return x.MembersCanInviteCollaboratorsSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanInviteCollaboratorsSettingOrganizations() *OrganizationConnection { - return x.MembersCanInviteCollaboratorsSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetMembersCanMakePurchasesSetting() EnterpriseMembersCanMakePurchasesSettingValue { - return x.MembersCanMakePurchasesSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanUpdateProtectedBranchesSetting() EnterpriseEnabledDisabledSettingValue { - return x.MembersCanUpdateProtectedBranchesSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanUpdateProtectedBranchesSettingOrganizations() *OrganizationConnection { - return x.MembersCanUpdateProtectedBranchesSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetMembersCanViewDependencyInsightsSetting() EnterpriseEnabledDisabledSettingValue { - return x.MembersCanViewDependencyInsightsSetting -} -func (x *EnterpriseOwnerInfo) GetMembersCanViewDependencyInsightsSettingOrganizations() *OrganizationConnection { - return x.MembersCanViewDependencyInsightsSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetNotificationDeliveryRestrictionEnabledSetting() NotificationRestrictionSettingValue { - return x.NotificationDeliveryRestrictionEnabledSetting -} -func (x *EnterpriseOwnerInfo) GetOidcProvider() *OIDCProvider { return x.OidcProvider } -func (x *EnterpriseOwnerInfo) GetOrganizationProjectsSetting() EnterpriseEnabledDisabledSettingValue { - return x.OrganizationProjectsSetting -} -func (x *EnterpriseOwnerInfo) GetOrganizationProjectsSettingOrganizations() *OrganizationConnection { - return x.OrganizationProjectsSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetOutsideCollaborators() *EnterpriseOutsideCollaboratorConnection { - return x.OutsideCollaborators -} -func (x *EnterpriseOwnerInfo) GetPendingAdminInvitations() *EnterpriseAdministratorInvitationConnection { - return x.PendingAdminInvitations -} -func (x *EnterpriseOwnerInfo) GetPendingCollaboratorInvitations() *RepositoryInvitationConnection { - return x.PendingCollaboratorInvitations -} -func (x *EnterpriseOwnerInfo) GetPendingMemberInvitations() *EnterprisePendingMemberInvitationConnection { - return x.PendingMemberInvitations -} -func (x *EnterpriseOwnerInfo) GetRepositoryProjectsSetting() EnterpriseEnabledDisabledSettingValue { - return x.RepositoryProjectsSetting -} -func (x *EnterpriseOwnerInfo) GetRepositoryProjectsSettingOrganizations() *OrganizationConnection { - return x.RepositoryProjectsSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetSamlIdentityProvider() *EnterpriseIdentityProvider { - return x.SamlIdentityProvider -} -func (x *EnterpriseOwnerInfo) GetSamlIdentityProviderSettingOrganizations() *OrganizationConnection { - return x.SamlIdentityProviderSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetSupportEntitlements() *EnterpriseMemberConnection { - return x.SupportEntitlements -} -func (x *EnterpriseOwnerInfo) GetTeamDiscussionsSetting() EnterpriseEnabledDisabledSettingValue { - return x.TeamDiscussionsSetting -} -func (x *EnterpriseOwnerInfo) GetTeamDiscussionsSettingOrganizations() *OrganizationConnection { - return x.TeamDiscussionsSettingOrganizations -} -func (x *EnterpriseOwnerInfo) GetTwoFactorRequiredSetting() EnterpriseEnabledSettingValue { - return x.TwoFactorRequiredSetting -} -func (x *EnterpriseOwnerInfo) GetTwoFactorRequiredSettingOrganizations() *OrganizationConnection { - return x.TwoFactorRequiredSettingOrganizations -} - -// EnterprisePendingMemberInvitationConnection (OBJECT): The connection type for OrganizationInvitation. -type EnterprisePendingMemberInvitationConnection struct { - // Edges: A list of edges. - Edges []*EnterprisePendingMemberInvitationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*OrganizationInvitation `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` - - // TotalUniqueUserCount: Identifies the total count of unique users in the connection. - TotalUniqueUserCount int `json:"totalUniqueUserCount,omitempty"` -} - -func (x *EnterprisePendingMemberInvitationConnection) GetEdges() []*EnterprisePendingMemberInvitationEdge { - return x.Edges -} -func (x *EnterprisePendingMemberInvitationConnection) GetNodes() []*OrganizationInvitation { - return x.Nodes -} -func (x *EnterprisePendingMemberInvitationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterprisePendingMemberInvitationConnection) GetTotalCount() int { return x.TotalCount } -func (x *EnterprisePendingMemberInvitationConnection) GetTotalUniqueUserCount() int { - return x.TotalUniqueUserCount -} - -// EnterprisePendingMemberInvitationEdge (OBJECT): An invitation to be a member in an enterprise organization. -type EnterprisePendingMemberInvitationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *OrganizationInvitation `json:"node,omitempty"` -} - -func (x *EnterprisePendingMemberInvitationEdge) GetCursor() string { return x.Cursor } -func (x *EnterprisePendingMemberInvitationEdge) GetNode() *OrganizationInvitation { return x.Node } - -// EnterpriseRepositoryInfo (OBJECT): A subset of repository information queryable from an enterprise. -type EnterpriseRepositoryInfo struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsPrivate: Identifies if the repository is private or internal. - IsPrivate bool `json:"isPrivate,omitempty"` - - // Name: The repository's name. - Name string `json:"name,omitempty"` - - // NameWithOwner: The repository's name with owner. - NameWithOwner string `json:"nameWithOwner,omitempty"` -} - -func (x *EnterpriseRepositoryInfo) GetId() ID { return x.Id } -func (x *EnterpriseRepositoryInfo) GetIsPrivate() bool { return x.IsPrivate } -func (x *EnterpriseRepositoryInfo) GetName() string { return x.Name } -func (x *EnterpriseRepositoryInfo) GetNameWithOwner() string { return x.NameWithOwner } - -// EnterpriseRepositoryInfoConnection (OBJECT): The connection type for EnterpriseRepositoryInfo. -type EnterpriseRepositoryInfoConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseRepositoryInfoEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*EnterpriseRepositoryInfo `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseRepositoryInfoConnection) GetEdges() []*EnterpriseRepositoryInfoEdge { - return x.Edges -} -func (x *EnterpriseRepositoryInfoConnection) GetNodes() []*EnterpriseRepositoryInfo { return x.Nodes } -func (x *EnterpriseRepositoryInfoConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseRepositoryInfoConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseRepositoryInfoEdge (OBJECT): An edge in a connection. -type EnterpriseRepositoryInfoEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *EnterpriseRepositoryInfo `json:"node,omitempty"` -} - -func (x *EnterpriseRepositoryInfoEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseRepositoryInfoEdge) GetNode() *EnterpriseRepositoryInfo { return x.Node } - -// EnterpriseServerInstallation (OBJECT): An Enterprise Server installation. -type EnterpriseServerInstallation struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CustomerName: The customer name to which the Enterprise Server installation belongs. - CustomerName string `json:"customerName,omitempty"` - - // HostName: The host name of the Enterprise Server installation. - HostName string `json:"hostName,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsConnected: Whether or not the installation is connected to an Enterprise Server installation via GitHub Connect. - IsConnected bool `json:"isConnected,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // UserAccounts: User accounts on this Enterprise Server installation. - // - // Query arguments: - // - orderBy EnterpriseServerUserAccountOrder - // - after String - // - before String - // - first Int - // - last Int - UserAccounts *EnterpriseServerUserAccountConnection `json:"userAccounts,omitempty"` - - // UserAccountsUploads: User accounts uploads for the Enterprise Server installation. - // - // Query arguments: - // - orderBy EnterpriseServerUserAccountsUploadOrder - // - after String - // - before String - // - first Int - // - last Int - UserAccountsUploads *EnterpriseServerUserAccountsUploadConnection `json:"userAccountsUploads,omitempty"` -} - -func (x *EnterpriseServerInstallation) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *EnterpriseServerInstallation) GetCustomerName() string { return x.CustomerName } -func (x *EnterpriseServerInstallation) GetHostName() string { return x.HostName } -func (x *EnterpriseServerInstallation) GetId() ID { return x.Id } -func (x *EnterpriseServerInstallation) GetIsConnected() bool { return x.IsConnected } -func (x *EnterpriseServerInstallation) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *EnterpriseServerInstallation) GetUserAccounts() *EnterpriseServerUserAccountConnection { - return x.UserAccounts -} -func (x *EnterpriseServerInstallation) GetUserAccountsUploads() *EnterpriseServerUserAccountsUploadConnection { - return x.UserAccountsUploads -} - -// EnterpriseServerInstallationConnection (OBJECT): The connection type for EnterpriseServerInstallation. -type EnterpriseServerInstallationConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseServerInstallationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*EnterpriseServerInstallation `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseServerInstallationConnection) GetEdges() []*EnterpriseServerInstallationEdge { - return x.Edges -} -func (x *EnterpriseServerInstallationConnection) GetNodes() []*EnterpriseServerInstallation { - return x.Nodes -} -func (x *EnterpriseServerInstallationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseServerInstallationConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseServerInstallationEdge (OBJECT): An edge in a connection. -type EnterpriseServerInstallationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *EnterpriseServerInstallation `json:"node,omitempty"` -} - -func (x *EnterpriseServerInstallationEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseServerInstallationEdge) GetNode() *EnterpriseServerInstallation { return x.Node } - -// EnterpriseServerInstallationOrder (INPUT_OBJECT): Ordering options for Enterprise Server installation connections. -type EnterpriseServerInstallationOrder struct { - // Field: The field to order Enterprise Server installations by. - // - // GraphQL type: EnterpriseServerInstallationOrderField! - Field EnterpriseServerInstallationOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// EnterpriseServerInstallationOrderField (ENUM): Properties by which Enterprise Server installation connections can be ordered. -type EnterpriseServerInstallationOrderField string - -// EnterpriseServerInstallationOrderField_HOST_NAME: Order Enterprise Server installations by host name. -const EnterpriseServerInstallationOrderField_HOST_NAME EnterpriseServerInstallationOrderField = "HOST_NAME" - -// EnterpriseServerInstallationOrderField_CUSTOMER_NAME: Order Enterprise Server installations by customer name. -const EnterpriseServerInstallationOrderField_CUSTOMER_NAME EnterpriseServerInstallationOrderField = "CUSTOMER_NAME" - -// EnterpriseServerInstallationOrderField_CREATED_AT: Order Enterprise Server installations by creation time. -const EnterpriseServerInstallationOrderField_CREATED_AT EnterpriseServerInstallationOrderField = "CREATED_AT" - -// EnterpriseServerUserAccount (OBJECT): A user account on an Enterprise Server installation. -type EnterpriseServerUserAccount struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Emails: User emails belonging to this user account. - // - // Query arguments: - // - orderBy EnterpriseServerUserAccountEmailOrder - // - after String - // - before String - // - first Int - // - last Int - Emails *EnterpriseServerUserAccountEmailConnection `json:"emails,omitempty"` - - // EnterpriseServerInstallation: The Enterprise Server installation on which this user account exists. - EnterpriseServerInstallation *EnterpriseServerInstallation `json:"enterpriseServerInstallation,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsSiteAdmin: Whether the user account is a site administrator on the Enterprise Server installation. - IsSiteAdmin bool `json:"isSiteAdmin,omitempty"` - - // Login: The login of the user account on the Enterprise Server installation. - Login string `json:"login,omitempty"` - - // ProfileName: The profile name of the user account on the Enterprise Server installation. - ProfileName string `json:"profileName,omitempty"` - - // RemoteCreatedAt: The date and time when the user account was created on the Enterprise Server installation. - RemoteCreatedAt DateTime `json:"remoteCreatedAt,omitempty"` - - // RemoteUserId: The ID of the user account on the Enterprise Server installation. - RemoteUserId int `json:"remoteUserId,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *EnterpriseServerUserAccount) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *EnterpriseServerUserAccount) GetEmails() *EnterpriseServerUserAccountEmailConnection { - return x.Emails -} -func (x *EnterpriseServerUserAccount) GetEnterpriseServerInstallation() *EnterpriseServerInstallation { - return x.EnterpriseServerInstallation -} -func (x *EnterpriseServerUserAccount) GetId() ID { return x.Id } -func (x *EnterpriseServerUserAccount) GetIsSiteAdmin() bool { return x.IsSiteAdmin } -func (x *EnterpriseServerUserAccount) GetLogin() string { return x.Login } -func (x *EnterpriseServerUserAccount) GetProfileName() string { return x.ProfileName } -func (x *EnterpriseServerUserAccount) GetRemoteCreatedAt() DateTime { return x.RemoteCreatedAt } -func (x *EnterpriseServerUserAccount) GetRemoteUserId() int { return x.RemoteUserId } -func (x *EnterpriseServerUserAccount) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// EnterpriseServerUserAccountConnection (OBJECT): The connection type for EnterpriseServerUserAccount. -type EnterpriseServerUserAccountConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseServerUserAccountEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*EnterpriseServerUserAccount `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseServerUserAccountConnection) GetEdges() []*EnterpriseServerUserAccountEdge { - return x.Edges -} -func (x *EnterpriseServerUserAccountConnection) GetNodes() []*EnterpriseServerUserAccount { - return x.Nodes -} -func (x *EnterpriseServerUserAccountConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseServerUserAccountConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseServerUserAccountEdge (OBJECT): An edge in a connection. -type EnterpriseServerUserAccountEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *EnterpriseServerUserAccount `json:"node,omitempty"` -} - -func (x *EnterpriseServerUserAccountEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseServerUserAccountEdge) GetNode() *EnterpriseServerUserAccount { return x.Node } - -// EnterpriseServerUserAccountEmail (OBJECT): An email belonging to a user account on an Enterprise Server installation. -type EnterpriseServerUserAccountEmail struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Email: The email address. - Email string `json:"email,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsPrimary: Indicates whether this is the primary email of the associated user account. - IsPrimary bool `json:"isPrimary,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // UserAccount: The user account to which the email belongs. - UserAccount *EnterpriseServerUserAccount `json:"userAccount,omitempty"` -} - -func (x *EnterpriseServerUserAccountEmail) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *EnterpriseServerUserAccountEmail) GetEmail() string { return x.Email } -func (x *EnterpriseServerUserAccountEmail) GetId() ID { return x.Id } -func (x *EnterpriseServerUserAccountEmail) GetIsPrimary() bool { return x.IsPrimary } -func (x *EnterpriseServerUserAccountEmail) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *EnterpriseServerUserAccountEmail) GetUserAccount() *EnterpriseServerUserAccount { - return x.UserAccount -} - -// EnterpriseServerUserAccountEmailConnection (OBJECT): The connection type for EnterpriseServerUserAccountEmail. -type EnterpriseServerUserAccountEmailConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseServerUserAccountEmailEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*EnterpriseServerUserAccountEmail `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseServerUserAccountEmailConnection) GetEdges() []*EnterpriseServerUserAccountEmailEdge { - return x.Edges -} -func (x *EnterpriseServerUserAccountEmailConnection) GetNodes() []*EnterpriseServerUserAccountEmail { - return x.Nodes -} -func (x *EnterpriseServerUserAccountEmailConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseServerUserAccountEmailConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseServerUserAccountEmailEdge (OBJECT): An edge in a connection. -type EnterpriseServerUserAccountEmailEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *EnterpriseServerUserAccountEmail `json:"node,omitempty"` -} - -func (x *EnterpriseServerUserAccountEmailEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseServerUserAccountEmailEdge) GetNode() *EnterpriseServerUserAccountEmail { - return x.Node -} - -// EnterpriseServerUserAccountEmailOrder (INPUT_OBJECT): Ordering options for Enterprise Server user account email connections. -type EnterpriseServerUserAccountEmailOrder struct { - // Field: The field to order emails by. - // - // GraphQL type: EnterpriseServerUserAccountEmailOrderField! - Field EnterpriseServerUserAccountEmailOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// EnterpriseServerUserAccountEmailOrderField (ENUM): Properties by which Enterprise Server user account email connections can be ordered. -type EnterpriseServerUserAccountEmailOrderField string - -// EnterpriseServerUserAccountEmailOrderField_EMAIL: Order emails by email. -const EnterpriseServerUserAccountEmailOrderField_EMAIL EnterpriseServerUserAccountEmailOrderField = "EMAIL" - -// EnterpriseServerUserAccountOrder (INPUT_OBJECT): Ordering options for Enterprise Server user account connections. -type EnterpriseServerUserAccountOrder struct { - // Field: The field to order user accounts by. - // - // GraphQL type: EnterpriseServerUserAccountOrderField! - Field EnterpriseServerUserAccountOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// EnterpriseServerUserAccountOrderField (ENUM): Properties by which Enterprise Server user account connections can be ordered. -type EnterpriseServerUserAccountOrderField string - -// EnterpriseServerUserAccountOrderField_LOGIN: Order user accounts by login. -const EnterpriseServerUserAccountOrderField_LOGIN EnterpriseServerUserAccountOrderField = "LOGIN" - -// EnterpriseServerUserAccountOrderField_REMOTE_CREATED_AT: Order user accounts by creation time on the Enterprise Server installation. -const EnterpriseServerUserAccountOrderField_REMOTE_CREATED_AT EnterpriseServerUserAccountOrderField = "REMOTE_CREATED_AT" - -// EnterpriseServerUserAccountsUpload (OBJECT): A user accounts upload from an Enterprise Server installation. -type EnterpriseServerUserAccountsUpload struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Enterprise: The enterprise to which this upload belongs. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // EnterpriseServerInstallation: The Enterprise Server installation for which this upload was generated. - EnterpriseServerInstallation *EnterpriseServerInstallation `json:"enterpriseServerInstallation,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The name of the file uploaded. - Name string `json:"name,omitempty"` - - // SyncState: The synchronization state of the upload. - SyncState EnterpriseServerUserAccountsUploadSyncState `json:"syncState,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *EnterpriseServerUserAccountsUpload) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *EnterpriseServerUserAccountsUpload) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *EnterpriseServerUserAccountsUpload) GetEnterpriseServerInstallation() *EnterpriseServerInstallation { - return x.EnterpriseServerInstallation -} -func (x *EnterpriseServerUserAccountsUpload) GetId() ID { return x.Id } -func (x *EnterpriseServerUserAccountsUpload) GetName() string { return x.Name } -func (x *EnterpriseServerUserAccountsUpload) GetSyncState() EnterpriseServerUserAccountsUploadSyncState { - return x.SyncState -} -func (x *EnterpriseServerUserAccountsUpload) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// EnterpriseServerUserAccountsUploadConnection (OBJECT): The connection type for EnterpriseServerUserAccountsUpload. -type EnterpriseServerUserAccountsUploadConnection struct { - // Edges: A list of edges. - Edges []*EnterpriseServerUserAccountsUploadEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*EnterpriseServerUserAccountsUpload `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnterpriseServerUserAccountsUploadConnection) GetEdges() []*EnterpriseServerUserAccountsUploadEdge { - return x.Edges -} -func (x *EnterpriseServerUserAccountsUploadConnection) GetNodes() []*EnterpriseServerUserAccountsUpload { - return x.Nodes -} -func (x *EnterpriseServerUserAccountsUploadConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnterpriseServerUserAccountsUploadConnection) GetTotalCount() int { return x.TotalCount } - -// EnterpriseServerUserAccountsUploadEdge (OBJECT): An edge in a connection. -type EnterpriseServerUserAccountsUploadEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *EnterpriseServerUserAccountsUpload `json:"node,omitempty"` -} - -func (x *EnterpriseServerUserAccountsUploadEdge) GetCursor() string { return x.Cursor } -func (x *EnterpriseServerUserAccountsUploadEdge) GetNode() *EnterpriseServerUserAccountsUpload { - return x.Node -} - -// EnterpriseServerUserAccountsUploadOrder (INPUT_OBJECT): Ordering options for Enterprise Server user accounts upload connections. -type EnterpriseServerUserAccountsUploadOrder struct { - // Field: The field to order user accounts uploads by. - // - // GraphQL type: EnterpriseServerUserAccountsUploadOrderField! - Field EnterpriseServerUserAccountsUploadOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// EnterpriseServerUserAccountsUploadOrderField (ENUM): Properties by which Enterprise Server user accounts upload connections can be ordered. -type EnterpriseServerUserAccountsUploadOrderField string - -// EnterpriseServerUserAccountsUploadOrderField_CREATED_AT: Order user accounts uploads by creation time. -const EnterpriseServerUserAccountsUploadOrderField_CREATED_AT EnterpriseServerUserAccountsUploadOrderField = "CREATED_AT" - -// EnterpriseServerUserAccountsUploadSyncState (ENUM): Synchronization state of the Enterprise Server user accounts upload. -type EnterpriseServerUserAccountsUploadSyncState string - -// EnterpriseServerUserAccountsUploadSyncState_PENDING: The synchronization of the upload is pending. -const EnterpriseServerUserAccountsUploadSyncState_PENDING EnterpriseServerUserAccountsUploadSyncState = "PENDING" - -// EnterpriseServerUserAccountsUploadSyncState_SUCCESS: The synchronization of the upload succeeded. -const EnterpriseServerUserAccountsUploadSyncState_SUCCESS EnterpriseServerUserAccountsUploadSyncState = "SUCCESS" - -// EnterpriseServerUserAccountsUploadSyncState_FAILURE: The synchronization of the upload failed. -const EnterpriseServerUserAccountsUploadSyncState_FAILURE EnterpriseServerUserAccountsUploadSyncState = "FAILURE" - -// EnterpriseUserAccount (OBJECT): An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations. -type EnterpriseUserAccount struct { - // AvatarUrl: A URL pointing to the enterprise user account's public avatar. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Enterprise: The enterprise in which this user account exists. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Login: An identifier for the enterprise user account, a login or email address. - Login string `json:"login,omitempty"` - - // Name: The name of the enterprise user account. - Name string `json:"name,omitempty"` - - // Organizations: A list of enterprise organizations this user is a member of. - // - // Query arguments: - // - query String - // - orderBy OrganizationOrder - // - role EnterpriseUserAccountMembershipRole - // - after String - // - before String - // - first Int - // - last Int - Organizations *EnterpriseOrganizationMembershipConnection `json:"organizations,omitempty"` - - // ResourcePath: The HTTP path for this user. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this user. - Url URI `json:"url,omitempty"` - - // User: The user within the enterprise. - User *User `json:"user,omitempty"` -} - -func (x *EnterpriseUserAccount) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *EnterpriseUserAccount) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *EnterpriseUserAccount) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *EnterpriseUserAccount) GetId() ID { return x.Id } -func (x *EnterpriseUserAccount) GetLogin() string { return x.Login } -func (x *EnterpriseUserAccount) GetName() string { return x.Name } -func (x *EnterpriseUserAccount) GetOrganizations() *EnterpriseOrganizationMembershipConnection { - return x.Organizations -} -func (x *EnterpriseUserAccount) GetResourcePath() URI { return x.ResourcePath } -func (x *EnterpriseUserAccount) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *EnterpriseUserAccount) GetUrl() URI { return x.Url } -func (x *EnterpriseUserAccount) GetUser() *User { return x.User } - -// EnterpriseUserAccountMembershipRole (ENUM): The possible roles for enterprise membership. -type EnterpriseUserAccountMembershipRole string - -// EnterpriseUserAccountMembershipRole_MEMBER: The user is a member of an organization in the enterprise. -const EnterpriseUserAccountMembershipRole_MEMBER EnterpriseUserAccountMembershipRole = "MEMBER" - -// EnterpriseUserAccountMembershipRole_OWNER: The user is an owner of an organization in the enterprise. -const EnterpriseUserAccountMembershipRole_OWNER EnterpriseUserAccountMembershipRole = "OWNER" - -// EnterpriseUserDeployment (ENUM): The possible GitHub Enterprise deployments where this user can exist. -type EnterpriseUserDeployment string - -// EnterpriseUserDeployment_CLOUD: The user is part of a GitHub Enterprise Cloud deployment. -const EnterpriseUserDeployment_CLOUD EnterpriseUserDeployment = "CLOUD" - -// EnterpriseUserDeployment_SERVER: The user is part of a GitHub Enterprise Server deployment. -const EnterpriseUserDeployment_SERVER EnterpriseUserDeployment = "SERVER" - -// Environment (OBJECT): An environment. -type Environment struct { - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The name of the environment. - Name string `json:"name,omitempty"` - - // ProtectionRules: The protection rules defined for this environment. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - ProtectionRules *DeploymentProtectionRuleConnection `json:"protectionRules,omitempty"` -} - -func (x *Environment) GetDatabaseId() int { return x.DatabaseId } -func (x *Environment) GetId() ID { return x.Id } -func (x *Environment) GetName() string { return x.Name } -func (x *Environment) GetProtectionRules() *DeploymentProtectionRuleConnection { - return x.ProtectionRules -} - -// EnvironmentConnection (OBJECT): The connection type for Environment. -type EnvironmentConnection struct { - // Edges: A list of edges. - Edges []*EnvironmentEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Environment `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *EnvironmentConnection) GetEdges() []*EnvironmentEdge { return x.Edges } -func (x *EnvironmentConnection) GetNodes() []*Environment { return x.Nodes } -func (x *EnvironmentConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *EnvironmentConnection) GetTotalCount() int { return x.TotalCount } - -// EnvironmentEdge (OBJECT): An edge in a connection. -type EnvironmentEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Environment `json:"node,omitempty"` -} - -func (x *EnvironmentEdge) GetCursor() string { return x.Cursor } -func (x *EnvironmentEdge) GetNode() *Environment { return x.Node } - -// ExternalIdentity (OBJECT): An external identity provisioned by SAML SSO or SCIM. -type ExternalIdentity struct { - // Guid: The GUID for this identity. - Guid string `json:"guid,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OrganizationInvitation: Organization invitation for this SCIM-provisioned external identity. - OrganizationInvitation *OrganizationInvitation `json:"organizationInvitation,omitempty"` - - // SamlIdentity: SAML Identity attributes. - SamlIdentity *ExternalIdentitySamlAttributes `json:"samlIdentity,omitempty"` - - // ScimIdentity: SCIM Identity attributes. - ScimIdentity *ExternalIdentityScimAttributes `json:"scimIdentity,omitempty"` - - // User: User linked to this external identity. Will be NULL if this identity has not been claimed by an organization member. - User *User `json:"user,omitempty"` -} - -func (x *ExternalIdentity) GetGuid() string { return x.Guid } -func (x *ExternalIdentity) GetId() ID { return x.Id } -func (x *ExternalIdentity) GetOrganizationInvitation() *OrganizationInvitation { - return x.OrganizationInvitation -} -func (x *ExternalIdentity) GetSamlIdentity() *ExternalIdentitySamlAttributes { return x.SamlIdentity } -func (x *ExternalIdentity) GetScimIdentity() *ExternalIdentityScimAttributes { return x.ScimIdentity } -func (x *ExternalIdentity) GetUser() *User { return x.User } - -// ExternalIdentityAttribute (OBJECT): An attribute for the External Identity attributes collection. -type ExternalIdentityAttribute struct { - // Metadata: The attribute metadata as JSON. - Metadata string `json:"metadata,omitempty"` - - // Name: The attribute name. - Name string `json:"name,omitempty"` - - // Value: The attribute value. - Value string `json:"value,omitempty"` -} - -func (x *ExternalIdentityAttribute) GetMetadata() string { return x.Metadata } -func (x *ExternalIdentityAttribute) GetName() string { return x.Name } -func (x *ExternalIdentityAttribute) GetValue() string { return x.Value } - -// ExternalIdentityConnection (OBJECT): The connection type for ExternalIdentity. -type ExternalIdentityConnection struct { - // Edges: A list of edges. - Edges []*ExternalIdentityEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ExternalIdentity `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ExternalIdentityConnection) GetEdges() []*ExternalIdentityEdge { return x.Edges } -func (x *ExternalIdentityConnection) GetNodes() []*ExternalIdentity { return x.Nodes } -func (x *ExternalIdentityConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ExternalIdentityConnection) GetTotalCount() int { return x.TotalCount } - -// ExternalIdentityEdge (OBJECT): An edge in a connection. -type ExternalIdentityEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ExternalIdentity `json:"node,omitempty"` -} - -func (x *ExternalIdentityEdge) GetCursor() string { return x.Cursor } -func (x *ExternalIdentityEdge) GetNode() *ExternalIdentity { return x.Node } - -// ExternalIdentitySamlAttributes (OBJECT): SAML attributes for the External Identity. -type ExternalIdentitySamlAttributes struct { - // Attributes: SAML Identity attributes. - Attributes []*ExternalIdentityAttribute `json:"attributes,omitempty"` - - // Emails: The emails associated with the SAML identity. - Emails []*UserEmailMetadata `json:"emails,omitempty"` - - // FamilyName: Family name of the SAML identity. - FamilyName string `json:"familyName,omitempty"` - - // GivenName: Given name of the SAML identity. - GivenName string `json:"givenName,omitempty"` - - // Groups: The groups linked to this identity in IDP. - Groups []string `json:"groups,omitempty"` - - // NameId: The NameID of the SAML identity. - NameId string `json:"nameId,omitempty"` - - // Username: The userName of the SAML identity. - Username string `json:"username,omitempty"` -} - -func (x *ExternalIdentitySamlAttributes) GetAttributes() []*ExternalIdentityAttribute { - return x.Attributes -} -func (x *ExternalIdentitySamlAttributes) GetEmails() []*UserEmailMetadata { return x.Emails } -func (x *ExternalIdentitySamlAttributes) GetFamilyName() string { return x.FamilyName } -func (x *ExternalIdentitySamlAttributes) GetGivenName() string { return x.GivenName } -func (x *ExternalIdentitySamlAttributes) GetGroups() []string { return x.Groups } -func (x *ExternalIdentitySamlAttributes) GetNameId() string { return x.NameId } -func (x *ExternalIdentitySamlAttributes) GetUsername() string { return x.Username } - -// ExternalIdentityScimAttributes (OBJECT): SCIM attributes for the External Identity. -type ExternalIdentityScimAttributes struct { - // Emails: The emails associated with the SCIM identity. - Emails []*UserEmailMetadata `json:"emails,omitempty"` - - // FamilyName: Family name of the SCIM identity. - FamilyName string `json:"familyName,omitempty"` - - // GivenName: Given name of the SCIM identity. - GivenName string `json:"givenName,omitempty"` - - // Groups: The groups linked to this identity in IDP. - Groups []string `json:"groups,omitempty"` - - // Username: The userName of the SCIM identity. - Username string `json:"username,omitempty"` -} - -func (x *ExternalIdentityScimAttributes) GetEmails() []*UserEmailMetadata { return x.Emails } -func (x *ExternalIdentityScimAttributes) GetFamilyName() string { return x.FamilyName } -func (x *ExternalIdentityScimAttributes) GetGivenName() string { return x.GivenName } -func (x *ExternalIdentityScimAttributes) GetGroups() []string { return x.Groups } -func (x *ExternalIdentityScimAttributes) GetUsername() string { return x.Username } - -// FileAddition (INPUT_OBJECT): A command to add a file at the given path with the given contents as part of a commit. Any existing file at that that path will be replaced. -type FileAddition struct { - // Path: The path in the repository where the file will be located. - // - // GraphQL type: String! - Path string `json:"path,omitempty"` - - // Contents: The base64 encoded contents of the file. - // - // GraphQL type: Base64String! - Contents Base64String `json:"contents,omitempty"` -} - -// FileChanges (INPUT_OBJECT): A description of a set of changes to a file tree to be made as part of -// a git commit, modeled as zero or more file `additions` and zero or more -// file `deletions`. -// -// Both fields are optional; omitting both will produce a commit with no -// file changes. -// -// `deletions` and `additions` describe changes to files identified -// by their path in the git tree using unix-style path separators, i.e. -// `/`. The root of a git tree is an empty string, so paths are not -// slash-prefixed. -// -// `path` values must be unique across all `additions` and `deletions` -// provided. Any duplication will result in a validation error. -// -// ### Encoding -// -// File contents must be provided in full for each `FileAddition`. -// -// The `contents` of a `FileAddition` must be encoded using RFC 4648 -// compliant base64, i.e. correct padding is required and no characters -// outside the standard alphabet may be used. Invalid base64 -// encoding will be rejected with a validation error. -// -// The encoded contents may be binary. -// -// For text files, no assumptions are made about the character encoding of -// the file contents (after base64 decoding). No charset transcoding or -// line-ending normalization will be performed; it is the client's -// responsibility to manage the character encoding of files they provide. -// However, for maximum compatibility we recommend using UTF-8 encoding -// and ensuring that all files in a repository use a consistent -// line-ending convention (`\n` or `\r\n`), and that all files end -// with a newline. -// -// ### Modeling file changes -// -// Each of the the five types of conceptual changes that can be made in a -// git commit can be described using the `FileChanges` type as follows: -// -// 1. New file addition: create file `hello world\n` at path `docs/README.txt`: -// -// { -// "additions" [ -// { -// "path": "docs/README.txt", -// "contents": base64encode("hello world\n") -// } -// ] -// } -// -// 2. Existing file modification: change existing `docs/README.txt` to have new -// content `new content here\n`: -// -// { -// "additions" [ -// { -// "path": "docs/README.txt", -// "contents": base64encode("new content here\n") -// } -// ] -// } -// -// 3. Existing file deletion: remove existing file `docs/README.txt`. -// Note that the path is required to exist -- specifying a -// path that does not exist on the given branch will abort the -// commit and return an error. -// -// { -// "deletions" [ -// { -// "path": "docs/README.txt" -// } -// ] -// } -// -// 4. File rename with no changes: rename `docs/README.txt` with -// previous content `hello world\n` to the same content at -// `newdocs/README.txt`: -// -// { -// "deletions" [ -// { -// "path": "docs/README.txt", -// } -// ], -// "additions" [ -// { -// "path": "newdocs/README.txt", -// "contents": base64encode("hello world\n") -// } -// ] -// } -// -// 5. File rename with changes: rename `docs/README.txt` with -// previous content `hello world\n` to a file at path -// `newdocs/README.txt` with content `new contents\n`: -// -// { -// "deletions" [ -// { -// "path": "docs/README.txt", -// } -// ], -// "additions" [ -// { -// "path": "newdocs/README.txt", -// "contents": base64encode("new contents\n") -// } -// ] -// } -// -// . -type FileChanges struct { - // Deletions: Files to delete. - // - // GraphQL type: [FileDeletion!] - Deletions []*FileDeletion `json:"deletions,omitempty"` - - // Additions: File to add or change. - // - // GraphQL type: [FileAddition!] - Additions []*FileAddition `json:"additions,omitempty"` -} - -// FileDeletion (INPUT_OBJECT): A command to delete the file at the given path as part of a commit. -type FileDeletion struct { - // Path: The path to delete. - // - // GraphQL type: String! - Path string `json:"path,omitempty"` -} - -// FileViewedState (ENUM): The possible viewed states of a file . -type FileViewedState string - -// FileViewedState_DISMISSED: The file has new changes since last viewed. -const FileViewedState_DISMISSED FileViewedState = "DISMISSED" - -// FileViewedState_VIEWED: The file has been marked as viewed. -const FileViewedState_VIEWED FileViewedState = "VIEWED" - -// FileViewedState_UNVIEWED: The file has not been marked as viewed. -const FileViewedState_UNVIEWED FileViewedState = "UNVIEWED" - -// Float (SCALAR): Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). -type Float float64 - -// FollowOrganizationInput (INPUT_OBJECT): Autogenerated input type of FollowOrganization. -type FollowOrganizationInput struct { - // OrganizationId: ID of the organization to follow. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// FollowOrganizationPayload (OBJECT): Autogenerated return type of FollowOrganization. -type FollowOrganizationPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Organization: The organization that was followed. - Organization *Organization `json:"organization,omitempty"` -} - -func (x *FollowOrganizationPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *FollowOrganizationPayload) GetOrganization() *Organization { return x.Organization } - -// FollowUserInput (INPUT_OBJECT): Autogenerated input type of FollowUser. -type FollowUserInput struct { - // UserId: ID of the user to follow. - // - // GraphQL type: ID! - UserId ID `json:"userId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// FollowUserPayload (OBJECT): Autogenerated return type of FollowUser. -type FollowUserPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // User: The user that was followed. - User *User `json:"user,omitempty"` -} - -func (x *FollowUserPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *FollowUserPayload) GetUser() *User { return x.User } - -// FollowerConnection (OBJECT): The connection type for User. -type FollowerConnection struct { - // Edges: A list of edges. - Edges []*UserEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *FollowerConnection) GetEdges() []*UserEdge { return x.Edges } -func (x *FollowerConnection) GetNodes() []*User { return x.Nodes } -func (x *FollowerConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *FollowerConnection) GetTotalCount() int { return x.TotalCount } - -// FollowingConnection (OBJECT): The connection type for User. -type FollowingConnection struct { - // Edges: A list of edges. - Edges []*UserEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *FollowingConnection) GetEdges() []*UserEdge { return x.Edges } -func (x *FollowingConnection) GetNodes() []*User { return x.Nodes } -func (x *FollowingConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *FollowingConnection) GetTotalCount() int { return x.TotalCount } - -// FundingLink (OBJECT): A funding platform link for a repository. -type FundingLink struct { - // Platform: The funding platform this link is for. - Platform FundingPlatform `json:"platform,omitempty"` - - // Url: The configured URL for this funding link. - Url URI `json:"url,omitempty"` -} - -func (x *FundingLink) GetPlatform() FundingPlatform { return x.Platform } -func (x *FundingLink) GetUrl() URI { return x.Url } - -// FundingPlatform (ENUM): The possible funding platforms for repository funding links. -type FundingPlatform string - -// FundingPlatform_GITHUB: GitHub funding platform. -const FundingPlatform_GITHUB FundingPlatform = "GITHUB" - -// FundingPlatform_PATREON: Patreon funding platform. -const FundingPlatform_PATREON FundingPlatform = "PATREON" - -// FundingPlatform_OPEN_COLLECTIVE: Open Collective funding platform. -const FundingPlatform_OPEN_COLLECTIVE FundingPlatform = "OPEN_COLLECTIVE" - -// FundingPlatform_KO_FI: Ko-fi funding platform. -const FundingPlatform_KO_FI FundingPlatform = "KO_FI" - -// FundingPlatform_TIDELIFT: Tidelift funding platform. -const FundingPlatform_TIDELIFT FundingPlatform = "TIDELIFT" - -// FundingPlatform_COMMUNITY_BRIDGE: Community Bridge funding platform. -const FundingPlatform_COMMUNITY_BRIDGE FundingPlatform = "COMMUNITY_BRIDGE" - -// FundingPlatform_LIBERAPAY: Liberapay funding platform. -const FundingPlatform_LIBERAPAY FundingPlatform = "LIBERAPAY" - -// FundingPlatform_ISSUEHUNT: IssueHunt funding platform. -const FundingPlatform_ISSUEHUNT FundingPlatform = "ISSUEHUNT" - -// FundingPlatform_OTECHIE: Otechie funding platform. -const FundingPlatform_OTECHIE FundingPlatform = "OTECHIE" - -// FundingPlatform_LFX_CROWDFUNDING: LFX Crowdfunding funding platform. -const FundingPlatform_LFX_CROWDFUNDING FundingPlatform = "LFX_CROWDFUNDING" - -// FundingPlatform_CUSTOM: Custom funding platform. -const FundingPlatform_CUSTOM FundingPlatform = "CUSTOM" - -// GenericHovercardContext (OBJECT): A generic hovercard context with a message and icon. -type GenericHovercardContext struct { - // Message: A string describing this context. - Message string `json:"message,omitempty"` - - // Octicon: An octicon to accompany this context. - Octicon string `json:"octicon,omitempty"` -} - -func (x *GenericHovercardContext) GetMessage() string { return x.Message } -func (x *GenericHovercardContext) GetOcticon() string { return x.Octicon } - -// Gist (OBJECT): A Gist. -type Gist struct { - // Comments: A list of comments associated with the gist. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Comments *GistCommentConnection `json:"comments,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Description: The gist description. - Description string `json:"description,omitempty"` - - // Files: The files in this gist. - // - // Query arguments: - // - limit Int - // - oid GitObjectID - Files []*GistFile `json:"files,omitempty"` - - // Forks: A list of forks associated with the gist. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy GistOrder - Forks *GistConnection `json:"forks,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsFork: Identifies if the gist is a fork. - IsFork bool `json:"isFork,omitempty"` - - // IsPublic: Whether the gist is public or not. - IsPublic bool `json:"isPublic,omitempty"` - - // Name: The gist name. - Name string `json:"name,omitempty"` - - // Owner: The gist owner. - Owner RepositoryOwner `json:"owner,omitempty"` - - // PushedAt: Identifies when the gist was last pushed to. - PushedAt DateTime `json:"pushedAt,omitempty"` - - // ResourcePath: The HTML path to this resource. - ResourcePath URI `json:"resourcePath,omitempty"` - - // StargazerCount: Returns a count of how many stargazers there are on this object - // . - StargazerCount int `json:"stargazerCount,omitempty"` - - // Stargazers: A list of users who have starred this starrable. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy StarOrder - Stargazers *StargazerConnection `json:"stargazers,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this Gist. - Url URI `json:"url,omitempty"` - - // ViewerHasStarred: Returns a boolean indicating whether the viewing user has starred this starrable. - ViewerHasStarred bool `json:"viewerHasStarred,omitempty"` -} - -func (x *Gist) GetComments() *GistCommentConnection { return x.Comments } -func (x *Gist) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Gist) GetDescription() string { return x.Description } -func (x *Gist) GetFiles() []*GistFile { return x.Files } -func (x *Gist) GetForks() *GistConnection { return x.Forks } -func (x *Gist) GetId() ID { return x.Id } -func (x *Gist) GetIsFork() bool { return x.IsFork } -func (x *Gist) GetIsPublic() bool { return x.IsPublic } -func (x *Gist) GetName() string { return x.Name } -func (x *Gist) GetOwner() RepositoryOwner { return x.Owner } -func (x *Gist) GetPushedAt() DateTime { return x.PushedAt } -func (x *Gist) GetResourcePath() URI { return x.ResourcePath } -func (x *Gist) GetStargazerCount() int { return x.StargazerCount } -func (x *Gist) GetStargazers() *StargazerConnection { return x.Stargazers } -func (x *Gist) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Gist) GetUrl() URI { return x.Url } -func (x *Gist) GetViewerHasStarred() bool { return x.ViewerHasStarred } - -// GistComment (OBJECT): Represents a comment on an Gist. -type GistComment struct { - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the gist. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: Identifies the comment body. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Gist: The associated gist. - Gist *Gist `json:"gist,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // IsMinimized: Returns whether or not a comment has been minimized. - IsMinimized bool `json:"isMinimized,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // MinimizedReason: Returns why the comment was minimized. - MinimizedReason string `json:"minimizedReason,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanMinimize: Check if the current viewer can minimize this object. - ViewerCanMinimize bool `json:"viewerCanMinimize,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` -} - -func (x *GistComment) GetAuthor() Actor { return x.Author } -func (x *GistComment) GetAuthorAssociation() CommentAuthorAssociation { return x.AuthorAssociation } -func (x *GistComment) GetBody() string { return x.Body } -func (x *GistComment) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *GistComment) GetBodyText() string { return x.BodyText } -func (x *GistComment) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *GistComment) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *GistComment) GetDatabaseId() int { return x.DatabaseId } -func (x *GistComment) GetEditor() Actor { return x.Editor } -func (x *GistComment) GetGist() *Gist { return x.Gist } -func (x *GistComment) GetId() ID { return x.Id } -func (x *GistComment) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *GistComment) GetIsMinimized() bool { return x.IsMinimized } -func (x *GistComment) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *GistComment) GetMinimizedReason() string { return x.MinimizedReason } -func (x *GistComment) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *GistComment) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *GistComment) GetUserContentEdits() *UserContentEditConnection { return x.UserContentEdits } -func (x *GistComment) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *GistComment) GetViewerCanMinimize() bool { return x.ViewerCanMinimize } -func (x *GistComment) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *GistComment) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *GistComment) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } - -// GistCommentConnection (OBJECT): The connection type for GistComment. -type GistCommentConnection struct { - // Edges: A list of edges. - Edges []*GistCommentEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*GistComment `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *GistCommentConnection) GetEdges() []*GistCommentEdge { return x.Edges } -func (x *GistCommentConnection) GetNodes() []*GistComment { return x.Nodes } -func (x *GistCommentConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *GistCommentConnection) GetTotalCount() int { return x.TotalCount } - -// GistCommentEdge (OBJECT): An edge in a connection. -type GistCommentEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *GistComment `json:"node,omitempty"` -} - -func (x *GistCommentEdge) GetCursor() string { return x.Cursor } -func (x *GistCommentEdge) GetNode() *GistComment { return x.Node } - -// GistConnection (OBJECT): The connection type for Gist. -type GistConnection struct { - // Edges: A list of edges. - Edges []*GistEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Gist `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *GistConnection) GetEdges() []*GistEdge { return x.Edges } -func (x *GistConnection) GetNodes() []*Gist { return x.Nodes } -func (x *GistConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *GistConnection) GetTotalCount() int { return x.TotalCount } - -// GistEdge (OBJECT): An edge in a connection. -type GistEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Gist `json:"node,omitempty"` -} - -func (x *GistEdge) GetCursor() string { return x.Cursor } -func (x *GistEdge) GetNode() *Gist { return x.Node } - -// GistFile (OBJECT): A file in a gist. -type GistFile struct { - // EncodedName: The file name encoded to remove characters that are invalid in URL paths. - EncodedName string `json:"encodedName,omitempty"` - - // Encoding: The gist file encoding. - Encoding string `json:"encoding,omitempty"` - - // Extension: The file extension from the file name. - Extension string `json:"extension,omitempty"` - - // IsImage: Indicates if this file is an image. - IsImage bool `json:"isImage,omitempty"` - - // IsTruncated: Whether the file's contents were truncated. - IsTruncated bool `json:"isTruncated,omitempty"` - - // Language: The programming language this file is written in. - Language *Language `json:"language,omitempty"` - - // Name: The gist file name. - Name string `json:"name,omitempty"` - - // Size: The gist file size in bytes. - Size int `json:"size,omitempty"` - - // Text: UTF8 text data or null if the file is binary. - // - // Query arguments: - // - truncate Int - Text string `json:"text,omitempty"` -} - -func (x *GistFile) GetEncodedName() string { return x.EncodedName } -func (x *GistFile) GetEncoding() string { return x.Encoding } -func (x *GistFile) GetExtension() string { return x.Extension } -func (x *GistFile) GetIsImage() bool { return x.IsImage } -func (x *GistFile) GetIsTruncated() bool { return x.IsTruncated } -func (x *GistFile) GetLanguage() *Language { return x.Language } -func (x *GistFile) GetName() string { return x.Name } -func (x *GistFile) GetSize() int { return x.Size } -func (x *GistFile) GetText() string { return x.Text } - -// GistOrder (INPUT_OBJECT): Ordering options for gist connections. -type GistOrder struct { - // Field: The field to order repositories by. - // - // GraphQL type: GistOrderField! - Field GistOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// GistOrderField (ENUM): Properties by which gist connections can be ordered. -type GistOrderField string - -// GistOrderField_CREATED_AT: Order gists by creation time. -const GistOrderField_CREATED_AT GistOrderField = "CREATED_AT" - -// GistOrderField_UPDATED_AT: Order gists by update time. -const GistOrderField_UPDATED_AT GistOrderField = "UPDATED_AT" - -// GistOrderField_PUSHED_AT: Order gists by push time. -const GistOrderField_PUSHED_AT GistOrderField = "PUSHED_AT" - -// GistPrivacy (ENUM): The privacy of a Gist. -type GistPrivacy string - -// GistPrivacy_PUBLIC: Public. -const GistPrivacy_PUBLIC GistPrivacy = "PUBLIC" - -// GistPrivacy_SECRET: Secret. -const GistPrivacy_SECRET GistPrivacy = "SECRET" - -// GistPrivacy_ALL: Gists that are public and secret. -const GistPrivacy_ALL GistPrivacy = "ALL" - -// GitActor (OBJECT): Represents an actor in a Git commit (ie. an author or committer). -type GitActor struct { - // AvatarUrl: A URL pointing to the author's public avatar. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // Date: The timestamp of the Git action (authoring or committing). - Date GitTimestamp `json:"date,omitempty"` - - // Email: The email in the Git commit. - Email string `json:"email,omitempty"` - - // Name: The name in the Git commit. - Name string `json:"name,omitempty"` - - // User: The GitHub user corresponding to the email field. Null if no such user exists. - User *User `json:"user,omitempty"` -} - -func (x *GitActor) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *GitActor) GetDate() GitTimestamp { return x.Date } -func (x *GitActor) GetEmail() string { return x.Email } -func (x *GitActor) GetName() string { return x.Name } -func (x *GitActor) GetUser() *User { return x.User } - -// GitActorConnection (OBJECT): The connection type for GitActor. -type GitActorConnection struct { - // Edges: A list of edges. - Edges []*GitActorEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*GitActor `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *GitActorConnection) GetEdges() []*GitActorEdge { return x.Edges } -func (x *GitActorConnection) GetNodes() []*GitActor { return x.Nodes } -func (x *GitActorConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *GitActorConnection) GetTotalCount() int { return x.TotalCount } - -// GitActorEdge (OBJECT): An edge in a connection. -type GitActorEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *GitActor `json:"node,omitempty"` -} - -func (x *GitActorEdge) GetCursor() string { return x.Cursor } -func (x *GitActorEdge) GetNode() *GitActor { return x.Node } - -// GitHubMetadata (OBJECT): Represents information about the GitHub instance. -type GitHubMetadata struct { - // GitHubServicesSha: Returns a String that's a SHA of `github-services`. - GitHubServicesSha GitObjectID `json:"gitHubServicesSha,omitempty"` - - // GitIpAddresses: IP addresses that users connect to for git operations. - GitIpAddresses []string `json:"gitIpAddresses,omitempty"` - - // HookIpAddresses: IP addresses that service hooks are sent from. - HookIpAddresses []string `json:"hookIpAddresses,omitempty"` - - // ImporterIpAddresses: IP addresses that the importer connects from. - ImporterIpAddresses []string `json:"importerIpAddresses,omitempty"` - - // IsPasswordAuthenticationVerifiable: Whether or not users are verified. - IsPasswordAuthenticationVerifiable bool `json:"isPasswordAuthenticationVerifiable,omitempty"` - - // PagesIpAddresses: IP addresses for GitHub Pages' A records. - PagesIpAddresses []string `json:"pagesIpAddresses,omitempty"` -} - -func (x *GitHubMetadata) GetGitHubServicesSha() GitObjectID { return x.GitHubServicesSha } -func (x *GitHubMetadata) GetGitIpAddresses() []string { return x.GitIpAddresses } -func (x *GitHubMetadata) GetHookIpAddresses() []string { return x.HookIpAddresses } -func (x *GitHubMetadata) GetImporterIpAddresses() []string { return x.ImporterIpAddresses } -func (x *GitHubMetadata) GetIsPasswordAuthenticationVerifiable() bool { - return x.IsPasswordAuthenticationVerifiable -} -func (x *GitHubMetadata) GetPagesIpAddresses() []string { return x.PagesIpAddresses } - -// GitObject (INTERFACE): Represents a Git object. -// GitObject_Interface: Represents a Git object. -// -// Possible types: -// -// - *Blob -// - *Commit -// - *Tag -// - *Tree -type GitObject_Interface interface { - isGitObject() - GetAbbreviatedOid() string - GetCommitResourcePath() URI - GetCommitUrl() URI - GetId() ID - GetOid() GitObjectID - GetRepository() *Repository -} - -func (*Blob) isGitObject() {} -func (*Commit) isGitObject() {} -func (*Tag) isGitObject() {} -func (*Tree) isGitObject() {} - -type GitObject struct { - Interface GitObject_Interface -} - -func (x *GitObject) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *GitObject) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for GitObject", info.Typename) - case "Blob": - x.Interface = new(Blob) - case "Commit": - x.Interface = new(Commit) - case "Tag": - x.Interface = new(Tag) - case "Tree": - x.Interface = new(Tree) - } - return json.Unmarshal(js, x.Interface) -} - -// GitObjectID (SCALAR): A Git object ID. -type GitObjectID string - -// GitSSHRemote (SCALAR): Git SSH string. -type GitSSHRemote string - -// GitSignature (INTERFACE): Information about a signature (GPG or S/MIME) on a Commit or Tag. -// GitSignature_Interface: Information about a signature (GPG or S/MIME) on a Commit or Tag. -// -// Possible types: -// -// - *GpgSignature -// - *SmimeSignature -// - *UnknownSignature -type GitSignature_Interface interface { - isGitSignature() - GetEmail() string - GetIsValid() bool - GetPayload() string - GetSignature() string - GetSigner() *User - GetState() GitSignatureState - GetWasSignedByGitHub() bool -} - -func (*GpgSignature) isGitSignature() {} -func (*SmimeSignature) isGitSignature() {} -func (*UnknownSignature) isGitSignature() {} - -type GitSignature struct { - Interface GitSignature_Interface -} - -func (x *GitSignature) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *GitSignature) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for GitSignature", info.Typename) - case "GpgSignature": - x.Interface = new(GpgSignature) - case "SmimeSignature": - x.Interface = new(SmimeSignature) - case "UnknownSignature": - x.Interface = new(UnknownSignature) - } - return json.Unmarshal(js, x.Interface) -} - -// GitSignatureState (ENUM): The state of a Git signature. -type GitSignatureState string - -// GitSignatureState_VALID: Valid signature and verified by GitHub. -const GitSignatureState_VALID GitSignatureState = "VALID" - -// GitSignatureState_INVALID: Invalid signature. -const GitSignatureState_INVALID GitSignatureState = "INVALID" - -// GitSignatureState_MALFORMED_SIG: Malformed signature. -const GitSignatureState_MALFORMED_SIG GitSignatureState = "MALFORMED_SIG" - -// GitSignatureState_UNKNOWN_KEY: Key used for signing not known to GitHub. -const GitSignatureState_UNKNOWN_KEY GitSignatureState = "UNKNOWN_KEY" - -// GitSignatureState_BAD_EMAIL: Invalid email used for signing. -const GitSignatureState_BAD_EMAIL GitSignatureState = "BAD_EMAIL" - -// GitSignatureState_UNVERIFIED_EMAIL: Email used for signing unverified on GitHub. -const GitSignatureState_UNVERIFIED_EMAIL GitSignatureState = "UNVERIFIED_EMAIL" - -// GitSignatureState_NO_USER: Email used for signing not known to GitHub. -const GitSignatureState_NO_USER GitSignatureState = "NO_USER" - -// GitSignatureState_UNKNOWN_SIG_TYPE: Unknown signature type. -const GitSignatureState_UNKNOWN_SIG_TYPE GitSignatureState = "UNKNOWN_SIG_TYPE" - -// GitSignatureState_UNSIGNED: Unsigned. -const GitSignatureState_UNSIGNED GitSignatureState = "UNSIGNED" - -// GitSignatureState_GPGVERIFY_UNAVAILABLE: Internal error - the GPG verification service is unavailable at the moment. -const GitSignatureState_GPGVERIFY_UNAVAILABLE GitSignatureState = "GPGVERIFY_UNAVAILABLE" - -// GitSignatureState_GPGVERIFY_ERROR: Internal error - the GPG verification service misbehaved. -const GitSignatureState_GPGVERIFY_ERROR GitSignatureState = "GPGVERIFY_ERROR" - -// GitSignatureState_NOT_SIGNING_KEY: The usage flags for the key that signed this don't allow signing. -const GitSignatureState_NOT_SIGNING_KEY GitSignatureState = "NOT_SIGNING_KEY" - -// GitSignatureState_EXPIRED_KEY: Signing key expired. -const GitSignatureState_EXPIRED_KEY GitSignatureState = "EXPIRED_KEY" - -// GitSignatureState_OCSP_PENDING: Valid signature, pending certificate revocation checking. -const GitSignatureState_OCSP_PENDING GitSignatureState = "OCSP_PENDING" - -// GitSignatureState_OCSP_ERROR: Valid signature, though certificate revocation check failed. -const GitSignatureState_OCSP_ERROR GitSignatureState = "OCSP_ERROR" - -// GitSignatureState_BAD_CERT: The signing certificate or its chain could not be verified. -const GitSignatureState_BAD_CERT GitSignatureState = "BAD_CERT" - -// GitSignatureState_OCSP_REVOKED: One or more certificates in chain has been revoked. -const GitSignatureState_OCSP_REVOKED GitSignatureState = "OCSP_REVOKED" - -// GitTimestamp (SCALAR): An ISO-8601 encoded date string. Unlike the DateTime type, GitTimestamp is not converted in UTC. -type GitTimestamp string - -// GpgSignature (OBJECT): Represents a GPG signature on a Commit or Tag. -type GpgSignature struct { - // Email: Email used to sign this object. - Email string `json:"email,omitempty"` - - // IsValid: True if the signature is valid and verified by GitHub. - IsValid bool `json:"isValid,omitempty"` - - // KeyId: Hex-encoded ID of the key that signed this object. - KeyId string `json:"keyId,omitempty"` - - // Payload: Payload for GPG signing object. Raw ODB object without the signature header. - Payload string `json:"payload,omitempty"` - - // Signature: ASCII-armored signature header from object. - Signature string `json:"signature,omitempty"` - - // Signer: GitHub user corresponding to the email signing this commit. - Signer *User `json:"signer,omitempty"` - - // State: The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. - State GitSignatureState `json:"state,omitempty"` - - // WasSignedByGitHub: True if the signature was made with GitHub's signing key. - WasSignedByGitHub bool `json:"wasSignedByGitHub,omitempty"` -} - -func (x *GpgSignature) GetEmail() string { return x.Email } -func (x *GpgSignature) GetIsValid() bool { return x.IsValid } -func (x *GpgSignature) GetKeyId() string { return x.KeyId } -func (x *GpgSignature) GetPayload() string { return x.Payload } -func (x *GpgSignature) GetSignature() string { return x.Signature } -func (x *GpgSignature) GetSigner() *User { return x.Signer } -func (x *GpgSignature) GetState() GitSignatureState { return x.State } -func (x *GpgSignature) GetWasSignedByGitHub() bool { return x.WasSignedByGitHub } - -// GrantEnterpriseOrganizationsMigratorRoleInput (INPUT_OBJECT): Autogenerated input type of GrantEnterpriseOrganizationsMigratorRole. -type GrantEnterpriseOrganizationsMigratorRoleInput struct { - // EnterpriseId: The ID of the enterprise to which all organizations managed by it will be granted the migrator role. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Login: The login of the user to grant the migrator role. - // - // GraphQL type: String! - Login string `json:"login,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// GrantEnterpriseOrganizationsMigratorRolePayload (OBJECT): Autogenerated return type of GrantEnterpriseOrganizationsMigratorRole. -type GrantEnterpriseOrganizationsMigratorRolePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Organizations: The organizations that had the migrator role applied to for the given user. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Organizations *OrganizationConnection `json:"organizations,omitempty"` -} - -func (x *GrantEnterpriseOrganizationsMigratorRolePayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *GrantEnterpriseOrganizationsMigratorRolePayload) GetOrganizations() *OrganizationConnection { - return x.Organizations -} - -// GrantMigratorRoleInput (INPUT_OBJECT): Autogenerated input type of GrantMigratorRole. -type GrantMigratorRoleInput struct { - // OrganizationId: The ID of the organization that the user/team belongs to. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // Actor: The user login or Team slug to grant the migrator role. - // - // GraphQL type: String! - Actor string `json:"actor,omitempty"` - - // ActorType: Specifies the type of the actor, can be either USER or TEAM. - // - // GraphQL type: ActorType! - ActorType ActorType `json:"actorType,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// GrantMigratorRolePayload (OBJECT): Autogenerated return type of GrantMigratorRole. -type GrantMigratorRolePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Success: Did the operation succeed?. - Success bool `json:"success,omitempty"` -} - -func (x *GrantMigratorRolePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *GrantMigratorRolePayload) GetSuccess() bool { return x.Success } - -// HTML (SCALAR): A string containing HTML code. -type HTML string - -// HeadRefDeletedEvent (OBJECT): Represents a 'head_ref_deleted' event on a given pull request. -type HeadRefDeletedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // HeadRef: Identifies the Ref associated with the `head_ref_deleted` event. - HeadRef *Ref `json:"headRef,omitempty"` - - // HeadRefName: Identifies the name of the Ref associated with the `head_ref_deleted` event. - HeadRefName string `json:"headRefName,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *HeadRefDeletedEvent) GetActor() Actor { return x.Actor } -func (x *HeadRefDeletedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *HeadRefDeletedEvent) GetHeadRef() *Ref { return x.HeadRef } -func (x *HeadRefDeletedEvent) GetHeadRefName() string { return x.HeadRefName } -func (x *HeadRefDeletedEvent) GetId() ID { return x.Id } -func (x *HeadRefDeletedEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// HeadRefForcePushedEvent (OBJECT): Represents a 'head_ref_force_pushed' event on a given pull request. -type HeadRefForcePushedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // AfterCommit: Identifies the after commit SHA for the 'head_ref_force_pushed' event. - AfterCommit *Commit `json:"afterCommit,omitempty"` - - // BeforeCommit: Identifies the before commit SHA for the 'head_ref_force_pushed' event. - BeforeCommit *Commit `json:"beforeCommit,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // Ref: Identifies the fully qualified ref name for the 'head_ref_force_pushed' event. - Ref *Ref `json:"ref,omitempty"` -} - -func (x *HeadRefForcePushedEvent) GetActor() Actor { return x.Actor } -func (x *HeadRefForcePushedEvent) GetAfterCommit() *Commit { return x.AfterCommit } -func (x *HeadRefForcePushedEvent) GetBeforeCommit() *Commit { return x.BeforeCommit } -func (x *HeadRefForcePushedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *HeadRefForcePushedEvent) GetId() ID { return x.Id } -func (x *HeadRefForcePushedEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *HeadRefForcePushedEvent) GetRef() *Ref { return x.Ref } - -// HeadRefRestoredEvent (OBJECT): Represents a 'head_ref_restored' event on a given pull request. -type HeadRefRestoredEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *HeadRefRestoredEvent) GetActor() Actor { return x.Actor } -func (x *HeadRefRestoredEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *HeadRefRestoredEvent) GetId() ID { return x.Id } -func (x *HeadRefRestoredEvent) GetPullRequest() *PullRequest { return x.PullRequest } - -// Hovercard (OBJECT): Detail needed to display a hovercard for a user. -type Hovercard struct { - // Contexts: Each of the contexts for this hovercard. - Contexts []HovercardContext `json:"contexts,omitempty"` -} - -func (x *Hovercard) GetContexts() []HovercardContext { return x.Contexts } - -// HovercardContext (INTERFACE): An individual line of a hovercard. -// HovercardContext_Interface: An individual line of a hovercard. -// -// Possible types: -// -// - *GenericHovercardContext -// - *OrganizationTeamsHovercardContext -// - *OrganizationsHovercardContext -// - *ReviewStatusHovercardContext -// - *ViewerHovercardContext -type HovercardContext_Interface interface { - isHovercardContext() - GetMessage() string - GetOcticon() string -} - -func (*GenericHovercardContext) isHovercardContext() {} -func (*OrganizationTeamsHovercardContext) isHovercardContext() {} -func (*OrganizationsHovercardContext) isHovercardContext() {} -func (*ReviewStatusHovercardContext) isHovercardContext() {} -func (*ViewerHovercardContext) isHovercardContext() {} - -type HovercardContext struct { - Interface HovercardContext_Interface -} - -func (x *HovercardContext) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *HovercardContext) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for HovercardContext", info.Typename) - case "GenericHovercardContext": - x.Interface = new(GenericHovercardContext) - case "OrganizationTeamsHovercardContext": - x.Interface = new(OrganizationTeamsHovercardContext) - case "OrganizationsHovercardContext": - x.Interface = new(OrganizationsHovercardContext) - case "ReviewStatusHovercardContext": - x.Interface = new(ReviewStatusHovercardContext) - case "ViewerHovercardContext": - x.Interface = new(ViewerHovercardContext) - } - return json.Unmarshal(js, x.Interface) -} - -// ID (SCALAR): Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`) input value will be accepted as an ID. -type ID string - -// IdentityProviderConfigurationState (ENUM): The possible states in which authentication can be configured with an identity provider. -type IdentityProviderConfigurationState string - -// IdentityProviderConfigurationState_ENFORCED: Authentication with an identity provider is configured and enforced. -const IdentityProviderConfigurationState_ENFORCED IdentityProviderConfigurationState = "ENFORCED" - -// IdentityProviderConfigurationState_CONFIGURED: Authentication with an identity provider is configured but not enforced. -const IdentityProviderConfigurationState_CONFIGURED IdentityProviderConfigurationState = "CONFIGURED" - -// IdentityProviderConfigurationState_UNCONFIGURED: Authentication with an identity provider is not configured. -const IdentityProviderConfigurationState_UNCONFIGURED IdentityProviderConfigurationState = "UNCONFIGURED" - -// Int (SCALAR): Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. -type Int int - -// InviteEnterpriseAdminInput (INPUT_OBJECT): Autogenerated input type of InviteEnterpriseAdmin. -type InviteEnterpriseAdminInput struct { - // EnterpriseId: The ID of the enterprise to which you want to invite an administrator. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Invitee: The login of a user to invite as an administrator. - // - // GraphQL type: String - Invitee string `json:"invitee,omitempty"` - - // Email: The email of the person to invite as an administrator. - // - // GraphQL type: String - Email string `json:"email,omitempty"` - - // Role: The role of the administrator. - // - // GraphQL type: EnterpriseAdministratorRole - Role EnterpriseAdministratorRole `json:"role,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// InviteEnterpriseAdminPayload (OBJECT): Autogenerated return type of InviteEnterpriseAdmin. -type InviteEnterpriseAdminPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Invitation: The created enterprise administrator invitation. - Invitation *EnterpriseAdministratorInvitation `json:"invitation,omitempty"` -} - -func (x *InviteEnterpriseAdminPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *InviteEnterpriseAdminPayload) GetInvitation() *EnterpriseAdministratorInvitation { - return x.Invitation -} - -// IpAllowListEnabledSettingValue (ENUM): The possible values for the IP allow list enabled setting. -type IpAllowListEnabledSettingValue string - -// IpAllowListEnabledSettingValue_ENABLED: The setting is enabled for the owner. -const IpAllowListEnabledSettingValue_ENABLED IpAllowListEnabledSettingValue = "ENABLED" - -// IpAllowListEnabledSettingValue_DISABLED: The setting is disabled for the owner. -const IpAllowListEnabledSettingValue_DISABLED IpAllowListEnabledSettingValue = "DISABLED" - -// IpAllowListEntry (OBJECT): An IP address or range of addresses that is allowed to access an owner's resources. -type IpAllowListEntry struct { - // AllowListValue: A single IP address or range of IP addresses in CIDR notation. - AllowListValue string `json:"allowListValue,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsActive: Whether the entry is currently active. - IsActive bool `json:"isActive,omitempty"` - - // Name: The name of the IP allow list entry. - Name string `json:"name,omitempty"` - - // Owner: The owner of the IP allow list entry. - Owner IpAllowListOwner `json:"owner,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *IpAllowListEntry) GetAllowListValue() string { return x.AllowListValue } -func (x *IpAllowListEntry) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *IpAllowListEntry) GetId() ID { return x.Id } -func (x *IpAllowListEntry) GetIsActive() bool { return x.IsActive } -func (x *IpAllowListEntry) GetName() string { return x.Name } -func (x *IpAllowListEntry) GetOwner() IpAllowListOwner { return x.Owner } -func (x *IpAllowListEntry) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// IpAllowListEntryConnection (OBJECT): The connection type for IpAllowListEntry. -type IpAllowListEntryConnection struct { - // Edges: A list of edges. - Edges []*IpAllowListEntryEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*IpAllowListEntry `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *IpAllowListEntryConnection) GetEdges() []*IpAllowListEntryEdge { return x.Edges } -func (x *IpAllowListEntryConnection) GetNodes() []*IpAllowListEntry { return x.Nodes } -func (x *IpAllowListEntryConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *IpAllowListEntryConnection) GetTotalCount() int { return x.TotalCount } - -// IpAllowListEntryEdge (OBJECT): An edge in a connection. -type IpAllowListEntryEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *IpAllowListEntry `json:"node,omitempty"` -} - -func (x *IpAllowListEntryEdge) GetCursor() string { return x.Cursor } -func (x *IpAllowListEntryEdge) GetNode() *IpAllowListEntry { return x.Node } - -// IpAllowListEntryOrder (INPUT_OBJECT): Ordering options for IP allow list entry connections. -type IpAllowListEntryOrder struct { - // Field: The field to order IP allow list entries by. - // - // GraphQL type: IpAllowListEntryOrderField! - Field IpAllowListEntryOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// IpAllowListEntryOrderField (ENUM): Properties by which IP allow list entry connections can be ordered. -type IpAllowListEntryOrderField string - -// IpAllowListEntryOrderField_CREATED_AT: Order IP allow list entries by creation time. -const IpAllowListEntryOrderField_CREATED_AT IpAllowListEntryOrderField = "CREATED_AT" - -// IpAllowListEntryOrderField_ALLOW_LIST_VALUE: Order IP allow list entries by the allow list value. -const IpAllowListEntryOrderField_ALLOW_LIST_VALUE IpAllowListEntryOrderField = "ALLOW_LIST_VALUE" - -// IpAllowListForInstalledAppsEnabledSettingValue (ENUM): The possible values for the IP allow list configuration for installed GitHub Apps setting. -type IpAllowListForInstalledAppsEnabledSettingValue string - -// IpAllowListForInstalledAppsEnabledSettingValue_ENABLED: The setting is enabled for the owner. -const IpAllowListForInstalledAppsEnabledSettingValue_ENABLED IpAllowListForInstalledAppsEnabledSettingValue = "ENABLED" - -// IpAllowListForInstalledAppsEnabledSettingValue_DISABLED: The setting is disabled for the owner. -const IpAllowListForInstalledAppsEnabledSettingValue_DISABLED IpAllowListForInstalledAppsEnabledSettingValue = "DISABLED" - -// IpAllowListOwner (UNION): Types that can own an IP allow list. -// IpAllowListOwner_Interface: Types that can own an IP allow list. -// -// Possible types: -// -// - *App -// - *Enterprise -// - *Organization -type IpAllowListOwner_Interface interface { - isIpAllowListOwner() -} - -func (*App) isIpAllowListOwner() {} -func (*Enterprise) isIpAllowListOwner() {} -func (*Organization) isIpAllowListOwner() {} - -type IpAllowListOwner struct { - Interface IpAllowListOwner_Interface -} - -func (x *IpAllowListOwner) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *IpAllowListOwner) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for IpAllowListOwner", info.Typename) - case "App": - x.Interface = new(App) - case "Enterprise": - x.Interface = new(Enterprise) - case "Organization": - x.Interface = new(Organization) - } - return json.Unmarshal(js, x.Interface) -} - -// Issue (OBJECT): An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. -type Issue struct { - // ActiveLockReason: Reason that the conversation was locked. - ActiveLockReason LockReason `json:"activeLockReason,omitempty"` - - // Assignees: A list of Users assigned to this object. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Assignees *UserConnection `json:"assignees,omitempty"` - - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the subject of the comment. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: Identifies the body of the issue. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyResourcePath: The http path for this issue body. - BodyResourcePath URI `json:"bodyResourcePath,omitempty"` - - // BodyText: Identifies the body of the issue rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // BodyUrl: The http URL for this issue body. - BodyUrl URI `json:"bodyUrl,omitempty"` - - // Closed: `true` if the object is closed (definition of closed may depend on type). - Closed bool `json:"closed,omitempty"` - - // ClosedAt: Identifies the date and time when the object was closed. - ClosedAt DateTime `json:"closedAt,omitempty"` - - // Comments: A list of comments associated with the Issue. - // - // Query arguments: - // - orderBy IssueCommentOrder - // - after String - // - before String - // - first Int - // - last Int - Comments *IssueCommentConnection `json:"comments,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Hovercard: The hovercard information for this issue. - // - // Query arguments: - // - includeNotificationContexts Boolean - Hovercard *Hovercard `json:"hovercard,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // IsPinned: Indicates whether or not this issue is currently pinned to the repository issues list. - IsPinned bool `json:"isPinned,omitempty"` - - // IsReadByViewer: Is this issue read by the viewer. - IsReadByViewer bool `json:"isReadByViewer,omitempty"` - - // Labels: A list of labels associated with the object. - // - // Query arguments: - // - orderBy LabelOrder - // - after String - // - before String - // - first Int - // - last Int - Labels *LabelConnection `json:"labels,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // Locked: `true` if the object is locked. - Locked bool `json:"locked,omitempty"` - - // Milestone: Identifies the milestone associated with the issue. - Milestone *Milestone `json:"milestone,omitempty"` - - // Number: Identifies the issue number. - Number int `json:"number,omitempty"` - - // Participants: A list of Users that are participating in the Issue conversation. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Participants *UserConnection `json:"participants,omitempty"` - - // ProjectCards: List of project cards associated with this issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - archivedStates [ProjectCardArchivedState] - ProjectCards *ProjectCardConnection `json:"projectCards,omitempty"` - - // ProjectItems: List of project items associated with this issue. - // - // Query arguments: - // - includeArchived Boolean - // - after String - // - before String - // - first Int - // - last Int - ProjectItems *ProjectV2ItemConnection `json:"projectItems,omitempty"` - - // ProjectNext: Find a project by project (beta) number. - // - // Deprecated: Find a project by project (beta) number. - // - // Query arguments: - // - number Int! - ProjectNext *ProjectNext `json:"projectNext,omitempty"` - - // ProjectNextItems: List of project (beta) items associated with this issue. - // - // Query arguments: - // - includeArchived Boolean - // - after String - // - before String - // - first Int - // - last Int - ProjectNextItems *ProjectNextItemConnection `json:"projectNextItems,omitempty"` - - // ProjectV2: Find a project by number. - // - // Query arguments: - // - number Int! - ProjectV2 *ProjectV2 `json:"projectV2,omitempty"` - - // ProjectsNext: A list of projects (beta) under the owner. - // - // Deprecated: A list of projects (beta) under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - sortBy ProjectNextOrderField - ProjectsNext *ProjectNextConnection `json:"projectsNext,omitempty"` - - // ProjectsV2: A list of projects under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - orderBy ProjectV2Order - ProjectsV2 *ProjectV2Connection `json:"projectsV2,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this issue. - ResourcePath URI `json:"resourcePath,omitempty"` - - // State: Identifies the state of the issue. - State IssueState `json:"state,omitempty"` - - // StateReason: Identifies the reason for the issue state. - StateReason IssueStateReason `json:"stateReason,omitempty"` - - // Timeline: A list of events, comments, commits, etc. associated with the issue. - // - // Deprecated: A list of events, comments, commits, etc. associated with the issue. - // - // Query arguments: - // - since DateTime - // - after String - // - before String - // - first Int - // - last Int - Timeline *IssueTimelineConnection `json:"timeline,omitempty"` - - // TimelineItems: A list of events, comments, commits, etc. associated with the issue. - // - // Query arguments: - // - since DateTime - // - skip Int - // - itemTypes [IssueTimelineItemsItemType!] - // - after String - // - before String - // - first Int - // - last Int - TimelineItems *IssueTimelineItemsConnection `json:"timelineItems,omitempty"` - - // Title: Identifies the issue title. - Title string `json:"title,omitempty"` - - // TitleHTML: Identifies the issue title rendered to HTML. - TitleHTML string `json:"titleHTML,omitempty"` - - // TrackedInIssues: A list of issues that track this issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - TrackedInIssues *IssueConnection `json:"trackedInIssues,omitempty"` - - // TrackedIssues: A list of issues tracked inside the current issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - TrackedIssues *IssueConnection `json:"trackedIssues,omitempty"` - - // TrackedIssuesCount: The number of tracked issues for this issue. - // - // Query arguments: - // - states [TrackedIssueStates] - TrackedIssuesCount int `json:"trackedIssuesCount,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this issue. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanSubscribe: Check if the viewer is able to change their subscription status for the repository. - ViewerCanSubscribe bool `json:"viewerCanSubscribe,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` - - // ViewerSubscription: Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - ViewerSubscription SubscriptionState `json:"viewerSubscription,omitempty"` -} - -func (x *Issue) GetActiveLockReason() LockReason { return x.ActiveLockReason } -func (x *Issue) GetAssignees() *UserConnection { return x.Assignees } -func (x *Issue) GetAuthor() Actor { return x.Author } -func (x *Issue) GetAuthorAssociation() CommentAuthorAssociation { return x.AuthorAssociation } -func (x *Issue) GetBody() string { return x.Body } -func (x *Issue) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *Issue) GetBodyResourcePath() URI { return x.BodyResourcePath } -func (x *Issue) GetBodyText() string { return x.BodyText } -func (x *Issue) GetBodyUrl() URI { return x.BodyUrl } -func (x *Issue) GetClosed() bool { return x.Closed } -func (x *Issue) GetClosedAt() DateTime { return x.ClosedAt } -func (x *Issue) GetComments() *IssueCommentConnection { return x.Comments } -func (x *Issue) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Issue) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *Issue) GetDatabaseId() int { return x.DatabaseId } -func (x *Issue) GetEditor() Actor { return x.Editor } -func (x *Issue) GetHovercard() *Hovercard { return x.Hovercard } -func (x *Issue) GetId() ID { return x.Id } -func (x *Issue) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *Issue) GetIsPinned() bool { return x.IsPinned } -func (x *Issue) GetIsReadByViewer() bool { return x.IsReadByViewer } -func (x *Issue) GetLabels() *LabelConnection { return x.Labels } -func (x *Issue) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *Issue) GetLocked() bool { return x.Locked } -func (x *Issue) GetMilestone() *Milestone { return x.Milestone } -func (x *Issue) GetNumber() int { return x.Number } -func (x *Issue) GetParticipants() *UserConnection { return x.Participants } -func (x *Issue) GetProjectCards() *ProjectCardConnection { return x.ProjectCards } -func (x *Issue) GetProjectItems() *ProjectV2ItemConnection { return x.ProjectItems } -func (x *Issue) GetProjectNext() *ProjectNext { return x.ProjectNext } -func (x *Issue) GetProjectNextItems() *ProjectNextItemConnection { return x.ProjectNextItems } -func (x *Issue) GetProjectV2() *ProjectV2 { return x.ProjectV2 } -func (x *Issue) GetProjectsNext() *ProjectNextConnection { return x.ProjectsNext } -func (x *Issue) GetProjectsV2() *ProjectV2Connection { return x.ProjectsV2 } -func (x *Issue) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *Issue) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *Issue) GetReactions() *ReactionConnection { return x.Reactions } -func (x *Issue) GetRepository() *Repository { return x.Repository } -func (x *Issue) GetResourcePath() URI { return x.ResourcePath } -func (x *Issue) GetState() IssueState { return x.State } -func (x *Issue) GetStateReason() IssueStateReason { return x.StateReason } -func (x *Issue) GetTimeline() *IssueTimelineConnection { return x.Timeline } -func (x *Issue) GetTimelineItems() *IssueTimelineItemsConnection { return x.TimelineItems } -func (x *Issue) GetTitle() string { return x.Title } -func (x *Issue) GetTitleHTML() string { return x.TitleHTML } -func (x *Issue) GetTrackedInIssues() *IssueConnection { return x.TrackedInIssues } -func (x *Issue) GetTrackedIssues() *IssueConnection { return x.TrackedIssues } -func (x *Issue) GetTrackedIssuesCount() int { return x.TrackedIssuesCount } -func (x *Issue) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Issue) GetUrl() URI { return x.Url } -func (x *Issue) GetUserContentEdits() *UserContentEditConnection { return x.UserContentEdits } -func (x *Issue) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *Issue) GetViewerCanSubscribe() bool { return x.ViewerCanSubscribe } -func (x *Issue) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *Issue) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *Issue) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } -func (x *Issue) GetViewerSubscription() SubscriptionState { return x.ViewerSubscription } - -// IssueClosedStateReason (ENUM): The possible state reasons of a closed issue. -type IssueClosedStateReason string - -// IssueClosedStateReason_COMPLETED: An issue that has been closed as completed. -const IssueClosedStateReason_COMPLETED IssueClosedStateReason = "COMPLETED" - -// IssueClosedStateReason_NOT_PLANNED: An issue that has been closed as not planned. -const IssueClosedStateReason_NOT_PLANNED IssueClosedStateReason = "NOT_PLANNED" - -// IssueComment (OBJECT): Represents a comment on an Issue. -type IssueComment struct { - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the subject of the comment. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: The body as Markdown. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // IsMinimized: Returns whether or not a comment has been minimized. - IsMinimized bool `json:"isMinimized,omitempty"` - - // Issue: Identifies the issue associated with the comment. - Issue *Issue `json:"issue,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // MinimizedReason: Returns why the comment was minimized. - MinimizedReason string `json:"minimizedReason,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // PullRequest: Returns the pull request associated with the comment, if this comment was made on a - // pull request. - // . - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this issue comment. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this issue comment. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanMinimize: Check if the current viewer can minimize this object. - ViewerCanMinimize bool `json:"viewerCanMinimize,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` -} - -func (x *IssueComment) GetAuthor() Actor { return x.Author } -func (x *IssueComment) GetAuthorAssociation() CommentAuthorAssociation { return x.AuthorAssociation } -func (x *IssueComment) GetBody() string { return x.Body } -func (x *IssueComment) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *IssueComment) GetBodyText() string { return x.BodyText } -func (x *IssueComment) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *IssueComment) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *IssueComment) GetDatabaseId() int { return x.DatabaseId } -func (x *IssueComment) GetEditor() Actor { return x.Editor } -func (x *IssueComment) GetId() ID { return x.Id } -func (x *IssueComment) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *IssueComment) GetIsMinimized() bool { return x.IsMinimized } -func (x *IssueComment) GetIssue() *Issue { return x.Issue } -func (x *IssueComment) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *IssueComment) GetMinimizedReason() string { return x.MinimizedReason } -func (x *IssueComment) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *IssueComment) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *IssueComment) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *IssueComment) GetReactions() *ReactionConnection { return x.Reactions } -func (x *IssueComment) GetRepository() *Repository { return x.Repository } -func (x *IssueComment) GetResourcePath() URI { return x.ResourcePath } -func (x *IssueComment) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *IssueComment) GetUrl() URI { return x.Url } -func (x *IssueComment) GetUserContentEdits() *UserContentEditConnection { return x.UserContentEdits } -func (x *IssueComment) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *IssueComment) GetViewerCanMinimize() bool { return x.ViewerCanMinimize } -func (x *IssueComment) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *IssueComment) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *IssueComment) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *IssueComment) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } - -// IssueCommentConnection (OBJECT): The connection type for IssueComment. -type IssueCommentConnection struct { - // Edges: A list of edges. - Edges []*IssueCommentEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*IssueComment `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *IssueCommentConnection) GetEdges() []*IssueCommentEdge { return x.Edges } -func (x *IssueCommentConnection) GetNodes() []*IssueComment { return x.Nodes } -func (x *IssueCommentConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *IssueCommentConnection) GetTotalCount() int { return x.TotalCount } - -// IssueCommentEdge (OBJECT): An edge in a connection. -type IssueCommentEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *IssueComment `json:"node,omitempty"` -} - -func (x *IssueCommentEdge) GetCursor() string { return x.Cursor } -func (x *IssueCommentEdge) GetNode() *IssueComment { return x.Node } - -// IssueCommentOrder (INPUT_OBJECT): Ways in which lists of issue comments can be ordered upon return. -type IssueCommentOrder struct { - // Field: The field in which to order issue comments by. - // - // GraphQL type: IssueCommentOrderField! - Field IssueCommentOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order issue comments by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// IssueCommentOrderField (ENUM): Properties by which issue comment connections can be ordered. -type IssueCommentOrderField string - -// IssueCommentOrderField_UPDATED_AT: Order issue comments by update time. -const IssueCommentOrderField_UPDATED_AT IssueCommentOrderField = "UPDATED_AT" - -// IssueConnection (OBJECT): The connection type for Issue. -type IssueConnection struct { - // Edges: A list of edges. - Edges []*IssueEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Issue `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *IssueConnection) GetEdges() []*IssueEdge { return x.Edges } -func (x *IssueConnection) GetNodes() []*Issue { return x.Nodes } -func (x *IssueConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *IssueConnection) GetTotalCount() int { return x.TotalCount } - -// IssueContributionsByRepository (OBJECT): This aggregates issues opened by a user within one repository. -type IssueContributionsByRepository struct { - // Contributions: The issue contributions. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ContributionOrder - Contributions *CreatedIssueContributionConnection `json:"contributions,omitempty"` - - // Repository: The repository in which the issues were opened. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *IssueContributionsByRepository) GetContributions() *CreatedIssueContributionConnection { - return x.Contributions -} -func (x *IssueContributionsByRepository) GetRepository() *Repository { return x.Repository } - -// IssueEdge (OBJECT): An edge in a connection. -type IssueEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Issue `json:"node,omitempty"` -} - -func (x *IssueEdge) GetCursor() string { return x.Cursor } -func (x *IssueEdge) GetNode() *Issue { return x.Node } - -// IssueFilters (INPUT_OBJECT): Ways in which to filter lists of issues. -type IssueFilters struct { - // Assignee: List issues assigned to given name. Pass in `null` for issues with no assigned user, and `*` for issues assigned to any user. - // - // GraphQL type: String - Assignee string `json:"assignee,omitempty"` - - // CreatedBy: List issues created by given name. - // - // GraphQL type: String - CreatedBy string `json:"createdBy,omitempty"` - - // Labels: List issues where the list of label names exist on the issue. - // - // GraphQL type: [String!] - Labels []string `json:"labels,omitempty"` - - // Mentioned: List issues where the given name is mentioned in the issue. - // - // GraphQL type: String - Mentioned string `json:"mentioned,omitempty"` - - // Milestone: List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its database ID. Pass in `null` for issues with no milestone, and `*` for issues that are assigned to any milestone. - // - // GraphQL type: String - Milestone string `json:"milestone,omitempty"` - - // MilestoneNumber: List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its number field. Pass in `null` for issues with no milestone, and `*` for issues that are assigned to any milestone. - // - // GraphQL type: String - MilestoneNumber string `json:"milestoneNumber,omitempty"` - - // Since: List issues that have been updated at or after the given date. - // - // GraphQL type: DateTime - Since DateTime `json:"since,omitempty"` - - // States: List issues filtered by the list of states given. - // - // GraphQL type: [IssueState!] - States []IssueState `json:"states,omitempty"` - - // ViewerSubscribed: List issues subscribed to by viewer. - // - // GraphQL type: Boolean - ViewerSubscribed bool `json:"viewerSubscribed,omitempty"` -} - -// IssueOrPullRequest (UNION): Used for return value of Repository.issueOrPullRequest. -// IssueOrPullRequest_Interface: Used for return value of Repository.issueOrPullRequest. -// -// Possible types: -// -// - *Issue -// - *PullRequest -type IssueOrPullRequest_Interface interface { - isIssueOrPullRequest() -} - -func (*Issue) isIssueOrPullRequest() {} -func (*PullRequest) isIssueOrPullRequest() {} - -type IssueOrPullRequest struct { - Interface IssueOrPullRequest_Interface -} - -func (x *IssueOrPullRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *IssueOrPullRequest) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for IssueOrPullRequest", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// IssueOrder (INPUT_OBJECT): Ways in which lists of issues can be ordered upon return. -type IssueOrder struct { - // Field: The field in which to order issues by. - // - // GraphQL type: IssueOrderField! - Field IssueOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order issues by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// IssueOrderField (ENUM): Properties by which issue connections can be ordered. -type IssueOrderField string - -// IssueOrderField_CREATED_AT: Order issues by creation time. -const IssueOrderField_CREATED_AT IssueOrderField = "CREATED_AT" - -// IssueOrderField_UPDATED_AT: Order issues by update time. -const IssueOrderField_UPDATED_AT IssueOrderField = "UPDATED_AT" - -// IssueOrderField_COMMENTS: Order issues by comment count. -const IssueOrderField_COMMENTS IssueOrderField = "COMMENTS" - -// IssueState (ENUM): The possible states of an issue. -type IssueState string - -// IssueState_OPEN: An issue that is still open. -const IssueState_OPEN IssueState = "OPEN" - -// IssueState_CLOSED: An issue that has been closed. -const IssueState_CLOSED IssueState = "CLOSED" - -// IssueStateReason (ENUM): The possible state reasons of an issue. -type IssueStateReason string - -// IssueStateReason_REOPENED: An issue that has been reopened. -const IssueStateReason_REOPENED IssueStateReason = "REOPENED" - -// IssueStateReason_NOT_PLANNED: An issue that has been closed as not planned. -const IssueStateReason_NOT_PLANNED IssueStateReason = "NOT_PLANNED" - -// IssueStateReason_COMPLETED: An issue that has been closed as completed. -const IssueStateReason_COMPLETED IssueStateReason = "COMPLETED" - -// IssueTemplate (OBJECT): A repository issue template. -type IssueTemplate struct { - // About: The template purpose. - About string `json:"about,omitempty"` - - // Body: The suggested issue body. - Body string `json:"body,omitempty"` - - // Name: The template name. - Name string `json:"name,omitempty"` - - // Title: The suggested issue title. - Title string `json:"title,omitempty"` -} - -func (x *IssueTemplate) GetAbout() string { return x.About } -func (x *IssueTemplate) GetBody() string { return x.Body } -func (x *IssueTemplate) GetName() string { return x.Name } -func (x *IssueTemplate) GetTitle() string { return x.Title } - -// IssueTimelineConnection (OBJECT): The connection type for IssueTimelineItem. -type IssueTimelineConnection struct { - // Edges: A list of edges. - Edges []*IssueTimelineItemEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []IssueTimelineItem `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *IssueTimelineConnection) GetEdges() []*IssueTimelineItemEdge { return x.Edges } -func (x *IssueTimelineConnection) GetNodes() []IssueTimelineItem { return x.Nodes } -func (x *IssueTimelineConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *IssueTimelineConnection) GetTotalCount() int { return x.TotalCount } - -// IssueTimelineItem (UNION): An item in an issue timeline. -// IssueTimelineItem_Interface: An item in an issue timeline. -// -// Possible types: -// -// - *AssignedEvent -// - *ClosedEvent -// - *Commit -// - *CrossReferencedEvent -// - *DemilestonedEvent -// - *IssueComment -// - *LabeledEvent -// - *LockedEvent -// - *MilestonedEvent -// - *ReferencedEvent -// - *RenamedTitleEvent -// - *ReopenedEvent -// - *SubscribedEvent -// - *TransferredEvent -// - *UnassignedEvent -// - *UnlabeledEvent -// - *UnlockedEvent -// - *UnsubscribedEvent -// - *UserBlockedEvent -type IssueTimelineItem_Interface interface { - isIssueTimelineItem() -} - -func (*AssignedEvent) isIssueTimelineItem() {} -func (*ClosedEvent) isIssueTimelineItem() {} -func (*Commit) isIssueTimelineItem() {} -func (*CrossReferencedEvent) isIssueTimelineItem() {} -func (*DemilestonedEvent) isIssueTimelineItem() {} -func (*IssueComment) isIssueTimelineItem() {} -func (*LabeledEvent) isIssueTimelineItem() {} -func (*LockedEvent) isIssueTimelineItem() {} -func (*MilestonedEvent) isIssueTimelineItem() {} -func (*ReferencedEvent) isIssueTimelineItem() {} -func (*RenamedTitleEvent) isIssueTimelineItem() {} -func (*ReopenedEvent) isIssueTimelineItem() {} -func (*SubscribedEvent) isIssueTimelineItem() {} -func (*TransferredEvent) isIssueTimelineItem() {} -func (*UnassignedEvent) isIssueTimelineItem() {} -func (*UnlabeledEvent) isIssueTimelineItem() {} -func (*UnlockedEvent) isIssueTimelineItem() {} -func (*UnsubscribedEvent) isIssueTimelineItem() {} -func (*UserBlockedEvent) isIssueTimelineItem() {} - -type IssueTimelineItem struct { - Interface IssueTimelineItem_Interface -} - -func (x *IssueTimelineItem) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *IssueTimelineItem) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for IssueTimelineItem", info.Typename) - case "AssignedEvent": - x.Interface = new(AssignedEvent) - case "ClosedEvent": - x.Interface = new(ClosedEvent) - case "Commit": - x.Interface = new(Commit) - case "CrossReferencedEvent": - x.Interface = new(CrossReferencedEvent) - case "DemilestonedEvent": - x.Interface = new(DemilestonedEvent) - case "IssueComment": - x.Interface = new(IssueComment) - case "LabeledEvent": - x.Interface = new(LabeledEvent) - case "LockedEvent": - x.Interface = new(LockedEvent) - case "MilestonedEvent": - x.Interface = new(MilestonedEvent) - case "ReferencedEvent": - x.Interface = new(ReferencedEvent) - case "RenamedTitleEvent": - x.Interface = new(RenamedTitleEvent) - case "ReopenedEvent": - x.Interface = new(ReopenedEvent) - case "SubscribedEvent": - x.Interface = new(SubscribedEvent) - case "TransferredEvent": - x.Interface = new(TransferredEvent) - case "UnassignedEvent": - x.Interface = new(UnassignedEvent) - case "UnlabeledEvent": - x.Interface = new(UnlabeledEvent) - case "UnlockedEvent": - x.Interface = new(UnlockedEvent) - case "UnsubscribedEvent": - x.Interface = new(UnsubscribedEvent) - case "UserBlockedEvent": - x.Interface = new(UserBlockedEvent) - } - return json.Unmarshal(js, x.Interface) -} - -// IssueTimelineItemEdge (OBJECT): An edge in a connection. -type IssueTimelineItemEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node IssueTimelineItem `json:"node,omitempty"` -} - -func (x *IssueTimelineItemEdge) GetCursor() string { return x.Cursor } -func (x *IssueTimelineItemEdge) GetNode() IssueTimelineItem { return x.Node } - -// IssueTimelineItems (UNION): An item in an issue timeline. -// IssueTimelineItems_Interface: An item in an issue timeline. -// -// Possible types: -// -// - *AddedToProjectEvent -// - *AssignedEvent -// - *ClosedEvent -// - *CommentDeletedEvent -// - *ConnectedEvent -// - *ConvertedNoteToIssueEvent -// - *ConvertedToDiscussionEvent -// - *CrossReferencedEvent -// - *DemilestonedEvent -// - *DisconnectedEvent -// - *IssueComment -// - *LabeledEvent -// - *LockedEvent -// - *MarkedAsDuplicateEvent -// - *MentionedEvent -// - *MilestonedEvent -// - *MovedColumnsInProjectEvent -// - *PinnedEvent -// - *ReferencedEvent -// - *RemovedFromProjectEvent -// - *RenamedTitleEvent -// - *ReopenedEvent -// - *SubscribedEvent -// - *TransferredEvent -// - *UnassignedEvent -// - *UnlabeledEvent -// - *UnlockedEvent -// - *UnmarkedAsDuplicateEvent -// - *UnpinnedEvent -// - *UnsubscribedEvent -// - *UserBlockedEvent -type IssueTimelineItems_Interface interface { - isIssueTimelineItems() -} - -func (*AddedToProjectEvent) isIssueTimelineItems() {} -func (*AssignedEvent) isIssueTimelineItems() {} -func (*ClosedEvent) isIssueTimelineItems() {} -func (*CommentDeletedEvent) isIssueTimelineItems() {} -func (*ConnectedEvent) isIssueTimelineItems() {} -func (*ConvertedNoteToIssueEvent) isIssueTimelineItems() {} -func (*ConvertedToDiscussionEvent) isIssueTimelineItems() {} -func (*CrossReferencedEvent) isIssueTimelineItems() {} -func (*DemilestonedEvent) isIssueTimelineItems() {} -func (*DisconnectedEvent) isIssueTimelineItems() {} -func (*IssueComment) isIssueTimelineItems() {} -func (*LabeledEvent) isIssueTimelineItems() {} -func (*LockedEvent) isIssueTimelineItems() {} -func (*MarkedAsDuplicateEvent) isIssueTimelineItems() {} -func (*MentionedEvent) isIssueTimelineItems() {} -func (*MilestonedEvent) isIssueTimelineItems() {} -func (*MovedColumnsInProjectEvent) isIssueTimelineItems() {} -func (*PinnedEvent) isIssueTimelineItems() {} -func (*ReferencedEvent) isIssueTimelineItems() {} -func (*RemovedFromProjectEvent) isIssueTimelineItems() {} -func (*RenamedTitleEvent) isIssueTimelineItems() {} -func (*ReopenedEvent) isIssueTimelineItems() {} -func (*SubscribedEvent) isIssueTimelineItems() {} -func (*TransferredEvent) isIssueTimelineItems() {} -func (*UnassignedEvent) isIssueTimelineItems() {} -func (*UnlabeledEvent) isIssueTimelineItems() {} -func (*UnlockedEvent) isIssueTimelineItems() {} -func (*UnmarkedAsDuplicateEvent) isIssueTimelineItems() {} -func (*UnpinnedEvent) isIssueTimelineItems() {} -func (*UnsubscribedEvent) isIssueTimelineItems() {} -func (*UserBlockedEvent) isIssueTimelineItems() {} - -type IssueTimelineItems struct { - Interface IssueTimelineItems_Interface -} - -func (x *IssueTimelineItems) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *IssueTimelineItems) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for IssueTimelineItems", info.Typename) - case "AddedToProjectEvent": - x.Interface = new(AddedToProjectEvent) - case "AssignedEvent": - x.Interface = new(AssignedEvent) - case "ClosedEvent": - x.Interface = new(ClosedEvent) - case "CommentDeletedEvent": - x.Interface = new(CommentDeletedEvent) - case "ConnectedEvent": - x.Interface = new(ConnectedEvent) - case "ConvertedNoteToIssueEvent": - x.Interface = new(ConvertedNoteToIssueEvent) - case "ConvertedToDiscussionEvent": - x.Interface = new(ConvertedToDiscussionEvent) - case "CrossReferencedEvent": - x.Interface = new(CrossReferencedEvent) - case "DemilestonedEvent": - x.Interface = new(DemilestonedEvent) - case "DisconnectedEvent": - x.Interface = new(DisconnectedEvent) - case "IssueComment": - x.Interface = new(IssueComment) - case "LabeledEvent": - x.Interface = new(LabeledEvent) - case "LockedEvent": - x.Interface = new(LockedEvent) - case "MarkedAsDuplicateEvent": - x.Interface = new(MarkedAsDuplicateEvent) - case "MentionedEvent": - x.Interface = new(MentionedEvent) - case "MilestonedEvent": - x.Interface = new(MilestonedEvent) - case "MovedColumnsInProjectEvent": - x.Interface = new(MovedColumnsInProjectEvent) - case "PinnedEvent": - x.Interface = new(PinnedEvent) - case "ReferencedEvent": - x.Interface = new(ReferencedEvent) - case "RemovedFromProjectEvent": - x.Interface = new(RemovedFromProjectEvent) - case "RenamedTitleEvent": - x.Interface = new(RenamedTitleEvent) - case "ReopenedEvent": - x.Interface = new(ReopenedEvent) - case "SubscribedEvent": - x.Interface = new(SubscribedEvent) - case "TransferredEvent": - x.Interface = new(TransferredEvent) - case "UnassignedEvent": - x.Interface = new(UnassignedEvent) - case "UnlabeledEvent": - x.Interface = new(UnlabeledEvent) - case "UnlockedEvent": - x.Interface = new(UnlockedEvent) - case "UnmarkedAsDuplicateEvent": - x.Interface = new(UnmarkedAsDuplicateEvent) - case "UnpinnedEvent": - x.Interface = new(UnpinnedEvent) - case "UnsubscribedEvent": - x.Interface = new(UnsubscribedEvent) - case "UserBlockedEvent": - x.Interface = new(UserBlockedEvent) - } - return json.Unmarshal(js, x.Interface) -} - -// IssueTimelineItemsConnection (OBJECT): The connection type for IssueTimelineItems. -type IssueTimelineItemsConnection struct { - // Edges: A list of edges. - Edges []*IssueTimelineItemsEdge `json:"edges,omitempty"` - - // FilteredCount: Identifies the count of items after applying `before` and `after` filters. - FilteredCount int `json:"filteredCount,omitempty"` - - // Nodes: A list of nodes. - Nodes []IssueTimelineItems `json:"nodes,omitempty"` - - // PageCount: Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. - PageCount int `json:"pageCount,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` - - // UpdatedAt: Identifies the date and time when the timeline was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *IssueTimelineItemsConnection) GetEdges() []*IssueTimelineItemsEdge { return x.Edges } -func (x *IssueTimelineItemsConnection) GetFilteredCount() int { return x.FilteredCount } -func (x *IssueTimelineItemsConnection) GetNodes() []IssueTimelineItems { return x.Nodes } -func (x *IssueTimelineItemsConnection) GetPageCount() int { return x.PageCount } -func (x *IssueTimelineItemsConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *IssueTimelineItemsConnection) GetTotalCount() int { return x.TotalCount } -func (x *IssueTimelineItemsConnection) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// IssueTimelineItemsEdge (OBJECT): An edge in a connection. -type IssueTimelineItemsEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node IssueTimelineItems `json:"node,omitempty"` -} - -func (x *IssueTimelineItemsEdge) GetCursor() string { return x.Cursor } -func (x *IssueTimelineItemsEdge) GetNode() IssueTimelineItems { return x.Node } - -// IssueTimelineItemsItemType (ENUM): The possible item types found in a timeline. -type IssueTimelineItemsItemType string - -// IssueTimelineItemsItemType_ISSUE_COMMENT: Represents a comment on an Issue. -const IssueTimelineItemsItemType_ISSUE_COMMENT IssueTimelineItemsItemType = "ISSUE_COMMENT" - -// IssueTimelineItemsItemType_CROSS_REFERENCED_EVENT: Represents a mention made by one issue or pull request to another. -const IssueTimelineItemsItemType_CROSS_REFERENCED_EVENT IssueTimelineItemsItemType = "CROSS_REFERENCED_EVENT" - -// IssueTimelineItemsItemType_ADDED_TO_PROJECT_EVENT: Represents a 'added_to_project' event on a given issue or pull request. -const IssueTimelineItemsItemType_ADDED_TO_PROJECT_EVENT IssueTimelineItemsItemType = "ADDED_TO_PROJECT_EVENT" - -// IssueTimelineItemsItemType_ASSIGNED_EVENT: Represents an 'assigned' event on any assignable object. -const IssueTimelineItemsItemType_ASSIGNED_EVENT IssueTimelineItemsItemType = "ASSIGNED_EVENT" - -// IssueTimelineItemsItemType_CLOSED_EVENT: Represents a 'closed' event on any `Closable`. -const IssueTimelineItemsItemType_CLOSED_EVENT IssueTimelineItemsItemType = "CLOSED_EVENT" - -// IssueTimelineItemsItemType_COMMENT_DELETED_EVENT: Represents a 'comment_deleted' event on a given issue or pull request. -const IssueTimelineItemsItemType_COMMENT_DELETED_EVENT IssueTimelineItemsItemType = "COMMENT_DELETED_EVENT" - -// IssueTimelineItemsItemType_CONNECTED_EVENT: Represents a 'connected' event on a given issue or pull request. -const IssueTimelineItemsItemType_CONNECTED_EVENT IssueTimelineItemsItemType = "CONNECTED_EVENT" - -// IssueTimelineItemsItemType_CONVERTED_NOTE_TO_ISSUE_EVENT: Represents a 'converted_note_to_issue' event on a given issue or pull request. -const IssueTimelineItemsItemType_CONVERTED_NOTE_TO_ISSUE_EVENT IssueTimelineItemsItemType = "CONVERTED_NOTE_TO_ISSUE_EVENT" - -// IssueTimelineItemsItemType_CONVERTED_TO_DISCUSSION_EVENT: Represents a 'converted_to_discussion' event on a given issue. -const IssueTimelineItemsItemType_CONVERTED_TO_DISCUSSION_EVENT IssueTimelineItemsItemType = "CONVERTED_TO_DISCUSSION_EVENT" - -// IssueTimelineItemsItemType_DEMILESTONED_EVENT: Represents a 'demilestoned' event on a given issue or pull request. -const IssueTimelineItemsItemType_DEMILESTONED_EVENT IssueTimelineItemsItemType = "DEMILESTONED_EVENT" - -// IssueTimelineItemsItemType_DISCONNECTED_EVENT: Represents a 'disconnected' event on a given issue or pull request. -const IssueTimelineItemsItemType_DISCONNECTED_EVENT IssueTimelineItemsItemType = "DISCONNECTED_EVENT" - -// IssueTimelineItemsItemType_LABELED_EVENT: Represents a 'labeled' event on a given issue or pull request. -const IssueTimelineItemsItemType_LABELED_EVENT IssueTimelineItemsItemType = "LABELED_EVENT" - -// IssueTimelineItemsItemType_LOCKED_EVENT: Represents a 'locked' event on a given issue or pull request. -const IssueTimelineItemsItemType_LOCKED_EVENT IssueTimelineItemsItemType = "LOCKED_EVENT" - -// IssueTimelineItemsItemType_MARKED_AS_DUPLICATE_EVENT: Represents a 'marked_as_duplicate' event on a given issue or pull request. -const IssueTimelineItemsItemType_MARKED_AS_DUPLICATE_EVENT IssueTimelineItemsItemType = "MARKED_AS_DUPLICATE_EVENT" - -// IssueTimelineItemsItemType_MENTIONED_EVENT: Represents a 'mentioned' event on a given issue or pull request. -const IssueTimelineItemsItemType_MENTIONED_EVENT IssueTimelineItemsItemType = "MENTIONED_EVENT" - -// IssueTimelineItemsItemType_MILESTONED_EVENT: Represents a 'milestoned' event on a given issue or pull request. -const IssueTimelineItemsItemType_MILESTONED_EVENT IssueTimelineItemsItemType = "MILESTONED_EVENT" - -// IssueTimelineItemsItemType_MOVED_COLUMNS_IN_PROJECT_EVENT: Represents a 'moved_columns_in_project' event on a given issue or pull request. -const IssueTimelineItemsItemType_MOVED_COLUMNS_IN_PROJECT_EVENT IssueTimelineItemsItemType = "MOVED_COLUMNS_IN_PROJECT_EVENT" - -// IssueTimelineItemsItemType_PINNED_EVENT: Represents a 'pinned' event on a given issue or pull request. -const IssueTimelineItemsItemType_PINNED_EVENT IssueTimelineItemsItemType = "PINNED_EVENT" - -// IssueTimelineItemsItemType_REFERENCED_EVENT: Represents a 'referenced' event on a given `ReferencedSubject`. -const IssueTimelineItemsItemType_REFERENCED_EVENT IssueTimelineItemsItemType = "REFERENCED_EVENT" - -// IssueTimelineItemsItemType_REMOVED_FROM_PROJECT_EVENT: Represents a 'removed_from_project' event on a given issue or pull request. -const IssueTimelineItemsItemType_REMOVED_FROM_PROJECT_EVENT IssueTimelineItemsItemType = "REMOVED_FROM_PROJECT_EVENT" - -// IssueTimelineItemsItemType_RENAMED_TITLE_EVENT: Represents a 'renamed' event on a given issue or pull request. -const IssueTimelineItemsItemType_RENAMED_TITLE_EVENT IssueTimelineItemsItemType = "RENAMED_TITLE_EVENT" - -// IssueTimelineItemsItemType_REOPENED_EVENT: Represents a 'reopened' event on any `Closable`. -const IssueTimelineItemsItemType_REOPENED_EVENT IssueTimelineItemsItemType = "REOPENED_EVENT" - -// IssueTimelineItemsItemType_SUBSCRIBED_EVENT: Represents a 'subscribed' event on a given `Subscribable`. -const IssueTimelineItemsItemType_SUBSCRIBED_EVENT IssueTimelineItemsItemType = "SUBSCRIBED_EVENT" - -// IssueTimelineItemsItemType_TRANSFERRED_EVENT: Represents a 'transferred' event on a given issue or pull request. -const IssueTimelineItemsItemType_TRANSFERRED_EVENT IssueTimelineItemsItemType = "TRANSFERRED_EVENT" - -// IssueTimelineItemsItemType_UNASSIGNED_EVENT: Represents an 'unassigned' event on any assignable object. -const IssueTimelineItemsItemType_UNASSIGNED_EVENT IssueTimelineItemsItemType = "UNASSIGNED_EVENT" - -// IssueTimelineItemsItemType_UNLABELED_EVENT: Represents an 'unlabeled' event on a given issue or pull request. -const IssueTimelineItemsItemType_UNLABELED_EVENT IssueTimelineItemsItemType = "UNLABELED_EVENT" - -// IssueTimelineItemsItemType_UNLOCKED_EVENT: Represents an 'unlocked' event on a given issue or pull request. -const IssueTimelineItemsItemType_UNLOCKED_EVENT IssueTimelineItemsItemType = "UNLOCKED_EVENT" - -// IssueTimelineItemsItemType_USER_BLOCKED_EVENT: Represents a 'user_blocked' event on a given user. -const IssueTimelineItemsItemType_USER_BLOCKED_EVENT IssueTimelineItemsItemType = "USER_BLOCKED_EVENT" - -// IssueTimelineItemsItemType_UNMARKED_AS_DUPLICATE_EVENT: Represents an 'unmarked_as_duplicate' event on a given issue or pull request. -const IssueTimelineItemsItemType_UNMARKED_AS_DUPLICATE_EVENT IssueTimelineItemsItemType = "UNMARKED_AS_DUPLICATE_EVENT" - -// IssueTimelineItemsItemType_UNPINNED_EVENT: Represents an 'unpinned' event on a given issue or pull request. -const IssueTimelineItemsItemType_UNPINNED_EVENT IssueTimelineItemsItemType = "UNPINNED_EVENT" - -// IssueTimelineItemsItemType_UNSUBSCRIBED_EVENT: Represents an 'unsubscribed' event on a given `Subscribable`. -const IssueTimelineItemsItemType_UNSUBSCRIBED_EVENT IssueTimelineItemsItemType = "UNSUBSCRIBED_EVENT" - -// JoinedGitHubContribution (OBJECT): Represents a user signing up for a GitHub account. -type JoinedGitHubContribution struct { - // IsRestricted: Whether this contribution is associated with a record you do not have access to. For - // example, your own 'first issue' contribution may have been made on a repository you can no - // longer access. - // . - IsRestricted bool `json:"isRestricted,omitempty"` - - // OccurredAt: When this contribution was made. - OccurredAt DateTime `json:"occurredAt,omitempty"` - - // ResourcePath: The HTTP path for this contribution. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this contribution. - Url URI `json:"url,omitempty"` - - // User: The user who made this contribution. - // . - User *User `json:"user,omitempty"` -} - -func (x *JoinedGitHubContribution) GetIsRestricted() bool { return x.IsRestricted } -func (x *JoinedGitHubContribution) GetOccurredAt() DateTime { return x.OccurredAt } -func (x *JoinedGitHubContribution) GetResourcePath() URI { return x.ResourcePath } -func (x *JoinedGitHubContribution) GetUrl() URI { return x.Url } -func (x *JoinedGitHubContribution) GetUser() *User { return x.User } - -// Label (OBJECT): A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. -type Label struct { - // Color: Identifies the label color. - Color string `json:"color,omitempty"` - - // CreatedAt: Identifies the date and time when the label was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Description: A brief description of this label. - Description string `json:"description,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsDefault: Indicates whether or not this is a default label. - IsDefault bool `json:"isDefault,omitempty"` - - // Issues: A list of issues associated with this label. - // - // Query arguments: - // - orderBy IssueOrder - // - labels [String!] - // - states [IssueState!] - // - filterBy IssueFilters - // - after String - // - before String - // - first Int - // - last Int - Issues *IssueConnection `json:"issues,omitempty"` - - // Name: Identifies the label name. - Name string `json:"name,omitempty"` - - // PullRequests: A list of pull requests associated with this label. - // - // Query arguments: - // - states [PullRequestState!] - // - labels [String!] - // - headRefName String - // - baseRefName String - // - orderBy IssueOrder - // - after String - // - before String - // - first Int - // - last Int - PullRequests *PullRequestConnection `json:"pullRequests,omitempty"` - - // Repository: The repository associated with this label. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this label. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the label was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this label. - Url URI `json:"url,omitempty"` -} - -func (x *Label) GetColor() string { return x.Color } -func (x *Label) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Label) GetDescription() string { return x.Description } -func (x *Label) GetId() ID { return x.Id } -func (x *Label) GetIsDefault() bool { return x.IsDefault } -func (x *Label) GetIssues() *IssueConnection { return x.Issues } -func (x *Label) GetName() string { return x.Name } -func (x *Label) GetPullRequests() *PullRequestConnection { return x.PullRequests } -func (x *Label) GetRepository() *Repository { return x.Repository } -func (x *Label) GetResourcePath() URI { return x.ResourcePath } -func (x *Label) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Label) GetUrl() URI { return x.Url } - -// LabelConnection (OBJECT): The connection type for Label. -type LabelConnection struct { - // Edges: A list of edges. - Edges []*LabelEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Label `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *LabelConnection) GetEdges() []*LabelEdge { return x.Edges } -func (x *LabelConnection) GetNodes() []*Label { return x.Nodes } -func (x *LabelConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *LabelConnection) GetTotalCount() int { return x.TotalCount } - -// LabelEdge (OBJECT): An edge in a connection. -type LabelEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Label `json:"node,omitempty"` -} - -func (x *LabelEdge) GetCursor() string { return x.Cursor } -func (x *LabelEdge) GetNode() *Label { return x.Node } - -// LabelOrder (INPUT_OBJECT): Ways in which lists of labels can be ordered upon return. -type LabelOrder struct { - // Field: The field in which to order labels by. - // - // GraphQL type: LabelOrderField! - Field LabelOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order labels by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// LabelOrderField (ENUM): Properties by which label connections can be ordered. -type LabelOrderField string - -// LabelOrderField_NAME: Order labels by name . -const LabelOrderField_NAME LabelOrderField = "NAME" - -// LabelOrderField_CREATED_AT: Order labels by creation time. -const LabelOrderField_CREATED_AT LabelOrderField = "CREATED_AT" - -// Labelable (INTERFACE): An object that can have labels assigned to it. -// Labelable_Interface: An object that can have labels assigned to it. -// -// Possible types: -// -// - *Discussion -// - *Issue -// - *PullRequest -type Labelable_Interface interface { - isLabelable() - GetLabels() *LabelConnection -} - -func (*Discussion) isLabelable() {} -func (*Issue) isLabelable() {} -func (*PullRequest) isLabelable() {} - -type Labelable struct { - Interface Labelable_Interface -} - -func (x *Labelable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Labelable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Labelable", info.Typename) - case "Discussion": - x.Interface = new(Discussion) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// LabeledEvent (OBJECT): Represents a 'labeled' event on a given issue or pull request. -type LabeledEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Label: Identifies the label associated with the 'labeled' event. - Label *Label `json:"label,omitempty"` - - // Labelable: Identifies the `Labelable` associated with the event. - Labelable Labelable `json:"labelable,omitempty"` -} - -func (x *LabeledEvent) GetActor() Actor { return x.Actor } -func (x *LabeledEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *LabeledEvent) GetId() ID { return x.Id } -func (x *LabeledEvent) GetLabel() *Label { return x.Label } -func (x *LabeledEvent) GetLabelable() Labelable { return x.Labelable } - -// Language (OBJECT): Represents a given language found in repositories. -type Language struct { - // Color: The color defined for the current language. - Color string `json:"color,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The name of the current language. - Name string `json:"name,omitempty"` -} - -func (x *Language) GetColor() string { return x.Color } -func (x *Language) GetId() ID { return x.Id } -func (x *Language) GetName() string { return x.Name } - -// LanguageConnection (OBJECT): A list of languages associated with the parent. -type LanguageConnection struct { - // Edges: A list of edges. - Edges []*LanguageEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Language `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` - - // TotalSize: The total size in bytes of files written in that language. - TotalSize int `json:"totalSize,omitempty"` -} - -func (x *LanguageConnection) GetEdges() []*LanguageEdge { return x.Edges } -func (x *LanguageConnection) GetNodes() []*Language { return x.Nodes } -func (x *LanguageConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *LanguageConnection) GetTotalCount() int { return x.TotalCount } -func (x *LanguageConnection) GetTotalSize() int { return x.TotalSize } - -// LanguageEdge (OBJECT): Represents the language of a repository. -type LanguageEdge struct { - // Cursor: undocumented. - Cursor string `json:"cursor,omitempty"` - - // Node: undocumented. - Node *Language `json:"node,omitempty"` - - // Size: The number of bytes of code written in the language. - Size int `json:"size,omitempty"` -} - -func (x *LanguageEdge) GetCursor() string { return x.Cursor } -func (x *LanguageEdge) GetNode() *Language { return x.Node } -func (x *LanguageEdge) GetSize() int { return x.Size } - -// LanguageOrder (INPUT_OBJECT): Ordering options for language connections. -type LanguageOrder struct { - // Field: The field to order languages by. - // - // GraphQL type: LanguageOrderField! - Field LanguageOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// LanguageOrderField (ENUM): Properties by which language connections can be ordered. -type LanguageOrderField string - -// LanguageOrderField_SIZE: Order languages by the size of all files containing the language. -const LanguageOrderField_SIZE LanguageOrderField = "SIZE" - -// License (OBJECT): A repository's open source license. -type License struct { - // Body: The full text of the license. - Body string `json:"body,omitempty"` - - // Conditions: The conditions set by the license. - Conditions []*LicenseRule `json:"conditions,omitempty"` - - // Description: A human-readable description of the license. - Description string `json:"description,omitempty"` - - // Featured: Whether the license should be featured. - Featured bool `json:"featured,omitempty"` - - // Hidden: Whether the license should be displayed in license pickers. - Hidden bool `json:"hidden,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Implementation: Instructions on how to implement the license. - Implementation string `json:"implementation,omitempty"` - - // Key: The lowercased SPDX ID of the license. - Key string `json:"key,omitempty"` - - // Limitations: The limitations set by the license. - Limitations []*LicenseRule `json:"limitations,omitempty"` - - // Name: The license full name specified by . - Name string `json:"name,omitempty"` - - // Nickname: Customary short name if applicable (e.g, GPLv3). - Nickname string `json:"nickname,omitempty"` - - // Permissions: The permissions set by the license. - Permissions []*LicenseRule `json:"permissions,omitempty"` - - // PseudoLicense: Whether the license is a pseudo-license placeholder (e.g., other, no-license). - PseudoLicense bool `json:"pseudoLicense,omitempty"` - - // SpdxId: Short identifier specified by . - SpdxId string `json:"spdxId,omitempty"` - - // Url: URL to the license on . - Url URI `json:"url,omitempty"` -} - -func (x *License) GetBody() string { return x.Body } -func (x *License) GetConditions() []*LicenseRule { return x.Conditions } -func (x *License) GetDescription() string { return x.Description } -func (x *License) GetFeatured() bool { return x.Featured } -func (x *License) GetHidden() bool { return x.Hidden } -func (x *License) GetId() ID { return x.Id } -func (x *License) GetImplementation() string { return x.Implementation } -func (x *License) GetKey() string { return x.Key } -func (x *License) GetLimitations() []*LicenseRule { return x.Limitations } -func (x *License) GetName() string { return x.Name } -func (x *License) GetNickname() string { return x.Nickname } -func (x *License) GetPermissions() []*LicenseRule { return x.Permissions } -func (x *License) GetPseudoLicense() bool { return x.PseudoLicense } -func (x *License) GetSpdxId() string { return x.SpdxId } -func (x *License) GetUrl() URI { return x.Url } - -// LicenseRule (OBJECT): Describes a License's conditions, permissions, and limitations. -type LicenseRule struct { - // Description: A description of the rule. - Description string `json:"description,omitempty"` - - // Key: The machine-readable rule key. - Key string `json:"key,omitempty"` - - // Label: The human-readable rule label. - Label string `json:"label,omitempty"` -} - -func (x *LicenseRule) GetDescription() string { return x.Description } -func (x *LicenseRule) GetKey() string { return x.Key } -func (x *LicenseRule) GetLabel() string { return x.Label } - -// LinkRepositoryToProjectInput (INPUT_OBJECT): Autogenerated input type of LinkRepositoryToProject. -type LinkRepositoryToProjectInput struct { - // ProjectId: The ID of the Project to link to a Repository. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // RepositoryId: The ID of the Repository to link to a Project. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// LinkRepositoryToProjectPayload (OBJECT): Autogenerated return type of LinkRepositoryToProject. -type LinkRepositoryToProjectPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Project: The linked Project. - Project *Project `json:"project,omitempty"` - - // Repository: The linked Repository. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *LinkRepositoryToProjectPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *LinkRepositoryToProjectPayload) GetProject() *Project { return x.Project } -func (x *LinkRepositoryToProjectPayload) GetRepository() *Repository { return x.Repository } - -// LockLockableInput (INPUT_OBJECT): Autogenerated input type of LockLockable. -type LockLockableInput struct { - // LockableId: ID of the item to be locked. - // - // GraphQL type: ID! - LockableId ID `json:"lockableId,omitempty"` - - // LockReason: A reason for why the item will be locked. - // - // GraphQL type: LockReason - LockReason LockReason `json:"lockReason,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// LockLockablePayload (OBJECT): Autogenerated return type of LockLockable. -type LockLockablePayload struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // LockedRecord: The item that was locked. - LockedRecord Lockable `json:"lockedRecord,omitempty"` -} - -func (x *LockLockablePayload) GetActor() Actor { return x.Actor } -func (x *LockLockablePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *LockLockablePayload) GetLockedRecord() Lockable { return x.LockedRecord } - -// LockReason (ENUM): The possible reasons that an issue or pull request was locked. -type LockReason string - -// LockReason_OFF_TOPIC: The issue or pull request was locked because the conversation was off-topic. -const LockReason_OFF_TOPIC LockReason = "OFF_TOPIC" - -// LockReason_TOO_HEATED: The issue or pull request was locked because the conversation was too heated. -const LockReason_TOO_HEATED LockReason = "TOO_HEATED" - -// LockReason_RESOLVED: The issue or pull request was locked because the conversation was resolved. -const LockReason_RESOLVED LockReason = "RESOLVED" - -// LockReason_SPAM: The issue or pull request was locked because the conversation was spam. -const LockReason_SPAM LockReason = "SPAM" - -// Lockable (INTERFACE): An object that can be locked. -// Lockable_Interface: An object that can be locked. -// -// Possible types: -// -// - *Discussion -// - *Issue -// - *PullRequest -type Lockable_Interface interface { - isLockable() - GetActiveLockReason() LockReason - GetLocked() bool -} - -func (*Discussion) isLockable() {} -func (*Issue) isLockable() {} -func (*PullRequest) isLockable() {} - -type Lockable struct { - Interface Lockable_Interface -} - -func (x *Lockable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Lockable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Lockable", info.Typename) - case "Discussion": - x.Interface = new(Discussion) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// LockedEvent (OBJECT): Represents a 'locked' event on a given issue or pull request. -type LockedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // LockReason: Reason that the conversation was locked (optional). - LockReason LockReason `json:"lockReason,omitempty"` - - // Lockable: Object that was locked. - Lockable Lockable `json:"lockable,omitempty"` -} - -func (x *LockedEvent) GetActor() Actor { return x.Actor } -func (x *LockedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *LockedEvent) GetId() ID { return x.Id } -func (x *LockedEvent) GetLockReason() LockReason { return x.LockReason } -func (x *LockedEvent) GetLockable() Lockable { return x.Lockable } - -// Mannequin (OBJECT): A placeholder user for attribution of imported data on GitHub. -type Mannequin struct { - // AvatarUrl: A URL pointing to the GitHub App's public avatar. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // Claimant: The user that has claimed the data attributed to this mannequin. - Claimant *User `json:"claimant,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Email: The mannequin's email on the source instance. - Email string `json:"email,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Login: The username of the actor. - Login string `json:"login,omitempty"` - - // ResourcePath: The HTML path to this resource. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The URL to this resource. - Url URI `json:"url,omitempty"` -} - -func (x *Mannequin) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *Mannequin) GetClaimant() *User { return x.Claimant } -func (x *Mannequin) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Mannequin) GetDatabaseId() int { return x.DatabaseId } -func (x *Mannequin) GetEmail() string { return x.Email } -func (x *Mannequin) GetId() ID { return x.Id } -func (x *Mannequin) GetLogin() string { return x.Login } -func (x *Mannequin) GetResourcePath() URI { return x.ResourcePath } -func (x *Mannequin) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Mannequin) GetUrl() URI { return x.Url } - -// MarkDiscussionCommentAsAnswerInput (INPUT_OBJECT): Autogenerated input type of MarkDiscussionCommentAsAnswer. -type MarkDiscussionCommentAsAnswerInput struct { - // Id: The Node ID of the discussion comment to mark as an answer. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// MarkDiscussionCommentAsAnswerPayload (OBJECT): Autogenerated return type of MarkDiscussionCommentAsAnswer. -type MarkDiscussionCommentAsAnswerPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Discussion: The discussion that includes the chosen comment. - Discussion *Discussion `json:"discussion,omitempty"` -} - -func (x *MarkDiscussionCommentAsAnswerPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *MarkDiscussionCommentAsAnswerPayload) GetDiscussion() *Discussion { return x.Discussion } - -// MarkFileAsViewedInput (INPUT_OBJECT): Autogenerated input type of MarkFileAsViewed. -type MarkFileAsViewedInput struct { - // PullRequestId: The Node ID of the pull request. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // Path: The path of the file to mark as viewed. - // - // GraphQL type: String! - Path string `json:"path,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// MarkFileAsViewedPayload (OBJECT): Autogenerated return type of MarkFileAsViewed. -type MarkFileAsViewedPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The updated pull request. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *MarkFileAsViewedPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *MarkFileAsViewedPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// MarkPullRequestReadyForReviewInput (INPUT_OBJECT): Autogenerated input type of MarkPullRequestReadyForReview. -type MarkPullRequestReadyForReviewInput struct { - // PullRequestId: ID of the pull request to be marked as ready for review. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// MarkPullRequestReadyForReviewPayload (OBJECT): Autogenerated return type of MarkPullRequestReadyForReview. -type MarkPullRequestReadyForReviewPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The pull request that is ready for review. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *MarkPullRequestReadyForReviewPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *MarkPullRequestReadyForReviewPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// MarkedAsDuplicateEvent (OBJECT): Represents a 'marked_as_duplicate' event on a given issue or pull request. -type MarkedAsDuplicateEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // Canonical: The authoritative issue or pull request which has been duplicated by another. - Canonical IssueOrPullRequest `json:"canonical,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Duplicate: The issue or pull request which has been marked as a duplicate of another. - Duplicate IssueOrPullRequest `json:"duplicate,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCrossRepository: Canonical and duplicate belong to different repositories. - IsCrossRepository bool `json:"isCrossRepository,omitempty"` -} - -func (x *MarkedAsDuplicateEvent) GetActor() Actor { return x.Actor } -func (x *MarkedAsDuplicateEvent) GetCanonical() IssueOrPullRequest { return x.Canonical } -func (x *MarkedAsDuplicateEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *MarkedAsDuplicateEvent) GetDuplicate() IssueOrPullRequest { return x.Duplicate } -func (x *MarkedAsDuplicateEvent) GetId() ID { return x.Id } -func (x *MarkedAsDuplicateEvent) GetIsCrossRepository() bool { return x.IsCrossRepository } - -// MarketplaceCategory (OBJECT): A public description of a Marketplace category. -type MarketplaceCategory struct { - // Description: The category's description. - Description string `json:"description,omitempty"` - - // HowItWorks: The technical description of how apps listed in this category work with GitHub. - HowItWorks string `json:"howItWorks,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The category's name. - Name string `json:"name,omitempty"` - - // PrimaryListingCount: How many Marketplace listings have this as their primary category. - PrimaryListingCount int `json:"primaryListingCount,omitempty"` - - // ResourcePath: The HTTP path for this Marketplace category. - ResourcePath URI `json:"resourcePath,omitempty"` - - // SecondaryListingCount: How many Marketplace listings have this as their secondary category. - SecondaryListingCount int `json:"secondaryListingCount,omitempty"` - - // Slug: The short name of the category used in its URL. - Slug string `json:"slug,omitempty"` - - // Url: The HTTP URL for this Marketplace category. - Url URI `json:"url,omitempty"` -} - -func (x *MarketplaceCategory) GetDescription() string { return x.Description } -func (x *MarketplaceCategory) GetHowItWorks() string { return x.HowItWorks } -func (x *MarketplaceCategory) GetId() ID { return x.Id } -func (x *MarketplaceCategory) GetName() string { return x.Name } -func (x *MarketplaceCategory) GetPrimaryListingCount() int { return x.PrimaryListingCount } -func (x *MarketplaceCategory) GetResourcePath() URI { return x.ResourcePath } -func (x *MarketplaceCategory) GetSecondaryListingCount() int { return x.SecondaryListingCount } -func (x *MarketplaceCategory) GetSlug() string { return x.Slug } -func (x *MarketplaceCategory) GetUrl() URI { return x.Url } - -// MarketplaceListing (OBJECT): A listing in the GitHub integration marketplace. -type MarketplaceListing struct { - // App: The GitHub App this listing represents. - App *App `json:"app,omitempty"` - - // CompanyUrl: URL to the listing owner's company site. - CompanyUrl URI `json:"companyUrl,omitempty"` - - // ConfigurationResourcePath: The HTTP path for configuring access to the listing's integration or OAuth app. - ConfigurationResourcePath URI `json:"configurationResourcePath,omitempty"` - - // ConfigurationUrl: The HTTP URL for configuring access to the listing's integration or OAuth app. - ConfigurationUrl URI `json:"configurationUrl,omitempty"` - - // DocumentationUrl: URL to the listing's documentation. - DocumentationUrl URI `json:"documentationUrl,omitempty"` - - // ExtendedDescription: The listing's detailed description. - ExtendedDescription string `json:"extendedDescription,omitempty"` - - // ExtendedDescriptionHTML: The listing's detailed description rendered to HTML. - ExtendedDescriptionHTML template.HTML `json:"extendedDescriptionHTML,omitempty"` - - // FullDescription: The listing's introductory description. - FullDescription string `json:"fullDescription,omitempty"` - - // FullDescriptionHTML: The listing's introductory description rendered to HTML. - FullDescriptionHTML template.HTML `json:"fullDescriptionHTML,omitempty"` - - // HasPublishedFreeTrialPlans: Does this listing have any plans with a free trial?. - HasPublishedFreeTrialPlans bool `json:"hasPublishedFreeTrialPlans,omitempty"` - - // HasTermsOfService: Does this listing have a terms of service link?. - HasTermsOfService bool `json:"hasTermsOfService,omitempty"` - - // HasVerifiedOwner: Whether the creator of the app is a verified org. - HasVerifiedOwner bool `json:"hasVerifiedOwner,omitempty"` - - // HowItWorks: A technical description of how this app works with GitHub. - HowItWorks string `json:"howItWorks,omitempty"` - - // HowItWorksHTML: The listing's technical description rendered to HTML. - HowItWorksHTML template.HTML `json:"howItWorksHTML,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // InstallationUrl: URL to install the product to the viewer's account or organization. - InstallationUrl URI `json:"installationUrl,omitempty"` - - // InstalledForViewer: Whether this listing's app has been installed for the current viewer. - InstalledForViewer bool `json:"installedForViewer,omitempty"` - - // IsArchived: Whether this listing has been removed from the Marketplace. - IsArchived bool `json:"isArchived,omitempty"` - - // IsDraft: Whether this listing is still an editable draft that has not been submitted for review and is not publicly visible in the Marketplace. - IsDraft bool `json:"isDraft,omitempty"` - - // IsPaid: Whether the product this listing represents is available as part of a paid plan. - IsPaid bool `json:"isPaid,omitempty"` - - // IsPublic: Whether this listing has been approved for display in the Marketplace. - IsPublic bool `json:"isPublic,omitempty"` - - // IsRejected: Whether this listing has been rejected by GitHub for display in the Marketplace. - IsRejected bool `json:"isRejected,omitempty"` - - // IsUnverified: Whether this listing has been approved for unverified display in the Marketplace. - IsUnverified bool `json:"isUnverified,omitempty"` - - // IsUnverifiedPending: Whether this draft listing has been submitted for review for approval to be unverified in the Marketplace. - IsUnverifiedPending bool `json:"isUnverifiedPending,omitempty"` - - // IsVerificationPendingFromDraft: Whether this draft listing has been submitted for review from GitHub for approval to be verified in the Marketplace. - IsVerificationPendingFromDraft bool `json:"isVerificationPendingFromDraft,omitempty"` - - // IsVerificationPendingFromUnverified: Whether this unverified listing has been submitted for review from GitHub for approval to be verified in the Marketplace. - IsVerificationPendingFromUnverified bool `json:"isVerificationPendingFromUnverified,omitempty"` - - // IsVerified: Whether this listing has been approved for verified display in the Marketplace. - IsVerified bool `json:"isVerified,omitempty"` - - // LogoBackgroundColor: The hex color code, without the leading '#', for the logo background. - LogoBackgroundColor string `json:"logoBackgroundColor,omitempty"` - - // LogoUrl: URL for the listing's logo image. - // - // Query arguments: - // - size Int - LogoUrl URI `json:"logoUrl,omitempty"` - - // Name: The listing's full name. - Name string `json:"name,omitempty"` - - // NormalizedShortDescription: The listing's very short description without a trailing period or ampersands. - NormalizedShortDescription string `json:"normalizedShortDescription,omitempty"` - - // PricingUrl: URL to the listing's detailed pricing. - PricingUrl URI `json:"pricingUrl,omitempty"` - - // PrimaryCategory: The category that best describes the listing. - PrimaryCategory *MarketplaceCategory `json:"primaryCategory,omitempty"` - - // PrivacyPolicyUrl: URL to the listing's privacy policy, may return an empty string for listings that do not require a privacy policy URL. - PrivacyPolicyUrl URI `json:"privacyPolicyUrl,omitempty"` - - // ResourcePath: The HTTP path for the Marketplace listing. - ResourcePath URI `json:"resourcePath,omitempty"` - - // ScreenshotUrls: The URLs for the listing's screenshots. - ScreenshotUrls []string `json:"screenshotUrls,omitempty"` - - // SecondaryCategory: An alternate category that describes the listing. - SecondaryCategory *MarketplaceCategory `json:"secondaryCategory,omitempty"` - - // ShortDescription: The listing's very short description. - ShortDescription string `json:"shortDescription,omitempty"` - - // Slug: The short name of the listing used in its URL. - Slug string `json:"slug,omitempty"` - - // StatusUrl: URL to the listing's status page. - StatusUrl URI `json:"statusUrl,omitempty"` - - // SupportEmail: An email address for support for this listing's app. - SupportEmail string `json:"supportEmail,omitempty"` - - // SupportUrl: Either a URL or an email address for support for this listing's app, may return an empty string for listings that do not require a support URL. - SupportUrl URI `json:"supportUrl,omitempty"` - - // TermsOfServiceUrl: URL to the listing's terms of service. - TermsOfServiceUrl URI `json:"termsOfServiceUrl,omitempty"` - - // Url: The HTTP URL for the Marketplace listing. - Url URI `json:"url,omitempty"` - - // ViewerCanAddPlans: Can the current viewer add plans for this Marketplace listing. - ViewerCanAddPlans bool `json:"viewerCanAddPlans,omitempty"` - - // ViewerCanApprove: Can the current viewer approve this Marketplace listing. - ViewerCanApprove bool `json:"viewerCanApprove,omitempty"` - - // ViewerCanDelist: Can the current viewer delist this Marketplace listing. - ViewerCanDelist bool `json:"viewerCanDelist,omitempty"` - - // ViewerCanEdit: Can the current viewer edit this Marketplace listing. - ViewerCanEdit bool `json:"viewerCanEdit,omitempty"` - - // ViewerCanEditCategories: Can the current viewer edit the primary and secondary category of this - // Marketplace listing. - // . - ViewerCanEditCategories bool `json:"viewerCanEditCategories,omitempty"` - - // ViewerCanEditPlans: Can the current viewer edit the plans for this Marketplace listing. - ViewerCanEditPlans bool `json:"viewerCanEditPlans,omitempty"` - - // ViewerCanRedraft: Can the current viewer return this Marketplace listing to draft state - // so it becomes editable again. - // . - ViewerCanRedraft bool `json:"viewerCanRedraft,omitempty"` - - // ViewerCanReject: Can the current viewer reject this Marketplace listing by returning it to - // an editable draft state or rejecting it entirely. - // . - ViewerCanReject bool `json:"viewerCanReject,omitempty"` - - // ViewerCanRequestApproval: Can the current viewer request this listing be reviewed for display in - // the Marketplace as verified. - // . - ViewerCanRequestApproval bool `json:"viewerCanRequestApproval,omitempty"` - - // ViewerHasPurchased: Indicates whether the current user has an active subscription to this Marketplace listing. - // . - ViewerHasPurchased bool `json:"viewerHasPurchased,omitempty"` - - // ViewerHasPurchasedForAllOrganizations: Indicates if the current user has purchased a subscription to this Marketplace listing - // for all of the organizations the user owns. - // . - ViewerHasPurchasedForAllOrganizations bool `json:"viewerHasPurchasedForAllOrganizations,omitempty"` - - // ViewerIsListingAdmin: Does the current viewer role allow them to administer this Marketplace listing. - // . - ViewerIsListingAdmin bool `json:"viewerIsListingAdmin,omitempty"` -} - -func (x *MarketplaceListing) GetApp() *App { return x.App } -func (x *MarketplaceListing) GetCompanyUrl() URI { return x.CompanyUrl } -func (x *MarketplaceListing) GetConfigurationResourcePath() URI { return x.ConfigurationResourcePath } -func (x *MarketplaceListing) GetConfigurationUrl() URI { return x.ConfigurationUrl } -func (x *MarketplaceListing) GetDocumentationUrl() URI { return x.DocumentationUrl } -func (x *MarketplaceListing) GetExtendedDescription() string { return x.ExtendedDescription } -func (x *MarketplaceListing) GetExtendedDescriptionHTML() template.HTML { - return x.ExtendedDescriptionHTML -} -func (x *MarketplaceListing) GetFullDescription() string { return x.FullDescription } -func (x *MarketplaceListing) GetFullDescriptionHTML() template.HTML { return x.FullDescriptionHTML } -func (x *MarketplaceListing) GetHasPublishedFreeTrialPlans() bool { - return x.HasPublishedFreeTrialPlans -} -func (x *MarketplaceListing) GetHasTermsOfService() bool { return x.HasTermsOfService } -func (x *MarketplaceListing) GetHasVerifiedOwner() bool { return x.HasVerifiedOwner } -func (x *MarketplaceListing) GetHowItWorks() string { return x.HowItWorks } -func (x *MarketplaceListing) GetHowItWorksHTML() template.HTML { return x.HowItWorksHTML } -func (x *MarketplaceListing) GetId() ID { return x.Id } -func (x *MarketplaceListing) GetInstallationUrl() URI { return x.InstallationUrl } -func (x *MarketplaceListing) GetInstalledForViewer() bool { return x.InstalledForViewer } -func (x *MarketplaceListing) GetIsArchived() bool { return x.IsArchived } -func (x *MarketplaceListing) GetIsDraft() bool { return x.IsDraft } -func (x *MarketplaceListing) GetIsPaid() bool { return x.IsPaid } -func (x *MarketplaceListing) GetIsPublic() bool { return x.IsPublic } -func (x *MarketplaceListing) GetIsRejected() bool { return x.IsRejected } -func (x *MarketplaceListing) GetIsUnverified() bool { return x.IsUnverified } -func (x *MarketplaceListing) GetIsUnverifiedPending() bool { return x.IsUnverifiedPending } -func (x *MarketplaceListing) GetIsVerificationPendingFromDraft() bool { - return x.IsVerificationPendingFromDraft -} -func (x *MarketplaceListing) GetIsVerificationPendingFromUnverified() bool { - return x.IsVerificationPendingFromUnverified -} -func (x *MarketplaceListing) GetIsVerified() bool { return x.IsVerified } -func (x *MarketplaceListing) GetLogoBackgroundColor() string { return x.LogoBackgroundColor } -func (x *MarketplaceListing) GetLogoUrl() URI { return x.LogoUrl } -func (x *MarketplaceListing) GetName() string { return x.Name } -func (x *MarketplaceListing) GetNormalizedShortDescription() string { - return x.NormalizedShortDescription -} -func (x *MarketplaceListing) GetPricingUrl() URI { return x.PricingUrl } -func (x *MarketplaceListing) GetPrimaryCategory() *MarketplaceCategory { return x.PrimaryCategory } -func (x *MarketplaceListing) GetPrivacyPolicyUrl() URI { return x.PrivacyPolicyUrl } -func (x *MarketplaceListing) GetResourcePath() URI { return x.ResourcePath } -func (x *MarketplaceListing) GetScreenshotUrls() []string { return x.ScreenshotUrls } -func (x *MarketplaceListing) GetSecondaryCategory() *MarketplaceCategory { return x.SecondaryCategory } -func (x *MarketplaceListing) GetShortDescription() string { return x.ShortDescription } -func (x *MarketplaceListing) GetSlug() string { return x.Slug } -func (x *MarketplaceListing) GetStatusUrl() URI { return x.StatusUrl } -func (x *MarketplaceListing) GetSupportEmail() string { return x.SupportEmail } -func (x *MarketplaceListing) GetSupportUrl() URI { return x.SupportUrl } -func (x *MarketplaceListing) GetTermsOfServiceUrl() URI { return x.TermsOfServiceUrl } -func (x *MarketplaceListing) GetUrl() URI { return x.Url } -func (x *MarketplaceListing) GetViewerCanAddPlans() bool { return x.ViewerCanAddPlans } -func (x *MarketplaceListing) GetViewerCanApprove() bool { return x.ViewerCanApprove } -func (x *MarketplaceListing) GetViewerCanDelist() bool { return x.ViewerCanDelist } -func (x *MarketplaceListing) GetViewerCanEdit() bool { return x.ViewerCanEdit } -func (x *MarketplaceListing) GetViewerCanEditCategories() bool { return x.ViewerCanEditCategories } -func (x *MarketplaceListing) GetViewerCanEditPlans() bool { return x.ViewerCanEditPlans } -func (x *MarketplaceListing) GetViewerCanRedraft() bool { return x.ViewerCanRedraft } -func (x *MarketplaceListing) GetViewerCanReject() bool { return x.ViewerCanReject } -func (x *MarketplaceListing) GetViewerCanRequestApproval() bool { return x.ViewerCanRequestApproval } -func (x *MarketplaceListing) GetViewerHasPurchased() bool { return x.ViewerHasPurchased } -func (x *MarketplaceListing) GetViewerHasPurchasedForAllOrganizations() bool { - return x.ViewerHasPurchasedForAllOrganizations -} -func (x *MarketplaceListing) GetViewerIsListingAdmin() bool { return x.ViewerIsListingAdmin } - -// MarketplaceListingConnection (OBJECT): Look up Marketplace Listings. -type MarketplaceListingConnection struct { - // Edges: A list of edges. - Edges []*MarketplaceListingEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*MarketplaceListing `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *MarketplaceListingConnection) GetEdges() []*MarketplaceListingEdge { return x.Edges } -func (x *MarketplaceListingConnection) GetNodes() []*MarketplaceListing { return x.Nodes } -func (x *MarketplaceListingConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *MarketplaceListingConnection) GetTotalCount() int { return x.TotalCount } - -// MarketplaceListingEdge (OBJECT): An edge in a connection. -type MarketplaceListingEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *MarketplaceListing `json:"node,omitempty"` -} - -func (x *MarketplaceListingEdge) GetCursor() string { return x.Cursor } -func (x *MarketplaceListingEdge) GetNode() *MarketplaceListing { return x.Node } - -// MemberStatusable (INTERFACE): Entities that have members who can set status messages. -// MemberStatusable_Interface: Entities that have members who can set status messages. -// -// Possible types: -// -// - *Organization -// - *Team -type MemberStatusable_Interface interface { - isMemberStatusable() - GetMemberStatuses() *UserStatusConnection -} - -func (*Organization) isMemberStatusable() {} -func (*Team) isMemberStatusable() {} - -type MemberStatusable struct { - Interface MemberStatusable_Interface -} - -func (x *MemberStatusable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *MemberStatusable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for MemberStatusable", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "Team": - x.Interface = new(Team) - } - return json.Unmarshal(js, x.Interface) -} - -// MembersCanDeleteReposClearAuditEntry (OBJECT): Audit log entry for a members_can_delete_repos.clear event. -type MembersCanDeleteReposClearAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // EnterpriseResourcePath: The HTTP path for this enterprise. - EnterpriseResourcePath URI `json:"enterpriseResourcePath,omitempty"` - - // EnterpriseSlug: The slug of the enterprise. - EnterpriseSlug string `json:"enterpriseSlug,omitempty"` - - // EnterpriseUrl: The HTTP URL for this enterprise. - EnterpriseUrl URI `json:"enterpriseUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *MembersCanDeleteReposClearAuditEntry) GetAction() string { return x.Action } -func (x *MembersCanDeleteReposClearAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *MembersCanDeleteReposClearAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *MembersCanDeleteReposClearAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *MembersCanDeleteReposClearAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *MembersCanDeleteReposClearAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *MembersCanDeleteReposClearAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *MembersCanDeleteReposClearAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *MembersCanDeleteReposClearAuditEntry) GetEnterpriseResourcePath() URI { - return x.EnterpriseResourcePath -} -func (x *MembersCanDeleteReposClearAuditEntry) GetEnterpriseSlug() string { return x.EnterpriseSlug } -func (x *MembersCanDeleteReposClearAuditEntry) GetEnterpriseUrl() URI { return x.EnterpriseUrl } -func (x *MembersCanDeleteReposClearAuditEntry) GetId() ID { return x.Id } -func (x *MembersCanDeleteReposClearAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *MembersCanDeleteReposClearAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *MembersCanDeleteReposClearAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *MembersCanDeleteReposClearAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *MembersCanDeleteReposClearAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *MembersCanDeleteReposClearAuditEntry) GetUser() *User { return x.User } -func (x *MembersCanDeleteReposClearAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *MembersCanDeleteReposClearAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *MembersCanDeleteReposClearAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// MembersCanDeleteReposDisableAuditEntry (OBJECT): Audit log entry for a members_can_delete_repos.disable event. -type MembersCanDeleteReposDisableAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // EnterpriseResourcePath: The HTTP path for this enterprise. - EnterpriseResourcePath URI `json:"enterpriseResourcePath,omitempty"` - - // EnterpriseSlug: The slug of the enterprise. - EnterpriseSlug string `json:"enterpriseSlug,omitempty"` - - // EnterpriseUrl: The HTTP URL for this enterprise. - EnterpriseUrl URI `json:"enterpriseUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *MembersCanDeleteReposDisableAuditEntry) GetAction() string { return x.Action } -func (x *MembersCanDeleteReposDisableAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *MembersCanDeleteReposDisableAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *MembersCanDeleteReposDisableAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *MembersCanDeleteReposDisableAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *MembersCanDeleteReposDisableAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *MembersCanDeleteReposDisableAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *MembersCanDeleteReposDisableAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *MembersCanDeleteReposDisableAuditEntry) GetEnterpriseResourcePath() URI { - return x.EnterpriseResourcePath -} -func (x *MembersCanDeleteReposDisableAuditEntry) GetEnterpriseSlug() string { return x.EnterpriseSlug } -func (x *MembersCanDeleteReposDisableAuditEntry) GetEnterpriseUrl() URI { return x.EnterpriseUrl } -func (x *MembersCanDeleteReposDisableAuditEntry) GetId() ID { return x.Id } -func (x *MembersCanDeleteReposDisableAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *MembersCanDeleteReposDisableAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *MembersCanDeleteReposDisableAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *MembersCanDeleteReposDisableAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *MembersCanDeleteReposDisableAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *MembersCanDeleteReposDisableAuditEntry) GetUser() *User { return x.User } -func (x *MembersCanDeleteReposDisableAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *MembersCanDeleteReposDisableAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *MembersCanDeleteReposDisableAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// MembersCanDeleteReposEnableAuditEntry (OBJECT): Audit log entry for a members_can_delete_repos.enable event. -type MembersCanDeleteReposEnableAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // EnterpriseResourcePath: The HTTP path for this enterprise. - EnterpriseResourcePath URI `json:"enterpriseResourcePath,omitempty"` - - // EnterpriseSlug: The slug of the enterprise. - EnterpriseSlug string `json:"enterpriseSlug,omitempty"` - - // EnterpriseUrl: The HTTP URL for this enterprise. - EnterpriseUrl URI `json:"enterpriseUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *MembersCanDeleteReposEnableAuditEntry) GetAction() string { return x.Action } -func (x *MembersCanDeleteReposEnableAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *MembersCanDeleteReposEnableAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *MembersCanDeleteReposEnableAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *MembersCanDeleteReposEnableAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *MembersCanDeleteReposEnableAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *MembersCanDeleteReposEnableAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *MembersCanDeleteReposEnableAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *MembersCanDeleteReposEnableAuditEntry) GetEnterpriseResourcePath() URI { - return x.EnterpriseResourcePath -} -func (x *MembersCanDeleteReposEnableAuditEntry) GetEnterpriseSlug() string { return x.EnterpriseSlug } -func (x *MembersCanDeleteReposEnableAuditEntry) GetEnterpriseUrl() URI { return x.EnterpriseUrl } -func (x *MembersCanDeleteReposEnableAuditEntry) GetId() ID { return x.Id } -func (x *MembersCanDeleteReposEnableAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *MembersCanDeleteReposEnableAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *MembersCanDeleteReposEnableAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *MembersCanDeleteReposEnableAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *MembersCanDeleteReposEnableAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *MembersCanDeleteReposEnableAuditEntry) GetUser() *User { return x.User } -func (x *MembersCanDeleteReposEnableAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *MembersCanDeleteReposEnableAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *MembersCanDeleteReposEnableAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// MentionedEvent (OBJECT): Represents a 'mentioned' event on a given issue or pull request. -type MentionedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` -} - -func (x *MentionedEvent) GetActor() Actor { return x.Actor } -func (x *MentionedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *MentionedEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *MentionedEvent) GetId() ID { return x.Id } - -// MergeBranchInput (INPUT_OBJECT): Autogenerated input type of MergeBranch. -type MergeBranchInput struct { - // RepositoryId: The Node ID of the Repository containing the base branch that will be modified. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Base: The name of the base branch that the provided head will be merged into. - // - // GraphQL type: String! - Base string `json:"base,omitempty"` - - // Head: The head to merge into the base branch. This can be a branch name or a commit GitObjectID. - // - // GraphQL type: String! - Head string `json:"head,omitempty"` - - // CommitMessage: Message to use for the merge commit. If omitted, a default will be used. - // - // GraphQL type: String - CommitMessage string `json:"commitMessage,omitempty"` - - // AuthorEmail: The email address to associate with this commit. - // - // GraphQL type: String - AuthorEmail string `json:"authorEmail,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// MergeBranchPayload (OBJECT): Autogenerated return type of MergeBranch. -type MergeBranchPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // MergeCommit: The resulting merge Commit. - MergeCommit *Commit `json:"mergeCommit,omitempty"` -} - -func (x *MergeBranchPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *MergeBranchPayload) GetMergeCommit() *Commit { return x.MergeCommit } - -// MergePullRequestInput (INPUT_OBJECT): Autogenerated input type of MergePullRequest. -type MergePullRequestInput struct { - // PullRequestId: ID of the pull request to be merged. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // CommitHeadline: Commit headline to use for the merge commit; if omitted, a default message will be used. - // - // GraphQL type: String - CommitHeadline string `json:"commitHeadline,omitempty"` - - // CommitBody: Commit body to use for the merge commit; if omitted, a default message will be used. - // - // GraphQL type: String - CommitBody string `json:"commitBody,omitempty"` - - // ExpectedHeadOid: OID that the pull request head ref must match to allow merge; if omitted, no check is performed. - // - // GraphQL type: GitObjectID - ExpectedHeadOid GitObjectID `json:"expectedHeadOid,omitempty"` - - // MergeMethod: The merge method to use. If omitted, defaults to 'MERGE'. - // - // GraphQL type: PullRequestMergeMethod - MergeMethod PullRequestMergeMethod `json:"mergeMethod,omitempty"` - - // AuthorEmail: The email address to associate with this merge. - // - // GraphQL type: String - AuthorEmail string `json:"authorEmail,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// MergePullRequestPayload (OBJECT): Autogenerated return type of MergePullRequest. -type MergePullRequestPayload struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The pull request that was merged. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *MergePullRequestPayload) GetActor() Actor { return x.Actor } -func (x *MergePullRequestPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *MergePullRequestPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// MergeableState (ENUM): Whether or not a PullRequest can be merged. -type MergeableState string - -// MergeableState_MERGEABLE: The pull request can be merged. -const MergeableState_MERGEABLE MergeableState = "MERGEABLE" - -// MergeableState_CONFLICTING: The pull request cannot be merged due to merge conflicts. -const MergeableState_CONFLICTING MergeableState = "CONFLICTING" - -// MergeableState_UNKNOWN: The mergeability of the pull request is still being calculated. -const MergeableState_UNKNOWN MergeableState = "UNKNOWN" - -// MergedEvent (OBJECT): Represents a 'merged' event on a given pull request. -type MergedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // Commit: Identifies the commit associated with the `merge` event. - Commit *Commit `json:"commit,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // MergeRef: Identifies the Ref associated with the `merge` event. - MergeRef *Ref `json:"mergeRef,omitempty"` - - // MergeRefName: Identifies the name of the Ref associated with the `merge` event. - MergeRefName string `json:"mergeRefName,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // ResourcePath: The HTTP path for this merged event. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this merged event. - Url URI `json:"url,omitempty"` -} - -func (x *MergedEvent) GetActor() Actor { return x.Actor } -func (x *MergedEvent) GetCommit() *Commit { return x.Commit } -func (x *MergedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *MergedEvent) GetId() ID { return x.Id } -func (x *MergedEvent) GetMergeRef() *Ref { return x.MergeRef } -func (x *MergedEvent) GetMergeRefName() string { return x.MergeRefName } -func (x *MergedEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *MergedEvent) GetResourcePath() URI { return x.ResourcePath } -func (x *MergedEvent) GetUrl() URI { return x.Url } - -// Migration (INTERFACE): Represents an Octoshift migration. -// Migration_Interface: Represents an Octoshift migration. -// -// Possible types: -// -// - *RepositoryMigration -type Migration_Interface interface { - isMigration() - GetContinueOnError() bool - GetCreatedAt() DateTime - GetFailureReason() string - GetId() ID - GetMigrationLogUrl() URI - GetMigrationSource() *MigrationSource - GetRepositoryName() string - GetSourceUrl() URI - GetState() MigrationState -} - -func (*RepositoryMigration) isMigration() {} - -type Migration struct { - Interface Migration_Interface -} - -func (x *Migration) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Migration) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Migration", info.Typename) - case "RepositoryMigration": - x.Interface = new(RepositoryMigration) - } - return json.Unmarshal(js, x.Interface) -} - -// MigrationSource (OBJECT): An Octoshift migration source. -type MigrationSource struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The Octoshift migration source name. - Name string `json:"name,omitempty"` - - // Type: The Octoshift migration source type. - Type MigrationSourceType `json:"type,omitempty"` - - // Url: The Octoshift migration source URL. - Url URI `json:"url,omitempty"` -} - -func (x *MigrationSource) GetId() ID { return x.Id } -func (x *MigrationSource) GetName() string { return x.Name } -func (x *MigrationSource) GetType() MigrationSourceType { return x.Type } -func (x *MigrationSource) GetUrl() URI { return x.Url } - -// MigrationSourceType (ENUM): Represents the different Octoshift migration sources. -type MigrationSourceType string - -// MigrationSourceType_GITLAB: A GitLab migration source. -const MigrationSourceType_GITLAB MigrationSourceType = "GITLAB" - -// MigrationSourceType_AZURE_DEVOPS: An Azure DevOps migration source. -const MigrationSourceType_AZURE_DEVOPS MigrationSourceType = "AZURE_DEVOPS" - -// MigrationSourceType_BITBUCKET_SERVER: A Bitbucket Server migration source. -const MigrationSourceType_BITBUCKET_SERVER MigrationSourceType = "BITBUCKET_SERVER" - -// MigrationSourceType_GITHUB: A GitHub migration source. -const MigrationSourceType_GITHUB MigrationSourceType = "GITHUB" - -// MigrationSourceType_GITHUB_ARCHIVE: A GitHub Migration API source. -const MigrationSourceType_GITHUB_ARCHIVE MigrationSourceType = "GITHUB_ARCHIVE" - -// MigrationState (ENUM): The Octoshift migration state. -type MigrationState string - -// MigrationState_NOT_STARTED: The Octoshift migration has not started. -const MigrationState_NOT_STARTED MigrationState = "NOT_STARTED" - -// MigrationState_QUEUED: The Octoshift migration has been queued. -const MigrationState_QUEUED MigrationState = "QUEUED" - -// MigrationState_IN_PROGRESS: The Octoshift migration is in progress. -const MigrationState_IN_PROGRESS MigrationState = "IN_PROGRESS" - -// MigrationState_SUCCEEDED: The Octoshift migration has succeeded. -const MigrationState_SUCCEEDED MigrationState = "SUCCEEDED" - -// MigrationState_FAILED: The Octoshift migration has failed. -const MigrationState_FAILED MigrationState = "FAILED" - -// MigrationState_PENDING_VALIDATION: The Octoshift migration needs to have its credentials validated. -const MigrationState_PENDING_VALIDATION MigrationState = "PENDING_VALIDATION" - -// MigrationState_FAILED_VALIDATION: The Octoshift migration has invalid credentials. -const MigrationState_FAILED_VALIDATION MigrationState = "FAILED_VALIDATION" - -// Milestone (OBJECT): Represents a Milestone object on a given repository. -type Milestone struct { - // Closed: `true` if the object is closed (definition of closed may depend on type). - Closed bool `json:"closed,omitempty"` - - // ClosedAt: Identifies the date and time when the object was closed. - ClosedAt DateTime `json:"closedAt,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: Identifies the actor who created the milestone. - Creator Actor `json:"creator,omitempty"` - - // Description: Identifies the description of the milestone. - Description string `json:"description,omitempty"` - - // DueOn: Identifies the due date of the milestone. - DueOn DateTime `json:"dueOn,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Issues: A list of issues associated with the milestone. - // - // Query arguments: - // - orderBy IssueOrder - // - labels [String!] - // - states [IssueState!] - // - filterBy IssueFilters - // - after String - // - before String - // - first Int - // - last Int - Issues *IssueConnection `json:"issues,omitempty"` - - // Number: Identifies the number of the milestone. - Number int `json:"number,omitempty"` - - // ProgressPercentage: Identifies the percentage complete for the milestone. - ProgressPercentage float64 `json:"progressPercentage,omitempty"` - - // PullRequests: A list of pull requests associated with the milestone. - // - // Query arguments: - // - states [PullRequestState!] - // - labels [String!] - // - headRefName String - // - baseRefName String - // - orderBy IssueOrder - // - after String - // - before String - // - first Int - // - last Int - PullRequests *PullRequestConnection `json:"pullRequests,omitempty"` - - // Repository: The repository associated with this milestone. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this milestone. - ResourcePath URI `json:"resourcePath,omitempty"` - - // State: Identifies the state of the milestone. - State MilestoneState `json:"state,omitempty"` - - // Title: Identifies the title of the milestone. - Title string `json:"title,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this milestone. - Url URI `json:"url,omitempty"` -} - -func (x *Milestone) GetClosed() bool { return x.Closed } -func (x *Milestone) GetClosedAt() DateTime { return x.ClosedAt } -func (x *Milestone) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Milestone) GetCreator() Actor { return x.Creator } -func (x *Milestone) GetDescription() string { return x.Description } -func (x *Milestone) GetDueOn() DateTime { return x.DueOn } -func (x *Milestone) GetId() ID { return x.Id } -func (x *Milestone) GetIssues() *IssueConnection { return x.Issues } -func (x *Milestone) GetNumber() int { return x.Number } -func (x *Milestone) GetProgressPercentage() float64 { return x.ProgressPercentage } -func (x *Milestone) GetPullRequests() *PullRequestConnection { return x.PullRequests } -func (x *Milestone) GetRepository() *Repository { return x.Repository } -func (x *Milestone) GetResourcePath() URI { return x.ResourcePath } -func (x *Milestone) GetState() MilestoneState { return x.State } -func (x *Milestone) GetTitle() string { return x.Title } -func (x *Milestone) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Milestone) GetUrl() URI { return x.Url } - -// MilestoneConnection (OBJECT): The connection type for Milestone. -type MilestoneConnection struct { - // Edges: A list of edges. - Edges []*MilestoneEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Milestone `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *MilestoneConnection) GetEdges() []*MilestoneEdge { return x.Edges } -func (x *MilestoneConnection) GetNodes() []*Milestone { return x.Nodes } -func (x *MilestoneConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *MilestoneConnection) GetTotalCount() int { return x.TotalCount } - -// MilestoneEdge (OBJECT): An edge in a connection. -type MilestoneEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Milestone `json:"node,omitempty"` -} - -func (x *MilestoneEdge) GetCursor() string { return x.Cursor } -func (x *MilestoneEdge) GetNode() *Milestone { return x.Node } - -// MilestoneItem (UNION): Types that can be inside a Milestone. -// MilestoneItem_Interface: Types that can be inside a Milestone. -// -// Possible types: -// -// - *Issue -// - *PullRequest -type MilestoneItem_Interface interface { - isMilestoneItem() -} - -func (*Issue) isMilestoneItem() {} -func (*PullRequest) isMilestoneItem() {} - -type MilestoneItem struct { - Interface MilestoneItem_Interface -} - -func (x *MilestoneItem) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *MilestoneItem) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for MilestoneItem", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// MilestoneOrder (INPUT_OBJECT): Ordering options for milestone connections. -type MilestoneOrder struct { - // Field: The field to order milestones by. - // - // GraphQL type: MilestoneOrderField! - Field MilestoneOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// MilestoneOrderField (ENUM): Properties by which milestone connections can be ordered. -type MilestoneOrderField string - -// MilestoneOrderField_DUE_DATE: Order milestones by when they are due. -const MilestoneOrderField_DUE_DATE MilestoneOrderField = "DUE_DATE" - -// MilestoneOrderField_CREATED_AT: Order milestones by when they were created. -const MilestoneOrderField_CREATED_AT MilestoneOrderField = "CREATED_AT" - -// MilestoneOrderField_UPDATED_AT: Order milestones by when they were last updated. -const MilestoneOrderField_UPDATED_AT MilestoneOrderField = "UPDATED_AT" - -// MilestoneOrderField_NUMBER: Order milestones by their number. -const MilestoneOrderField_NUMBER MilestoneOrderField = "NUMBER" - -// MilestoneState (ENUM): The possible states of a milestone. -type MilestoneState string - -// MilestoneState_OPEN: A milestone that is still open. -const MilestoneState_OPEN MilestoneState = "OPEN" - -// MilestoneState_CLOSED: A milestone that has been closed. -const MilestoneState_CLOSED MilestoneState = "CLOSED" - -// MilestonedEvent (OBJECT): Represents a 'milestoned' event on a given issue or pull request. -type MilestonedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // MilestoneTitle: Identifies the milestone title associated with the 'milestoned' event. - MilestoneTitle string `json:"milestoneTitle,omitempty"` - - // Subject: Object referenced by event. - Subject MilestoneItem `json:"subject,omitempty"` -} - -func (x *MilestonedEvent) GetActor() Actor { return x.Actor } -func (x *MilestonedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *MilestonedEvent) GetId() ID { return x.Id } -func (x *MilestonedEvent) GetMilestoneTitle() string { return x.MilestoneTitle } -func (x *MilestonedEvent) GetSubject() MilestoneItem { return x.Subject } - -// Minimizable (INTERFACE): Entities that can be minimized. -// Minimizable_Interface: Entities that can be minimized. -// -// Possible types: -// -// - *CommitComment -// - *DiscussionComment -// - *GistComment -// - *IssueComment -// - *PullRequestReviewComment -type Minimizable_Interface interface { - isMinimizable() - GetIsMinimized() bool - GetMinimizedReason() string - GetViewerCanMinimize() bool -} - -func (*CommitComment) isMinimizable() {} -func (*DiscussionComment) isMinimizable() {} -func (*GistComment) isMinimizable() {} -func (*IssueComment) isMinimizable() {} -func (*PullRequestReviewComment) isMinimizable() {} - -type Minimizable struct { - Interface Minimizable_Interface -} - -func (x *Minimizable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Minimizable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Minimizable", info.Typename) - case "CommitComment": - x.Interface = new(CommitComment) - case "DiscussionComment": - x.Interface = new(DiscussionComment) - case "GistComment": - x.Interface = new(GistComment) - case "IssueComment": - x.Interface = new(IssueComment) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - } - return json.Unmarshal(js, x.Interface) -} - -// MinimizeCommentInput (INPUT_OBJECT): Autogenerated input type of MinimizeComment. -type MinimizeCommentInput struct { - // SubjectId: The Node ID of the subject to modify. - // - // GraphQL type: ID! - SubjectId ID `json:"subjectId,omitempty"` - - // Classifier: The classification of comment. - // - // GraphQL type: ReportedContentClassifiers! - Classifier ReportedContentClassifiers `json:"classifier,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// MinimizeCommentPayload (OBJECT): Autogenerated return type of MinimizeComment. -type MinimizeCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // MinimizedComment: The comment that was minimized. - MinimizedComment Minimizable `json:"minimizedComment,omitempty"` -} - -func (x *MinimizeCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *MinimizeCommentPayload) GetMinimizedComment() Minimizable { return x.MinimizedComment } - -// MoveProjectCardInput (INPUT_OBJECT): Autogenerated input type of MoveProjectCard. -type MoveProjectCardInput struct { - // CardId: The id of the card to move. - // - // GraphQL type: ID! - CardId ID `json:"cardId,omitempty"` - - // ColumnId: The id of the column to move it into. - // - // GraphQL type: ID! - ColumnId ID `json:"columnId,omitempty"` - - // AfterCardId: Place the new card after the card with this id. Pass null to place it at the top. - // - // GraphQL type: ID - AfterCardId ID `json:"afterCardId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// MoveProjectCardPayload (OBJECT): Autogenerated return type of MoveProjectCard. -type MoveProjectCardPayload struct { - // CardEdge: The new edge of the moved card. - CardEdge *ProjectCardEdge `json:"cardEdge,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *MoveProjectCardPayload) GetCardEdge() *ProjectCardEdge { return x.CardEdge } -func (x *MoveProjectCardPayload) GetClientMutationId() string { return x.ClientMutationId } - -// MoveProjectColumnInput (INPUT_OBJECT): Autogenerated input type of MoveProjectColumn. -type MoveProjectColumnInput struct { - // ColumnId: The id of the column to move. - // - // GraphQL type: ID! - ColumnId ID `json:"columnId,omitempty"` - - // AfterColumnId: Place the new column after the column with this id. Pass null to place it at the front. - // - // GraphQL type: ID - AfterColumnId ID `json:"afterColumnId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// MoveProjectColumnPayload (OBJECT): Autogenerated return type of MoveProjectColumn. -type MoveProjectColumnPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ColumnEdge: The new edge of the moved column. - ColumnEdge *ProjectColumnEdge `json:"columnEdge,omitempty"` -} - -func (x *MoveProjectColumnPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *MoveProjectColumnPayload) GetColumnEdge() *ProjectColumnEdge { return x.ColumnEdge } - -// MovedColumnsInProjectEvent (OBJECT): Represents a 'moved_columns_in_project' event on a given issue or pull request. -type MovedColumnsInProjectEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PreviousProjectColumnName: Column name the issue or pull request was moved from. - PreviousProjectColumnName string `json:"previousProjectColumnName,omitempty"` - - // Project: Project referenced by event. - Project *Project `json:"project,omitempty"` - - // ProjectCard: Project card referenced by this project event. - ProjectCard *ProjectCard `json:"projectCard,omitempty"` - - // ProjectColumnName: Column name the issue or pull request was moved to. - ProjectColumnName string `json:"projectColumnName,omitempty"` -} - -func (x *MovedColumnsInProjectEvent) GetActor() Actor { return x.Actor } -func (x *MovedColumnsInProjectEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *MovedColumnsInProjectEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *MovedColumnsInProjectEvent) GetId() ID { return x.Id } -func (x *MovedColumnsInProjectEvent) GetPreviousProjectColumnName() string { - return x.PreviousProjectColumnName -} -func (x *MovedColumnsInProjectEvent) GetProject() *Project { return x.Project } -func (x *MovedColumnsInProjectEvent) GetProjectCard() *ProjectCard { return x.ProjectCard } -func (x *MovedColumnsInProjectEvent) GetProjectColumnName() string { return x.ProjectColumnName } - -// Mutation (OBJECT): The root query for implementing GraphQL mutations. -type Mutation struct { - // AbortQueuedMigrations: Clear all of a customer's queued migrations. - // - // Query arguments: - // - input AbortQueuedMigrationsInput! - AbortQueuedMigrations *AbortQueuedMigrationsPayload `json:"abortQueuedMigrations,omitempty"` - - // AcceptEnterpriseAdministratorInvitation: Accepts a pending invitation for a user to become an administrator of an enterprise. - // - // Query arguments: - // - input AcceptEnterpriseAdministratorInvitationInput! - AcceptEnterpriseAdministratorInvitation *AcceptEnterpriseAdministratorInvitationPayload `json:"acceptEnterpriseAdministratorInvitation,omitempty"` - - // AcceptTopicSuggestion: Applies a suggested topic to the repository. - // - // Query arguments: - // - input AcceptTopicSuggestionInput! - AcceptTopicSuggestion *AcceptTopicSuggestionPayload `json:"acceptTopicSuggestion,omitempty"` - - // AddAssigneesToAssignable: Adds assignees to an assignable object. - // - // Query arguments: - // - input AddAssigneesToAssignableInput! - AddAssigneesToAssignable *AddAssigneesToAssignablePayload `json:"addAssigneesToAssignable,omitempty"` - - // AddComment: Adds a comment to an Issue or Pull Request. - // - // Query arguments: - // - input AddCommentInput! - AddComment *AddCommentPayload `json:"addComment,omitempty"` - - // AddDiscussionComment: Adds a comment to a Discussion, possibly as a reply to another comment. - // - // Query arguments: - // - input AddDiscussionCommentInput! - AddDiscussionComment *AddDiscussionCommentPayload `json:"addDiscussionComment,omitempty"` - - // AddDiscussionPollVote: Vote for an option in a discussion poll. - // - // Query arguments: - // - input AddDiscussionPollVoteInput! - AddDiscussionPollVote *AddDiscussionPollVotePayload `json:"addDiscussionPollVote,omitempty"` - - // AddEnterpriseSupportEntitlement: Adds a support entitlement to an enterprise member. - // - // Query arguments: - // - input AddEnterpriseSupportEntitlementInput! - AddEnterpriseSupportEntitlement *AddEnterpriseSupportEntitlementPayload `json:"addEnterpriseSupportEntitlement,omitempty"` - - // AddLabelsToLabelable: Adds labels to a labelable object. - // - // Query arguments: - // - input AddLabelsToLabelableInput! - AddLabelsToLabelable *AddLabelsToLabelablePayload `json:"addLabelsToLabelable,omitempty"` - - // AddProjectCard: Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both. - // - // Query arguments: - // - input AddProjectCardInput! - AddProjectCard *AddProjectCardPayload `json:"addProjectCard,omitempty"` - - // AddProjectColumn: Adds a column to a Project. - // - // Query arguments: - // - input AddProjectColumnInput! - AddProjectColumn *AddProjectColumnPayload `json:"addProjectColumn,omitempty"` - - // AddProjectDraftIssue: Creates a new draft issue and add it to a Project. - // - // Deprecated: Creates a new draft issue and add it to a Project. - // - // Query arguments: - // - input AddProjectDraftIssueInput! - AddProjectDraftIssue *AddProjectDraftIssuePayload `json:"addProjectDraftIssue,omitempty"` - - // AddProjectNextItem: Adds an existing item (Issue or PullRequest) to a Project. - // - // Deprecated: Adds an existing item (Issue or PullRequest) to a Project. - // - // Query arguments: - // - input AddProjectNextItemInput! - AddProjectNextItem *AddProjectNextItemPayload `json:"addProjectNextItem,omitempty"` - - // AddProjectV2DraftIssue: Creates a new draft issue and add it to a Project. - // - // Query arguments: - // - input AddProjectV2DraftIssueInput! - AddProjectV2DraftIssue *AddProjectV2DraftIssuePayload `json:"addProjectV2DraftIssue,omitempty"` - - // AddProjectV2ItemById: Links an existing content instance to a Project. - // - // Query arguments: - // - input AddProjectV2ItemByIdInput! - AddProjectV2ItemById *AddProjectV2ItemByIdPayload `json:"addProjectV2ItemById,omitempty"` - - // AddPullRequestReview: Adds a review to a Pull Request. - // - // Query arguments: - // - input AddPullRequestReviewInput! - AddPullRequestReview *AddPullRequestReviewPayload `json:"addPullRequestReview,omitempty"` - - // AddPullRequestReviewComment: Adds a comment to a review. - // - // Query arguments: - // - input AddPullRequestReviewCommentInput! - AddPullRequestReviewComment *AddPullRequestReviewCommentPayload `json:"addPullRequestReviewComment,omitempty"` - - // AddPullRequestReviewThread: Adds a new thread to a pending Pull Request Review. - // - // Query arguments: - // - input AddPullRequestReviewThreadInput! - AddPullRequestReviewThread *AddPullRequestReviewThreadPayload `json:"addPullRequestReviewThread,omitempty"` - - // AddReaction: Adds a reaction to a subject. - // - // Query arguments: - // - input AddReactionInput! - AddReaction *AddReactionPayload `json:"addReaction,omitempty"` - - // AddStar: Adds a star to a Starrable. - // - // Query arguments: - // - input AddStarInput! - AddStar *AddStarPayload `json:"addStar,omitempty"` - - // AddUpvote: Add an upvote to a discussion or discussion comment. - // - // Query arguments: - // - input AddUpvoteInput! - AddUpvote *AddUpvotePayload `json:"addUpvote,omitempty"` - - // AddVerifiableDomain: Adds a verifiable domain to an owning account. - // - // Query arguments: - // - input AddVerifiableDomainInput! - AddVerifiableDomain *AddVerifiableDomainPayload `json:"addVerifiableDomain,omitempty"` - - // ApproveDeployments: Approve all pending deployments under one or more environments. - // - // Query arguments: - // - input ApproveDeploymentsInput! - ApproveDeployments *ApproveDeploymentsPayload `json:"approveDeployments,omitempty"` - - // ApproveVerifiableDomain: Approve a verifiable domain for notification delivery. - // - // Query arguments: - // - input ApproveVerifiableDomainInput! - ApproveVerifiableDomain *ApproveVerifiableDomainPayload `json:"approveVerifiableDomain,omitempty"` - - // ArchiveRepository: Marks a repository as archived. - // - // Query arguments: - // - input ArchiveRepositoryInput! - ArchiveRepository *ArchiveRepositoryPayload `json:"archiveRepository,omitempty"` - - // CancelEnterpriseAdminInvitation: Cancels a pending invitation for an administrator to join an enterprise. - // - // Query arguments: - // - input CancelEnterpriseAdminInvitationInput! - CancelEnterpriseAdminInvitation *CancelEnterpriseAdminInvitationPayload `json:"cancelEnterpriseAdminInvitation,omitempty"` - - // CancelSponsorship: Cancel an active sponsorship. - // - // Query arguments: - // - input CancelSponsorshipInput! - CancelSponsorship *CancelSponsorshipPayload `json:"cancelSponsorship,omitempty"` - - // ChangeUserStatus: Update your status on GitHub. - // - // Query arguments: - // - input ChangeUserStatusInput! - ChangeUserStatus *ChangeUserStatusPayload `json:"changeUserStatus,omitempty"` - - // ClearLabelsFromLabelable: Clears all labels from a labelable object. - // - // Query arguments: - // - input ClearLabelsFromLabelableInput! - ClearLabelsFromLabelable *ClearLabelsFromLabelablePayload `json:"clearLabelsFromLabelable,omitempty"` - - // CloneProject: Creates a new project by cloning configuration from an existing project. - // - // Query arguments: - // - input CloneProjectInput! - CloneProject *CloneProjectPayload `json:"cloneProject,omitempty"` - - // CloneTemplateRepository: Create a new repository with the same files and directory structure as a template repository. - // - // Query arguments: - // - input CloneTemplateRepositoryInput! - CloneTemplateRepository *CloneTemplateRepositoryPayload `json:"cloneTemplateRepository,omitempty"` - - // CloseIssue: Close an issue. - // - // Query arguments: - // - input CloseIssueInput! - CloseIssue *CloseIssuePayload `json:"closeIssue,omitempty"` - - // ClosePullRequest: Close a pull request. - // - // Query arguments: - // - input ClosePullRequestInput! - ClosePullRequest *ClosePullRequestPayload `json:"closePullRequest,omitempty"` - - // ConvertProjectCardNoteToIssue: Convert a project note card to one associated with a newly created issue. - // - // Query arguments: - // - input ConvertProjectCardNoteToIssueInput! - ConvertProjectCardNoteToIssue *ConvertProjectCardNoteToIssuePayload `json:"convertProjectCardNoteToIssue,omitempty"` - - // ConvertPullRequestToDraft: Converts a pull request to draft. - // - // Query arguments: - // - input ConvertPullRequestToDraftInput! - ConvertPullRequestToDraft *ConvertPullRequestToDraftPayload `json:"convertPullRequestToDraft,omitempty"` - - // CreateBranchProtectionRule: Create a new branch protection rule. - // - // Query arguments: - // - input CreateBranchProtectionRuleInput! - CreateBranchProtectionRule *CreateBranchProtectionRulePayload `json:"createBranchProtectionRule,omitempty"` - - // CreateCheckRun: Create a check run. - // - // Query arguments: - // - input CreateCheckRunInput! - CreateCheckRun *CreateCheckRunPayload `json:"createCheckRun,omitempty"` - - // CreateCheckSuite: Create a check suite. - // - // Query arguments: - // - input CreateCheckSuiteInput! - CreateCheckSuite *CreateCheckSuitePayload `json:"createCheckSuite,omitempty"` - - // CreateCommitOnBranch: Appends a commit to the given branch as the authenticated user. - // - // This mutation creates a commit whose parent is the HEAD of the provided - // branch and also updates that branch to point to the new commit. - // It can be thought of as similar to `git commit`. - // - // ### Locating a Branch - // - // Commits are appended to a `branch` of type `Ref`. - // This must refer to a git branch (i.e. the fully qualified path must - // begin with `refs/heads/`, although including this prefix is optional. - // - // Callers may specify the `branch` to commit to either by its global node - // ID or by passing both of `repositoryNameWithOwner` and `refName`. For - // more details see the documentation for `CommittableBranch`. - // - // ### Describing Changes - // - // `fileChanges` are specified as a `FilesChanges` object describing - // `FileAdditions` and `FileDeletions`. - // - // Please see the documentation for `FileChanges` for more information on - // how to use this argument to describe any set of file changes. - // - // ### Authorship - // - // Similar to the web commit interface, this mutation does not support - // specifying the author or committer of the commit and will not add - // support for this in the future. - // - // A commit created by a successful execution of this mutation will be - // authored by the owner of the credential which authenticates the API - // request. The committer will be identical to that of commits authored - // using the web interface. - // - // If you need full control over author and committer information, please - // use the Git Database REST API instead. - // - // ### Commit Signing - // - // Commits made using this mutation are automatically signed by GitHub if - // supported and will be marked as verified in the user interface. - // . - // - // Query arguments: - // - input CreateCommitOnBranchInput! - CreateCommitOnBranch *CreateCommitOnBranchPayload `json:"createCommitOnBranch,omitempty"` - - // CreateDiscussion: Create a discussion. - // - // Query arguments: - // - input CreateDiscussionInput! - CreateDiscussion *CreateDiscussionPayload `json:"createDiscussion,omitempty"` - - // CreateEnterpriseOrganization: Creates an organization as part of an enterprise account. - // - // Query arguments: - // - input CreateEnterpriseOrganizationInput! - CreateEnterpriseOrganization *CreateEnterpriseOrganizationPayload `json:"createEnterpriseOrganization,omitempty"` - - // CreateEnvironment: Creates an environment or simply returns it if already exists. - // - // Query arguments: - // - input CreateEnvironmentInput! - CreateEnvironment *CreateEnvironmentPayload `json:"createEnvironment,omitempty"` - - // CreateIpAllowListEntry: Creates a new IP allow list entry. - // - // Query arguments: - // - input CreateIpAllowListEntryInput! - CreateIpAllowListEntry *CreateIpAllowListEntryPayload `json:"createIpAllowListEntry,omitempty"` - - // CreateIssue: Creates a new issue. - // - // Query arguments: - // - input CreateIssueInput! - CreateIssue *CreateIssuePayload `json:"createIssue,omitempty"` - - // CreateMigrationSource: Creates an Octoshift migration source. - // - // Query arguments: - // - input CreateMigrationSourceInput! - CreateMigrationSource *CreateMigrationSourcePayload `json:"createMigrationSource,omitempty"` - - // CreateProject: Creates a new project. - // - // Query arguments: - // - input CreateProjectInput! - CreateProject *CreateProjectPayload `json:"createProject,omitempty"` - - // CreateProjectV2: Creates a new project. - // - // Query arguments: - // - input CreateProjectV2Input! - CreateProjectV2 *CreateProjectV2Payload `json:"createProjectV2,omitempty"` - - // CreatePullRequest: Create a new pull request. - // - // Query arguments: - // - input CreatePullRequestInput! - CreatePullRequest *CreatePullRequestPayload `json:"createPullRequest,omitempty"` - - // CreateRef: Create a new Git Ref. - // - // Query arguments: - // - input CreateRefInput! - CreateRef *CreateRefPayload `json:"createRef,omitempty"` - - // CreateRepository: Create a new repository. - // - // Query arguments: - // - input CreateRepositoryInput! - CreateRepository *CreateRepositoryPayload `json:"createRepository,omitempty"` - - // CreateSponsorsTier: Create a new payment tier for your GitHub Sponsors profile. - // - // Query arguments: - // - input CreateSponsorsTierInput! - CreateSponsorsTier *CreateSponsorsTierPayload `json:"createSponsorsTier,omitempty"` - - // CreateSponsorship: Start a new sponsorship of a maintainer in GitHub Sponsors, or reactivate a past sponsorship. - // - // Query arguments: - // - input CreateSponsorshipInput! - CreateSponsorship *CreateSponsorshipPayload `json:"createSponsorship,omitempty"` - - // CreateTeamDiscussion: Creates a new team discussion. - // - // Query arguments: - // - input CreateTeamDiscussionInput! - CreateTeamDiscussion *CreateTeamDiscussionPayload `json:"createTeamDiscussion,omitempty"` - - // CreateTeamDiscussionComment: Creates a new team discussion comment. - // - // Query arguments: - // - input CreateTeamDiscussionCommentInput! - CreateTeamDiscussionComment *CreateTeamDiscussionCommentPayload `json:"createTeamDiscussionComment,omitempty"` - - // DeclineTopicSuggestion: Rejects a suggested topic for the repository. - // - // Query arguments: - // - input DeclineTopicSuggestionInput! - DeclineTopicSuggestion *DeclineTopicSuggestionPayload `json:"declineTopicSuggestion,omitempty"` - - // DeleteBranchProtectionRule: Delete a branch protection rule. - // - // Query arguments: - // - input DeleteBranchProtectionRuleInput! - DeleteBranchProtectionRule *DeleteBranchProtectionRulePayload `json:"deleteBranchProtectionRule,omitempty"` - - // DeleteDeployment: Deletes a deployment. - // - // Query arguments: - // - input DeleteDeploymentInput! - DeleteDeployment *DeleteDeploymentPayload `json:"deleteDeployment,omitempty"` - - // DeleteDiscussion: Delete a discussion and all of its replies. - // - // Query arguments: - // - input DeleteDiscussionInput! - DeleteDiscussion *DeleteDiscussionPayload `json:"deleteDiscussion,omitempty"` - - // DeleteDiscussionComment: Delete a discussion comment. If it has replies, wipe it instead. - // - // Query arguments: - // - input DeleteDiscussionCommentInput! - DeleteDiscussionComment *DeleteDiscussionCommentPayload `json:"deleteDiscussionComment,omitempty"` - - // DeleteEnvironment: Deletes an environment. - // - // Query arguments: - // - input DeleteEnvironmentInput! - DeleteEnvironment *DeleteEnvironmentPayload `json:"deleteEnvironment,omitempty"` - - // DeleteIpAllowListEntry: Deletes an IP allow list entry. - // - // Query arguments: - // - input DeleteIpAllowListEntryInput! - DeleteIpAllowListEntry *DeleteIpAllowListEntryPayload `json:"deleteIpAllowListEntry,omitempty"` - - // DeleteIssue: Deletes an Issue object. - // - // Query arguments: - // - input DeleteIssueInput! - DeleteIssue *DeleteIssuePayload `json:"deleteIssue,omitempty"` - - // DeleteIssueComment: Deletes an IssueComment object. - // - // Query arguments: - // - input DeleteIssueCommentInput! - DeleteIssueComment *DeleteIssueCommentPayload `json:"deleteIssueComment,omitempty"` - - // DeleteProject: Deletes a project. - // - // Query arguments: - // - input DeleteProjectInput! - DeleteProject *DeleteProjectPayload `json:"deleteProject,omitempty"` - - // DeleteProjectCard: Deletes a project card. - // - // Query arguments: - // - input DeleteProjectCardInput! - DeleteProjectCard *DeleteProjectCardPayload `json:"deleteProjectCard,omitempty"` - - // DeleteProjectColumn: Deletes a project column. - // - // Query arguments: - // - input DeleteProjectColumnInput! - DeleteProjectColumn *DeleteProjectColumnPayload `json:"deleteProjectColumn,omitempty"` - - // DeleteProjectNextItem: Deletes an item from a Project. - // - // Deprecated: Deletes an item from a Project. - // - // Query arguments: - // - input DeleteProjectNextItemInput! - DeleteProjectNextItem *DeleteProjectNextItemPayload `json:"deleteProjectNextItem,omitempty"` - - // DeleteProjectV2Item: Deletes an item from a Project. - // - // Query arguments: - // - input DeleteProjectV2ItemInput! - DeleteProjectV2Item *DeleteProjectV2ItemPayload `json:"deleteProjectV2Item,omitempty"` - - // DeletePullRequestReview: Deletes a pull request review. - // - // Query arguments: - // - input DeletePullRequestReviewInput! - DeletePullRequestReview *DeletePullRequestReviewPayload `json:"deletePullRequestReview,omitempty"` - - // DeletePullRequestReviewComment: Deletes a pull request review comment. - // - // Query arguments: - // - input DeletePullRequestReviewCommentInput! - DeletePullRequestReviewComment *DeletePullRequestReviewCommentPayload `json:"deletePullRequestReviewComment,omitempty"` - - // DeleteRef: Delete a Git Ref. - // - // Query arguments: - // - input DeleteRefInput! - DeleteRef *DeleteRefPayload `json:"deleteRef,omitempty"` - - // DeleteTeamDiscussion: Deletes a team discussion. - // - // Query arguments: - // - input DeleteTeamDiscussionInput! - DeleteTeamDiscussion *DeleteTeamDiscussionPayload `json:"deleteTeamDiscussion,omitempty"` - - // DeleteTeamDiscussionComment: Deletes a team discussion comment. - // - // Query arguments: - // - input DeleteTeamDiscussionCommentInput! - DeleteTeamDiscussionComment *DeleteTeamDiscussionCommentPayload `json:"deleteTeamDiscussionComment,omitempty"` - - // DeleteVerifiableDomain: Deletes a verifiable domain. - // - // Query arguments: - // - input DeleteVerifiableDomainInput! - DeleteVerifiableDomain *DeleteVerifiableDomainPayload `json:"deleteVerifiableDomain,omitempty"` - - // DisablePullRequestAutoMerge: Disable auto merge on the given pull request. - // - // Query arguments: - // - input DisablePullRequestAutoMergeInput! - DisablePullRequestAutoMerge *DisablePullRequestAutoMergePayload `json:"disablePullRequestAutoMerge,omitempty"` - - // DismissPullRequestReview: Dismisses an approved or rejected pull request review. - // - // Query arguments: - // - input DismissPullRequestReviewInput! - DismissPullRequestReview *DismissPullRequestReviewPayload `json:"dismissPullRequestReview,omitempty"` - - // DismissRepositoryVulnerabilityAlert: Dismisses the Dependabot alert. - // - // Query arguments: - // - input DismissRepositoryVulnerabilityAlertInput! - DismissRepositoryVulnerabilityAlert *DismissRepositoryVulnerabilityAlertPayload `json:"dismissRepositoryVulnerabilityAlert,omitempty"` - - // EnablePullRequestAutoMerge: Enable the default auto-merge on a pull request. - // - // Query arguments: - // - input EnablePullRequestAutoMergeInput! - EnablePullRequestAutoMerge *EnablePullRequestAutoMergePayload `json:"enablePullRequestAutoMerge,omitempty"` - - // FollowOrganization: Follow an organization. - // - // Query arguments: - // - input FollowOrganizationInput! - FollowOrganization *FollowOrganizationPayload `json:"followOrganization,omitempty"` - - // FollowUser: Follow a user. - // - // Query arguments: - // - input FollowUserInput! - FollowUser *FollowUserPayload `json:"followUser,omitempty"` - - // GrantEnterpriseOrganizationsMigratorRole: Grant the migrator role to a user for all organizations under an enterprise account. - // - // Query arguments: - // - input GrantEnterpriseOrganizationsMigratorRoleInput! - GrantEnterpriseOrganizationsMigratorRole *GrantEnterpriseOrganizationsMigratorRolePayload `json:"grantEnterpriseOrganizationsMigratorRole,omitempty"` - - // GrantMigratorRole: Grant the migrator role to a user or a team. - // - // Query arguments: - // - input GrantMigratorRoleInput! - GrantMigratorRole *GrantMigratorRolePayload `json:"grantMigratorRole,omitempty"` - - // InviteEnterpriseAdmin: Invite someone to become an administrator of the enterprise. - // - // Query arguments: - // - input InviteEnterpriseAdminInput! - InviteEnterpriseAdmin *InviteEnterpriseAdminPayload `json:"inviteEnterpriseAdmin,omitempty"` - - // LinkRepositoryToProject: Creates a repository link for a project. - // - // Query arguments: - // - input LinkRepositoryToProjectInput! - LinkRepositoryToProject *LinkRepositoryToProjectPayload `json:"linkRepositoryToProject,omitempty"` - - // LockLockable: Lock a lockable object. - // - // Query arguments: - // - input LockLockableInput! - LockLockable *LockLockablePayload `json:"lockLockable,omitempty"` - - // MarkDiscussionCommentAsAnswer: Mark a discussion comment as the chosen answer for discussions in an answerable category. - // - // Query arguments: - // - input MarkDiscussionCommentAsAnswerInput! - MarkDiscussionCommentAsAnswer *MarkDiscussionCommentAsAnswerPayload `json:"markDiscussionCommentAsAnswer,omitempty"` - - // MarkFileAsViewed: Mark a pull request file as viewed. - // - // Query arguments: - // - input MarkFileAsViewedInput! - MarkFileAsViewed *MarkFileAsViewedPayload `json:"markFileAsViewed,omitempty"` - - // MarkPullRequestReadyForReview: Marks a pull request ready for review. - // - // Query arguments: - // - input MarkPullRequestReadyForReviewInput! - MarkPullRequestReadyForReview *MarkPullRequestReadyForReviewPayload `json:"markPullRequestReadyForReview,omitempty"` - - // MergeBranch: Merge a head into a branch. - // - // Query arguments: - // - input MergeBranchInput! - MergeBranch *MergeBranchPayload `json:"mergeBranch,omitempty"` - - // MergePullRequest: Merge a pull request. - // - // Query arguments: - // - input MergePullRequestInput! - MergePullRequest *MergePullRequestPayload `json:"mergePullRequest,omitempty"` - - // MinimizeComment: Minimizes a comment on an Issue, Commit, Pull Request, or Gist. - // - // Query arguments: - // - input MinimizeCommentInput! - MinimizeComment *MinimizeCommentPayload `json:"minimizeComment,omitempty"` - - // MoveProjectCard: Moves a project card to another place. - // - // Query arguments: - // - input MoveProjectCardInput! - MoveProjectCard *MoveProjectCardPayload `json:"moveProjectCard,omitempty"` - - // MoveProjectColumn: Moves a project column to another place. - // - // Query arguments: - // - input MoveProjectColumnInput! - MoveProjectColumn *MoveProjectColumnPayload `json:"moveProjectColumn,omitempty"` - - // PinIssue: Pin an issue to a repository. - // - // Query arguments: - // - input PinIssueInput! - PinIssue *PinIssuePayload `json:"pinIssue,omitempty"` - - // RegenerateEnterpriseIdentityProviderRecoveryCodes: Regenerates the identity provider recovery codes for an enterprise. - // - // Query arguments: - // - input RegenerateEnterpriseIdentityProviderRecoveryCodesInput! - RegenerateEnterpriseIdentityProviderRecoveryCodes *RegenerateEnterpriseIdentityProviderRecoveryCodesPayload `json:"regenerateEnterpriseIdentityProviderRecoveryCodes,omitempty"` - - // RegenerateVerifiableDomainToken: Regenerates a verifiable domain's verification token. - // - // Query arguments: - // - input RegenerateVerifiableDomainTokenInput! - RegenerateVerifiableDomainToken *RegenerateVerifiableDomainTokenPayload `json:"regenerateVerifiableDomainToken,omitempty"` - - // RejectDeployments: Reject all pending deployments under one or more environments. - // - // Query arguments: - // - input RejectDeploymentsInput! - RejectDeployments *RejectDeploymentsPayload `json:"rejectDeployments,omitempty"` - - // RemoveAssigneesFromAssignable: Removes assignees from an assignable object. - // - // Query arguments: - // - input RemoveAssigneesFromAssignableInput! - RemoveAssigneesFromAssignable *RemoveAssigneesFromAssignablePayload `json:"removeAssigneesFromAssignable,omitempty"` - - // RemoveEnterpriseAdmin: Removes an administrator from the enterprise. - // - // Query arguments: - // - input RemoveEnterpriseAdminInput! - RemoveEnterpriseAdmin *RemoveEnterpriseAdminPayload `json:"removeEnterpriseAdmin,omitempty"` - - // RemoveEnterpriseIdentityProvider: Removes the identity provider from an enterprise. - // - // Query arguments: - // - input RemoveEnterpriseIdentityProviderInput! - RemoveEnterpriseIdentityProvider *RemoveEnterpriseIdentityProviderPayload `json:"removeEnterpriseIdentityProvider,omitempty"` - - // RemoveEnterpriseOrganization: Removes an organization from the enterprise. - // - // Query arguments: - // - input RemoveEnterpriseOrganizationInput! - RemoveEnterpriseOrganization *RemoveEnterpriseOrganizationPayload `json:"removeEnterpriseOrganization,omitempty"` - - // RemoveEnterpriseSupportEntitlement: Removes a support entitlement from an enterprise member. - // - // Query arguments: - // - input RemoveEnterpriseSupportEntitlementInput! - RemoveEnterpriseSupportEntitlement *RemoveEnterpriseSupportEntitlementPayload `json:"removeEnterpriseSupportEntitlement,omitempty"` - - // RemoveLabelsFromLabelable: Removes labels from a Labelable object. - // - // Query arguments: - // - input RemoveLabelsFromLabelableInput! - RemoveLabelsFromLabelable *RemoveLabelsFromLabelablePayload `json:"removeLabelsFromLabelable,omitempty"` - - // RemoveOutsideCollaborator: Removes outside collaborator from all repositories in an organization. - // - // Query arguments: - // - input RemoveOutsideCollaboratorInput! - RemoveOutsideCollaborator *RemoveOutsideCollaboratorPayload `json:"removeOutsideCollaborator,omitempty"` - - // RemoveReaction: Removes a reaction from a subject. - // - // Query arguments: - // - input RemoveReactionInput! - RemoveReaction *RemoveReactionPayload `json:"removeReaction,omitempty"` - - // RemoveStar: Removes a star from a Starrable. - // - // Query arguments: - // - input RemoveStarInput! - RemoveStar *RemoveStarPayload `json:"removeStar,omitempty"` - - // RemoveUpvote: Remove an upvote to a discussion or discussion comment. - // - // Query arguments: - // - input RemoveUpvoteInput! - RemoveUpvote *RemoveUpvotePayload `json:"removeUpvote,omitempty"` - - // ReopenIssue: Reopen a issue. - // - // Query arguments: - // - input ReopenIssueInput! - ReopenIssue *ReopenIssuePayload `json:"reopenIssue,omitempty"` - - // ReopenPullRequest: Reopen a pull request. - // - // Query arguments: - // - input ReopenPullRequestInput! - ReopenPullRequest *ReopenPullRequestPayload `json:"reopenPullRequest,omitempty"` - - // RequestReviews: Set review requests on a pull request. - // - // Query arguments: - // - input RequestReviewsInput! - RequestReviews *RequestReviewsPayload `json:"requestReviews,omitempty"` - - // RerequestCheckSuite: Rerequests an existing check suite. - // - // Query arguments: - // - input RerequestCheckSuiteInput! - RerequestCheckSuite *RerequestCheckSuitePayload `json:"rerequestCheckSuite,omitempty"` - - // ResolveReviewThread: Marks a review thread as resolved. - // - // Query arguments: - // - input ResolveReviewThreadInput! - ResolveReviewThread *ResolveReviewThreadPayload `json:"resolveReviewThread,omitempty"` - - // RevokeEnterpriseOrganizationsMigratorRole: Revoke the migrator role to a user for all organizations under an enterprise account. - // - // Query arguments: - // - input RevokeEnterpriseOrganizationsMigratorRoleInput! - RevokeEnterpriseOrganizationsMigratorRole *RevokeEnterpriseOrganizationsMigratorRolePayload `json:"revokeEnterpriseOrganizationsMigratorRole,omitempty"` - - // RevokeMigratorRole: Revoke the migrator role from a user or a team. - // - // Query arguments: - // - input RevokeMigratorRoleInput! - RevokeMigratorRole *RevokeMigratorRolePayload `json:"revokeMigratorRole,omitempty"` - - // SetEnterpriseIdentityProvider: Creates or updates the identity provider for an enterprise. - // - // Query arguments: - // - input SetEnterpriseIdentityProviderInput! - SetEnterpriseIdentityProvider *SetEnterpriseIdentityProviderPayload `json:"setEnterpriseIdentityProvider,omitempty"` - - // SetOrganizationInteractionLimit: Set an organization level interaction limit for an organization's public repositories. - // - // Query arguments: - // - input SetOrganizationInteractionLimitInput! - SetOrganizationInteractionLimit *SetOrganizationInteractionLimitPayload `json:"setOrganizationInteractionLimit,omitempty"` - - // SetRepositoryInteractionLimit: Sets an interaction limit setting for a repository. - // - // Query arguments: - // - input SetRepositoryInteractionLimitInput! - SetRepositoryInteractionLimit *SetRepositoryInteractionLimitPayload `json:"setRepositoryInteractionLimit,omitempty"` - - // SetUserInteractionLimit: Set a user level interaction limit for an user's public repositories. - // - // Query arguments: - // - input SetUserInteractionLimitInput! - SetUserInteractionLimit *SetUserInteractionLimitPayload `json:"setUserInteractionLimit,omitempty"` - - // StartRepositoryMigration: Start a repository migration. - // - // Query arguments: - // - input StartRepositoryMigrationInput! - StartRepositoryMigration *StartRepositoryMigrationPayload `json:"startRepositoryMigration,omitempty"` - - // SubmitPullRequestReview: Submits a pending pull request review. - // - // Query arguments: - // - input SubmitPullRequestReviewInput! - SubmitPullRequestReview *SubmitPullRequestReviewPayload `json:"submitPullRequestReview,omitempty"` - - // TransferIssue: Transfer an issue to a different repository. - // - // Query arguments: - // - input TransferIssueInput! - TransferIssue *TransferIssuePayload `json:"transferIssue,omitempty"` - - // UnarchiveRepository: Unarchives a repository. - // - // Query arguments: - // - input UnarchiveRepositoryInput! - UnarchiveRepository *UnarchiveRepositoryPayload `json:"unarchiveRepository,omitempty"` - - // UnfollowOrganization: Unfollow an organization. - // - // Query arguments: - // - input UnfollowOrganizationInput! - UnfollowOrganization *UnfollowOrganizationPayload `json:"unfollowOrganization,omitempty"` - - // UnfollowUser: Unfollow a user. - // - // Query arguments: - // - input UnfollowUserInput! - UnfollowUser *UnfollowUserPayload `json:"unfollowUser,omitempty"` - - // UnlinkRepositoryFromProject: Deletes a repository link from a project. - // - // Query arguments: - // - input UnlinkRepositoryFromProjectInput! - UnlinkRepositoryFromProject *UnlinkRepositoryFromProjectPayload `json:"unlinkRepositoryFromProject,omitempty"` - - // UnlockLockable: Unlock a lockable object. - // - // Query arguments: - // - input UnlockLockableInput! - UnlockLockable *UnlockLockablePayload `json:"unlockLockable,omitempty"` - - // UnmarkDiscussionCommentAsAnswer: Unmark a discussion comment as the chosen answer for discussions in an answerable category. - // - // Query arguments: - // - input UnmarkDiscussionCommentAsAnswerInput! - UnmarkDiscussionCommentAsAnswer *UnmarkDiscussionCommentAsAnswerPayload `json:"unmarkDiscussionCommentAsAnswer,omitempty"` - - // UnmarkFileAsViewed: Unmark a pull request file as viewed. - // - // Query arguments: - // - input UnmarkFileAsViewedInput! - UnmarkFileAsViewed *UnmarkFileAsViewedPayload `json:"unmarkFileAsViewed,omitempty"` - - // UnmarkIssueAsDuplicate: Unmark an issue as a duplicate of another issue. - // - // Query arguments: - // - input UnmarkIssueAsDuplicateInput! - UnmarkIssueAsDuplicate *UnmarkIssueAsDuplicatePayload `json:"unmarkIssueAsDuplicate,omitempty"` - - // UnminimizeComment: Unminimizes a comment on an Issue, Commit, Pull Request, or Gist. - // - // Query arguments: - // - input UnminimizeCommentInput! - UnminimizeComment *UnminimizeCommentPayload `json:"unminimizeComment,omitempty"` - - // UnpinIssue: Unpin a pinned issue from a repository. - // - // Query arguments: - // - input UnpinIssueInput! - UnpinIssue *UnpinIssuePayload `json:"unpinIssue,omitempty"` - - // UnresolveReviewThread: Marks a review thread as unresolved. - // - // Query arguments: - // - input UnresolveReviewThreadInput! - UnresolveReviewThread *UnresolveReviewThreadPayload `json:"unresolveReviewThread,omitempty"` - - // UpdateBranchProtectionRule: Create a new branch protection rule. - // - // Query arguments: - // - input UpdateBranchProtectionRuleInput! - UpdateBranchProtectionRule *UpdateBranchProtectionRulePayload `json:"updateBranchProtectionRule,omitempty"` - - // UpdateCheckRun: Update a check run. - // - // Query arguments: - // - input UpdateCheckRunInput! - UpdateCheckRun *UpdateCheckRunPayload `json:"updateCheckRun,omitempty"` - - // UpdateCheckSuitePreferences: Modifies the settings of an existing check suite. - // - // Query arguments: - // - input UpdateCheckSuitePreferencesInput! - UpdateCheckSuitePreferences *UpdateCheckSuitePreferencesPayload `json:"updateCheckSuitePreferences,omitempty"` - - // UpdateDiscussion: Update a discussion. - // - // Query arguments: - // - input UpdateDiscussionInput! - UpdateDiscussion *UpdateDiscussionPayload `json:"updateDiscussion,omitempty"` - - // UpdateDiscussionComment: Update the contents of a comment on a Discussion. - // - // Query arguments: - // - input UpdateDiscussionCommentInput! - UpdateDiscussionComment *UpdateDiscussionCommentPayload `json:"updateDiscussionComment,omitempty"` - - // UpdateEnterpriseAdministratorRole: Updates the role of an enterprise administrator. - // - // Query arguments: - // - input UpdateEnterpriseAdministratorRoleInput! - UpdateEnterpriseAdministratorRole *UpdateEnterpriseAdministratorRolePayload `json:"updateEnterpriseAdministratorRole,omitempty"` - - // UpdateEnterpriseAllowPrivateRepositoryForkingSetting: Sets whether private repository forks are enabled for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput! - UpdateEnterpriseAllowPrivateRepositoryForkingSetting *UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload `json:"updateEnterpriseAllowPrivateRepositoryForkingSetting,omitempty"` - - // UpdateEnterpriseDefaultRepositoryPermissionSetting: Sets the base repository permission for organizations in an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseDefaultRepositoryPermissionSettingInput! - UpdateEnterpriseDefaultRepositoryPermissionSetting *UpdateEnterpriseDefaultRepositoryPermissionSettingPayload `json:"updateEnterpriseDefaultRepositoryPermissionSetting,omitempty"` - - // UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting: Sets whether organization members with admin permissions on a repository can change repository visibility. - // - // Query arguments: - // - input UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput! - UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting *UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload `json:"updateEnterpriseMembersCanChangeRepositoryVisibilitySetting,omitempty"` - - // UpdateEnterpriseMembersCanCreateRepositoriesSetting: Sets the members can create repositories setting for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseMembersCanCreateRepositoriesSettingInput! - UpdateEnterpriseMembersCanCreateRepositoriesSetting *UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload `json:"updateEnterpriseMembersCanCreateRepositoriesSetting,omitempty"` - - // UpdateEnterpriseMembersCanDeleteIssuesSetting: Sets the members can delete issues setting for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseMembersCanDeleteIssuesSettingInput! - UpdateEnterpriseMembersCanDeleteIssuesSetting *UpdateEnterpriseMembersCanDeleteIssuesSettingPayload `json:"updateEnterpriseMembersCanDeleteIssuesSetting,omitempty"` - - // UpdateEnterpriseMembersCanDeleteRepositoriesSetting: Sets the members can delete repositories setting for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput! - UpdateEnterpriseMembersCanDeleteRepositoriesSetting *UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload `json:"updateEnterpriseMembersCanDeleteRepositoriesSetting,omitempty"` - - // UpdateEnterpriseMembersCanInviteCollaboratorsSetting: Sets whether members can invite collaborators are enabled for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput! - UpdateEnterpriseMembersCanInviteCollaboratorsSetting *UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload `json:"updateEnterpriseMembersCanInviteCollaboratorsSetting,omitempty"` - - // UpdateEnterpriseMembersCanMakePurchasesSetting: Sets whether or not an organization admin can make purchases. - // - // Query arguments: - // - input UpdateEnterpriseMembersCanMakePurchasesSettingInput! - UpdateEnterpriseMembersCanMakePurchasesSetting *UpdateEnterpriseMembersCanMakePurchasesSettingPayload `json:"updateEnterpriseMembersCanMakePurchasesSetting,omitempty"` - - // UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting: Sets the members can update protected branches setting for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput! - UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting *UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload `json:"updateEnterpriseMembersCanUpdateProtectedBranchesSetting,omitempty"` - - // UpdateEnterpriseMembersCanViewDependencyInsightsSetting: Sets the members can view dependency insights for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput! - UpdateEnterpriseMembersCanViewDependencyInsightsSetting *UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload `json:"updateEnterpriseMembersCanViewDependencyInsightsSetting,omitempty"` - - // UpdateEnterpriseOrganizationProjectsSetting: Sets whether organization projects are enabled for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseOrganizationProjectsSettingInput! - UpdateEnterpriseOrganizationProjectsSetting *UpdateEnterpriseOrganizationProjectsSettingPayload `json:"updateEnterpriseOrganizationProjectsSetting,omitempty"` - - // UpdateEnterpriseOwnerOrganizationRole: Updates the role of an enterprise owner with an organization. - // - // Query arguments: - // - input UpdateEnterpriseOwnerOrganizationRoleInput! - UpdateEnterpriseOwnerOrganizationRole *UpdateEnterpriseOwnerOrganizationRolePayload `json:"updateEnterpriseOwnerOrganizationRole,omitempty"` - - // UpdateEnterpriseProfile: Updates an enterprise's profile. - // - // Query arguments: - // - input UpdateEnterpriseProfileInput! - UpdateEnterpriseProfile *UpdateEnterpriseProfilePayload `json:"updateEnterpriseProfile,omitempty"` - - // UpdateEnterpriseRepositoryProjectsSetting: Sets whether repository projects are enabled for a enterprise. - // - // Query arguments: - // - input UpdateEnterpriseRepositoryProjectsSettingInput! - UpdateEnterpriseRepositoryProjectsSetting *UpdateEnterpriseRepositoryProjectsSettingPayload `json:"updateEnterpriseRepositoryProjectsSetting,omitempty"` - - // UpdateEnterpriseTeamDiscussionsSetting: Sets whether team discussions are enabled for an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseTeamDiscussionsSettingInput! - UpdateEnterpriseTeamDiscussionsSetting *UpdateEnterpriseTeamDiscussionsSettingPayload `json:"updateEnterpriseTeamDiscussionsSetting,omitempty"` - - // UpdateEnterpriseTwoFactorAuthenticationRequiredSetting: Sets whether two factor authentication is required for all users in an enterprise. - // - // Query arguments: - // - input UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput! - UpdateEnterpriseTwoFactorAuthenticationRequiredSetting *UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload `json:"updateEnterpriseTwoFactorAuthenticationRequiredSetting,omitempty"` - - // UpdateEnvironment: Updates an environment. - // - // Query arguments: - // - input UpdateEnvironmentInput! - UpdateEnvironment *UpdateEnvironmentPayload `json:"updateEnvironment,omitempty"` - - // UpdateIpAllowListEnabledSetting: Sets whether an IP allow list is enabled on an owner. - // - // Query arguments: - // - input UpdateIpAllowListEnabledSettingInput! - UpdateIpAllowListEnabledSetting *UpdateIpAllowListEnabledSettingPayload `json:"updateIpAllowListEnabledSetting,omitempty"` - - // UpdateIpAllowListEntry: Updates an IP allow list entry. - // - // Query arguments: - // - input UpdateIpAllowListEntryInput! - UpdateIpAllowListEntry *UpdateIpAllowListEntryPayload `json:"updateIpAllowListEntry,omitempty"` - - // UpdateIpAllowListForInstalledAppsEnabledSetting: Sets whether IP allow list configuration for installed GitHub Apps is enabled on an owner. - // - // Query arguments: - // - input UpdateIpAllowListForInstalledAppsEnabledSettingInput! - UpdateIpAllowListForInstalledAppsEnabledSetting *UpdateIpAllowListForInstalledAppsEnabledSettingPayload `json:"updateIpAllowListForInstalledAppsEnabledSetting,omitempty"` - - // UpdateIssue: Updates an Issue. - // - // Query arguments: - // - input UpdateIssueInput! - UpdateIssue *UpdateIssuePayload `json:"updateIssue,omitempty"` - - // UpdateIssueComment: Updates an IssueComment object. - // - // Query arguments: - // - input UpdateIssueCommentInput! - UpdateIssueComment *UpdateIssueCommentPayload `json:"updateIssueComment,omitempty"` - - // UpdateNotificationRestrictionSetting: Update the setting to restrict notifications to only verified or approved domains available to an owner. - // - // Query arguments: - // - input UpdateNotificationRestrictionSettingInput! - UpdateNotificationRestrictionSetting *UpdateNotificationRestrictionSettingPayload `json:"updateNotificationRestrictionSetting,omitempty"` - - // UpdateOrganizationAllowPrivateRepositoryForkingSetting: Sets whether private repository forks are enabled for an organization. - // - // Query arguments: - // - input UpdateOrganizationAllowPrivateRepositoryForkingSettingInput! - UpdateOrganizationAllowPrivateRepositoryForkingSetting *UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload `json:"updateOrganizationAllowPrivateRepositoryForkingSetting,omitempty"` - - // UpdateProject: Updates an existing project. - // - // Query arguments: - // - input UpdateProjectInput! - UpdateProject *UpdateProjectPayload `json:"updateProject,omitempty"` - - // UpdateProjectCard: Updates an existing project card. - // - // Query arguments: - // - input UpdateProjectCardInput! - UpdateProjectCard *UpdateProjectCardPayload `json:"updateProjectCard,omitempty"` - - // UpdateProjectColumn: Updates an existing project column. - // - // Query arguments: - // - input UpdateProjectColumnInput! - UpdateProjectColumn *UpdateProjectColumnPayload `json:"updateProjectColumn,omitempty"` - - // UpdateProjectDraftIssue: Updates a draft issue within a Project. - // - // Deprecated: Updates a draft issue within a Project. - // - // Query arguments: - // - input UpdateProjectDraftIssueInput! - UpdateProjectDraftIssue *UpdateProjectDraftIssuePayload `json:"updateProjectDraftIssue,omitempty"` - - // UpdateProjectNext: Updates an existing project (beta). - // - // Deprecated: Updates an existing project (beta). - // - // Query arguments: - // - input UpdateProjectNextInput! - UpdateProjectNext *UpdateProjectNextPayload `json:"updateProjectNext,omitempty"` - - // UpdateProjectNextItemField: Updates a field of an item from a Project. - // - // Deprecated: Updates a field of an item from a Project. - // - // Query arguments: - // - input UpdateProjectNextItemFieldInput! - UpdateProjectNextItemField *UpdateProjectNextItemFieldPayload `json:"updateProjectNextItemField,omitempty"` - - // UpdateProjectV2: Updates an existing project (beta). - // - // Query arguments: - // - input UpdateProjectV2Input! - UpdateProjectV2 *UpdateProjectV2Payload `json:"updateProjectV2,omitempty"` - - // UpdateProjectV2DraftIssue: Updates a draft issue within a Project. - // - // Query arguments: - // - input UpdateProjectV2DraftIssueInput! - UpdateProjectV2DraftIssue *UpdateProjectV2DraftIssuePayload `json:"updateProjectV2DraftIssue,omitempty"` - - // UpdateProjectV2ItemFieldValue: This mutation updates the value of a field for an item in a Project. Currently only single-select, text, number, date, and iteration fields are supported. - // - // Query arguments: - // - input UpdateProjectV2ItemFieldValueInput! - UpdateProjectV2ItemFieldValue *UpdateProjectV2ItemFieldValuePayload `json:"updateProjectV2ItemFieldValue,omitempty"` - - // UpdateProjectV2ItemPosition: This mutation updates the position of the item in the project, where the position represents the priority of an item. - // - // Query arguments: - // - input UpdateProjectV2ItemPositionInput! - UpdateProjectV2ItemPosition *UpdateProjectV2ItemPositionPayload `json:"updateProjectV2ItemPosition,omitempty"` - - // UpdatePullRequest: Update a pull request. - // - // Query arguments: - // - input UpdatePullRequestInput! - UpdatePullRequest *UpdatePullRequestPayload `json:"updatePullRequest,omitempty"` - - // UpdatePullRequestBranch: Merge or Rebase HEAD from upstream branch into pull request branch. - // - // Query arguments: - // - input UpdatePullRequestBranchInput! - UpdatePullRequestBranch *UpdatePullRequestBranchPayload `json:"updatePullRequestBranch,omitempty"` - - // UpdatePullRequestReview: Updates the body of a pull request review. - // - // Query arguments: - // - input UpdatePullRequestReviewInput! - UpdatePullRequestReview *UpdatePullRequestReviewPayload `json:"updatePullRequestReview,omitempty"` - - // UpdatePullRequestReviewComment: Updates a pull request review comment. - // - // Query arguments: - // - input UpdatePullRequestReviewCommentInput! - UpdatePullRequestReviewComment *UpdatePullRequestReviewCommentPayload `json:"updatePullRequestReviewComment,omitempty"` - - // UpdateRef: Update a Git Ref. - // - // Query arguments: - // - input UpdateRefInput! - UpdateRef *UpdateRefPayload `json:"updateRef,omitempty"` - - // UpdateRepository: Update information about a repository. - // - // Query arguments: - // - input UpdateRepositoryInput! - UpdateRepository *UpdateRepositoryPayload `json:"updateRepository,omitempty"` - - // UpdateSponsorshipPreferences: Change visibility of your sponsorship and opt in or out of email updates from the maintainer. - // - // Query arguments: - // - input UpdateSponsorshipPreferencesInput! - UpdateSponsorshipPreferences *UpdateSponsorshipPreferencesPayload `json:"updateSponsorshipPreferences,omitempty"` - - // UpdateSubscription: Updates the state for subscribable subjects. - // - // Query arguments: - // - input UpdateSubscriptionInput! - UpdateSubscription *UpdateSubscriptionPayload `json:"updateSubscription,omitempty"` - - // UpdateTeamDiscussion: Updates a team discussion. - // - // Query arguments: - // - input UpdateTeamDiscussionInput! - UpdateTeamDiscussion *UpdateTeamDiscussionPayload `json:"updateTeamDiscussion,omitempty"` - - // UpdateTeamDiscussionComment: Updates a discussion comment. - // - // Query arguments: - // - input UpdateTeamDiscussionCommentInput! - UpdateTeamDiscussionComment *UpdateTeamDiscussionCommentPayload `json:"updateTeamDiscussionComment,omitempty"` - - // UpdateTeamsRepository: Update team repository. - // - // Query arguments: - // - input UpdateTeamsRepositoryInput! - UpdateTeamsRepository *UpdateTeamsRepositoryPayload `json:"updateTeamsRepository,omitempty"` - - // UpdateTopics: Replaces the repository's topics with the given topics. - // - // Query arguments: - // - input UpdateTopicsInput! - UpdateTopics *UpdateTopicsPayload `json:"updateTopics,omitempty"` - - // VerifyVerifiableDomain: Verify that a verifiable domain has the expected DNS record. - // - // Query arguments: - // - input VerifyVerifiableDomainInput! - VerifyVerifiableDomain *VerifyVerifiableDomainPayload `json:"verifyVerifiableDomain,omitempty"` -} - -func (x *Mutation) GetAbortQueuedMigrations() *AbortQueuedMigrationsPayload { - return x.AbortQueuedMigrations -} -func (x *Mutation) GetAcceptEnterpriseAdministratorInvitation() *AcceptEnterpriseAdministratorInvitationPayload { - return x.AcceptEnterpriseAdministratorInvitation -} -func (x *Mutation) GetAcceptTopicSuggestion() *AcceptTopicSuggestionPayload { - return x.AcceptTopicSuggestion -} -func (x *Mutation) GetAddAssigneesToAssignable() *AddAssigneesToAssignablePayload { - return x.AddAssigneesToAssignable -} -func (x *Mutation) GetAddComment() *AddCommentPayload { return x.AddComment } -func (x *Mutation) GetAddDiscussionComment() *AddDiscussionCommentPayload { - return x.AddDiscussionComment -} -func (x *Mutation) GetAddDiscussionPollVote() *AddDiscussionPollVotePayload { - return x.AddDiscussionPollVote -} -func (x *Mutation) GetAddEnterpriseSupportEntitlement() *AddEnterpriseSupportEntitlementPayload { - return x.AddEnterpriseSupportEntitlement -} -func (x *Mutation) GetAddLabelsToLabelable() *AddLabelsToLabelablePayload { - return x.AddLabelsToLabelable -} -func (x *Mutation) GetAddProjectCard() *AddProjectCardPayload { return x.AddProjectCard } -func (x *Mutation) GetAddProjectColumn() *AddProjectColumnPayload { return x.AddProjectColumn } -func (x *Mutation) GetAddProjectDraftIssue() *AddProjectDraftIssuePayload { - return x.AddProjectDraftIssue -} -func (x *Mutation) GetAddProjectNextItem() *AddProjectNextItemPayload { return x.AddProjectNextItem } -func (x *Mutation) GetAddProjectV2DraftIssue() *AddProjectV2DraftIssuePayload { - return x.AddProjectV2DraftIssue -} -func (x *Mutation) GetAddProjectV2ItemById() *AddProjectV2ItemByIdPayload { - return x.AddProjectV2ItemById -} -func (x *Mutation) GetAddPullRequestReview() *AddPullRequestReviewPayload { - return x.AddPullRequestReview -} -func (x *Mutation) GetAddPullRequestReviewComment() *AddPullRequestReviewCommentPayload { - return x.AddPullRequestReviewComment -} -func (x *Mutation) GetAddPullRequestReviewThread() *AddPullRequestReviewThreadPayload { - return x.AddPullRequestReviewThread -} -func (x *Mutation) GetAddReaction() *AddReactionPayload { return x.AddReaction } -func (x *Mutation) GetAddStar() *AddStarPayload { return x.AddStar } -func (x *Mutation) GetAddUpvote() *AddUpvotePayload { return x.AddUpvote } -func (x *Mutation) GetAddVerifiableDomain() *AddVerifiableDomainPayload { return x.AddVerifiableDomain } -func (x *Mutation) GetApproveDeployments() *ApproveDeploymentsPayload { return x.ApproveDeployments } -func (x *Mutation) GetApproveVerifiableDomain() *ApproveVerifiableDomainPayload { - return x.ApproveVerifiableDomain -} -func (x *Mutation) GetArchiveRepository() *ArchiveRepositoryPayload { return x.ArchiveRepository } -func (x *Mutation) GetCancelEnterpriseAdminInvitation() *CancelEnterpriseAdminInvitationPayload { - return x.CancelEnterpriseAdminInvitation -} -func (x *Mutation) GetCancelSponsorship() *CancelSponsorshipPayload { return x.CancelSponsorship } -func (x *Mutation) GetChangeUserStatus() *ChangeUserStatusPayload { return x.ChangeUserStatus } -func (x *Mutation) GetClearLabelsFromLabelable() *ClearLabelsFromLabelablePayload { - return x.ClearLabelsFromLabelable -} -func (x *Mutation) GetCloneProject() *CloneProjectPayload { return x.CloneProject } -func (x *Mutation) GetCloneTemplateRepository() *CloneTemplateRepositoryPayload { - return x.CloneTemplateRepository -} -func (x *Mutation) GetCloseIssue() *CloseIssuePayload { return x.CloseIssue } -func (x *Mutation) GetClosePullRequest() *ClosePullRequestPayload { return x.ClosePullRequest } -func (x *Mutation) GetConvertProjectCardNoteToIssue() *ConvertProjectCardNoteToIssuePayload { - return x.ConvertProjectCardNoteToIssue -} -func (x *Mutation) GetConvertPullRequestToDraft() *ConvertPullRequestToDraftPayload { - return x.ConvertPullRequestToDraft -} -func (x *Mutation) GetCreateBranchProtectionRule() *CreateBranchProtectionRulePayload { - return x.CreateBranchProtectionRule -} -func (x *Mutation) GetCreateCheckRun() *CreateCheckRunPayload { return x.CreateCheckRun } -func (x *Mutation) GetCreateCheckSuite() *CreateCheckSuitePayload { return x.CreateCheckSuite } -func (x *Mutation) GetCreateCommitOnBranch() *CreateCommitOnBranchPayload { - return x.CreateCommitOnBranch -} -func (x *Mutation) GetCreateDiscussion() *CreateDiscussionPayload { return x.CreateDiscussion } -func (x *Mutation) GetCreateEnterpriseOrganization() *CreateEnterpriseOrganizationPayload { - return x.CreateEnterpriseOrganization -} -func (x *Mutation) GetCreateEnvironment() *CreateEnvironmentPayload { return x.CreateEnvironment } -func (x *Mutation) GetCreateIpAllowListEntry() *CreateIpAllowListEntryPayload { - return x.CreateIpAllowListEntry -} -func (x *Mutation) GetCreateIssue() *CreateIssuePayload { return x.CreateIssue } -func (x *Mutation) GetCreateMigrationSource() *CreateMigrationSourcePayload { - return x.CreateMigrationSource -} -func (x *Mutation) GetCreateProject() *CreateProjectPayload { return x.CreateProject } -func (x *Mutation) GetCreateProjectV2() *CreateProjectV2Payload { return x.CreateProjectV2 } -func (x *Mutation) GetCreatePullRequest() *CreatePullRequestPayload { return x.CreatePullRequest } -func (x *Mutation) GetCreateRef() *CreateRefPayload { return x.CreateRef } -func (x *Mutation) GetCreateRepository() *CreateRepositoryPayload { return x.CreateRepository } -func (x *Mutation) GetCreateSponsorsTier() *CreateSponsorsTierPayload { return x.CreateSponsorsTier } -func (x *Mutation) GetCreateSponsorship() *CreateSponsorshipPayload { return x.CreateSponsorship } -func (x *Mutation) GetCreateTeamDiscussion() *CreateTeamDiscussionPayload { - return x.CreateTeamDiscussion -} -func (x *Mutation) GetCreateTeamDiscussionComment() *CreateTeamDiscussionCommentPayload { - return x.CreateTeamDiscussionComment -} -func (x *Mutation) GetDeclineTopicSuggestion() *DeclineTopicSuggestionPayload { - return x.DeclineTopicSuggestion -} -func (x *Mutation) GetDeleteBranchProtectionRule() *DeleteBranchProtectionRulePayload { - return x.DeleteBranchProtectionRule -} -func (x *Mutation) GetDeleteDeployment() *DeleteDeploymentPayload { return x.DeleteDeployment } -func (x *Mutation) GetDeleteDiscussion() *DeleteDiscussionPayload { return x.DeleteDiscussion } -func (x *Mutation) GetDeleteDiscussionComment() *DeleteDiscussionCommentPayload { - return x.DeleteDiscussionComment -} -func (x *Mutation) GetDeleteEnvironment() *DeleteEnvironmentPayload { return x.DeleteEnvironment } -func (x *Mutation) GetDeleteIpAllowListEntry() *DeleteIpAllowListEntryPayload { - return x.DeleteIpAllowListEntry -} -func (x *Mutation) GetDeleteIssue() *DeleteIssuePayload { return x.DeleteIssue } -func (x *Mutation) GetDeleteIssueComment() *DeleteIssueCommentPayload { return x.DeleteIssueComment } -func (x *Mutation) GetDeleteProject() *DeleteProjectPayload { return x.DeleteProject } -func (x *Mutation) GetDeleteProjectCard() *DeleteProjectCardPayload { return x.DeleteProjectCard } -func (x *Mutation) GetDeleteProjectColumn() *DeleteProjectColumnPayload { return x.DeleteProjectColumn } -func (x *Mutation) GetDeleteProjectNextItem() *DeleteProjectNextItemPayload { - return x.DeleteProjectNextItem -} -func (x *Mutation) GetDeleteProjectV2Item() *DeleteProjectV2ItemPayload { return x.DeleteProjectV2Item } -func (x *Mutation) GetDeletePullRequestReview() *DeletePullRequestReviewPayload { - return x.DeletePullRequestReview -} -func (x *Mutation) GetDeletePullRequestReviewComment() *DeletePullRequestReviewCommentPayload { - return x.DeletePullRequestReviewComment -} -func (x *Mutation) GetDeleteRef() *DeleteRefPayload { return x.DeleteRef } -func (x *Mutation) GetDeleteTeamDiscussion() *DeleteTeamDiscussionPayload { - return x.DeleteTeamDiscussion -} -func (x *Mutation) GetDeleteTeamDiscussionComment() *DeleteTeamDiscussionCommentPayload { - return x.DeleteTeamDiscussionComment -} -func (x *Mutation) GetDeleteVerifiableDomain() *DeleteVerifiableDomainPayload { - return x.DeleteVerifiableDomain -} -func (x *Mutation) GetDisablePullRequestAutoMerge() *DisablePullRequestAutoMergePayload { - return x.DisablePullRequestAutoMerge -} -func (x *Mutation) GetDismissPullRequestReview() *DismissPullRequestReviewPayload { - return x.DismissPullRequestReview -} -func (x *Mutation) GetDismissRepositoryVulnerabilityAlert() *DismissRepositoryVulnerabilityAlertPayload { - return x.DismissRepositoryVulnerabilityAlert -} -func (x *Mutation) GetEnablePullRequestAutoMerge() *EnablePullRequestAutoMergePayload { - return x.EnablePullRequestAutoMerge -} -func (x *Mutation) GetFollowOrganization() *FollowOrganizationPayload { return x.FollowOrganization } -func (x *Mutation) GetFollowUser() *FollowUserPayload { return x.FollowUser } -func (x *Mutation) GetGrantEnterpriseOrganizationsMigratorRole() *GrantEnterpriseOrganizationsMigratorRolePayload { - return x.GrantEnterpriseOrganizationsMigratorRole -} -func (x *Mutation) GetGrantMigratorRole() *GrantMigratorRolePayload { return x.GrantMigratorRole } -func (x *Mutation) GetInviteEnterpriseAdmin() *InviteEnterpriseAdminPayload { - return x.InviteEnterpriseAdmin -} -func (x *Mutation) GetLinkRepositoryToProject() *LinkRepositoryToProjectPayload { - return x.LinkRepositoryToProject -} -func (x *Mutation) GetLockLockable() *LockLockablePayload { return x.LockLockable } -func (x *Mutation) GetMarkDiscussionCommentAsAnswer() *MarkDiscussionCommentAsAnswerPayload { - return x.MarkDiscussionCommentAsAnswer -} -func (x *Mutation) GetMarkFileAsViewed() *MarkFileAsViewedPayload { return x.MarkFileAsViewed } -func (x *Mutation) GetMarkPullRequestReadyForReview() *MarkPullRequestReadyForReviewPayload { - return x.MarkPullRequestReadyForReview -} -func (x *Mutation) GetMergeBranch() *MergeBranchPayload { return x.MergeBranch } -func (x *Mutation) GetMergePullRequest() *MergePullRequestPayload { return x.MergePullRequest } -func (x *Mutation) GetMinimizeComment() *MinimizeCommentPayload { return x.MinimizeComment } -func (x *Mutation) GetMoveProjectCard() *MoveProjectCardPayload { return x.MoveProjectCard } -func (x *Mutation) GetMoveProjectColumn() *MoveProjectColumnPayload { return x.MoveProjectColumn } -func (x *Mutation) GetPinIssue() *PinIssuePayload { return x.PinIssue } -func (x *Mutation) GetRegenerateEnterpriseIdentityProviderRecoveryCodes() *RegenerateEnterpriseIdentityProviderRecoveryCodesPayload { - return x.RegenerateEnterpriseIdentityProviderRecoveryCodes -} -func (x *Mutation) GetRegenerateVerifiableDomainToken() *RegenerateVerifiableDomainTokenPayload { - return x.RegenerateVerifiableDomainToken -} -func (x *Mutation) GetRejectDeployments() *RejectDeploymentsPayload { return x.RejectDeployments } -func (x *Mutation) GetRemoveAssigneesFromAssignable() *RemoveAssigneesFromAssignablePayload { - return x.RemoveAssigneesFromAssignable -} -func (x *Mutation) GetRemoveEnterpriseAdmin() *RemoveEnterpriseAdminPayload { - return x.RemoveEnterpriseAdmin -} -func (x *Mutation) GetRemoveEnterpriseIdentityProvider() *RemoveEnterpriseIdentityProviderPayload { - return x.RemoveEnterpriseIdentityProvider -} -func (x *Mutation) GetRemoveEnterpriseOrganization() *RemoveEnterpriseOrganizationPayload { - return x.RemoveEnterpriseOrganization -} -func (x *Mutation) GetRemoveEnterpriseSupportEntitlement() *RemoveEnterpriseSupportEntitlementPayload { - return x.RemoveEnterpriseSupportEntitlement -} -func (x *Mutation) GetRemoveLabelsFromLabelable() *RemoveLabelsFromLabelablePayload { - return x.RemoveLabelsFromLabelable -} -func (x *Mutation) GetRemoveOutsideCollaborator() *RemoveOutsideCollaboratorPayload { - return x.RemoveOutsideCollaborator -} -func (x *Mutation) GetRemoveReaction() *RemoveReactionPayload { return x.RemoveReaction } -func (x *Mutation) GetRemoveStar() *RemoveStarPayload { return x.RemoveStar } -func (x *Mutation) GetRemoveUpvote() *RemoveUpvotePayload { return x.RemoveUpvote } -func (x *Mutation) GetReopenIssue() *ReopenIssuePayload { return x.ReopenIssue } -func (x *Mutation) GetReopenPullRequest() *ReopenPullRequestPayload { return x.ReopenPullRequest } -func (x *Mutation) GetRequestReviews() *RequestReviewsPayload { return x.RequestReviews } -func (x *Mutation) GetRerequestCheckSuite() *RerequestCheckSuitePayload { return x.RerequestCheckSuite } -func (x *Mutation) GetResolveReviewThread() *ResolveReviewThreadPayload { return x.ResolveReviewThread } -func (x *Mutation) GetRevokeEnterpriseOrganizationsMigratorRole() *RevokeEnterpriseOrganizationsMigratorRolePayload { - return x.RevokeEnterpriseOrganizationsMigratorRole -} -func (x *Mutation) GetRevokeMigratorRole() *RevokeMigratorRolePayload { return x.RevokeMigratorRole } -func (x *Mutation) GetSetEnterpriseIdentityProvider() *SetEnterpriseIdentityProviderPayload { - return x.SetEnterpriseIdentityProvider -} -func (x *Mutation) GetSetOrganizationInteractionLimit() *SetOrganizationInteractionLimitPayload { - return x.SetOrganizationInteractionLimit -} -func (x *Mutation) GetSetRepositoryInteractionLimit() *SetRepositoryInteractionLimitPayload { - return x.SetRepositoryInteractionLimit -} -func (x *Mutation) GetSetUserInteractionLimit() *SetUserInteractionLimitPayload { - return x.SetUserInteractionLimit -} -func (x *Mutation) GetStartRepositoryMigration() *StartRepositoryMigrationPayload { - return x.StartRepositoryMigration -} -func (x *Mutation) GetSubmitPullRequestReview() *SubmitPullRequestReviewPayload { - return x.SubmitPullRequestReview -} -func (x *Mutation) GetTransferIssue() *TransferIssuePayload { return x.TransferIssue } -func (x *Mutation) GetUnarchiveRepository() *UnarchiveRepositoryPayload { return x.UnarchiveRepository } -func (x *Mutation) GetUnfollowOrganization() *UnfollowOrganizationPayload { - return x.UnfollowOrganization -} -func (x *Mutation) GetUnfollowUser() *UnfollowUserPayload { return x.UnfollowUser } -func (x *Mutation) GetUnlinkRepositoryFromProject() *UnlinkRepositoryFromProjectPayload { - return x.UnlinkRepositoryFromProject -} -func (x *Mutation) GetUnlockLockable() *UnlockLockablePayload { return x.UnlockLockable } -func (x *Mutation) GetUnmarkDiscussionCommentAsAnswer() *UnmarkDiscussionCommentAsAnswerPayload { - return x.UnmarkDiscussionCommentAsAnswer -} -func (x *Mutation) GetUnmarkFileAsViewed() *UnmarkFileAsViewedPayload { return x.UnmarkFileAsViewed } -func (x *Mutation) GetUnmarkIssueAsDuplicate() *UnmarkIssueAsDuplicatePayload { - return x.UnmarkIssueAsDuplicate -} -func (x *Mutation) GetUnminimizeComment() *UnminimizeCommentPayload { return x.UnminimizeComment } -func (x *Mutation) GetUnpinIssue() *UnpinIssuePayload { return x.UnpinIssue } -func (x *Mutation) GetUnresolveReviewThread() *UnresolveReviewThreadPayload { - return x.UnresolveReviewThread -} -func (x *Mutation) GetUpdateBranchProtectionRule() *UpdateBranchProtectionRulePayload { - return x.UpdateBranchProtectionRule -} -func (x *Mutation) GetUpdateCheckRun() *UpdateCheckRunPayload { return x.UpdateCheckRun } -func (x *Mutation) GetUpdateCheckSuitePreferences() *UpdateCheckSuitePreferencesPayload { - return x.UpdateCheckSuitePreferences -} -func (x *Mutation) GetUpdateDiscussion() *UpdateDiscussionPayload { return x.UpdateDiscussion } -func (x *Mutation) GetUpdateDiscussionComment() *UpdateDiscussionCommentPayload { - return x.UpdateDiscussionComment -} -func (x *Mutation) GetUpdateEnterpriseAdministratorRole() *UpdateEnterpriseAdministratorRolePayload { - return x.UpdateEnterpriseAdministratorRole -} -func (x *Mutation) GetUpdateEnterpriseAllowPrivateRepositoryForkingSetting() *UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload { - return x.UpdateEnterpriseAllowPrivateRepositoryForkingSetting -} -func (x *Mutation) GetUpdateEnterpriseDefaultRepositoryPermissionSetting() *UpdateEnterpriseDefaultRepositoryPermissionSettingPayload { - return x.UpdateEnterpriseDefaultRepositoryPermissionSetting -} -func (x *Mutation) GetUpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting() *UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload { - return x.UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting -} -func (x *Mutation) GetUpdateEnterpriseMembersCanCreateRepositoriesSetting() *UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload { - return x.UpdateEnterpriseMembersCanCreateRepositoriesSetting -} -func (x *Mutation) GetUpdateEnterpriseMembersCanDeleteIssuesSetting() *UpdateEnterpriseMembersCanDeleteIssuesSettingPayload { - return x.UpdateEnterpriseMembersCanDeleteIssuesSetting -} -func (x *Mutation) GetUpdateEnterpriseMembersCanDeleteRepositoriesSetting() *UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload { - return x.UpdateEnterpriseMembersCanDeleteRepositoriesSetting -} -func (x *Mutation) GetUpdateEnterpriseMembersCanInviteCollaboratorsSetting() *UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload { - return x.UpdateEnterpriseMembersCanInviteCollaboratorsSetting -} -func (x *Mutation) GetUpdateEnterpriseMembersCanMakePurchasesSetting() *UpdateEnterpriseMembersCanMakePurchasesSettingPayload { - return x.UpdateEnterpriseMembersCanMakePurchasesSetting -} -func (x *Mutation) GetUpdateEnterpriseMembersCanUpdateProtectedBranchesSetting() *UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload { - return x.UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting -} -func (x *Mutation) GetUpdateEnterpriseMembersCanViewDependencyInsightsSetting() *UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload { - return x.UpdateEnterpriseMembersCanViewDependencyInsightsSetting -} -func (x *Mutation) GetUpdateEnterpriseOrganizationProjectsSetting() *UpdateEnterpriseOrganizationProjectsSettingPayload { - return x.UpdateEnterpriseOrganizationProjectsSetting -} -func (x *Mutation) GetUpdateEnterpriseOwnerOrganizationRole() *UpdateEnterpriseOwnerOrganizationRolePayload { - return x.UpdateEnterpriseOwnerOrganizationRole -} -func (x *Mutation) GetUpdateEnterpriseProfile() *UpdateEnterpriseProfilePayload { - return x.UpdateEnterpriseProfile -} -func (x *Mutation) GetUpdateEnterpriseRepositoryProjectsSetting() *UpdateEnterpriseRepositoryProjectsSettingPayload { - return x.UpdateEnterpriseRepositoryProjectsSetting -} -func (x *Mutation) GetUpdateEnterpriseTeamDiscussionsSetting() *UpdateEnterpriseTeamDiscussionsSettingPayload { - return x.UpdateEnterpriseTeamDiscussionsSetting -} -func (x *Mutation) GetUpdateEnterpriseTwoFactorAuthenticationRequiredSetting() *UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload { - return x.UpdateEnterpriseTwoFactorAuthenticationRequiredSetting -} -func (x *Mutation) GetUpdateEnvironment() *UpdateEnvironmentPayload { return x.UpdateEnvironment } -func (x *Mutation) GetUpdateIpAllowListEnabledSetting() *UpdateIpAllowListEnabledSettingPayload { - return x.UpdateIpAllowListEnabledSetting -} -func (x *Mutation) GetUpdateIpAllowListEntry() *UpdateIpAllowListEntryPayload { - return x.UpdateIpAllowListEntry -} -func (x *Mutation) GetUpdateIpAllowListForInstalledAppsEnabledSetting() *UpdateIpAllowListForInstalledAppsEnabledSettingPayload { - return x.UpdateIpAllowListForInstalledAppsEnabledSetting -} -func (x *Mutation) GetUpdateIssue() *UpdateIssuePayload { return x.UpdateIssue } -func (x *Mutation) GetUpdateIssueComment() *UpdateIssueCommentPayload { return x.UpdateIssueComment } -func (x *Mutation) GetUpdateNotificationRestrictionSetting() *UpdateNotificationRestrictionSettingPayload { - return x.UpdateNotificationRestrictionSetting -} -func (x *Mutation) GetUpdateOrganizationAllowPrivateRepositoryForkingSetting() *UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload { - return x.UpdateOrganizationAllowPrivateRepositoryForkingSetting -} -func (x *Mutation) GetUpdateProject() *UpdateProjectPayload { return x.UpdateProject } -func (x *Mutation) GetUpdateProjectCard() *UpdateProjectCardPayload { return x.UpdateProjectCard } -func (x *Mutation) GetUpdateProjectColumn() *UpdateProjectColumnPayload { return x.UpdateProjectColumn } -func (x *Mutation) GetUpdateProjectDraftIssue() *UpdateProjectDraftIssuePayload { - return x.UpdateProjectDraftIssue -} -func (x *Mutation) GetUpdateProjectNext() *UpdateProjectNextPayload { return x.UpdateProjectNext } -func (x *Mutation) GetUpdateProjectNextItemField() *UpdateProjectNextItemFieldPayload { - return x.UpdateProjectNextItemField -} -func (x *Mutation) GetUpdateProjectV2() *UpdateProjectV2Payload { return x.UpdateProjectV2 } -func (x *Mutation) GetUpdateProjectV2DraftIssue() *UpdateProjectV2DraftIssuePayload { - return x.UpdateProjectV2DraftIssue -} -func (x *Mutation) GetUpdateProjectV2ItemFieldValue() *UpdateProjectV2ItemFieldValuePayload { - return x.UpdateProjectV2ItemFieldValue -} -func (x *Mutation) GetUpdateProjectV2ItemPosition() *UpdateProjectV2ItemPositionPayload { - return x.UpdateProjectV2ItemPosition -} -func (x *Mutation) GetUpdatePullRequest() *UpdatePullRequestPayload { return x.UpdatePullRequest } -func (x *Mutation) GetUpdatePullRequestBranch() *UpdatePullRequestBranchPayload { - return x.UpdatePullRequestBranch -} -func (x *Mutation) GetUpdatePullRequestReview() *UpdatePullRequestReviewPayload { - return x.UpdatePullRequestReview -} -func (x *Mutation) GetUpdatePullRequestReviewComment() *UpdatePullRequestReviewCommentPayload { - return x.UpdatePullRequestReviewComment -} -func (x *Mutation) GetUpdateRef() *UpdateRefPayload { return x.UpdateRef } -func (x *Mutation) GetUpdateRepository() *UpdateRepositoryPayload { return x.UpdateRepository } -func (x *Mutation) GetUpdateSponsorshipPreferences() *UpdateSponsorshipPreferencesPayload { - return x.UpdateSponsorshipPreferences -} -func (x *Mutation) GetUpdateSubscription() *UpdateSubscriptionPayload { return x.UpdateSubscription } -func (x *Mutation) GetUpdateTeamDiscussion() *UpdateTeamDiscussionPayload { - return x.UpdateTeamDiscussion -} -func (x *Mutation) GetUpdateTeamDiscussionComment() *UpdateTeamDiscussionCommentPayload { - return x.UpdateTeamDiscussionComment -} -func (x *Mutation) GetUpdateTeamsRepository() *UpdateTeamsRepositoryPayload { - return x.UpdateTeamsRepository -} -func (x *Mutation) GetUpdateTopics() *UpdateTopicsPayload { return x.UpdateTopics } -func (x *Mutation) GetVerifyVerifiableDomain() *VerifyVerifiableDomainPayload { - return x.VerifyVerifiableDomain -} - -// Node (INTERFACE): An object with an ID. -// Node_Interface: An object with an ID. -// -// Possible types: -// -// - *AddedToProjectEvent -// - *App -// - *AssignedEvent -// - *AutoMergeDisabledEvent -// - *AutoMergeEnabledEvent -// - *AutoRebaseEnabledEvent -// - *AutoSquashEnabledEvent -// - *AutomaticBaseChangeFailedEvent -// - *AutomaticBaseChangeSucceededEvent -// - *BaseRefChangedEvent -// - *BaseRefDeletedEvent -// - *BaseRefForcePushedEvent -// - *Blob -// - *Bot -// - *BranchProtectionRule -// - *BypassForcePushAllowance -// - *BypassPullRequestAllowance -// - *CWE -// - *CheckRun -// - *CheckSuite -// - *ClosedEvent -// - *CodeOfConduct -// - *CommentDeletedEvent -// - *Commit -// - *CommitComment -// - *CommitCommentThread -// - *ConnectedEvent -// - *ConvertToDraftEvent -// - *ConvertedNoteToIssueEvent -// - *ConvertedToDiscussionEvent -// - *CrossReferencedEvent -// - *DemilestonedEvent -// - *DeployKey -// - *DeployedEvent -// - *Deployment -// - *DeploymentEnvironmentChangedEvent -// - *DeploymentReview -// - *DeploymentStatus -// - *DisconnectedEvent -// - *Discussion -// - *DiscussionCategory -// - *DiscussionComment -// - *DiscussionPoll -// - *DiscussionPollOption -// - *DraftIssue -// - *Enterprise -// - *EnterpriseAdministratorInvitation -// - *EnterpriseIdentityProvider -// - *EnterpriseRepositoryInfo -// - *EnterpriseServerInstallation -// - *EnterpriseServerUserAccount -// - *EnterpriseServerUserAccountEmail -// - *EnterpriseServerUserAccountsUpload -// - *EnterpriseUserAccount -// - *Environment -// - *ExternalIdentity -// - *Gist -// - *GistComment -// - *HeadRefDeletedEvent -// - *HeadRefForcePushedEvent -// - *HeadRefRestoredEvent -// - *IpAllowListEntry -// - *Issue -// - *IssueComment -// - *Label -// - *LabeledEvent -// - *Language -// - *License -// - *LockedEvent -// - *Mannequin -// - *MarkedAsDuplicateEvent -// - *MarketplaceCategory -// - *MarketplaceListing -// - *MembersCanDeleteReposClearAuditEntry -// - *MembersCanDeleteReposDisableAuditEntry -// - *MembersCanDeleteReposEnableAuditEntry -// - *MentionedEvent -// - *MergedEvent -// - *MigrationSource -// - *Milestone -// - *MilestonedEvent -// - *MovedColumnsInProjectEvent -// - *OIDCProvider -// - *OauthApplicationCreateAuditEntry -// - *OrgAddBillingManagerAuditEntry -// - *OrgAddMemberAuditEntry -// - *OrgBlockUserAuditEntry -// - *OrgConfigDisableCollaboratorsOnlyAuditEntry -// - *OrgConfigEnableCollaboratorsOnlyAuditEntry -// - *OrgCreateAuditEntry -// - *OrgDisableOauthAppRestrictionsAuditEntry -// - *OrgDisableSamlAuditEntry -// - *OrgDisableTwoFactorRequirementAuditEntry -// - *OrgEnableOauthAppRestrictionsAuditEntry -// - *OrgEnableSamlAuditEntry -// - *OrgEnableTwoFactorRequirementAuditEntry -// - *OrgInviteMemberAuditEntry -// - *OrgInviteToBusinessAuditEntry -// - *OrgOauthAppAccessApprovedAuditEntry -// - *OrgOauthAppAccessDeniedAuditEntry -// - *OrgOauthAppAccessRequestedAuditEntry -// - *OrgRemoveBillingManagerAuditEntry -// - *OrgRemoveMemberAuditEntry -// - *OrgRemoveOutsideCollaboratorAuditEntry -// - *OrgRestoreMemberAuditEntry -// - *OrgUnblockUserAuditEntry -// - *OrgUpdateDefaultRepositoryPermissionAuditEntry -// - *OrgUpdateMemberAuditEntry -// - *OrgUpdateMemberRepositoryCreationPermissionAuditEntry -// - *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry -// - *Organization -// - *OrganizationIdentityProvider -// - *OrganizationInvitation -// - *Package -// - *PackageFile -// - *PackageTag -// - *PackageVersion -// - *PinnedDiscussion -// - *PinnedEvent -// - *PinnedIssue -// - *PrivateRepositoryForkingDisableAuditEntry -// - *PrivateRepositoryForkingEnableAuditEntry -// - *Project -// - *ProjectCard -// - *ProjectColumn -// - *ProjectNext -// - *ProjectNextField -// - *ProjectNextItem -// - *ProjectNextItemFieldValue -// - *ProjectV2 -// - *ProjectV2Field -// - *ProjectV2Item -// - *ProjectV2ItemFieldDateValue -// - *ProjectV2ItemFieldIterationValue -// - *ProjectV2ItemFieldNumberValue -// - *ProjectV2ItemFieldSingleSelectValue -// - *ProjectV2ItemFieldTextValue -// - *ProjectV2IterationField -// - *ProjectV2SingleSelectField -// - *ProjectV2View -// - *ProjectView -// - *PublicKey -// - *PullRequest -// - *PullRequestCommit -// - *PullRequestCommitCommentThread -// - *PullRequestReview -// - *PullRequestReviewComment -// - *PullRequestReviewThread -// - *PullRequestThread -// - *Push -// - *PushAllowance -// - *Reaction -// - *ReadyForReviewEvent -// - *Ref -// - *ReferencedEvent -// - *Release -// - *ReleaseAsset -// - *RemovedFromProjectEvent -// - *RenamedTitleEvent -// - *ReopenedEvent -// - *RepoAccessAuditEntry -// - *RepoAddMemberAuditEntry -// - *RepoAddTopicAuditEntry -// - *RepoArchivedAuditEntry -// - *RepoChangeMergeSettingAuditEntry -// - *RepoConfigDisableAnonymousGitAccessAuditEntry -// - *RepoConfigDisableCollaboratorsOnlyAuditEntry -// - *RepoConfigDisableContributorsOnlyAuditEntry -// - *RepoConfigDisableSockpuppetDisallowedAuditEntry -// - *RepoConfigEnableAnonymousGitAccessAuditEntry -// - *RepoConfigEnableCollaboratorsOnlyAuditEntry -// - *RepoConfigEnableContributorsOnlyAuditEntry -// - *RepoConfigEnableSockpuppetDisallowedAuditEntry -// - *RepoConfigLockAnonymousGitAccessAuditEntry -// - *RepoConfigUnlockAnonymousGitAccessAuditEntry -// - *RepoCreateAuditEntry -// - *RepoDestroyAuditEntry -// - *RepoRemoveMemberAuditEntry -// - *RepoRemoveTopicAuditEntry -// - *Repository -// - *RepositoryInvitation -// - *RepositoryMigration -// - *RepositoryTopic -// - *RepositoryVisibilityChangeDisableAuditEntry -// - *RepositoryVisibilityChangeEnableAuditEntry -// - *RepositoryVulnerabilityAlert -// - *ReviewDismissalAllowance -// - *ReviewDismissedEvent -// - *ReviewRequest -// - *ReviewRequestRemovedEvent -// - *ReviewRequestedEvent -// - *SavedReply -// - *SecurityAdvisory -// - *SponsorsActivity -// - *SponsorsListing -// - *SponsorsTier -// - *Sponsorship -// - *SponsorshipNewsletter -// - *Status -// - *StatusCheckRollup -// - *StatusContext -// - *SubscribedEvent -// - *Tag -// - *Team -// - *TeamAddMemberAuditEntry -// - *TeamAddRepositoryAuditEntry -// - *TeamChangeParentTeamAuditEntry -// - *TeamDiscussion -// - *TeamDiscussionComment -// - *TeamRemoveMemberAuditEntry -// - *TeamRemoveRepositoryAuditEntry -// - *Topic -// - *TransferredEvent -// - *Tree -// - *UnassignedEvent -// - *UnlabeledEvent -// - *UnlockedEvent -// - *UnmarkedAsDuplicateEvent -// - *UnpinnedEvent -// - *UnsubscribedEvent -// - *User -// - *UserBlockedEvent -// - *UserContentEdit -// - *UserStatus -// - *VerifiableDomain -// - *Workflow -// - *WorkflowRun -type Node_Interface interface { - isNode() - GetId() ID -} - -func (*AddedToProjectEvent) isNode() {} -func (*App) isNode() {} -func (*AssignedEvent) isNode() {} -func (*AutoMergeDisabledEvent) isNode() {} -func (*AutoMergeEnabledEvent) isNode() {} -func (*AutoRebaseEnabledEvent) isNode() {} -func (*AutoSquashEnabledEvent) isNode() {} -func (*AutomaticBaseChangeFailedEvent) isNode() {} -func (*AutomaticBaseChangeSucceededEvent) isNode() {} -func (*BaseRefChangedEvent) isNode() {} -func (*BaseRefDeletedEvent) isNode() {} -func (*BaseRefForcePushedEvent) isNode() {} -func (*Blob) isNode() {} -func (*Bot) isNode() {} -func (*BranchProtectionRule) isNode() {} -func (*BypassForcePushAllowance) isNode() {} -func (*BypassPullRequestAllowance) isNode() {} -func (*CWE) isNode() {} -func (*CheckRun) isNode() {} -func (*CheckSuite) isNode() {} -func (*ClosedEvent) isNode() {} -func (*CodeOfConduct) isNode() {} -func (*CommentDeletedEvent) isNode() {} -func (*Commit) isNode() {} -func (*CommitComment) isNode() {} -func (*CommitCommentThread) isNode() {} -func (*ConnectedEvent) isNode() {} -func (*ConvertToDraftEvent) isNode() {} -func (*ConvertedNoteToIssueEvent) isNode() {} -func (*ConvertedToDiscussionEvent) isNode() {} -func (*CrossReferencedEvent) isNode() {} -func (*DemilestonedEvent) isNode() {} -func (*DeployKey) isNode() {} -func (*DeployedEvent) isNode() {} -func (*Deployment) isNode() {} -func (*DeploymentEnvironmentChangedEvent) isNode() {} -func (*DeploymentReview) isNode() {} -func (*DeploymentStatus) isNode() {} -func (*DisconnectedEvent) isNode() {} -func (*Discussion) isNode() {} -func (*DiscussionCategory) isNode() {} -func (*DiscussionComment) isNode() {} -func (*DiscussionPoll) isNode() {} -func (*DiscussionPollOption) isNode() {} -func (*DraftIssue) isNode() {} -func (*Enterprise) isNode() {} -func (*EnterpriseAdministratorInvitation) isNode() {} -func (*EnterpriseIdentityProvider) isNode() {} -func (*EnterpriseRepositoryInfo) isNode() {} -func (*EnterpriseServerInstallation) isNode() {} -func (*EnterpriseServerUserAccount) isNode() {} -func (*EnterpriseServerUserAccountEmail) isNode() {} -func (*EnterpriseServerUserAccountsUpload) isNode() {} -func (*EnterpriseUserAccount) isNode() {} -func (*Environment) isNode() {} -func (*ExternalIdentity) isNode() {} -func (*Gist) isNode() {} -func (*GistComment) isNode() {} -func (*HeadRefDeletedEvent) isNode() {} -func (*HeadRefForcePushedEvent) isNode() {} -func (*HeadRefRestoredEvent) isNode() {} -func (*IpAllowListEntry) isNode() {} -func (*Issue) isNode() {} -func (*IssueComment) isNode() {} -func (*Label) isNode() {} -func (*LabeledEvent) isNode() {} -func (*Language) isNode() {} -func (*License) isNode() {} -func (*LockedEvent) isNode() {} -func (*Mannequin) isNode() {} -func (*MarkedAsDuplicateEvent) isNode() {} -func (*MarketplaceCategory) isNode() {} -func (*MarketplaceListing) isNode() {} -func (*MembersCanDeleteReposClearAuditEntry) isNode() {} -func (*MembersCanDeleteReposDisableAuditEntry) isNode() {} -func (*MembersCanDeleteReposEnableAuditEntry) isNode() {} -func (*MentionedEvent) isNode() {} -func (*MergedEvent) isNode() {} -func (*MigrationSource) isNode() {} -func (*Milestone) isNode() {} -func (*MilestonedEvent) isNode() {} -func (*MovedColumnsInProjectEvent) isNode() {} -func (*OIDCProvider) isNode() {} -func (*OauthApplicationCreateAuditEntry) isNode() {} -func (*OrgAddBillingManagerAuditEntry) isNode() {} -func (*OrgAddMemberAuditEntry) isNode() {} -func (*OrgBlockUserAuditEntry) isNode() {} -func (*OrgConfigDisableCollaboratorsOnlyAuditEntry) isNode() {} -func (*OrgConfigEnableCollaboratorsOnlyAuditEntry) isNode() {} -func (*OrgCreateAuditEntry) isNode() {} -func (*OrgDisableOauthAppRestrictionsAuditEntry) isNode() {} -func (*OrgDisableSamlAuditEntry) isNode() {} -func (*OrgDisableTwoFactorRequirementAuditEntry) isNode() {} -func (*OrgEnableOauthAppRestrictionsAuditEntry) isNode() {} -func (*OrgEnableSamlAuditEntry) isNode() {} -func (*OrgEnableTwoFactorRequirementAuditEntry) isNode() {} -func (*OrgInviteMemberAuditEntry) isNode() {} -func (*OrgInviteToBusinessAuditEntry) isNode() {} -func (*OrgOauthAppAccessApprovedAuditEntry) isNode() {} -func (*OrgOauthAppAccessDeniedAuditEntry) isNode() {} -func (*OrgOauthAppAccessRequestedAuditEntry) isNode() {} -func (*OrgRemoveBillingManagerAuditEntry) isNode() {} -func (*OrgRemoveMemberAuditEntry) isNode() {} -func (*OrgRemoveOutsideCollaboratorAuditEntry) isNode() {} -func (*OrgRestoreMemberAuditEntry) isNode() {} -func (*OrgUnblockUserAuditEntry) isNode() {} -func (*OrgUpdateDefaultRepositoryPermissionAuditEntry) isNode() {} -func (*OrgUpdateMemberAuditEntry) isNode() {} -func (*OrgUpdateMemberRepositoryCreationPermissionAuditEntry) isNode() {} -func (*OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) isNode() {} -func (*Organization) isNode() {} -func (*OrganizationIdentityProvider) isNode() {} -func (*OrganizationInvitation) isNode() {} -func (*Package) isNode() {} -func (*PackageFile) isNode() {} -func (*PackageTag) isNode() {} -func (*PackageVersion) isNode() {} -func (*PinnedDiscussion) isNode() {} -func (*PinnedEvent) isNode() {} -func (*PinnedIssue) isNode() {} -func (*PrivateRepositoryForkingDisableAuditEntry) isNode() {} -func (*PrivateRepositoryForkingEnableAuditEntry) isNode() {} -func (*Project) isNode() {} -func (*ProjectCard) isNode() {} -func (*ProjectColumn) isNode() {} -func (*ProjectNext) isNode() {} -func (*ProjectNextField) isNode() {} -func (*ProjectNextItem) isNode() {} -func (*ProjectNextItemFieldValue) isNode() {} -func (*ProjectV2) isNode() {} -func (*ProjectV2Field) isNode() {} -func (*ProjectV2Item) isNode() {} -func (*ProjectV2ItemFieldDateValue) isNode() {} -func (*ProjectV2ItemFieldIterationValue) isNode() {} -func (*ProjectV2ItemFieldNumberValue) isNode() {} -func (*ProjectV2ItemFieldSingleSelectValue) isNode() {} -func (*ProjectV2ItemFieldTextValue) isNode() {} -func (*ProjectV2IterationField) isNode() {} -func (*ProjectV2SingleSelectField) isNode() {} -func (*ProjectV2View) isNode() {} -func (*ProjectView) isNode() {} -func (*PublicKey) isNode() {} -func (*PullRequest) isNode() {} -func (*PullRequestCommit) isNode() {} -func (*PullRequestCommitCommentThread) isNode() {} -func (*PullRequestReview) isNode() {} -func (*PullRequestReviewComment) isNode() {} -func (*PullRequestReviewThread) isNode() {} -func (*PullRequestThread) isNode() {} -func (*Push) isNode() {} -func (*PushAllowance) isNode() {} -func (*Reaction) isNode() {} -func (*ReadyForReviewEvent) isNode() {} -func (*Ref) isNode() {} -func (*ReferencedEvent) isNode() {} -func (*Release) isNode() {} -func (*ReleaseAsset) isNode() {} -func (*RemovedFromProjectEvent) isNode() {} -func (*RenamedTitleEvent) isNode() {} -func (*ReopenedEvent) isNode() {} -func (*RepoAccessAuditEntry) isNode() {} -func (*RepoAddMemberAuditEntry) isNode() {} -func (*RepoAddTopicAuditEntry) isNode() {} -func (*RepoArchivedAuditEntry) isNode() {} -func (*RepoChangeMergeSettingAuditEntry) isNode() {} -func (*RepoConfigDisableAnonymousGitAccessAuditEntry) isNode() {} -func (*RepoConfigDisableCollaboratorsOnlyAuditEntry) isNode() {} -func (*RepoConfigDisableContributorsOnlyAuditEntry) isNode() {} -func (*RepoConfigDisableSockpuppetDisallowedAuditEntry) isNode() {} -func (*RepoConfigEnableAnonymousGitAccessAuditEntry) isNode() {} -func (*RepoConfigEnableCollaboratorsOnlyAuditEntry) isNode() {} -func (*RepoConfigEnableContributorsOnlyAuditEntry) isNode() {} -func (*RepoConfigEnableSockpuppetDisallowedAuditEntry) isNode() {} -func (*RepoConfigLockAnonymousGitAccessAuditEntry) isNode() {} -func (*RepoConfigUnlockAnonymousGitAccessAuditEntry) isNode() {} -func (*RepoCreateAuditEntry) isNode() {} -func (*RepoDestroyAuditEntry) isNode() {} -func (*RepoRemoveMemberAuditEntry) isNode() {} -func (*RepoRemoveTopicAuditEntry) isNode() {} -func (*Repository) isNode() {} -func (*RepositoryInvitation) isNode() {} -func (*RepositoryMigration) isNode() {} -func (*RepositoryTopic) isNode() {} -func (*RepositoryVisibilityChangeDisableAuditEntry) isNode() {} -func (*RepositoryVisibilityChangeEnableAuditEntry) isNode() {} -func (*RepositoryVulnerabilityAlert) isNode() {} -func (*ReviewDismissalAllowance) isNode() {} -func (*ReviewDismissedEvent) isNode() {} -func (*ReviewRequest) isNode() {} -func (*ReviewRequestRemovedEvent) isNode() {} -func (*ReviewRequestedEvent) isNode() {} -func (*SavedReply) isNode() {} -func (*SecurityAdvisory) isNode() {} -func (*SponsorsActivity) isNode() {} -func (*SponsorsListing) isNode() {} -func (*SponsorsTier) isNode() {} -func (*Sponsorship) isNode() {} -func (*SponsorshipNewsletter) isNode() {} -func (*Status) isNode() {} -func (*StatusCheckRollup) isNode() {} -func (*StatusContext) isNode() {} -func (*SubscribedEvent) isNode() {} -func (*Tag) isNode() {} -func (*Team) isNode() {} -func (*TeamAddMemberAuditEntry) isNode() {} -func (*TeamAddRepositoryAuditEntry) isNode() {} -func (*TeamChangeParentTeamAuditEntry) isNode() {} -func (*TeamDiscussion) isNode() {} -func (*TeamDiscussionComment) isNode() {} -func (*TeamRemoveMemberAuditEntry) isNode() {} -func (*TeamRemoveRepositoryAuditEntry) isNode() {} -func (*Topic) isNode() {} -func (*TransferredEvent) isNode() {} -func (*Tree) isNode() {} -func (*UnassignedEvent) isNode() {} -func (*UnlabeledEvent) isNode() {} -func (*UnlockedEvent) isNode() {} -func (*UnmarkedAsDuplicateEvent) isNode() {} -func (*UnpinnedEvent) isNode() {} -func (*UnsubscribedEvent) isNode() {} -func (*User) isNode() {} -func (*UserBlockedEvent) isNode() {} -func (*UserContentEdit) isNode() {} -func (*UserStatus) isNode() {} -func (*VerifiableDomain) isNode() {} -func (*Workflow) isNode() {} -func (*WorkflowRun) isNode() {} - -type Node struct { - Interface Node_Interface -} - -func (x *Node) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Node) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Node", info.Typename) - case "AddedToProjectEvent": - x.Interface = new(AddedToProjectEvent) - case "App": - x.Interface = new(App) - case "AssignedEvent": - x.Interface = new(AssignedEvent) - case "AutoMergeDisabledEvent": - x.Interface = new(AutoMergeDisabledEvent) - case "AutoMergeEnabledEvent": - x.Interface = new(AutoMergeEnabledEvent) - case "AutoRebaseEnabledEvent": - x.Interface = new(AutoRebaseEnabledEvent) - case "AutoSquashEnabledEvent": - x.Interface = new(AutoSquashEnabledEvent) - case "AutomaticBaseChangeFailedEvent": - x.Interface = new(AutomaticBaseChangeFailedEvent) - case "AutomaticBaseChangeSucceededEvent": - x.Interface = new(AutomaticBaseChangeSucceededEvent) - case "BaseRefChangedEvent": - x.Interface = new(BaseRefChangedEvent) - case "BaseRefDeletedEvent": - x.Interface = new(BaseRefDeletedEvent) - case "BaseRefForcePushedEvent": - x.Interface = new(BaseRefForcePushedEvent) - case "Blob": - x.Interface = new(Blob) - case "Bot": - x.Interface = new(Bot) - case "BranchProtectionRule": - x.Interface = new(BranchProtectionRule) - case "BypassForcePushAllowance": - x.Interface = new(BypassForcePushAllowance) - case "BypassPullRequestAllowance": - x.Interface = new(BypassPullRequestAllowance) - case "CWE": - x.Interface = new(CWE) - case "CheckRun": - x.Interface = new(CheckRun) - case "CheckSuite": - x.Interface = new(CheckSuite) - case "ClosedEvent": - x.Interface = new(ClosedEvent) - case "CodeOfConduct": - x.Interface = new(CodeOfConduct) - case "CommentDeletedEvent": - x.Interface = new(CommentDeletedEvent) - case "Commit": - x.Interface = new(Commit) - case "CommitComment": - x.Interface = new(CommitComment) - case "CommitCommentThread": - x.Interface = new(CommitCommentThread) - case "ConnectedEvent": - x.Interface = new(ConnectedEvent) - case "ConvertToDraftEvent": - x.Interface = new(ConvertToDraftEvent) - case "ConvertedNoteToIssueEvent": - x.Interface = new(ConvertedNoteToIssueEvent) - case "ConvertedToDiscussionEvent": - x.Interface = new(ConvertedToDiscussionEvent) - case "CrossReferencedEvent": - x.Interface = new(CrossReferencedEvent) - case "DemilestonedEvent": - x.Interface = new(DemilestonedEvent) - case "DeployKey": - x.Interface = new(DeployKey) - case "DeployedEvent": - x.Interface = new(DeployedEvent) - case "Deployment": - x.Interface = new(Deployment) - case "DeploymentEnvironmentChangedEvent": - x.Interface = new(DeploymentEnvironmentChangedEvent) - case "DeploymentReview": - x.Interface = new(DeploymentReview) - case "DeploymentStatus": - x.Interface = new(DeploymentStatus) - case "DisconnectedEvent": - x.Interface = new(DisconnectedEvent) - case "Discussion": - x.Interface = new(Discussion) - case "DiscussionCategory": - x.Interface = new(DiscussionCategory) - case "DiscussionComment": - x.Interface = new(DiscussionComment) - case "DiscussionPoll": - x.Interface = new(DiscussionPoll) - case "DiscussionPollOption": - x.Interface = new(DiscussionPollOption) - case "DraftIssue": - x.Interface = new(DraftIssue) - case "Enterprise": - x.Interface = new(Enterprise) - case "EnterpriseAdministratorInvitation": - x.Interface = new(EnterpriseAdministratorInvitation) - case "EnterpriseIdentityProvider": - x.Interface = new(EnterpriseIdentityProvider) - case "EnterpriseRepositoryInfo": - x.Interface = new(EnterpriseRepositoryInfo) - case "EnterpriseServerInstallation": - x.Interface = new(EnterpriseServerInstallation) - case "EnterpriseServerUserAccount": - x.Interface = new(EnterpriseServerUserAccount) - case "EnterpriseServerUserAccountEmail": - x.Interface = new(EnterpriseServerUserAccountEmail) - case "EnterpriseServerUserAccountsUpload": - x.Interface = new(EnterpriseServerUserAccountsUpload) - case "EnterpriseUserAccount": - x.Interface = new(EnterpriseUserAccount) - case "Environment": - x.Interface = new(Environment) - case "ExternalIdentity": - x.Interface = new(ExternalIdentity) - case "Gist": - x.Interface = new(Gist) - case "GistComment": - x.Interface = new(GistComment) - case "HeadRefDeletedEvent": - x.Interface = new(HeadRefDeletedEvent) - case "HeadRefForcePushedEvent": - x.Interface = new(HeadRefForcePushedEvent) - case "HeadRefRestoredEvent": - x.Interface = new(HeadRefRestoredEvent) - case "IpAllowListEntry": - x.Interface = new(IpAllowListEntry) - case "Issue": - x.Interface = new(Issue) - case "IssueComment": - x.Interface = new(IssueComment) - case "Label": - x.Interface = new(Label) - case "LabeledEvent": - x.Interface = new(LabeledEvent) - case "Language": - x.Interface = new(Language) - case "License": - x.Interface = new(License) - case "LockedEvent": - x.Interface = new(LockedEvent) - case "Mannequin": - x.Interface = new(Mannequin) - case "MarkedAsDuplicateEvent": - x.Interface = new(MarkedAsDuplicateEvent) - case "MarketplaceCategory": - x.Interface = new(MarketplaceCategory) - case "MarketplaceListing": - x.Interface = new(MarketplaceListing) - case "MembersCanDeleteReposClearAuditEntry": - x.Interface = new(MembersCanDeleteReposClearAuditEntry) - case "MembersCanDeleteReposDisableAuditEntry": - x.Interface = new(MembersCanDeleteReposDisableAuditEntry) - case "MembersCanDeleteReposEnableAuditEntry": - x.Interface = new(MembersCanDeleteReposEnableAuditEntry) - case "MentionedEvent": - x.Interface = new(MentionedEvent) - case "MergedEvent": - x.Interface = new(MergedEvent) - case "MigrationSource": - x.Interface = new(MigrationSource) - case "Milestone": - x.Interface = new(Milestone) - case "MilestonedEvent": - x.Interface = new(MilestonedEvent) - case "MovedColumnsInProjectEvent": - x.Interface = new(MovedColumnsInProjectEvent) - case "OIDCProvider": - x.Interface = new(OIDCProvider) - case "OauthApplicationCreateAuditEntry": - x.Interface = new(OauthApplicationCreateAuditEntry) - case "OrgAddBillingManagerAuditEntry": - x.Interface = new(OrgAddBillingManagerAuditEntry) - case "OrgAddMemberAuditEntry": - x.Interface = new(OrgAddMemberAuditEntry) - case "OrgBlockUserAuditEntry": - x.Interface = new(OrgBlockUserAuditEntry) - case "OrgConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(OrgConfigDisableCollaboratorsOnlyAuditEntry) - case "OrgConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(OrgConfigEnableCollaboratorsOnlyAuditEntry) - case "OrgCreateAuditEntry": - x.Interface = new(OrgCreateAuditEntry) - case "OrgDisableOauthAppRestrictionsAuditEntry": - x.Interface = new(OrgDisableOauthAppRestrictionsAuditEntry) - case "OrgDisableSamlAuditEntry": - x.Interface = new(OrgDisableSamlAuditEntry) - case "OrgDisableTwoFactorRequirementAuditEntry": - x.Interface = new(OrgDisableTwoFactorRequirementAuditEntry) - case "OrgEnableOauthAppRestrictionsAuditEntry": - x.Interface = new(OrgEnableOauthAppRestrictionsAuditEntry) - case "OrgEnableSamlAuditEntry": - x.Interface = new(OrgEnableSamlAuditEntry) - case "OrgEnableTwoFactorRequirementAuditEntry": - x.Interface = new(OrgEnableTwoFactorRequirementAuditEntry) - case "OrgInviteMemberAuditEntry": - x.Interface = new(OrgInviteMemberAuditEntry) - case "OrgInviteToBusinessAuditEntry": - x.Interface = new(OrgInviteToBusinessAuditEntry) - case "OrgOauthAppAccessApprovedAuditEntry": - x.Interface = new(OrgOauthAppAccessApprovedAuditEntry) - case "OrgOauthAppAccessDeniedAuditEntry": - x.Interface = new(OrgOauthAppAccessDeniedAuditEntry) - case "OrgOauthAppAccessRequestedAuditEntry": - x.Interface = new(OrgOauthAppAccessRequestedAuditEntry) - case "OrgRemoveBillingManagerAuditEntry": - x.Interface = new(OrgRemoveBillingManagerAuditEntry) - case "OrgRemoveMemberAuditEntry": - x.Interface = new(OrgRemoveMemberAuditEntry) - case "OrgRemoveOutsideCollaboratorAuditEntry": - x.Interface = new(OrgRemoveOutsideCollaboratorAuditEntry) - case "OrgRestoreMemberAuditEntry": - x.Interface = new(OrgRestoreMemberAuditEntry) - case "OrgUnblockUserAuditEntry": - x.Interface = new(OrgUnblockUserAuditEntry) - case "OrgUpdateDefaultRepositoryPermissionAuditEntry": - x.Interface = new(OrgUpdateDefaultRepositoryPermissionAuditEntry) - case "OrgUpdateMemberAuditEntry": - x.Interface = new(OrgUpdateMemberAuditEntry) - case "OrgUpdateMemberRepositoryCreationPermissionAuditEntry": - x.Interface = new(OrgUpdateMemberRepositoryCreationPermissionAuditEntry) - case "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry": - x.Interface = new(OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) - case "Organization": - x.Interface = new(Organization) - case "OrganizationIdentityProvider": - x.Interface = new(OrganizationIdentityProvider) - case "OrganizationInvitation": - x.Interface = new(OrganizationInvitation) - case "Package": - x.Interface = new(Package) - case "PackageFile": - x.Interface = new(PackageFile) - case "PackageTag": - x.Interface = new(PackageTag) - case "PackageVersion": - x.Interface = new(PackageVersion) - case "PinnedDiscussion": - x.Interface = new(PinnedDiscussion) - case "PinnedEvent": - x.Interface = new(PinnedEvent) - case "PinnedIssue": - x.Interface = new(PinnedIssue) - case "PrivateRepositoryForkingDisableAuditEntry": - x.Interface = new(PrivateRepositoryForkingDisableAuditEntry) - case "PrivateRepositoryForkingEnableAuditEntry": - x.Interface = new(PrivateRepositoryForkingEnableAuditEntry) - case "Project": - x.Interface = new(Project) - case "ProjectCard": - x.Interface = new(ProjectCard) - case "ProjectColumn": - x.Interface = new(ProjectColumn) - case "ProjectNext": - x.Interface = new(ProjectNext) - case "ProjectNextField": - x.Interface = new(ProjectNextField) - case "ProjectNextItem": - x.Interface = new(ProjectNextItem) - case "ProjectNextItemFieldValue": - x.Interface = new(ProjectNextItemFieldValue) - case "ProjectV2": - x.Interface = new(ProjectV2) - case "ProjectV2Field": - x.Interface = new(ProjectV2Field) - case "ProjectV2Item": - x.Interface = new(ProjectV2Item) - case "ProjectV2ItemFieldDateValue": - x.Interface = new(ProjectV2ItemFieldDateValue) - case "ProjectV2ItemFieldIterationValue": - x.Interface = new(ProjectV2ItemFieldIterationValue) - case "ProjectV2ItemFieldNumberValue": - x.Interface = new(ProjectV2ItemFieldNumberValue) - case "ProjectV2ItemFieldSingleSelectValue": - x.Interface = new(ProjectV2ItemFieldSingleSelectValue) - case "ProjectV2ItemFieldTextValue": - x.Interface = new(ProjectV2ItemFieldTextValue) - case "ProjectV2IterationField": - x.Interface = new(ProjectV2IterationField) - case "ProjectV2SingleSelectField": - x.Interface = new(ProjectV2SingleSelectField) - case "ProjectV2View": - x.Interface = new(ProjectV2View) - case "ProjectView": - x.Interface = new(ProjectView) - case "PublicKey": - x.Interface = new(PublicKey) - case "PullRequest": - x.Interface = new(PullRequest) - case "PullRequestCommit": - x.Interface = new(PullRequestCommit) - case "PullRequestCommitCommentThread": - x.Interface = new(PullRequestCommitCommentThread) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - case "PullRequestReviewThread": - x.Interface = new(PullRequestReviewThread) - case "PullRequestThread": - x.Interface = new(PullRequestThread) - case "Push": - x.Interface = new(Push) - case "PushAllowance": - x.Interface = new(PushAllowance) - case "Reaction": - x.Interface = new(Reaction) - case "ReadyForReviewEvent": - x.Interface = new(ReadyForReviewEvent) - case "Ref": - x.Interface = new(Ref) - case "ReferencedEvent": - x.Interface = new(ReferencedEvent) - case "Release": - x.Interface = new(Release) - case "ReleaseAsset": - x.Interface = new(ReleaseAsset) - case "RemovedFromProjectEvent": - x.Interface = new(RemovedFromProjectEvent) - case "RenamedTitleEvent": - x.Interface = new(RenamedTitleEvent) - case "ReopenedEvent": - x.Interface = new(ReopenedEvent) - case "RepoAccessAuditEntry": - x.Interface = new(RepoAccessAuditEntry) - case "RepoAddMemberAuditEntry": - x.Interface = new(RepoAddMemberAuditEntry) - case "RepoAddTopicAuditEntry": - x.Interface = new(RepoAddTopicAuditEntry) - case "RepoArchivedAuditEntry": - x.Interface = new(RepoArchivedAuditEntry) - case "RepoChangeMergeSettingAuditEntry": - x.Interface = new(RepoChangeMergeSettingAuditEntry) - case "RepoConfigDisableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigDisableAnonymousGitAccessAuditEntry) - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableCollaboratorsOnlyAuditEntry) - case "RepoConfigDisableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableContributorsOnlyAuditEntry) - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigDisableSockpuppetDisallowedAuditEntry) - case "RepoConfigEnableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigEnableAnonymousGitAccessAuditEntry) - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableCollaboratorsOnlyAuditEntry) - case "RepoConfigEnableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableContributorsOnlyAuditEntry) - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigEnableSockpuppetDisallowedAuditEntry) - case "RepoConfigLockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigLockAnonymousGitAccessAuditEntry) - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigUnlockAnonymousGitAccessAuditEntry) - case "RepoCreateAuditEntry": - x.Interface = new(RepoCreateAuditEntry) - case "RepoDestroyAuditEntry": - x.Interface = new(RepoDestroyAuditEntry) - case "RepoRemoveMemberAuditEntry": - x.Interface = new(RepoRemoveMemberAuditEntry) - case "RepoRemoveTopicAuditEntry": - x.Interface = new(RepoRemoveTopicAuditEntry) - case "Repository": - x.Interface = new(Repository) - case "RepositoryInvitation": - x.Interface = new(RepositoryInvitation) - case "RepositoryMigration": - x.Interface = new(RepositoryMigration) - case "RepositoryTopic": - x.Interface = new(RepositoryTopic) - case "RepositoryVisibilityChangeDisableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeDisableAuditEntry) - case "RepositoryVisibilityChangeEnableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeEnableAuditEntry) - case "RepositoryVulnerabilityAlert": - x.Interface = new(RepositoryVulnerabilityAlert) - case "ReviewDismissalAllowance": - x.Interface = new(ReviewDismissalAllowance) - case "ReviewDismissedEvent": - x.Interface = new(ReviewDismissedEvent) - case "ReviewRequest": - x.Interface = new(ReviewRequest) - case "ReviewRequestRemovedEvent": - x.Interface = new(ReviewRequestRemovedEvent) - case "ReviewRequestedEvent": - x.Interface = new(ReviewRequestedEvent) - case "SavedReply": - x.Interface = new(SavedReply) - case "SecurityAdvisory": - x.Interface = new(SecurityAdvisory) - case "SponsorsActivity": - x.Interface = new(SponsorsActivity) - case "SponsorsListing": - x.Interface = new(SponsorsListing) - case "SponsorsTier": - x.Interface = new(SponsorsTier) - case "Sponsorship": - x.Interface = new(Sponsorship) - case "SponsorshipNewsletter": - x.Interface = new(SponsorshipNewsletter) - case "Status": - x.Interface = new(Status) - case "StatusCheckRollup": - x.Interface = new(StatusCheckRollup) - case "StatusContext": - x.Interface = new(StatusContext) - case "SubscribedEvent": - x.Interface = new(SubscribedEvent) - case "Tag": - x.Interface = new(Tag) - case "Team": - x.Interface = new(Team) - case "TeamAddMemberAuditEntry": - x.Interface = new(TeamAddMemberAuditEntry) - case "TeamAddRepositoryAuditEntry": - x.Interface = new(TeamAddRepositoryAuditEntry) - case "TeamChangeParentTeamAuditEntry": - x.Interface = new(TeamChangeParentTeamAuditEntry) - case "TeamDiscussion": - x.Interface = new(TeamDiscussion) - case "TeamDiscussionComment": - x.Interface = new(TeamDiscussionComment) - case "TeamRemoveMemberAuditEntry": - x.Interface = new(TeamRemoveMemberAuditEntry) - case "TeamRemoveRepositoryAuditEntry": - x.Interface = new(TeamRemoveRepositoryAuditEntry) - case "Topic": - x.Interface = new(Topic) - case "TransferredEvent": - x.Interface = new(TransferredEvent) - case "Tree": - x.Interface = new(Tree) - case "UnassignedEvent": - x.Interface = new(UnassignedEvent) - case "UnlabeledEvent": - x.Interface = new(UnlabeledEvent) - case "UnlockedEvent": - x.Interface = new(UnlockedEvent) - case "UnmarkedAsDuplicateEvent": - x.Interface = new(UnmarkedAsDuplicateEvent) - case "UnpinnedEvent": - x.Interface = new(UnpinnedEvent) - case "UnsubscribedEvent": - x.Interface = new(UnsubscribedEvent) - case "User": - x.Interface = new(User) - case "UserBlockedEvent": - x.Interface = new(UserBlockedEvent) - case "UserContentEdit": - x.Interface = new(UserContentEdit) - case "UserStatus": - x.Interface = new(UserStatus) - case "VerifiableDomain": - x.Interface = new(VerifiableDomain) - case "Workflow": - x.Interface = new(Workflow) - case "WorkflowRun": - x.Interface = new(WorkflowRun) - } - return json.Unmarshal(js, x.Interface) -} - -// NotificationRestrictionSettingValue (ENUM): The possible values for the notification restriction setting. -type NotificationRestrictionSettingValue string - -// NotificationRestrictionSettingValue_ENABLED: The setting is enabled for the owner. -const NotificationRestrictionSettingValue_ENABLED NotificationRestrictionSettingValue = "ENABLED" - -// NotificationRestrictionSettingValue_DISABLED: The setting is disabled for the owner. -const NotificationRestrictionSettingValue_DISABLED NotificationRestrictionSettingValue = "DISABLED" - -// OIDCProvider (OBJECT): An OIDC identity provider configured to provision identities for an enterprise. -type OIDCProvider struct { - // Enterprise: The enterprise this identity provider belongs to. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // ExternalIdentities: ExternalIdentities provisioned by this identity provider. - // - // Query arguments: - // - membersOnly Boolean - // - login String - // - userName String - // - after String - // - before String - // - first Int - // - last Int - ExternalIdentities *ExternalIdentityConnection `json:"externalIdentities,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // ProviderType: The OIDC identity provider type. - ProviderType OIDCProviderType `json:"providerType,omitempty"` - - // TenantId: The id of the tenant this provider is attached to. - TenantId string `json:"tenantId,omitempty"` -} - -func (x *OIDCProvider) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *OIDCProvider) GetExternalIdentities() *ExternalIdentityConnection { - return x.ExternalIdentities -} -func (x *OIDCProvider) GetId() ID { return x.Id } -func (x *OIDCProvider) GetProviderType() OIDCProviderType { return x.ProviderType } -func (x *OIDCProvider) GetTenantId() string { return x.TenantId } - -// OIDCProviderType (ENUM): The OIDC identity provider type. -type OIDCProviderType string - -// OIDCProviderType_AAD: Azure Active Directory. -const OIDCProviderType_AAD OIDCProviderType = "AAD" - -// OauthApplicationAuditEntryData (INTERFACE): Metadata for an audit entry with action oauth_application.*. -// OauthApplicationAuditEntryData_Interface: Metadata for an audit entry with action oauth_application.*. -// -// Possible types: -// -// - *OauthApplicationCreateAuditEntry -// - *OrgOauthAppAccessApprovedAuditEntry -// - *OrgOauthAppAccessDeniedAuditEntry -// - *OrgOauthAppAccessRequestedAuditEntry -type OauthApplicationAuditEntryData_Interface interface { - isOauthApplicationAuditEntryData() - GetOauthApplicationName() string - GetOauthApplicationResourcePath() URI - GetOauthApplicationUrl() URI -} - -func (*OauthApplicationCreateAuditEntry) isOauthApplicationAuditEntryData() {} -func (*OrgOauthAppAccessApprovedAuditEntry) isOauthApplicationAuditEntryData() {} -func (*OrgOauthAppAccessDeniedAuditEntry) isOauthApplicationAuditEntryData() {} -func (*OrgOauthAppAccessRequestedAuditEntry) isOauthApplicationAuditEntryData() {} - -type OauthApplicationAuditEntryData struct { - Interface OauthApplicationAuditEntryData_Interface -} - -func (x *OauthApplicationAuditEntryData) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *OauthApplicationAuditEntryData) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for OauthApplicationAuditEntryData", info.Typename) - case "OauthApplicationCreateAuditEntry": - x.Interface = new(OauthApplicationCreateAuditEntry) - case "OrgOauthAppAccessApprovedAuditEntry": - x.Interface = new(OrgOauthAppAccessApprovedAuditEntry) - case "OrgOauthAppAccessDeniedAuditEntry": - x.Interface = new(OrgOauthAppAccessDeniedAuditEntry) - case "OrgOauthAppAccessRequestedAuditEntry": - x.Interface = new(OrgOauthAppAccessRequestedAuditEntry) - } - return json.Unmarshal(js, x.Interface) -} - -// OauthApplicationCreateAuditEntry (OBJECT): Audit log entry for a oauth_application.create event. -type OauthApplicationCreateAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // ApplicationUrl: The application URL of the OAuth Application. - ApplicationUrl URI `json:"applicationUrl,omitempty"` - - // CallbackUrl: The callback URL of the OAuth Application. - CallbackUrl URI `json:"callbackUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OauthApplicationName: The name of the OAuth Application. - OauthApplicationName string `json:"oauthApplicationName,omitempty"` - - // OauthApplicationResourcePath: The HTTP path for the OAuth Application. - OauthApplicationResourcePath URI `json:"oauthApplicationResourcePath,omitempty"` - - // OauthApplicationUrl: The HTTP URL for the OAuth Application. - OauthApplicationUrl URI `json:"oauthApplicationUrl,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // RateLimit: The rate limit of the OAuth Application. - RateLimit int `json:"rateLimit,omitempty"` - - // State: The state of the OAuth Application. - State OauthApplicationCreateAuditEntryState `json:"state,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OauthApplicationCreateAuditEntry) GetAction() string { return x.Action } -func (x *OauthApplicationCreateAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OauthApplicationCreateAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OauthApplicationCreateAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OauthApplicationCreateAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OauthApplicationCreateAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OauthApplicationCreateAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OauthApplicationCreateAuditEntry) GetApplicationUrl() URI { return x.ApplicationUrl } -func (x *OauthApplicationCreateAuditEntry) GetCallbackUrl() URI { return x.CallbackUrl } -func (x *OauthApplicationCreateAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OauthApplicationCreateAuditEntry) GetId() ID { return x.Id } -func (x *OauthApplicationCreateAuditEntry) GetOauthApplicationName() string { - return x.OauthApplicationName -} -func (x *OauthApplicationCreateAuditEntry) GetOauthApplicationResourcePath() URI { - return x.OauthApplicationResourcePath -} -func (x *OauthApplicationCreateAuditEntry) GetOauthApplicationUrl() URI { return x.OauthApplicationUrl } -func (x *OauthApplicationCreateAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OauthApplicationCreateAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OauthApplicationCreateAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OauthApplicationCreateAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OauthApplicationCreateAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OauthApplicationCreateAuditEntry) GetRateLimit() int { return x.RateLimit } -func (x *OauthApplicationCreateAuditEntry) GetState() OauthApplicationCreateAuditEntryState { - return x.State -} -func (x *OauthApplicationCreateAuditEntry) GetUser() *User { return x.User } -func (x *OauthApplicationCreateAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OauthApplicationCreateAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OauthApplicationCreateAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OauthApplicationCreateAuditEntryState (ENUM): The state of an OAuth Application when it was created. -type OauthApplicationCreateAuditEntryState string - -// OauthApplicationCreateAuditEntryState_ACTIVE: The OAuth Application was active and allowed to have OAuth Accesses. -const OauthApplicationCreateAuditEntryState_ACTIVE OauthApplicationCreateAuditEntryState = "ACTIVE" - -// OauthApplicationCreateAuditEntryState_SUSPENDED: The OAuth Application was suspended from generating OAuth Accesses due to abuse or security concerns. -const OauthApplicationCreateAuditEntryState_SUSPENDED OauthApplicationCreateAuditEntryState = "SUSPENDED" - -// OauthApplicationCreateAuditEntryState_PENDING_DELETION: The OAuth Application was in the process of being deleted. -const OauthApplicationCreateAuditEntryState_PENDING_DELETION OauthApplicationCreateAuditEntryState = "PENDING_DELETION" - -// OperationType (ENUM): The corresponding operation type for the action. -type OperationType string - -// OperationType_ACCESS: An existing resource was accessed. -const OperationType_ACCESS OperationType = "ACCESS" - -// OperationType_AUTHENTICATION: A resource performed an authentication event. -const OperationType_AUTHENTICATION OperationType = "AUTHENTICATION" - -// OperationType_CREATE: A new resource was created. -const OperationType_CREATE OperationType = "CREATE" - -// OperationType_MODIFY: An existing resource was modified. -const OperationType_MODIFY OperationType = "MODIFY" - -// OperationType_REMOVE: An existing resource was removed. -const OperationType_REMOVE OperationType = "REMOVE" - -// OperationType_RESTORE: An existing resource was restored. -const OperationType_RESTORE OperationType = "RESTORE" - -// OperationType_TRANSFER: An existing resource was transferred between multiple resources. -const OperationType_TRANSFER OperationType = "TRANSFER" - -// OrderDirection (ENUM): Possible directions in which to order a list of items when provided an `orderBy` argument. -type OrderDirection string - -// OrderDirection_ASC: Specifies an ascending order for a given `orderBy` argument. -const OrderDirection_ASC OrderDirection = "ASC" - -// OrderDirection_DESC: Specifies a descending order for a given `orderBy` argument. -const OrderDirection_DESC OrderDirection = "DESC" - -// OrgAddBillingManagerAuditEntry (OBJECT): Audit log entry for a org.add_billing_manager. -type OrgAddBillingManagerAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // InvitationEmail: The email address used to invite a billing manager for the organization. - InvitationEmail string `json:"invitationEmail,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgAddBillingManagerAuditEntry) GetAction() string { return x.Action } -func (x *OrgAddBillingManagerAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgAddBillingManagerAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgAddBillingManagerAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgAddBillingManagerAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgAddBillingManagerAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgAddBillingManagerAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgAddBillingManagerAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgAddBillingManagerAuditEntry) GetId() ID { return x.Id } -func (x *OrgAddBillingManagerAuditEntry) GetInvitationEmail() string { return x.InvitationEmail } -func (x *OrgAddBillingManagerAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgAddBillingManagerAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgAddBillingManagerAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgAddBillingManagerAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgAddBillingManagerAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgAddBillingManagerAuditEntry) GetUser() *User { return x.User } -func (x *OrgAddBillingManagerAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgAddBillingManagerAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgAddBillingManagerAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgAddMemberAuditEntry (OBJECT): Audit log entry for a org.add_member. -type OrgAddMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Permission: The permission level of the member added to the organization. - Permission OrgAddMemberAuditEntryPermission `json:"permission,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgAddMemberAuditEntry) GetAction() string { return x.Action } -func (x *OrgAddMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgAddMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgAddMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgAddMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgAddMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgAddMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgAddMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgAddMemberAuditEntry) GetId() ID { return x.Id } -func (x *OrgAddMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgAddMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgAddMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgAddMemberAuditEntry) GetOrganizationResourcePath() URI { return x.OrganizationResourcePath } -func (x *OrgAddMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgAddMemberAuditEntry) GetPermission() OrgAddMemberAuditEntryPermission { - return x.Permission -} -func (x *OrgAddMemberAuditEntry) GetUser() *User { return x.User } -func (x *OrgAddMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgAddMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgAddMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgAddMemberAuditEntryPermission (ENUM): The permissions available to members on an Organization. -type OrgAddMemberAuditEntryPermission string - -// OrgAddMemberAuditEntryPermission_READ: Can read and clone repositories. -const OrgAddMemberAuditEntryPermission_READ OrgAddMemberAuditEntryPermission = "READ" - -// OrgAddMemberAuditEntryPermission_ADMIN: Can read, clone, push, and add collaborators to repositories. -const OrgAddMemberAuditEntryPermission_ADMIN OrgAddMemberAuditEntryPermission = "ADMIN" - -// OrgBlockUserAuditEntry (OBJECT): Audit log entry for a org.block_user. -type OrgBlockUserAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // BlockedUser: The blocked user. - BlockedUser *User `json:"blockedUser,omitempty"` - - // BlockedUserName: The username of the blocked user. - BlockedUserName string `json:"blockedUserName,omitempty"` - - // BlockedUserResourcePath: The HTTP path for the blocked user. - BlockedUserResourcePath URI `json:"blockedUserResourcePath,omitempty"` - - // BlockedUserUrl: The HTTP URL for the blocked user. - BlockedUserUrl URI `json:"blockedUserUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgBlockUserAuditEntry) GetAction() string { return x.Action } -func (x *OrgBlockUserAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgBlockUserAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgBlockUserAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgBlockUserAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgBlockUserAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgBlockUserAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgBlockUserAuditEntry) GetBlockedUser() *User { return x.BlockedUser } -func (x *OrgBlockUserAuditEntry) GetBlockedUserName() string { return x.BlockedUserName } -func (x *OrgBlockUserAuditEntry) GetBlockedUserResourcePath() URI { return x.BlockedUserResourcePath } -func (x *OrgBlockUserAuditEntry) GetBlockedUserUrl() URI { return x.BlockedUserUrl } -func (x *OrgBlockUserAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgBlockUserAuditEntry) GetId() ID { return x.Id } -func (x *OrgBlockUserAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgBlockUserAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgBlockUserAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgBlockUserAuditEntry) GetOrganizationResourcePath() URI { return x.OrganizationResourcePath } -func (x *OrgBlockUserAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgBlockUserAuditEntry) GetUser() *User { return x.User } -func (x *OrgBlockUserAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgBlockUserAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgBlockUserAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgConfigDisableCollaboratorsOnlyAuditEntry (OBJECT): Audit log entry for a org.config.disable_collaborators_only event. -type OrgConfigDisableCollaboratorsOnlyAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetAction() string { return x.Action } -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetId() ID { return x.Id } -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetUser() *User { return x.User } -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgConfigDisableCollaboratorsOnlyAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgConfigEnableCollaboratorsOnlyAuditEntry (OBJECT): Audit log entry for a org.config.enable_collaborators_only event. -type OrgConfigEnableCollaboratorsOnlyAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetAction() string { return x.Action } -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetId() ID { return x.Id } -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetUser() *User { return x.User } -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgConfigEnableCollaboratorsOnlyAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgCreateAuditEntry (OBJECT): Audit log entry for a org.create event. -type OrgCreateAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // BillingPlan: The billing plan for the Organization. - BillingPlan OrgCreateAuditEntryBillingPlan `json:"billingPlan,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgCreateAuditEntry) GetAction() string { return x.Action } -func (x *OrgCreateAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgCreateAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgCreateAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgCreateAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgCreateAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgCreateAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgCreateAuditEntry) GetBillingPlan() OrgCreateAuditEntryBillingPlan { return x.BillingPlan } -func (x *OrgCreateAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgCreateAuditEntry) GetId() ID { return x.Id } -func (x *OrgCreateAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgCreateAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgCreateAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgCreateAuditEntry) GetOrganizationResourcePath() URI { return x.OrganizationResourcePath } -func (x *OrgCreateAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgCreateAuditEntry) GetUser() *User { return x.User } -func (x *OrgCreateAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgCreateAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgCreateAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgCreateAuditEntryBillingPlan (ENUM): The billing plans available for organizations. -type OrgCreateAuditEntryBillingPlan string - -// OrgCreateAuditEntryBillingPlan_FREE: Free Plan. -const OrgCreateAuditEntryBillingPlan_FREE OrgCreateAuditEntryBillingPlan = "FREE" - -// OrgCreateAuditEntryBillingPlan_BUSINESS: Team Plan. -const OrgCreateAuditEntryBillingPlan_BUSINESS OrgCreateAuditEntryBillingPlan = "BUSINESS" - -// OrgCreateAuditEntryBillingPlan_BUSINESS_PLUS: Enterprise Cloud Plan. -const OrgCreateAuditEntryBillingPlan_BUSINESS_PLUS OrgCreateAuditEntryBillingPlan = "BUSINESS_PLUS" - -// OrgCreateAuditEntryBillingPlan_UNLIMITED: Legacy Unlimited Plan. -const OrgCreateAuditEntryBillingPlan_UNLIMITED OrgCreateAuditEntryBillingPlan = "UNLIMITED" - -// OrgCreateAuditEntryBillingPlan_TIERED_PER_SEAT: Tiered Per Seat Plan. -const OrgCreateAuditEntryBillingPlan_TIERED_PER_SEAT OrgCreateAuditEntryBillingPlan = "TIERED_PER_SEAT" - -// OrgDisableOauthAppRestrictionsAuditEntry (OBJECT): Audit log entry for a org.disable_oauth_app_restrictions event. -type OrgDisableOauthAppRestrictionsAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetAction() string { return x.Action } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetId() ID { return x.Id } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetUser() *User { return x.User } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgDisableOauthAppRestrictionsAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgDisableSamlAuditEntry (OBJECT): Audit log entry for a org.disable_saml event. -type OrgDisableSamlAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // DigestMethodUrl: The SAML provider's digest algorithm URL. - DigestMethodUrl URI `json:"digestMethodUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IssuerUrl: The SAML provider's issuer URL. - IssuerUrl URI `json:"issuerUrl,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // SignatureMethodUrl: The SAML provider's signature algorithm URL. - SignatureMethodUrl URI `json:"signatureMethodUrl,omitempty"` - - // SingleSignOnUrl: The SAML provider's single sign-on URL. - SingleSignOnUrl URI `json:"singleSignOnUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgDisableSamlAuditEntry) GetAction() string { return x.Action } -func (x *OrgDisableSamlAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgDisableSamlAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgDisableSamlAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgDisableSamlAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgDisableSamlAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgDisableSamlAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgDisableSamlAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgDisableSamlAuditEntry) GetDigestMethodUrl() URI { return x.DigestMethodUrl } -func (x *OrgDisableSamlAuditEntry) GetId() ID { return x.Id } -func (x *OrgDisableSamlAuditEntry) GetIssuerUrl() URI { return x.IssuerUrl } -func (x *OrgDisableSamlAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgDisableSamlAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgDisableSamlAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgDisableSamlAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgDisableSamlAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgDisableSamlAuditEntry) GetSignatureMethodUrl() URI { return x.SignatureMethodUrl } -func (x *OrgDisableSamlAuditEntry) GetSingleSignOnUrl() URI { return x.SingleSignOnUrl } -func (x *OrgDisableSamlAuditEntry) GetUser() *User { return x.User } -func (x *OrgDisableSamlAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgDisableSamlAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgDisableSamlAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgDisableTwoFactorRequirementAuditEntry (OBJECT): Audit log entry for a org.disable_two_factor_requirement event. -type OrgDisableTwoFactorRequirementAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetAction() string { return x.Action } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetId() ID { return x.Id } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetUser() *User { return x.User } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgDisableTwoFactorRequirementAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgEnableOauthAppRestrictionsAuditEntry (OBJECT): Audit log entry for a org.enable_oauth_app_restrictions event. -type OrgEnableOauthAppRestrictionsAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetAction() string { return x.Action } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetId() ID { return x.Id } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetUser() *User { return x.User } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgEnableOauthAppRestrictionsAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgEnableSamlAuditEntry (OBJECT): Audit log entry for a org.enable_saml event. -type OrgEnableSamlAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // DigestMethodUrl: The SAML provider's digest algorithm URL. - DigestMethodUrl URI `json:"digestMethodUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IssuerUrl: The SAML provider's issuer URL. - IssuerUrl URI `json:"issuerUrl,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // SignatureMethodUrl: The SAML provider's signature algorithm URL. - SignatureMethodUrl URI `json:"signatureMethodUrl,omitempty"` - - // SingleSignOnUrl: The SAML provider's single sign-on URL. - SingleSignOnUrl URI `json:"singleSignOnUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgEnableSamlAuditEntry) GetAction() string { return x.Action } -func (x *OrgEnableSamlAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgEnableSamlAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgEnableSamlAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgEnableSamlAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgEnableSamlAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgEnableSamlAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgEnableSamlAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgEnableSamlAuditEntry) GetDigestMethodUrl() URI { return x.DigestMethodUrl } -func (x *OrgEnableSamlAuditEntry) GetId() ID { return x.Id } -func (x *OrgEnableSamlAuditEntry) GetIssuerUrl() URI { return x.IssuerUrl } -func (x *OrgEnableSamlAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgEnableSamlAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgEnableSamlAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgEnableSamlAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgEnableSamlAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgEnableSamlAuditEntry) GetSignatureMethodUrl() URI { return x.SignatureMethodUrl } -func (x *OrgEnableSamlAuditEntry) GetSingleSignOnUrl() URI { return x.SingleSignOnUrl } -func (x *OrgEnableSamlAuditEntry) GetUser() *User { return x.User } -func (x *OrgEnableSamlAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgEnableSamlAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgEnableSamlAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgEnableTwoFactorRequirementAuditEntry (OBJECT): Audit log entry for a org.enable_two_factor_requirement event. -type OrgEnableTwoFactorRequirementAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetAction() string { return x.Action } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetId() ID { return x.Id } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetUser() *User { return x.User } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgEnableTwoFactorRequirementAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgEnterpriseOwnerOrder (INPUT_OBJECT): Ordering options for an organization's enterprise owner connections. -type OrgEnterpriseOwnerOrder struct { - // Field: The field to order enterprise owners by. - // - // GraphQL type: OrgEnterpriseOwnerOrderField! - Field OrgEnterpriseOwnerOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// OrgEnterpriseOwnerOrderField (ENUM): Properties by which enterprise owners can be ordered. -type OrgEnterpriseOwnerOrderField string - -// OrgEnterpriseOwnerOrderField_LOGIN: Order enterprise owners by login. -const OrgEnterpriseOwnerOrderField_LOGIN OrgEnterpriseOwnerOrderField = "LOGIN" - -// OrgInviteMemberAuditEntry (OBJECT): Audit log entry for a org.invite_member event. -type OrgInviteMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Email: The email address of the organization invitation. - Email string `json:"email,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationInvitation: The organization invitation. - OrganizationInvitation *OrganizationInvitation `json:"organizationInvitation,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgInviteMemberAuditEntry) GetAction() string { return x.Action } -func (x *OrgInviteMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgInviteMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgInviteMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgInviteMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgInviteMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgInviteMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgInviteMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgInviteMemberAuditEntry) GetEmail() string { return x.Email } -func (x *OrgInviteMemberAuditEntry) GetId() ID { return x.Id } -func (x *OrgInviteMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgInviteMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgInviteMemberAuditEntry) GetOrganizationInvitation() *OrganizationInvitation { - return x.OrganizationInvitation -} -func (x *OrgInviteMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgInviteMemberAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgInviteMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgInviteMemberAuditEntry) GetUser() *User { return x.User } -func (x *OrgInviteMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgInviteMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgInviteMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgInviteToBusinessAuditEntry (OBJECT): Audit log entry for a org.invite_to_business event. -type OrgInviteToBusinessAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // EnterpriseResourcePath: The HTTP path for this enterprise. - EnterpriseResourcePath URI `json:"enterpriseResourcePath,omitempty"` - - // EnterpriseSlug: The slug of the enterprise. - EnterpriseSlug string `json:"enterpriseSlug,omitempty"` - - // EnterpriseUrl: The HTTP URL for this enterprise. - EnterpriseUrl URI `json:"enterpriseUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgInviteToBusinessAuditEntry) GetAction() string { return x.Action } -func (x *OrgInviteToBusinessAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgInviteToBusinessAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgInviteToBusinessAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgInviteToBusinessAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgInviteToBusinessAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgInviteToBusinessAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgInviteToBusinessAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgInviteToBusinessAuditEntry) GetEnterpriseResourcePath() URI { - return x.EnterpriseResourcePath -} -func (x *OrgInviteToBusinessAuditEntry) GetEnterpriseSlug() string { return x.EnterpriseSlug } -func (x *OrgInviteToBusinessAuditEntry) GetEnterpriseUrl() URI { return x.EnterpriseUrl } -func (x *OrgInviteToBusinessAuditEntry) GetId() ID { return x.Id } -func (x *OrgInviteToBusinessAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgInviteToBusinessAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgInviteToBusinessAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgInviteToBusinessAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgInviteToBusinessAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgInviteToBusinessAuditEntry) GetUser() *User { return x.User } -func (x *OrgInviteToBusinessAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgInviteToBusinessAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgInviteToBusinessAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgOauthAppAccessApprovedAuditEntry (OBJECT): Audit log entry for a org.oauth_app_access_approved event. -type OrgOauthAppAccessApprovedAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OauthApplicationName: The name of the OAuth Application. - OauthApplicationName string `json:"oauthApplicationName,omitempty"` - - // OauthApplicationResourcePath: The HTTP path for the OAuth Application. - OauthApplicationResourcePath URI `json:"oauthApplicationResourcePath,omitempty"` - - // OauthApplicationUrl: The HTTP URL for the OAuth Application. - OauthApplicationUrl URI `json:"oauthApplicationUrl,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgOauthAppAccessApprovedAuditEntry) GetAction() string { return x.Action } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgOauthAppAccessApprovedAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetId() ID { return x.Id } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetOauthApplicationName() string { - return x.OauthApplicationName -} -func (x *OrgOauthAppAccessApprovedAuditEntry) GetOauthApplicationResourcePath() URI { - return x.OauthApplicationResourcePath -} -func (x *OrgOauthAppAccessApprovedAuditEntry) GetOauthApplicationUrl() URI { - return x.OauthApplicationUrl -} -func (x *OrgOauthAppAccessApprovedAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgOauthAppAccessApprovedAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgOauthAppAccessApprovedAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetUser() *User { return x.User } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgOauthAppAccessApprovedAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgOauthAppAccessDeniedAuditEntry (OBJECT): Audit log entry for a org.oauth_app_access_denied event. -type OrgOauthAppAccessDeniedAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OauthApplicationName: The name of the OAuth Application. - OauthApplicationName string `json:"oauthApplicationName,omitempty"` - - // OauthApplicationResourcePath: The HTTP path for the OAuth Application. - OauthApplicationResourcePath URI `json:"oauthApplicationResourcePath,omitempty"` - - // OauthApplicationUrl: The HTTP URL for the OAuth Application. - OauthApplicationUrl URI `json:"oauthApplicationUrl,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgOauthAppAccessDeniedAuditEntry) GetAction() string { return x.Action } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetId() ID { return x.Id } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetOauthApplicationName() string { - return x.OauthApplicationName -} -func (x *OrgOauthAppAccessDeniedAuditEntry) GetOauthApplicationResourcePath() URI { - return x.OauthApplicationResourcePath -} -func (x *OrgOauthAppAccessDeniedAuditEntry) GetOauthApplicationUrl() URI { - return x.OauthApplicationUrl -} -func (x *OrgOauthAppAccessDeniedAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgOauthAppAccessDeniedAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetUser() *User { return x.User } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgOauthAppAccessDeniedAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgOauthAppAccessRequestedAuditEntry (OBJECT): Audit log entry for a org.oauth_app_access_requested event. -type OrgOauthAppAccessRequestedAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OauthApplicationName: The name of the OAuth Application. - OauthApplicationName string `json:"oauthApplicationName,omitempty"` - - // OauthApplicationResourcePath: The HTTP path for the OAuth Application. - OauthApplicationResourcePath URI `json:"oauthApplicationResourcePath,omitempty"` - - // OauthApplicationUrl: The HTTP URL for the OAuth Application. - OauthApplicationUrl URI `json:"oauthApplicationUrl,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgOauthAppAccessRequestedAuditEntry) GetAction() string { return x.Action } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgOauthAppAccessRequestedAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetId() ID { return x.Id } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetOauthApplicationName() string { - return x.OauthApplicationName -} -func (x *OrgOauthAppAccessRequestedAuditEntry) GetOauthApplicationResourcePath() URI { - return x.OauthApplicationResourcePath -} -func (x *OrgOauthAppAccessRequestedAuditEntry) GetOauthApplicationUrl() URI { - return x.OauthApplicationUrl -} -func (x *OrgOauthAppAccessRequestedAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgOauthAppAccessRequestedAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgOauthAppAccessRequestedAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgOauthAppAccessRequestedAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetUser() *User { return x.User } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgOauthAppAccessRequestedAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgRemoveBillingManagerAuditEntry (OBJECT): Audit log entry for a org.remove_billing_manager event. -type OrgRemoveBillingManagerAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Reason: The reason for the billing manager being removed. - Reason OrgRemoveBillingManagerAuditEntryReason `json:"reason,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgRemoveBillingManagerAuditEntry) GetAction() string { return x.Action } -func (x *OrgRemoveBillingManagerAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgRemoveBillingManagerAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgRemoveBillingManagerAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgRemoveBillingManagerAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgRemoveBillingManagerAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgRemoveBillingManagerAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgRemoveBillingManagerAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgRemoveBillingManagerAuditEntry) GetId() ID { return x.Id } -func (x *OrgRemoveBillingManagerAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgRemoveBillingManagerAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgRemoveBillingManagerAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgRemoveBillingManagerAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgRemoveBillingManagerAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgRemoveBillingManagerAuditEntry) GetReason() OrgRemoveBillingManagerAuditEntryReason { - return x.Reason -} -func (x *OrgRemoveBillingManagerAuditEntry) GetUser() *User { return x.User } -func (x *OrgRemoveBillingManagerAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgRemoveBillingManagerAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgRemoveBillingManagerAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgRemoveBillingManagerAuditEntryReason (ENUM): The reason a billing manager was removed from an Organization. -type OrgRemoveBillingManagerAuditEntryReason string - -// OrgRemoveBillingManagerAuditEntryReason_TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE: The organization required 2FA of its billing managers and this user did not have 2FA enabled. -const OrgRemoveBillingManagerAuditEntryReason_TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE OrgRemoveBillingManagerAuditEntryReason = "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE" - -// OrgRemoveBillingManagerAuditEntryReason_SAML_EXTERNAL_IDENTITY_MISSING: SAML external identity missing. -const OrgRemoveBillingManagerAuditEntryReason_SAML_EXTERNAL_IDENTITY_MISSING OrgRemoveBillingManagerAuditEntryReason = "SAML_EXTERNAL_IDENTITY_MISSING" - -// OrgRemoveBillingManagerAuditEntryReason_SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY: SAML SSO enforcement requires an external identity. -const OrgRemoveBillingManagerAuditEntryReason_SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY OrgRemoveBillingManagerAuditEntryReason = "SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY" - -// OrgRemoveMemberAuditEntry (OBJECT): Audit log entry for a org.remove_member event. -type OrgRemoveMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // MembershipTypes: The types of membership the member has with the organization. - MembershipTypes []OrgRemoveMemberAuditEntryMembershipType `json:"membershipTypes,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Reason: The reason for the member being removed. - Reason OrgRemoveMemberAuditEntryReason `json:"reason,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgRemoveMemberAuditEntry) GetAction() string { return x.Action } -func (x *OrgRemoveMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgRemoveMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgRemoveMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgRemoveMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgRemoveMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgRemoveMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgRemoveMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgRemoveMemberAuditEntry) GetId() ID { return x.Id } -func (x *OrgRemoveMemberAuditEntry) GetMembershipTypes() []OrgRemoveMemberAuditEntryMembershipType { - return x.MembershipTypes -} -func (x *OrgRemoveMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgRemoveMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgRemoveMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgRemoveMemberAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgRemoveMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgRemoveMemberAuditEntry) GetReason() OrgRemoveMemberAuditEntryReason { return x.Reason } -func (x *OrgRemoveMemberAuditEntry) GetUser() *User { return x.User } -func (x *OrgRemoveMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgRemoveMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgRemoveMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgRemoveMemberAuditEntryMembershipType (ENUM): The type of membership a user has with an Organization. -type OrgRemoveMemberAuditEntryMembershipType string - -// OrgRemoveMemberAuditEntryMembershipType_SUSPENDED: A suspended member. -const OrgRemoveMemberAuditEntryMembershipType_SUSPENDED OrgRemoveMemberAuditEntryMembershipType = "SUSPENDED" - -// OrgRemoveMemberAuditEntryMembershipType_DIRECT_MEMBER: A direct member is a user that is a member of the Organization. -const OrgRemoveMemberAuditEntryMembershipType_DIRECT_MEMBER OrgRemoveMemberAuditEntryMembershipType = "DIRECT_MEMBER" - -// OrgRemoveMemberAuditEntryMembershipType_ADMIN: Organization administrators have full access and can change several settings, including the names of repositories that belong to the Organization and Owners team membership. In addition, organization admins can delete the organization and all of its repositories. -const OrgRemoveMemberAuditEntryMembershipType_ADMIN OrgRemoveMemberAuditEntryMembershipType = "ADMIN" - -// OrgRemoveMemberAuditEntryMembershipType_BILLING_MANAGER: A billing manager is a user who manages the billing settings for the Organization, such as updating payment information. -const OrgRemoveMemberAuditEntryMembershipType_BILLING_MANAGER OrgRemoveMemberAuditEntryMembershipType = "BILLING_MANAGER" - -// OrgRemoveMemberAuditEntryMembershipType_UNAFFILIATED: An unaffiliated collaborator is a person who is not a member of the Organization and does not have access to any repositories in the Organization. -const OrgRemoveMemberAuditEntryMembershipType_UNAFFILIATED OrgRemoveMemberAuditEntryMembershipType = "UNAFFILIATED" - -// OrgRemoveMemberAuditEntryMembershipType_OUTSIDE_COLLABORATOR: An outside collaborator is a person who isn't explicitly a member of the Organization, but who has Read, Write, or Admin permissions to one or more repositories in the organization. -const OrgRemoveMemberAuditEntryMembershipType_OUTSIDE_COLLABORATOR OrgRemoveMemberAuditEntryMembershipType = "OUTSIDE_COLLABORATOR" - -// OrgRemoveMemberAuditEntryReason (ENUM): The reason a member was removed from an Organization. -type OrgRemoveMemberAuditEntryReason string - -// OrgRemoveMemberAuditEntryReason_TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE: The organization required 2FA of its billing managers and this user did not have 2FA enabled. -const OrgRemoveMemberAuditEntryReason_TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE OrgRemoveMemberAuditEntryReason = "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE" - -// OrgRemoveMemberAuditEntryReason_SAML_EXTERNAL_IDENTITY_MISSING: SAML external identity missing. -const OrgRemoveMemberAuditEntryReason_SAML_EXTERNAL_IDENTITY_MISSING OrgRemoveMemberAuditEntryReason = "SAML_EXTERNAL_IDENTITY_MISSING" - -// OrgRemoveMemberAuditEntryReason_SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY: SAML SSO enforcement requires an external identity. -const OrgRemoveMemberAuditEntryReason_SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY OrgRemoveMemberAuditEntryReason = "SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY" - -// OrgRemoveMemberAuditEntryReason_USER_ACCOUNT_DELETED: User account has been deleted. -const OrgRemoveMemberAuditEntryReason_USER_ACCOUNT_DELETED OrgRemoveMemberAuditEntryReason = "USER_ACCOUNT_DELETED" - -// OrgRemoveMemberAuditEntryReason_TWO_FACTOR_ACCOUNT_RECOVERY: User was removed from organization during account recovery. -const OrgRemoveMemberAuditEntryReason_TWO_FACTOR_ACCOUNT_RECOVERY OrgRemoveMemberAuditEntryReason = "TWO_FACTOR_ACCOUNT_RECOVERY" - -// OrgRemoveOutsideCollaboratorAuditEntry (OBJECT): Audit log entry for a org.remove_outside_collaborator event. -type OrgRemoveOutsideCollaboratorAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // MembershipTypes: The types of membership the outside collaborator has with the organization. - MembershipTypes []OrgRemoveOutsideCollaboratorAuditEntryMembershipType `json:"membershipTypes,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Reason: The reason for the outside collaborator being removed from the Organization. - Reason OrgRemoveOutsideCollaboratorAuditEntryReason `json:"reason,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetAction() string { return x.Action } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetId() ID { return x.Id } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetMembershipTypes() []OrgRemoveOutsideCollaboratorAuditEntryMembershipType { - return x.MembershipTypes -} -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetReason() OrgRemoveOutsideCollaboratorAuditEntryReason { - return x.Reason -} -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetUser() *User { return x.User } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgRemoveOutsideCollaboratorAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgRemoveOutsideCollaboratorAuditEntryMembershipType (ENUM): The type of membership a user has with an Organization. -type OrgRemoveOutsideCollaboratorAuditEntryMembershipType string - -// OrgRemoveOutsideCollaboratorAuditEntryMembershipType_OUTSIDE_COLLABORATOR: An outside collaborator is a person who isn't explicitly a member of the Organization, but who has Read, Write, or Admin permissions to one or more repositories in the organization. -const OrgRemoveOutsideCollaboratorAuditEntryMembershipType_OUTSIDE_COLLABORATOR OrgRemoveOutsideCollaboratorAuditEntryMembershipType = "OUTSIDE_COLLABORATOR" - -// OrgRemoveOutsideCollaboratorAuditEntryMembershipType_UNAFFILIATED: An unaffiliated collaborator is a person who is not a member of the Organization and does not have access to any repositories in the organization. -const OrgRemoveOutsideCollaboratorAuditEntryMembershipType_UNAFFILIATED OrgRemoveOutsideCollaboratorAuditEntryMembershipType = "UNAFFILIATED" - -// OrgRemoveOutsideCollaboratorAuditEntryMembershipType_BILLING_MANAGER: A billing manager is a user who manages the billing settings for the Organization, such as updating payment information. -const OrgRemoveOutsideCollaboratorAuditEntryMembershipType_BILLING_MANAGER OrgRemoveOutsideCollaboratorAuditEntryMembershipType = "BILLING_MANAGER" - -// OrgRemoveOutsideCollaboratorAuditEntryReason (ENUM): The reason an outside collaborator was removed from an Organization. -type OrgRemoveOutsideCollaboratorAuditEntryReason string - -// OrgRemoveOutsideCollaboratorAuditEntryReason_TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE: The organization required 2FA of its billing managers and this user did not have 2FA enabled. -const OrgRemoveOutsideCollaboratorAuditEntryReason_TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE OrgRemoveOutsideCollaboratorAuditEntryReason = "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE" - -// OrgRemoveOutsideCollaboratorAuditEntryReason_SAML_EXTERNAL_IDENTITY_MISSING: SAML external identity missing. -const OrgRemoveOutsideCollaboratorAuditEntryReason_SAML_EXTERNAL_IDENTITY_MISSING OrgRemoveOutsideCollaboratorAuditEntryReason = "SAML_EXTERNAL_IDENTITY_MISSING" - -// OrgRestoreMemberAuditEntry (OBJECT): Audit log entry for a org.restore_member event. -type OrgRestoreMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // RestoredCustomEmailRoutingsCount: The number of custom email routings for the restored member. - RestoredCustomEmailRoutingsCount int `json:"restoredCustomEmailRoutingsCount,omitempty"` - - // RestoredIssueAssignmentsCount: The number of issue assignments for the restored member. - RestoredIssueAssignmentsCount int `json:"restoredIssueAssignmentsCount,omitempty"` - - // RestoredMemberships: Restored organization membership objects. - RestoredMemberships []OrgRestoreMemberAuditEntryMembership `json:"restoredMemberships,omitempty"` - - // RestoredMembershipsCount: The number of restored memberships. - RestoredMembershipsCount int `json:"restoredMembershipsCount,omitempty"` - - // RestoredRepositoriesCount: The number of repositories of the restored member. - RestoredRepositoriesCount int `json:"restoredRepositoriesCount,omitempty"` - - // RestoredRepositoryStarsCount: The number of starred repositories for the restored member. - RestoredRepositoryStarsCount int `json:"restoredRepositoryStarsCount,omitempty"` - - // RestoredRepositoryWatchesCount: The number of watched repositories for the restored member. - RestoredRepositoryWatchesCount int `json:"restoredRepositoryWatchesCount,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgRestoreMemberAuditEntry) GetAction() string { return x.Action } -func (x *OrgRestoreMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgRestoreMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgRestoreMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgRestoreMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgRestoreMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgRestoreMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgRestoreMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgRestoreMemberAuditEntry) GetId() ID { return x.Id } -func (x *OrgRestoreMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgRestoreMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgRestoreMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgRestoreMemberAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgRestoreMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgRestoreMemberAuditEntry) GetRestoredCustomEmailRoutingsCount() int { - return x.RestoredCustomEmailRoutingsCount -} -func (x *OrgRestoreMemberAuditEntry) GetRestoredIssueAssignmentsCount() int { - return x.RestoredIssueAssignmentsCount -} -func (x *OrgRestoreMemberAuditEntry) GetRestoredMemberships() []OrgRestoreMemberAuditEntryMembership { - return x.RestoredMemberships -} -func (x *OrgRestoreMemberAuditEntry) GetRestoredMembershipsCount() int { - return x.RestoredMembershipsCount -} -func (x *OrgRestoreMemberAuditEntry) GetRestoredRepositoriesCount() int { - return x.RestoredRepositoriesCount -} -func (x *OrgRestoreMemberAuditEntry) GetRestoredRepositoryStarsCount() int { - return x.RestoredRepositoryStarsCount -} -func (x *OrgRestoreMemberAuditEntry) GetRestoredRepositoryWatchesCount() int { - return x.RestoredRepositoryWatchesCount -} -func (x *OrgRestoreMemberAuditEntry) GetUser() *User { return x.User } -func (x *OrgRestoreMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgRestoreMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgRestoreMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgRestoreMemberAuditEntryMembership (UNION): Types of memberships that can be restored for an Organization member. -// OrgRestoreMemberAuditEntryMembership_Interface: Types of memberships that can be restored for an Organization member. -// -// Possible types: -// -// - *OrgRestoreMemberMembershipOrganizationAuditEntryData -// - *OrgRestoreMemberMembershipRepositoryAuditEntryData -// - *OrgRestoreMemberMembershipTeamAuditEntryData -type OrgRestoreMemberAuditEntryMembership_Interface interface { - isOrgRestoreMemberAuditEntryMembership() -} - -func (*OrgRestoreMemberMembershipOrganizationAuditEntryData) isOrgRestoreMemberAuditEntryMembership() { -} -func (*OrgRestoreMemberMembershipRepositoryAuditEntryData) isOrgRestoreMemberAuditEntryMembership() {} -func (*OrgRestoreMemberMembershipTeamAuditEntryData) isOrgRestoreMemberAuditEntryMembership() {} - -type OrgRestoreMemberAuditEntryMembership struct { - Interface OrgRestoreMemberAuditEntryMembership_Interface -} - -func (x *OrgRestoreMemberAuditEntryMembership) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *OrgRestoreMemberAuditEntryMembership) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for OrgRestoreMemberAuditEntryMembership", info.Typename) - case "OrgRestoreMemberMembershipOrganizationAuditEntryData": - x.Interface = new(OrgRestoreMemberMembershipOrganizationAuditEntryData) - case "OrgRestoreMemberMembershipRepositoryAuditEntryData": - x.Interface = new(OrgRestoreMemberMembershipRepositoryAuditEntryData) - case "OrgRestoreMemberMembershipTeamAuditEntryData": - x.Interface = new(OrgRestoreMemberMembershipTeamAuditEntryData) - } - return json.Unmarshal(js, x.Interface) -} - -// OrgRestoreMemberMembershipOrganizationAuditEntryData (OBJECT): Metadata for an organization membership for org.restore_member actions. -type OrgRestoreMemberMembershipOrganizationAuditEntryData struct { - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` -} - -func (x *OrgRestoreMemberMembershipOrganizationAuditEntryData) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgRestoreMemberMembershipOrganizationAuditEntryData) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgRestoreMemberMembershipOrganizationAuditEntryData) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgRestoreMemberMembershipOrganizationAuditEntryData) GetOrganizationUrl() URI { - return x.OrganizationUrl -} - -// OrgRestoreMemberMembershipRepositoryAuditEntryData (OBJECT): Metadata for a repository membership for org.restore_member actions. -type OrgRestoreMemberMembershipRepositoryAuditEntryData struct { - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` -} - -func (x *OrgRestoreMemberMembershipRepositoryAuditEntryData) GetRepository() *Repository { - return x.Repository -} -func (x *OrgRestoreMemberMembershipRepositoryAuditEntryData) GetRepositoryName() string { - return x.RepositoryName -} -func (x *OrgRestoreMemberMembershipRepositoryAuditEntryData) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *OrgRestoreMemberMembershipRepositoryAuditEntryData) GetRepositoryUrl() URI { - return x.RepositoryUrl -} - -// OrgRestoreMemberMembershipTeamAuditEntryData (OBJECT): Metadata for a team membership for org.restore_member actions. -type OrgRestoreMemberMembershipTeamAuditEntryData struct { - // Team: The team associated with the action. - Team *Team `json:"team,omitempty"` - - // TeamName: The name of the team. - TeamName string `json:"teamName,omitempty"` - - // TeamResourcePath: The HTTP path for this team. - TeamResourcePath URI `json:"teamResourcePath,omitempty"` - - // TeamUrl: The HTTP URL for this team. - TeamUrl URI `json:"teamUrl,omitempty"` -} - -func (x *OrgRestoreMemberMembershipTeamAuditEntryData) GetTeam() *Team { return x.Team } -func (x *OrgRestoreMemberMembershipTeamAuditEntryData) GetTeamName() string { return x.TeamName } -func (x *OrgRestoreMemberMembershipTeamAuditEntryData) GetTeamResourcePath() URI { - return x.TeamResourcePath -} -func (x *OrgRestoreMemberMembershipTeamAuditEntryData) GetTeamUrl() URI { return x.TeamUrl } - -// OrgUnblockUserAuditEntry (OBJECT): Audit log entry for a org.unblock_user. -type OrgUnblockUserAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // BlockedUser: The user being unblocked by the organization. - BlockedUser *User `json:"blockedUser,omitempty"` - - // BlockedUserName: The username of the blocked user. - BlockedUserName string `json:"blockedUserName,omitempty"` - - // BlockedUserResourcePath: The HTTP path for the blocked user. - BlockedUserResourcePath URI `json:"blockedUserResourcePath,omitempty"` - - // BlockedUserUrl: The HTTP URL for the blocked user. - BlockedUserUrl URI `json:"blockedUserUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgUnblockUserAuditEntry) GetAction() string { return x.Action } -func (x *OrgUnblockUserAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgUnblockUserAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgUnblockUserAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgUnblockUserAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgUnblockUserAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgUnblockUserAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgUnblockUserAuditEntry) GetBlockedUser() *User { return x.BlockedUser } -func (x *OrgUnblockUserAuditEntry) GetBlockedUserName() string { return x.BlockedUserName } -func (x *OrgUnblockUserAuditEntry) GetBlockedUserResourcePath() URI { return x.BlockedUserResourcePath } -func (x *OrgUnblockUserAuditEntry) GetBlockedUserUrl() URI { return x.BlockedUserUrl } -func (x *OrgUnblockUserAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgUnblockUserAuditEntry) GetId() ID { return x.Id } -func (x *OrgUnblockUserAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgUnblockUserAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgUnblockUserAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgUnblockUserAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgUnblockUserAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgUnblockUserAuditEntry) GetUser() *User { return x.User } -func (x *OrgUnblockUserAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgUnblockUserAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgUnblockUserAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgUpdateDefaultRepositoryPermissionAuditEntry (OBJECT): Audit log entry for a org.update_default_repository_permission. -type OrgUpdateDefaultRepositoryPermissionAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Permission: The new base repository permission level for the organization. - Permission OrgUpdateDefaultRepositoryPermissionAuditEntryPermission `json:"permission,omitempty"` - - // PermissionWas: The former base repository permission level for the organization. - PermissionWas OrgUpdateDefaultRepositoryPermissionAuditEntryPermission `json:"permissionWas,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetAction() string { return x.Action } -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetId() ID { return x.Id } -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetPermission() OrgUpdateDefaultRepositoryPermissionAuditEntryPermission { - return x.Permission -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetPermissionWas() OrgUpdateDefaultRepositoryPermissionAuditEntryPermission { - return x.PermissionWas -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetUser() *User { return x.User } -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgUpdateDefaultRepositoryPermissionAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgUpdateDefaultRepositoryPermissionAuditEntryPermission (ENUM): The default permission a repository can have in an Organization. -type OrgUpdateDefaultRepositoryPermissionAuditEntryPermission string - -// OrgUpdateDefaultRepositoryPermissionAuditEntryPermission_READ: Can read and clone repositories. -const OrgUpdateDefaultRepositoryPermissionAuditEntryPermission_READ OrgUpdateDefaultRepositoryPermissionAuditEntryPermission = "READ" - -// OrgUpdateDefaultRepositoryPermissionAuditEntryPermission_WRITE: Can read, clone and push to repositories. -const OrgUpdateDefaultRepositoryPermissionAuditEntryPermission_WRITE OrgUpdateDefaultRepositoryPermissionAuditEntryPermission = "WRITE" - -// OrgUpdateDefaultRepositoryPermissionAuditEntryPermission_ADMIN: Can read, clone, push, and add collaborators to repositories. -const OrgUpdateDefaultRepositoryPermissionAuditEntryPermission_ADMIN OrgUpdateDefaultRepositoryPermissionAuditEntryPermission = "ADMIN" - -// OrgUpdateDefaultRepositoryPermissionAuditEntryPermission_NONE: No default permission value. -const OrgUpdateDefaultRepositoryPermissionAuditEntryPermission_NONE OrgUpdateDefaultRepositoryPermissionAuditEntryPermission = "NONE" - -// OrgUpdateMemberAuditEntry (OBJECT): Audit log entry for a org.update_member event. -type OrgUpdateMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Permission: The new member permission level for the organization. - Permission OrgUpdateMemberAuditEntryPermission `json:"permission,omitempty"` - - // PermissionWas: The former member permission level for the organization. - PermissionWas OrgUpdateMemberAuditEntryPermission `json:"permissionWas,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgUpdateMemberAuditEntry) GetAction() string { return x.Action } -func (x *OrgUpdateMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *OrgUpdateMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgUpdateMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *OrgUpdateMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *OrgUpdateMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *OrgUpdateMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgUpdateMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *OrgUpdateMemberAuditEntry) GetId() ID { return x.Id } -func (x *OrgUpdateMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *OrgUpdateMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *OrgUpdateMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *OrgUpdateMemberAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgUpdateMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *OrgUpdateMemberAuditEntry) GetPermission() OrgUpdateMemberAuditEntryPermission { - return x.Permission -} -func (x *OrgUpdateMemberAuditEntry) GetPermissionWas() OrgUpdateMemberAuditEntryPermission { - return x.PermissionWas -} -func (x *OrgUpdateMemberAuditEntry) GetUser() *User { return x.User } -func (x *OrgUpdateMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *OrgUpdateMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *OrgUpdateMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// OrgUpdateMemberAuditEntryPermission (ENUM): The permissions available to members on an Organization. -type OrgUpdateMemberAuditEntryPermission string - -// OrgUpdateMemberAuditEntryPermission_READ: Can read and clone repositories. -const OrgUpdateMemberAuditEntryPermission_READ OrgUpdateMemberAuditEntryPermission = "READ" - -// OrgUpdateMemberAuditEntryPermission_ADMIN: Can read, clone, push, and add collaborators to repositories. -const OrgUpdateMemberAuditEntryPermission_ADMIN OrgUpdateMemberAuditEntryPermission = "ADMIN" - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntry (OBJECT): Audit log entry for a org.update_member_repository_creation_permission event. -type OrgUpdateMemberRepositoryCreationPermissionAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CanCreateRepositories: Can members create repositories in the organization. - CanCreateRepositories bool `json:"canCreateRepositories,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` - - // Visibility: The permission for visibility level of repositories for this organization. - Visibility OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility `json:"visibility,omitempty"` -} - -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetAction() string { return x.Action } -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetActor() AuditEntryActor { - return x.Actor -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetActorLogin() string { - return x.ActorLogin -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetCanCreateRepositories() bool { - return x.CanCreateRepositories -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetId() ID { return x.Id } -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetUser() *User { return x.User } -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetUserLogin() string { - return x.UserLogin -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetUserUrl() URI { return x.UserUrl } -func (x *OrgUpdateMemberRepositoryCreationPermissionAuditEntry) GetVisibility() OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility { - return x.Visibility -} - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility (ENUM): The permissions available for repository creation on an Organization. -type OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility string - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_ALL: All organization members are restricted from creating any repositories. -const OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_ALL OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility = "ALL" - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PUBLIC: All organization members are restricted from creating public repositories. -const OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PUBLIC OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility = "PUBLIC" - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_NONE: All organization members are allowed to create any repositories. -const OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_NONE OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility = "NONE" - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PRIVATE: All organization members are restricted from creating private repositories. -const OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PRIVATE OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility = "PRIVATE" - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_INTERNAL: All organization members are restricted from creating internal repositories. -const OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_INTERNAL OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility = "INTERNAL" - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PUBLIC_INTERNAL: All organization members are restricted from creating public or internal repositories. -const OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PUBLIC_INTERNAL OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility = "PUBLIC_INTERNAL" - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PRIVATE_INTERNAL: All organization members are restricted from creating private or internal repositories. -const OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PRIVATE_INTERNAL OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility = "PRIVATE_INTERNAL" - -// OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PUBLIC_PRIVATE: All organization members are restricted from creating public or private repositories. -const OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility_PUBLIC_PRIVATE OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility = "PUBLIC_PRIVATE" - -// OrgUpdateMemberRepositoryInvitationPermissionAuditEntry (OBJECT): Audit log entry for a org.update_member_repository_invitation_permission event. -type OrgUpdateMemberRepositoryInvitationPermissionAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CanInviteOutsideCollaboratorsToRepositories: Can outside collaborators be invited to repositories in the organization. - CanInviteOutsideCollaboratorsToRepositories bool `json:"canInviteOutsideCollaboratorsToRepositories,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetAction() string { return x.Action } -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetActor() AuditEntryActor { - return x.Actor -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetActorIp() string { - return x.ActorIp -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetActorLogin() string { - return x.ActorLogin -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetActorUrl() URI { - return x.ActorUrl -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetCanInviteOutsideCollaboratorsToRepositories() bool { - return x.CanInviteOutsideCollaboratorsToRepositories -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetId() ID { return x.Id } -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetUser() *User { return x.User } -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetUserLogin() string { - return x.UserLogin -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// Organization (OBJECT): An account on GitHub, with one or more owners, that has repositories, members and teams. -type Organization struct { - // AnyPinnableItems: Determine if this repository owner has any items that can be pinned to their profile. - // - // Query arguments: - // - type PinnableItemType - AnyPinnableItems bool `json:"anyPinnableItems,omitempty"` - - // AuditLog: Audit log entries of the organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - orderBy AuditLogOrder - AuditLog *OrganizationAuditEntryConnection `json:"auditLog,omitempty"` - - // AvatarUrl: A URL pointing to the organization's public avatar. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Description: The organization's public profile description. - Description string `json:"description,omitempty"` - - // DescriptionHTML: The organization's public profile description rendered to HTML. - DescriptionHTML string `json:"descriptionHTML,omitempty"` - - // Domains: A list of domains owned by the organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - isVerified Boolean - // - isApproved Boolean - // - orderBy VerifiableDomainOrder - Domains *VerifiableDomainConnection `json:"domains,omitempty"` - - // Email: The organization's public email. - Email string `json:"email,omitempty"` - - // EnterpriseOwners: A list of owners of the organization's enterprise account. - // - // Query arguments: - // - query String - // - organizationRole RoleInOrganization - // - orderBy OrgEnterpriseOwnerOrder - // - after String - // - before String - // - first Int - // - last Int - EnterpriseOwners *OrganizationEnterpriseOwnerConnection `json:"enterpriseOwners,omitempty"` - - // EstimatedNextSponsorsPayoutInCents: The estimated next GitHub Sponsors payout for this user/organization in cents (USD). - EstimatedNextSponsorsPayoutInCents int `json:"estimatedNextSponsorsPayoutInCents,omitempty"` - - // HasSponsorsListing: True if this user/organization has a GitHub Sponsors listing. - HasSponsorsListing bool `json:"hasSponsorsListing,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // InteractionAbility: The interaction ability settings for this organization. - InteractionAbility *RepositoryInteractionAbility `json:"interactionAbility,omitempty"` - - // IpAllowListEnabledSetting: The setting value for whether the organization has an IP allow list enabled. - IpAllowListEnabledSetting IpAllowListEnabledSettingValue `json:"ipAllowListEnabledSetting,omitempty"` - - // IpAllowListEntries: The IP addresses that are allowed to access resources owned by the organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy IpAllowListEntryOrder - IpAllowListEntries *IpAllowListEntryConnection `json:"ipAllowListEntries,omitempty"` - - // IpAllowListForInstalledAppsEnabledSetting: The setting value for whether the organization has IP allow list configuration for installed GitHub Apps enabled. - IpAllowListForInstalledAppsEnabledSetting IpAllowListForInstalledAppsEnabledSettingValue `json:"ipAllowListForInstalledAppsEnabledSetting,omitempty"` - - // IsSponsoredBy: Check if the given account is sponsoring this user/organization. - // - // Query arguments: - // - accountLogin String! - IsSponsoredBy bool `json:"isSponsoredBy,omitempty"` - - // IsSponsoringViewer: True if the viewer is sponsored by this user/organization. - IsSponsoringViewer bool `json:"isSponsoringViewer,omitempty"` - - // IsVerified: Whether the organization has verified its profile email and website. - IsVerified bool `json:"isVerified,omitempty"` - - // ItemShowcase: Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity. - ItemShowcase *ProfileItemShowcase `json:"itemShowcase,omitempty"` - - // Location: The organization's public profile location. - Location string `json:"location,omitempty"` - - // Login: The organization's login name. - Login string `json:"login,omitempty"` - - // MemberStatuses: Get the status messages members of this entity have set that are either public or visible only to the organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy UserStatusOrder - MemberStatuses *UserStatusConnection `json:"memberStatuses,omitempty"` - - // MembersCanForkPrivateRepositories: Members can fork private repositories in this organization. - MembersCanForkPrivateRepositories bool `json:"membersCanForkPrivateRepositories,omitempty"` - - // MembersWithRole: A list of users who are members of this organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - MembersWithRole *OrganizationMemberConnection `json:"membersWithRole,omitempty"` - - // MonthlyEstimatedSponsorsIncomeInCents: The estimated monthly GitHub Sponsors income for this user/organization in cents (USD). - MonthlyEstimatedSponsorsIncomeInCents int `json:"monthlyEstimatedSponsorsIncomeInCents,omitempty"` - - // Name: The organization's public profile name. - Name string `json:"name,omitempty"` - - // NewTeamResourcePath: The HTTP path creating a new team. - NewTeamResourcePath URI `json:"newTeamResourcePath,omitempty"` - - // NewTeamUrl: The HTTP URL creating a new team. - NewTeamUrl URI `json:"newTeamUrl,omitempty"` - - // NotificationDeliveryRestrictionEnabledSetting: Indicates if email notification delivery for this organization is restricted to verified or approved domains. - NotificationDeliveryRestrictionEnabledSetting NotificationRestrictionSettingValue `json:"notificationDeliveryRestrictionEnabledSetting,omitempty"` - - // OrganizationBillingEmail: The billing email for the organization. - OrganizationBillingEmail string `json:"organizationBillingEmail,omitempty"` - - // Packages: A list of packages under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - names [String] - // - repositoryId ID - // - packageType PackageType - // - orderBy PackageOrder - Packages *PackageConnection `json:"packages,omitempty"` - - // PendingMembers: A list of users who have been invited to join this organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - PendingMembers *UserConnection `json:"pendingMembers,omitempty"` - - // PinnableItems: A list of repositories and gists this profile owner can pin to their profile. - // - // Query arguments: - // - types [PinnableItemType!] - // - after String - // - before String - // - first Int - // - last Int - PinnableItems *PinnableItemConnection `json:"pinnableItems,omitempty"` - - // PinnedItems: A list of repositories and gists this profile owner has pinned to their profile. - // - // Query arguments: - // - types [PinnableItemType!] - // - after String - // - before String - // - first Int - // - last Int - PinnedItems *PinnableItemConnection `json:"pinnedItems,omitempty"` - - // PinnedItemsRemaining: Returns how many more items this profile owner can pin to their profile. - PinnedItemsRemaining int `json:"pinnedItemsRemaining,omitempty"` - - // Project: Find project by number. - // - // Query arguments: - // - number Int! - Project *Project `json:"project,omitempty"` - - // ProjectNext: Find a project by project (beta) number. - // - // Deprecated: Find a project by project (beta) number. - // - // Query arguments: - // - number Int! - ProjectNext *ProjectNext `json:"projectNext,omitempty"` - - // ProjectV2: Find a project by number. - // - // Query arguments: - // - number Int! - ProjectV2 *ProjectV2 `json:"projectV2,omitempty"` - - // Projects: A list of projects under the owner. - // - // Query arguments: - // - orderBy ProjectOrder - // - search String - // - states [ProjectState!] - // - after String - // - before String - // - first Int - // - last Int - Projects *ProjectConnection `json:"projects,omitempty"` - - // ProjectsNext: A list of projects (beta) under the owner. - // - // Deprecated: A list of projects (beta) under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - sortBy ProjectNextOrderField - ProjectsNext *ProjectNextConnection `json:"projectsNext,omitempty"` - - // ProjectsResourcePath: The HTTP path listing organization's projects. - ProjectsResourcePath URI `json:"projectsResourcePath,omitempty"` - - // ProjectsUrl: The HTTP URL listing organization's projects. - ProjectsUrl URI `json:"projectsUrl,omitempty"` - - // ProjectsV2: A list of projects under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - orderBy ProjectV2Order - ProjectsV2 *ProjectV2Connection `json:"projectsV2,omitempty"` - - // RecentProjects: Recent projects that this user has modified in the context of the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - RecentProjects *ProjectV2Connection `json:"recentProjects,omitempty"` - - // Repositories: A list of repositories that the user owns. - // - // Query arguments: - // - privacy RepositoryPrivacy - // - orderBy RepositoryOrder - // - affiliations [RepositoryAffiliation] - // - ownerAffiliations [RepositoryAffiliation] - // - isLocked Boolean - // - after String - // - before String - // - first Int - // - last Int - // - isFork Boolean - Repositories *RepositoryConnection `json:"repositories,omitempty"` - - // Repository: Find Repository. - // - // Query arguments: - // - name String! - // - followRenames Boolean - Repository *Repository `json:"repository,omitempty"` - - // RepositoryDiscussionComments: Discussion comments this user has authored. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - repositoryId ID - // - onlyAnswers Boolean - RepositoryDiscussionComments *DiscussionCommentConnection `json:"repositoryDiscussionComments,omitempty"` - - // RepositoryDiscussions: Discussions this user has started. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy DiscussionOrder - // - repositoryId ID - // - answered Boolean - RepositoryDiscussions *DiscussionConnection `json:"repositoryDiscussions,omitempty"` - - // RepositoryMigrations: A list of all repository migrations for this organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - state MigrationState - // - repositoryName String - // - orderBy RepositoryMigrationOrder - RepositoryMigrations *RepositoryMigrationConnection `json:"repositoryMigrations,omitempty"` - - // RequiresTwoFactorAuthentication: When true the organization requires all members, billing managers, and outside collaborators to enable two-factor authentication. - RequiresTwoFactorAuthentication bool `json:"requiresTwoFactorAuthentication,omitempty"` - - // ResourcePath: The HTTP path for this organization. - ResourcePath URI `json:"resourcePath,omitempty"` - - // SamlIdentityProvider: The Organization's SAML identity providers. - SamlIdentityProvider *OrganizationIdentityProvider `json:"samlIdentityProvider,omitempty"` - - // Sponsoring: List of users and organizations this entity is sponsoring. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SponsorOrder - Sponsoring *SponsorConnection `json:"sponsoring,omitempty"` - - // Sponsors: List of sponsors for this user or organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - tierId ID - // - orderBy SponsorOrder - Sponsors *SponsorConnection `json:"sponsors,omitempty"` - - // SponsorsActivities: Events involving this sponsorable, such as new sponsorships. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - period SponsorsActivityPeriod - // - orderBy SponsorsActivityOrder - // - actions [SponsorsActivityAction!] - SponsorsActivities *SponsorsActivityConnection `json:"sponsorsActivities,omitempty"` - - // SponsorsListing: The GitHub Sponsors listing for this user or organization. - SponsorsListing *SponsorsListing `json:"sponsorsListing,omitempty"` - - // SponsorshipForViewerAsSponsor: The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor. Only returns a sponsorship if it is active. - SponsorshipForViewerAsSponsor *Sponsorship `json:"sponsorshipForViewerAsSponsor,omitempty"` - - // SponsorshipForViewerAsSponsorable: The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. Only returns a sponsorship if it is active. - SponsorshipForViewerAsSponsorable *Sponsorship `json:"sponsorshipForViewerAsSponsorable,omitempty"` - - // SponsorshipNewsletters: List of sponsorship updates sent from this sponsorable to sponsors. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SponsorshipNewsletterOrder - SponsorshipNewsletters *SponsorshipNewsletterConnection `json:"sponsorshipNewsletters,omitempty"` - - // SponsorshipsAsMaintainer: This object's sponsorships as the maintainer. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - includePrivate Boolean - // - orderBy SponsorshipOrder - SponsorshipsAsMaintainer *SponsorshipConnection `json:"sponsorshipsAsMaintainer,omitempty"` - - // SponsorshipsAsSponsor: This object's sponsorships as the sponsor. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SponsorshipOrder - SponsorshipsAsSponsor *SponsorshipConnection `json:"sponsorshipsAsSponsor,omitempty"` - - // Team: Find an organization's team by its slug. - // - // Query arguments: - // - slug String! - Team *Team `json:"team,omitempty"` - - // Teams: A list of teams in this organization. - // - // Query arguments: - // - privacy TeamPrivacy - // - role TeamRole - // - query String - // - userLogins [String!] - // - orderBy TeamOrder - // - ldapMapped Boolean - // - rootTeamsOnly Boolean - // - after String - // - before String - // - first Int - // - last Int - Teams *TeamConnection `json:"teams,omitempty"` - - // TeamsResourcePath: The HTTP path listing organization's teams. - TeamsResourcePath URI `json:"teamsResourcePath,omitempty"` - - // TeamsUrl: The HTTP URL listing organization's teams. - TeamsUrl URI `json:"teamsUrl,omitempty"` - - // TwitterUsername: The organization's Twitter username. - TwitterUsername string `json:"twitterUsername,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this organization. - Url URI `json:"url,omitempty"` - - // ViewerCanAdminister: Organization is adminable by the viewer. - ViewerCanAdminister bool `json:"viewerCanAdminister,omitempty"` - - // ViewerCanChangePinnedItems: Can the viewer pin repositories and gists to the profile?. - ViewerCanChangePinnedItems bool `json:"viewerCanChangePinnedItems,omitempty"` - - // ViewerCanCreateProjects: Can the current viewer create new projects on this owner. - ViewerCanCreateProjects bool `json:"viewerCanCreateProjects,omitempty"` - - // ViewerCanCreateRepositories: Viewer can create repositories on this organization. - ViewerCanCreateRepositories bool `json:"viewerCanCreateRepositories,omitempty"` - - // ViewerCanCreateTeams: Viewer can create teams on this organization. - ViewerCanCreateTeams bool `json:"viewerCanCreateTeams,omitempty"` - - // ViewerCanSponsor: Whether or not the viewer is able to sponsor this user/organization. - ViewerCanSponsor bool `json:"viewerCanSponsor,omitempty"` - - // ViewerIsAMember: Viewer is an active member of this organization. - ViewerIsAMember bool `json:"viewerIsAMember,omitempty"` - - // ViewerIsFollowing: Whether or not this Organization is followed by the viewer. - ViewerIsFollowing bool `json:"viewerIsFollowing,omitempty"` - - // ViewerIsSponsoring: True if the viewer is sponsoring this user/organization. - ViewerIsSponsoring bool `json:"viewerIsSponsoring,omitempty"` - - // WebsiteUrl: The organization's public profile URL. - WebsiteUrl URI `json:"websiteUrl,omitempty"` -} - -func (x *Organization) GetAnyPinnableItems() bool { return x.AnyPinnableItems } -func (x *Organization) GetAuditLog() *OrganizationAuditEntryConnection { return x.AuditLog } -func (x *Organization) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *Organization) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Organization) GetDatabaseId() int { return x.DatabaseId } -func (x *Organization) GetDescription() string { return x.Description } -func (x *Organization) GetDescriptionHTML() string { return x.DescriptionHTML } -func (x *Organization) GetDomains() *VerifiableDomainConnection { return x.Domains } -func (x *Organization) GetEmail() string { return x.Email } -func (x *Organization) GetEnterpriseOwners() *OrganizationEnterpriseOwnerConnection { - return x.EnterpriseOwners -} -func (x *Organization) GetEstimatedNextSponsorsPayoutInCents() int { - return x.EstimatedNextSponsorsPayoutInCents -} -func (x *Organization) GetHasSponsorsListing() bool { return x.HasSponsorsListing } -func (x *Organization) GetId() ID { return x.Id } -func (x *Organization) GetInteractionAbility() *RepositoryInteractionAbility { - return x.InteractionAbility -} -func (x *Organization) GetIpAllowListEnabledSetting() IpAllowListEnabledSettingValue { - return x.IpAllowListEnabledSetting -} -func (x *Organization) GetIpAllowListEntries() *IpAllowListEntryConnection { - return x.IpAllowListEntries -} -func (x *Organization) GetIpAllowListForInstalledAppsEnabledSetting() IpAllowListForInstalledAppsEnabledSettingValue { - return x.IpAllowListForInstalledAppsEnabledSetting -} -func (x *Organization) GetIsSponsoredBy() bool { return x.IsSponsoredBy } -func (x *Organization) GetIsSponsoringViewer() bool { return x.IsSponsoringViewer } -func (x *Organization) GetIsVerified() bool { return x.IsVerified } -func (x *Organization) GetItemShowcase() *ProfileItemShowcase { return x.ItemShowcase } -func (x *Organization) GetLocation() string { return x.Location } -func (x *Organization) GetLogin() string { return x.Login } -func (x *Organization) GetMemberStatuses() *UserStatusConnection { return x.MemberStatuses } -func (x *Organization) GetMembersCanForkPrivateRepositories() bool { - return x.MembersCanForkPrivateRepositories -} -func (x *Organization) GetMembersWithRole() *OrganizationMemberConnection { return x.MembersWithRole } -func (x *Organization) GetMonthlyEstimatedSponsorsIncomeInCents() int { - return x.MonthlyEstimatedSponsorsIncomeInCents -} -func (x *Organization) GetName() string { return x.Name } -func (x *Organization) GetNewTeamResourcePath() URI { return x.NewTeamResourcePath } -func (x *Organization) GetNewTeamUrl() URI { return x.NewTeamUrl } -func (x *Organization) GetNotificationDeliveryRestrictionEnabledSetting() NotificationRestrictionSettingValue { - return x.NotificationDeliveryRestrictionEnabledSetting -} -func (x *Organization) GetOrganizationBillingEmail() string { return x.OrganizationBillingEmail } -func (x *Organization) GetPackages() *PackageConnection { return x.Packages } -func (x *Organization) GetPendingMembers() *UserConnection { return x.PendingMembers } -func (x *Organization) GetPinnableItems() *PinnableItemConnection { return x.PinnableItems } -func (x *Organization) GetPinnedItems() *PinnableItemConnection { return x.PinnedItems } -func (x *Organization) GetPinnedItemsRemaining() int { return x.PinnedItemsRemaining } -func (x *Organization) GetProject() *Project { return x.Project } -func (x *Organization) GetProjectNext() *ProjectNext { return x.ProjectNext } -func (x *Organization) GetProjectV2() *ProjectV2 { return x.ProjectV2 } -func (x *Organization) GetProjects() *ProjectConnection { return x.Projects } -func (x *Organization) GetProjectsNext() *ProjectNextConnection { return x.ProjectsNext } -func (x *Organization) GetProjectsResourcePath() URI { return x.ProjectsResourcePath } -func (x *Organization) GetProjectsUrl() URI { return x.ProjectsUrl } -func (x *Organization) GetProjectsV2() *ProjectV2Connection { return x.ProjectsV2 } -func (x *Organization) GetRecentProjects() *ProjectV2Connection { return x.RecentProjects } -func (x *Organization) GetRepositories() *RepositoryConnection { return x.Repositories } -func (x *Organization) GetRepository() *Repository { return x.Repository } -func (x *Organization) GetRepositoryDiscussionComments() *DiscussionCommentConnection { - return x.RepositoryDiscussionComments -} -func (x *Organization) GetRepositoryDiscussions() *DiscussionConnection { - return x.RepositoryDiscussions -} -func (x *Organization) GetRepositoryMigrations() *RepositoryMigrationConnection { - return x.RepositoryMigrations -} -func (x *Organization) GetRequiresTwoFactorAuthentication() bool { - return x.RequiresTwoFactorAuthentication -} -func (x *Organization) GetResourcePath() URI { return x.ResourcePath } -func (x *Organization) GetSamlIdentityProvider() *OrganizationIdentityProvider { - return x.SamlIdentityProvider -} -func (x *Organization) GetSponsoring() *SponsorConnection { return x.Sponsoring } -func (x *Organization) GetSponsors() *SponsorConnection { return x.Sponsors } -func (x *Organization) GetSponsorsActivities() *SponsorsActivityConnection { - return x.SponsorsActivities -} -func (x *Organization) GetSponsorsListing() *SponsorsListing { return x.SponsorsListing } -func (x *Organization) GetSponsorshipForViewerAsSponsor() *Sponsorship { - return x.SponsorshipForViewerAsSponsor -} -func (x *Organization) GetSponsorshipForViewerAsSponsorable() *Sponsorship { - return x.SponsorshipForViewerAsSponsorable -} -func (x *Organization) GetSponsorshipNewsletters() *SponsorshipNewsletterConnection { - return x.SponsorshipNewsletters -} -func (x *Organization) GetSponsorshipsAsMaintainer() *SponsorshipConnection { - return x.SponsorshipsAsMaintainer -} -func (x *Organization) GetSponsorshipsAsSponsor() *SponsorshipConnection { - return x.SponsorshipsAsSponsor -} -func (x *Organization) GetTeam() *Team { return x.Team } -func (x *Organization) GetTeams() *TeamConnection { return x.Teams } -func (x *Organization) GetTeamsResourcePath() URI { return x.TeamsResourcePath } -func (x *Organization) GetTeamsUrl() URI { return x.TeamsUrl } -func (x *Organization) GetTwitterUsername() string { return x.TwitterUsername } -func (x *Organization) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Organization) GetUrl() URI { return x.Url } -func (x *Organization) GetViewerCanAdminister() bool { return x.ViewerCanAdminister } -func (x *Organization) GetViewerCanChangePinnedItems() bool { return x.ViewerCanChangePinnedItems } -func (x *Organization) GetViewerCanCreateProjects() bool { return x.ViewerCanCreateProjects } -func (x *Organization) GetViewerCanCreateRepositories() bool { return x.ViewerCanCreateRepositories } -func (x *Organization) GetViewerCanCreateTeams() bool { return x.ViewerCanCreateTeams } -func (x *Organization) GetViewerCanSponsor() bool { return x.ViewerCanSponsor } -func (x *Organization) GetViewerIsAMember() bool { return x.ViewerIsAMember } -func (x *Organization) GetViewerIsFollowing() bool { return x.ViewerIsFollowing } -func (x *Organization) GetViewerIsSponsoring() bool { return x.ViewerIsSponsoring } -func (x *Organization) GetWebsiteUrl() URI { return x.WebsiteUrl } - -// OrganizationAuditEntry (UNION): An audit entry in an organization audit log. -// OrganizationAuditEntry_Interface: An audit entry in an organization audit log. -// -// Possible types: -// -// - *MembersCanDeleteReposClearAuditEntry -// - *MembersCanDeleteReposDisableAuditEntry -// - *MembersCanDeleteReposEnableAuditEntry -// - *OauthApplicationCreateAuditEntry -// - *OrgAddBillingManagerAuditEntry -// - *OrgAddMemberAuditEntry -// - *OrgBlockUserAuditEntry -// - *OrgConfigDisableCollaboratorsOnlyAuditEntry -// - *OrgConfigEnableCollaboratorsOnlyAuditEntry -// - *OrgCreateAuditEntry -// - *OrgDisableOauthAppRestrictionsAuditEntry -// - *OrgDisableSamlAuditEntry -// - *OrgDisableTwoFactorRequirementAuditEntry -// - *OrgEnableOauthAppRestrictionsAuditEntry -// - *OrgEnableSamlAuditEntry -// - *OrgEnableTwoFactorRequirementAuditEntry -// - *OrgInviteMemberAuditEntry -// - *OrgInviteToBusinessAuditEntry -// - *OrgOauthAppAccessApprovedAuditEntry -// - *OrgOauthAppAccessDeniedAuditEntry -// - *OrgOauthAppAccessRequestedAuditEntry -// - *OrgRemoveBillingManagerAuditEntry -// - *OrgRemoveMemberAuditEntry -// - *OrgRemoveOutsideCollaboratorAuditEntry -// - *OrgRestoreMemberAuditEntry -// - *OrgUnblockUserAuditEntry -// - *OrgUpdateDefaultRepositoryPermissionAuditEntry -// - *OrgUpdateMemberAuditEntry -// - *OrgUpdateMemberRepositoryCreationPermissionAuditEntry -// - *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry -// - *PrivateRepositoryForkingDisableAuditEntry -// - *PrivateRepositoryForkingEnableAuditEntry -// - *RepoAccessAuditEntry -// - *RepoAddMemberAuditEntry -// - *RepoAddTopicAuditEntry -// - *RepoArchivedAuditEntry -// - *RepoChangeMergeSettingAuditEntry -// - *RepoConfigDisableAnonymousGitAccessAuditEntry -// - *RepoConfigDisableCollaboratorsOnlyAuditEntry -// - *RepoConfigDisableContributorsOnlyAuditEntry -// - *RepoConfigDisableSockpuppetDisallowedAuditEntry -// - *RepoConfigEnableAnonymousGitAccessAuditEntry -// - *RepoConfigEnableCollaboratorsOnlyAuditEntry -// - *RepoConfigEnableContributorsOnlyAuditEntry -// - *RepoConfigEnableSockpuppetDisallowedAuditEntry -// - *RepoConfigLockAnonymousGitAccessAuditEntry -// - *RepoConfigUnlockAnonymousGitAccessAuditEntry -// - *RepoCreateAuditEntry -// - *RepoDestroyAuditEntry -// - *RepoRemoveMemberAuditEntry -// - *RepoRemoveTopicAuditEntry -// - *RepositoryVisibilityChangeDisableAuditEntry -// - *RepositoryVisibilityChangeEnableAuditEntry -// - *TeamAddMemberAuditEntry -// - *TeamAddRepositoryAuditEntry -// - *TeamChangeParentTeamAuditEntry -// - *TeamRemoveMemberAuditEntry -// - *TeamRemoveRepositoryAuditEntry -type OrganizationAuditEntry_Interface interface { - isOrganizationAuditEntry() -} - -func (*MembersCanDeleteReposClearAuditEntry) isOrganizationAuditEntry() {} -func (*MembersCanDeleteReposDisableAuditEntry) isOrganizationAuditEntry() {} -func (*MembersCanDeleteReposEnableAuditEntry) isOrganizationAuditEntry() {} -func (*OauthApplicationCreateAuditEntry) isOrganizationAuditEntry() {} -func (*OrgAddBillingManagerAuditEntry) isOrganizationAuditEntry() {} -func (*OrgAddMemberAuditEntry) isOrganizationAuditEntry() {} -func (*OrgBlockUserAuditEntry) isOrganizationAuditEntry() {} -func (*OrgConfigDisableCollaboratorsOnlyAuditEntry) isOrganizationAuditEntry() {} -func (*OrgConfigEnableCollaboratorsOnlyAuditEntry) isOrganizationAuditEntry() {} -func (*OrgCreateAuditEntry) isOrganizationAuditEntry() {} -func (*OrgDisableOauthAppRestrictionsAuditEntry) isOrganizationAuditEntry() {} -func (*OrgDisableSamlAuditEntry) isOrganizationAuditEntry() {} -func (*OrgDisableTwoFactorRequirementAuditEntry) isOrganizationAuditEntry() {} -func (*OrgEnableOauthAppRestrictionsAuditEntry) isOrganizationAuditEntry() {} -func (*OrgEnableSamlAuditEntry) isOrganizationAuditEntry() {} -func (*OrgEnableTwoFactorRequirementAuditEntry) isOrganizationAuditEntry() {} -func (*OrgInviteMemberAuditEntry) isOrganizationAuditEntry() {} -func (*OrgInviteToBusinessAuditEntry) isOrganizationAuditEntry() {} -func (*OrgOauthAppAccessApprovedAuditEntry) isOrganizationAuditEntry() {} -func (*OrgOauthAppAccessDeniedAuditEntry) isOrganizationAuditEntry() {} -func (*OrgOauthAppAccessRequestedAuditEntry) isOrganizationAuditEntry() {} -func (*OrgRemoveBillingManagerAuditEntry) isOrganizationAuditEntry() {} -func (*OrgRemoveMemberAuditEntry) isOrganizationAuditEntry() {} -func (*OrgRemoveOutsideCollaboratorAuditEntry) isOrganizationAuditEntry() {} -func (*OrgRestoreMemberAuditEntry) isOrganizationAuditEntry() {} -func (*OrgUnblockUserAuditEntry) isOrganizationAuditEntry() {} -func (*OrgUpdateDefaultRepositoryPermissionAuditEntry) isOrganizationAuditEntry() {} -func (*OrgUpdateMemberAuditEntry) isOrganizationAuditEntry() {} -func (*OrgUpdateMemberRepositoryCreationPermissionAuditEntry) isOrganizationAuditEntry() {} -func (*OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) isOrganizationAuditEntry() {} -func (*PrivateRepositoryForkingDisableAuditEntry) isOrganizationAuditEntry() {} -func (*PrivateRepositoryForkingEnableAuditEntry) isOrganizationAuditEntry() {} -func (*RepoAccessAuditEntry) isOrganizationAuditEntry() {} -func (*RepoAddMemberAuditEntry) isOrganizationAuditEntry() {} -func (*RepoAddTopicAuditEntry) isOrganizationAuditEntry() {} -func (*RepoArchivedAuditEntry) isOrganizationAuditEntry() {} -func (*RepoChangeMergeSettingAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigDisableAnonymousGitAccessAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigDisableCollaboratorsOnlyAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigDisableContributorsOnlyAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigDisableSockpuppetDisallowedAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigEnableAnonymousGitAccessAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigEnableCollaboratorsOnlyAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigEnableContributorsOnlyAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigEnableSockpuppetDisallowedAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigLockAnonymousGitAccessAuditEntry) isOrganizationAuditEntry() {} -func (*RepoConfigUnlockAnonymousGitAccessAuditEntry) isOrganizationAuditEntry() {} -func (*RepoCreateAuditEntry) isOrganizationAuditEntry() {} -func (*RepoDestroyAuditEntry) isOrganizationAuditEntry() {} -func (*RepoRemoveMemberAuditEntry) isOrganizationAuditEntry() {} -func (*RepoRemoveTopicAuditEntry) isOrganizationAuditEntry() {} -func (*RepositoryVisibilityChangeDisableAuditEntry) isOrganizationAuditEntry() {} -func (*RepositoryVisibilityChangeEnableAuditEntry) isOrganizationAuditEntry() {} -func (*TeamAddMemberAuditEntry) isOrganizationAuditEntry() {} -func (*TeamAddRepositoryAuditEntry) isOrganizationAuditEntry() {} -func (*TeamChangeParentTeamAuditEntry) isOrganizationAuditEntry() {} -func (*TeamRemoveMemberAuditEntry) isOrganizationAuditEntry() {} -func (*TeamRemoveRepositoryAuditEntry) isOrganizationAuditEntry() {} - -type OrganizationAuditEntry struct { - Interface OrganizationAuditEntry_Interface -} - -func (x *OrganizationAuditEntry) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *OrganizationAuditEntry) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for OrganizationAuditEntry", info.Typename) - case "MembersCanDeleteReposClearAuditEntry": - x.Interface = new(MembersCanDeleteReposClearAuditEntry) - case "MembersCanDeleteReposDisableAuditEntry": - x.Interface = new(MembersCanDeleteReposDisableAuditEntry) - case "MembersCanDeleteReposEnableAuditEntry": - x.Interface = new(MembersCanDeleteReposEnableAuditEntry) - case "OauthApplicationCreateAuditEntry": - x.Interface = new(OauthApplicationCreateAuditEntry) - case "OrgAddBillingManagerAuditEntry": - x.Interface = new(OrgAddBillingManagerAuditEntry) - case "OrgAddMemberAuditEntry": - x.Interface = new(OrgAddMemberAuditEntry) - case "OrgBlockUserAuditEntry": - x.Interface = new(OrgBlockUserAuditEntry) - case "OrgConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(OrgConfigDisableCollaboratorsOnlyAuditEntry) - case "OrgConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(OrgConfigEnableCollaboratorsOnlyAuditEntry) - case "OrgCreateAuditEntry": - x.Interface = new(OrgCreateAuditEntry) - case "OrgDisableOauthAppRestrictionsAuditEntry": - x.Interface = new(OrgDisableOauthAppRestrictionsAuditEntry) - case "OrgDisableSamlAuditEntry": - x.Interface = new(OrgDisableSamlAuditEntry) - case "OrgDisableTwoFactorRequirementAuditEntry": - x.Interface = new(OrgDisableTwoFactorRequirementAuditEntry) - case "OrgEnableOauthAppRestrictionsAuditEntry": - x.Interface = new(OrgEnableOauthAppRestrictionsAuditEntry) - case "OrgEnableSamlAuditEntry": - x.Interface = new(OrgEnableSamlAuditEntry) - case "OrgEnableTwoFactorRequirementAuditEntry": - x.Interface = new(OrgEnableTwoFactorRequirementAuditEntry) - case "OrgInviteMemberAuditEntry": - x.Interface = new(OrgInviteMemberAuditEntry) - case "OrgInviteToBusinessAuditEntry": - x.Interface = new(OrgInviteToBusinessAuditEntry) - case "OrgOauthAppAccessApprovedAuditEntry": - x.Interface = new(OrgOauthAppAccessApprovedAuditEntry) - case "OrgOauthAppAccessDeniedAuditEntry": - x.Interface = new(OrgOauthAppAccessDeniedAuditEntry) - case "OrgOauthAppAccessRequestedAuditEntry": - x.Interface = new(OrgOauthAppAccessRequestedAuditEntry) - case "OrgRemoveBillingManagerAuditEntry": - x.Interface = new(OrgRemoveBillingManagerAuditEntry) - case "OrgRemoveMemberAuditEntry": - x.Interface = new(OrgRemoveMemberAuditEntry) - case "OrgRemoveOutsideCollaboratorAuditEntry": - x.Interface = new(OrgRemoveOutsideCollaboratorAuditEntry) - case "OrgRestoreMemberAuditEntry": - x.Interface = new(OrgRestoreMemberAuditEntry) - case "OrgUnblockUserAuditEntry": - x.Interface = new(OrgUnblockUserAuditEntry) - case "OrgUpdateDefaultRepositoryPermissionAuditEntry": - x.Interface = new(OrgUpdateDefaultRepositoryPermissionAuditEntry) - case "OrgUpdateMemberAuditEntry": - x.Interface = new(OrgUpdateMemberAuditEntry) - case "OrgUpdateMemberRepositoryCreationPermissionAuditEntry": - x.Interface = new(OrgUpdateMemberRepositoryCreationPermissionAuditEntry) - case "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry": - x.Interface = new(OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) - case "PrivateRepositoryForkingDisableAuditEntry": - x.Interface = new(PrivateRepositoryForkingDisableAuditEntry) - case "PrivateRepositoryForkingEnableAuditEntry": - x.Interface = new(PrivateRepositoryForkingEnableAuditEntry) - case "RepoAccessAuditEntry": - x.Interface = new(RepoAccessAuditEntry) - case "RepoAddMemberAuditEntry": - x.Interface = new(RepoAddMemberAuditEntry) - case "RepoAddTopicAuditEntry": - x.Interface = new(RepoAddTopicAuditEntry) - case "RepoArchivedAuditEntry": - x.Interface = new(RepoArchivedAuditEntry) - case "RepoChangeMergeSettingAuditEntry": - x.Interface = new(RepoChangeMergeSettingAuditEntry) - case "RepoConfigDisableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigDisableAnonymousGitAccessAuditEntry) - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableCollaboratorsOnlyAuditEntry) - case "RepoConfigDisableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableContributorsOnlyAuditEntry) - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigDisableSockpuppetDisallowedAuditEntry) - case "RepoConfigEnableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigEnableAnonymousGitAccessAuditEntry) - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableCollaboratorsOnlyAuditEntry) - case "RepoConfigEnableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableContributorsOnlyAuditEntry) - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigEnableSockpuppetDisallowedAuditEntry) - case "RepoConfigLockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigLockAnonymousGitAccessAuditEntry) - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigUnlockAnonymousGitAccessAuditEntry) - case "RepoCreateAuditEntry": - x.Interface = new(RepoCreateAuditEntry) - case "RepoDestroyAuditEntry": - x.Interface = new(RepoDestroyAuditEntry) - case "RepoRemoveMemberAuditEntry": - x.Interface = new(RepoRemoveMemberAuditEntry) - case "RepoRemoveTopicAuditEntry": - x.Interface = new(RepoRemoveTopicAuditEntry) - case "RepositoryVisibilityChangeDisableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeDisableAuditEntry) - case "RepositoryVisibilityChangeEnableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeEnableAuditEntry) - case "TeamAddMemberAuditEntry": - x.Interface = new(TeamAddMemberAuditEntry) - case "TeamAddRepositoryAuditEntry": - x.Interface = new(TeamAddRepositoryAuditEntry) - case "TeamChangeParentTeamAuditEntry": - x.Interface = new(TeamChangeParentTeamAuditEntry) - case "TeamRemoveMemberAuditEntry": - x.Interface = new(TeamRemoveMemberAuditEntry) - case "TeamRemoveRepositoryAuditEntry": - x.Interface = new(TeamRemoveRepositoryAuditEntry) - } - return json.Unmarshal(js, x.Interface) -} - -// OrganizationAuditEntryConnection (OBJECT): The connection type for OrganizationAuditEntry. -type OrganizationAuditEntryConnection struct { - // Edges: A list of edges. - Edges []*OrganizationAuditEntryEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []OrganizationAuditEntry `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *OrganizationAuditEntryConnection) GetEdges() []*OrganizationAuditEntryEdge { return x.Edges } -func (x *OrganizationAuditEntryConnection) GetNodes() []OrganizationAuditEntry { return x.Nodes } -func (x *OrganizationAuditEntryConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *OrganizationAuditEntryConnection) GetTotalCount() int { return x.TotalCount } - -// OrganizationAuditEntryData (INTERFACE): Metadata for an audit entry with action org.*. -// OrganizationAuditEntryData_Interface: Metadata for an audit entry with action org.*. -// -// Possible types: -// -// - *MembersCanDeleteReposClearAuditEntry -// - *MembersCanDeleteReposDisableAuditEntry -// - *MembersCanDeleteReposEnableAuditEntry -// - *OauthApplicationCreateAuditEntry -// - *OrgAddBillingManagerAuditEntry -// - *OrgAddMemberAuditEntry -// - *OrgBlockUserAuditEntry -// - *OrgConfigDisableCollaboratorsOnlyAuditEntry -// - *OrgConfigEnableCollaboratorsOnlyAuditEntry -// - *OrgCreateAuditEntry -// - *OrgDisableOauthAppRestrictionsAuditEntry -// - *OrgDisableSamlAuditEntry -// - *OrgDisableTwoFactorRequirementAuditEntry -// - *OrgEnableOauthAppRestrictionsAuditEntry -// - *OrgEnableSamlAuditEntry -// - *OrgEnableTwoFactorRequirementAuditEntry -// - *OrgInviteMemberAuditEntry -// - *OrgInviteToBusinessAuditEntry -// - *OrgOauthAppAccessApprovedAuditEntry -// - *OrgOauthAppAccessDeniedAuditEntry -// - *OrgOauthAppAccessRequestedAuditEntry -// - *OrgRemoveBillingManagerAuditEntry -// - *OrgRemoveMemberAuditEntry -// - *OrgRemoveOutsideCollaboratorAuditEntry -// - *OrgRestoreMemberAuditEntry -// - *OrgRestoreMemberMembershipOrganizationAuditEntryData -// - *OrgUnblockUserAuditEntry -// - *OrgUpdateDefaultRepositoryPermissionAuditEntry -// - *OrgUpdateMemberAuditEntry -// - *OrgUpdateMemberRepositoryCreationPermissionAuditEntry -// - *OrgUpdateMemberRepositoryInvitationPermissionAuditEntry -// - *PrivateRepositoryForkingDisableAuditEntry -// - *PrivateRepositoryForkingEnableAuditEntry -// - *RepoAccessAuditEntry -// - *RepoAddMemberAuditEntry -// - *RepoAddTopicAuditEntry -// - *RepoArchivedAuditEntry -// - *RepoChangeMergeSettingAuditEntry -// - *RepoConfigDisableAnonymousGitAccessAuditEntry -// - *RepoConfigDisableCollaboratorsOnlyAuditEntry -// - *RepoConfigDisableContributorsOnlyAuditEntry -// - *RepoConfigDisableSockpuppetDisallowedAuditEntry -// - *RepoConfigEnableAnonymousGitAccessAuditEntry -// - *RepoConfigEnableCollaboratorsOnlyAuditEntry -// - *RepoConfigEnableContributorsOnlyAuditEntry -// - *RepoConfigEnableSockpuppetDisallowedAuditEntry -// - *RepoConfigLockAnonymousGitAccessAuditEntry -// - *RepoConfigUnlockAnonymousGitAccessAuditEntry -// - *RepoCreateAuditEntry -// - *RepoDestroyAuditEntry -// - *RepoRemoveMemberAuditEntry -// - *RepoRemoveTopicAuditEntry -// - *RepositoryVisibilityChangeDisableAuditEntry -// - *RepositoryVisibilityChangeEnableAuditEntry -// - *TeamAddMemberAuditEntry -// - *TeamAddRepositoryAuditEntry -// - *TeamChangeParentTeamAuditEntry -// - *TeamRemoveMemberAuditEntry -// - *TeamRemoveRepositoryAuditEntry -type OrganizationAuditEntryData_Interface interface { - isOrganizationAuditEntryData() - GetOrganization() *Organization - GetOrganizationName() string - GetOrganizationResourcePath() URI - GetOrganizationUrl() URI -} - -func (*MembersCanDeleteReposClearAuditEntry) isOrganizationAuditEntryData() {} -func (*MembersCanDeleteReposDisableAuditEntry) isOrganizationAuditEntryData() {} -func (*MembersCanDeleteReposEnableAuditEntry) isOrganizationAuditEntryData() {} -func (*OauthApplicationCreateAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgAddBillingManagerAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgAddMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgBlockUserAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgConfigDisableCollaboratorsOnlyAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgConfigEnableCollaboratorsOnlyAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgCreateAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgDisableOauthAppRestrictionsAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgDisableSamlAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgDisableTwoFactorRequirementAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgEnableOauthAppRestrictionsAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgEnableSamlAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgEnableTwoFactorRequirementAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgInviteMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgInviteToBusinessAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgOauthAppAccessApprovedAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgOauthAppAccessDeniedAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgOauthAppAccessRequestedAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgRemoveBillingManagerAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgRemoveMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgRemoveOutsideCollaboratorAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgRestoreMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgRestoreMemberMembershipOrganizationAuditEntryData) isOrganizationAuditEntryData() {} -func (*OrgUnblockUserAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgUpdateDefaultRepositoryPermissionAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgUpdateMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgUpdateMemberRepositoryCreationPermissionAuditEntry) isOrganizationAuditEntryData() {} -func (*OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) isOrganizationAuditEntryData() {} -func (*PrivateRepositoryForkingDisableAuditEntry) isOrganizationAuditEntryData() {} -func (*PrivateRepositoryForkingEnableAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoAccessAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoAddMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoAddTopicAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoArchivedAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoChangeMergeSettingAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigDisableAnonymousGitAccessAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigDisableCollaboratorsOnlyAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigDisableContributorsOnlyAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigDisableSockpuppetDisallowedAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigEnableAnonymousGitAccessAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigEnableCollaboratorsOnlyAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigEnableContributorsOnlyAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigEnableSockpuppetDisallowedAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigLockAnonymousGitAccessAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoConfigUnlockAnonymousGitAccessAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoCreateAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoDestroyAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoRemoveMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*RepoRemoveTopicAuditEntry) isOrganizationAuditEntryData() {} -func (*RepositoryVisibilityChangeDisableAuditEntry) isOrganizationAuditEntryData() {} -func (*RepositoryVisibilityChangeEnableAuditEntry) isOrganizationAuditEntryData() {} -func (*TeamAddMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*TeamAddRepositoryAuditEntry) isOrganizationAuditEntryData() {} -func (*TeamChangeParentTeamAuditEntry) isOrganizationAuditEntryData() {} -func (*TeamRemoveMemberAuditEntry) isOrganizationAuditEntryData() {} -func (*TeamRemoveRepositoryAuditEntry) isOrganizationAuditEntryData() {} - -type OrganizationAuditEntryData struct { - Interface OrganizationAuditEntryData_Interface -} - -func (x *OrganizationAuditEntryData) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *OrganizationAuditEntryData) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for OrganizationAuditEntryData", info.Typename) - case "MembersCanDeleteReposClearAuditEntry": - x.Interface = new(MembersCanDeleteReposClearAuditEntry) - case "MembersCanDeleteReposDisableAuditEntry": - x.Interface = new(MembersCanDeleteReposDisableAuditEntry) - case "MembersCanDeleteReposEnableAuditEntry": - x.Interface = new(MembersCanDeleteReposEnableAuditEntry) - case "OauthApplicationCreateAuditEntry": - x.Interface = new(OauthApplicationCreateAuditEntry) - case "OrgAddBillingManagerAuditEntry": - x.Interface = new(OrgAddBillingManagerAuditEntry) - case "OrgAddMemberAuditEntry": - x.Interface = new(OrgAddMemberAuditEntry) - case "OrgBlockUserAuditEntry": - x.Interface = new(OrgBlockUserAuditEntry) - case "OrgConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(OrgConfigDisableCollaboratorsOnlyAuditEntry) - case "OrgConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(OrgConfigEnableCollaboratorsOnlyAuditEntry) - case "OrgCreateAuditEntry": - x.Interface = new(OrgCreateAuditEntry) - case "OrgDisableOauthAppRestrictionsAuditEntry": - x.Interface = new(OrgDisableOauthAppRestrictionsAuditEntry) - case "OrgDisableSamlAuditEntry": - x.Interface = new(OrgDisableSamlAuditEntry) - case "OrgDisableTwoFactorRequirementAuditEntry": - x.Interface = new(OrgDisableTwoFactorRequirementAuditEntry) - case "OrgEnableOauthAppRestrictionsAuditEntry": - x.Interface = new(OrgEnableOauthAppRestrictionsAuditEntry) - case "OrgEnableSamlAuditEntry": - x.Interface = new(OrgEnableSamlAuditEntry) - case "OrgEnableTwoFactorRequirementAuditEntry": - x.Interface = new(OrgEnableTwoFactorRequirementAuditEntry) - case "OrgInviteMemberAuditEntry": - x.Interface = new(OrgInviteMemberAuditEntry) - case "OrgInviteToBusinessAuditEntry": - x.Interface = new(OrgInviteToBusinessAuditEntry) - case "OrgOauthAppAccessApprovedAuditEntry": - x.Interface = new(OrgOauthAppAccessApprovedAuditEntry) - case "OrgOauthAppAccessDeniedAuditEntry": - x.Interface = new(OrgOauthAppAccessDeniedAuditEntry) - case "OrgOauthAppAccessRequestedAuditEntry": - x.Interface = new(OrgOauthAppAccessRequestedAuditEntry) - case "OrgRemoveBillingManagerAuditEntry": - x.Interface = new(OrgRemoveBillingManagerAuditEntry) - case "OrgRemoveMemberAuditEntry": - x.Interface = new(OrgRemoveMemberAuditEntry) - case "OrgRemoveOutsideCollaboratorAuditEntry": - x.Interface = new(OrgRemoveOutsideCollaboratorAuditEntry) - case "OrgRestoreMemberAuditEntry": - x.Interface = new(OrgRestoreMemberAuditEntry) - case "OrgRestoreMemberMembershipOrganizationAuditEntryData": - x.Interface = new(OrgRestoreMemberMembershipOrganizationAuditEntryData) - case "OrgUnblockUserAuditEntry": - x.Interface = new(OrgUnblockUserAuditEntry) - case "OrgUpdateDefaultRepositoryPermissionAuditEntry": - x.Interface = new(OrgUpdateDefaultRepositoryPermissionAuditEntry) - case "OrgUpdateMemberAuditEntry": - x.Interface = new(OrgUpdateMemberAuditEntry) - case "OrgUpdateMemberRepositoryCreationPermissionAuditEntry": - x.Interface = new(OrgUpdateMemberRepositoryCreationPermissionAuditEntry) - case "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry": - x.Interface = new(OrgUpdateMemberRepositoryInvitationPermissionAuditEntry) - case "PrivateRepositoryForkingDisableAuditEntry": - x.Interface = new(PrivateRepositoryForkingDisableAuditEntry) - case "PrivateRepositoryForkingEnableAuditEntry": - x.Interface = new(PrivateRepositoryForkingEnableAuditEntry) - case "RepoAccessAuditEntry": - x.Interface = new(RepoAccessAuditEntry) - case "RepoAddMemberAuditEntry": - x.Interface = new(RepoAddMemberAuditEntry) - case "RepoAddTopicAuditEntry": - x.Interface = new(RepoAddTopicAuditEntry) - case "RepoArchivedAuditEntry": - x.Interface = new(RepoArchivedAuditEntry) - case "RepoChangeMergeSettingAuditEntry": - x.Interface = new(RepoChangeMergeSettingAuditEntry) - case "RepoConfigDisableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigDisableAnonymousGitAccessAuditEntry) - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableCollaboratorsOnlyAuditEntry) - case "RepoConfigDisableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableContributorsOnlyAuditEntry) - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigDisableSockpuppetDisallowedAuditEntry) - case "RepoConfigEnableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigEnableAnonymousGitAccessAuditEntry) - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableCollaboratorsOnlyAuditEntry) - case "RepoConfigEnableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableContributorsOnlyAuditEntry) - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigEnableSockpuppetDisallowedAuditEntry) - case "RepoConfigLockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigLockAnonymousGitAccessAuditEntry) - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigUnlockAnonymousGitAccessAuditEntry) - case "RepoCreateAuditEntry": - x.Interface = new(RepoCreateAuditEntry) - case "RepoDestroyAuditEntry": - x.Interface = new(RepoDestroyAuditEntry) - case "RepoRemoveMemberAuditEntry": - x.Interface = new(RepoRemoveMemberAuditEntry) - case "RepoRemoveTopicAuditEntry": - x.Interface = new(RepoRemoveTopicAuditEntry) - case "RepositoryVisibilityChangeDisableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeDisableAuditEntry) - case "RepositoryVisibilityChangeEnableAuditEntry": - x.Interface = new(RepositoryVisibilityChangeEnableAuditEntry) - case "TeamAddMemberAuditEntry": - x.Interface = new(TeamAddMemberAuditEntry) - case "TeamAddRepositoryAuditEntry": - x.Interface = new(TeamAddRepositoryAuditEntry) - case "TeamChangeParentTeamAuditEntry": - x.Interface = new(TeamChangeParentTeamAuditEntry) - case "TeamRemoveMemberAuditEntry": - x.Interface = new(TeamRemoveMemberAuditEntry) - case "TeamRemoveRepositoryAuditEntry": - x.Interface = new(TeamRemoveRepositoryAuditEntry) - } - return json.Unmarshal(js, x.Interface) -} - -// OrganizationAuditEntryEdge (OBJECT): An edge in a connection. -type OrganizationAuditEntryEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node OrganizationAuditEntry `json:"node,omitempty"` -} - -func (x *OrganizationAuditEntryEdge) GetCursor() string { return x.Cursor } -func (x *OrganizationAuditEntryEdge) GetNode() OrganizationAuditEntry { return x.Node } - -// OrganizationConnection (OBJECT): A list of organizations managed by an enterprise. -type OrganizationConnection struct { - // Edges: A list of edges. - Edges []*OrganizationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Organization `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *OrganizationConnection) GetEdges() []*OrganizationEdge { return x.Edges } -func (x *OrganizationConnection) GetNodes() []*Organization { return x.Nodes } -func (x *OrganizationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *OrganizationConnection) GetTotalCount() int { return x.TotalCount } - -// OrganizationEdge (OBJECT): An edge in a connection. -type OrganizationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Organization `json:"node,omitempty"` -} - -func (x *OrganizationEdge) GetCursor() string { return x.Cursor } -func (x *OrganizationEdge) GetNode() *Organization { return x.Node } - -// OrganizationEnterpriseOwnerConnection (OBJECT): The connection type for User. -type OrganizationEnterpriseOwnerConnection struct { - // Edges: A list of edges. - Edges []*OrganizationEnterpriseOwnerEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *OrganizationEnterpriseOwnerConnection) GetEdges() []*OrganizationEnterpriseOwnerEdge { - return x.Edges -} -func (x *OrganizationEnterpriseOwnerConnection) GetNodes() []*User { return x.Nodes } -func (x *OrganizationEnterpriseOwnerConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *OrganizationEnterpriseOwnerConnection) GetTotalCount() int { return x.TotalCount } - -// OrganizationEnterpriseOwnerEdge (OBJECT): An enterprise owner in the context of an organization that is part of the enterprise. -type OrganizationEnterpriseOwnerEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *User `json:"node,omitempty"` - - // OrganizationRole: The role of the owner with respect to the organization. - OrganizationRole RoleInOrganization `json:"organizationRole,omitempty"` -} - -func (x *OrganizationEnterpriseOwnerEdge) GetCursor() string { return x.Cursor } -func (x *OrganizationEnterpriseOwnerEdge) GetNode() *User { return x.Node } -func (x *OrganizationEnterpriseOwnerEdge) GetOrganizationRole() RoleInOrganization { - return x.OrganizationRole -} - -// OrganizationIdentityProvider (OBJECT): An Identity Provider configured to provision SAML and SCIM identities for Organizations. -type OrganizationIdentityProvider struct { - // DigestMethod: The digest algorithm used to sign SAML requests for the Identity Provider. - DigestMethod URI `json:"digestMethod,omitempty"` - - // ExternalIdentities: External Identities provisioned by this Identity Provider. - // - // Query arguments: - // - membersOnly Boolean - // - login String - // - userName String - // - after String - // - before String - // - first Int - // - last Int - ExternalIdentities *ExternalIdentityConnection `json:"externalIdentities,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IdpCertificate: The x509 certificate used by the Identity Provider to sign assertions and responses. - IdpCertificate X509Certificate `json:"idpCertificate,omitempty"` - - // Issuer: The Issuer Entity ID for the SAML Identity Provider. - Issuer string `json:"issuer,omitempty"` - - // Organization: Organization this Identity Provider belongs to. - Organization *Organization `json:"organization,omitempty"` - - // SignatureMethod: The signature algorithm used to sign SAML requests for the Identity Provider. - SignatureMethod URI `json:"signatureMethod,omitempty"` - - // SsoUrl: The URL endpoint for the Identity Provider's SAML SSO. - SsoUrl URI `json:"ssoUrl,omitempty"` -} - -func (x *OrganizationIdentityProvider) GetDigestMethod() URI { return x.DigestMethod } -func (x *OrganizationIdentityProvider) GetExternalIdentities() *ExternalIdentityConnection { - return x.ExternalIdentities -} -func (x *OrganizationIdentityProvider) GetId() ID { return x.Id } -func (x *OrganizationIdentityProvider) GetIdpCertificate() X509Certificate { return x.IdpCertificate } -func (x *OrganizationIdentityProvider) GetIssuer() string { return x.Issuer } -func (x *OrganizationIdentityProvider) GetOrganization() *Organization { return x.Organization } -func (x *OrganizationIdentityProvider) GetSignatureMethod() URI { return x.SignatureMethod } -func (x *OrganizationIdentityProvider) GetSsoUrl() URI { return x.SsoUrl } - -// OrganizationInvitation (OBJECT): An Invitation for a user to an organization. -type OrganizationInvitation struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Email: The email address of the user invited to the organization. - Email string `json:"email,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // InvitationType: The type of invitation that was sent (e.g. email, user). - InvitationType OrganizationInvitationType `json:"invitationType,omitempty"` - - // Invitee: The user who was invited to the organization. - Invitee *User `json:"invitee,omitempty"` - - // Inviter: The user who created the invitation. - Inviter *User `json:"inviter,omitempty"` - - // Organization: The organization the invite is for. - Organization *Organization `json:"organization,omitempty"` - - // Role: The user's pending role in the organization (e.g. member, owner). - Role OrganizationInvitationRole `json:"role,omitempty"` -} - -func (x *OrganizationInvitation) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *OrganizationInvitation) GetEmail() string { return x.Email } -func (x *OrganizationInvitation) GetId() ID { return x.Id } -func (x *OrganizationInvitation) GetInvitationType() OrganizationInvitationType { - return x.InvitationType -} -func (x *OrganizationInvitation) GetInvitee() *User { return x.Invitee } -func (x *OrganizationInvitation) GetInviter() *User { return x.Inviter } -func (x *OrganizationInvitation) GetOrganization() *Organization { return x.Organization } -func (x *OrganizationInvitation) GetRole() OrganizationInvitationRole { return x.Role } - -// OrganizationInvitationConnection (OBJECT): The connection type for OrganizationInvitation. -type OrganizationInvitationConnection struct { - // Edges: A list of edges. - Edges []*OrganizationInvitationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*OrganizationInvitation `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *OrganizationInvitationConnection) GetEdges() []*OrganizationInvitationEdge { return x.Edges } -func (x *OrganizationInvitationConnection) GetNodes() []*OrganizationInvitation { return x.Nodes } -func (x *OrganizationInvitationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *OrganizationInvitationConnection) GetTotalCount() int { return x.TotalCount } - -// OrganizationInvitationEdge (OBJECT): An edge in a connection. -type OrganizationInvitationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *OrganizationInvitation `json:"node,omitempty"` -} - -func (x *OrganizationInvitationEdge) GetCursor() string { return x.Cursor } -func (x *OrganizationInvitationEdge) GetNode() *OrganizationInvitation { return x.Node } - -// OrganizationInvitationRole (ENUM): The possible organization invitation roles. -type OrganizationInvitationRole string - -// OrganizationInvitationRole_DIRECT_MEMBER: The user is invited to be a direct member of the organization. -const OrganizationInvitationRole_DIRECT_MEMBER OrganizationInvitationRole = "DIRECT_MEMBER" - -// OrganizationInvitationRole_ADMIN: The user is invited to be an admin of the organization. -const OrganizationInvitationRole_ADMIN OrganizationInvitationRole = "ADMIN" - -// OrganizationInvitationRole_BILLING_MANAGER: The user is invited to be a billing manager of the organization. -const OrganizationInvitationRole_BILLING_MANAGER OrganizationInvitationRole = "BILLING_MANAGER" - -// OrganizationInvitationRole_REINSTATE: The user's previous role will be reinstated. -const OrganizationInvitationRole_REINSTATE OrganizationInvitationRole = "REINSTATE" - -// OrganizationInvitationType (ENUM): The possible organization invitation types. -type OrganizationInvitationType string - -// OrganizationInvitationType_USER: The invitation was to an existing user. -const OrganizationInvitationType_USER OrganizationInvitationType = "USER" - -// OrganizationInvitationType_EMAIL: The invitation was to an email address. -const OrganizationInvitationType_EMAIL OrganizationInvitationType = "EMAIL" - -// OrganizationMemberConnection (OBJECT): The connection type for User. -type OrganizationMemberConnection struct { - // Edges: A list of edges. - Edges []*OrganizationMemberEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *OrganizationMemberConnection) GetEdges() []*OrganizationMemberEdge { return x.Edges } -func (x *OrganizationMemberConnection) GetNodes() []*User { return x.Nodes } -func (x *OrganizationMemberConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *OrganizationMemberConnection) GetTotalCount() int { return x.TotalCount } - -// OrganizationMemberEdge (OBJECT): Represents a user within an organization. -type OrganizationMemberEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // HasTwoFactorEnabled: Whether the organization member has two factor enabled or not. Returns null if information is not available to viewer. - HasTwoFactorEnabled bool `json:"hasTwoFactorEnabled,omitempty"` - - // Node: The item at the end of the edge. - Node *User `json:"node,omitempty"` - - // Role: The role this user has in the organization. - Role OrganizationMemberRole `json:"role,omitempty"` -} - -func (x *OrganizationMemberEdge) GetCursor() string { return x.Cursor } -func (x *OrganizationMemberEdge) GetHasTwoFactorEnabled() bool { return x.HasTwoFactorEnabled } -func (x *OrganizationMemberEdge) GetNode() *User { return x.Node } -func (x *OrganizationMemberEdge) GetRole() OrganizationMemberRole { return x.Role } - -// OrganizationMemberRole (ENUM): The possible roles within an organization for its members. -type OrganizationMemberRole string - -// OrganizationMemberRole_MEMBER: The user is a member of the organization. -const OrganizationMemberRole_MEMBER OrganizationMemberRole = "MEMBER" - -// OrganizationMemberRole_ADMIN: The user is an administrator of the organization. -const OrganizationMemberRole_ADMIN OrganizationMemberRole = "ADMIN" - -// OrganizationMembersCanCreateRepositoriesSettingValue (ENUM): The possible values for the members can create repositories setting on an organization. -type OrganizationMembersCanCreateRepositoriesSettingValue string - -// OrganizationMembersCanCreateRepositoriesSettingValue_ALL: Members will be able to create public and private repositories. -const OrganizationMembersCanCreateRepositoriesSettingValue_ALL OrganizationMembersCanCreateRepositoriesSettingValue = "ALL" - -// OrganizationMembersCanCreateRepositoriesSettingValue_PRIVATE: Members will be able to create only private repositories. -const OrganizationMembersCanCreateRepositoriesSettingValue_PRIVATE OrganizationMembersCanCreateRepositoriesSettingValue = "PRIVATE" - -// OrganizationMembersCanCreateRepositoriesSettingValue_INTERNAL: Members will be able to create only internal repositories. -const OrganizationMembersCanCreateRepositoriesSettingValue_INTERNAL OrganizationMembersCanCreateRepositoriesSettingValue = "INTERNAL" - -// OrganizationMembersCanCreateRepositoriesSettingValue_DISABLED: Members will not be able to create public or private repositories. -const OrganizationMembersCanCreateRepositoriesSettingValue_DISABLED OrganizationMembersCanCreateRepositoriesSettingValue = "DISABLED" - -// OrganizationOrUser (UNION): Used for argument of CreateProjectV2 mutation. -// OrganizationOrUser_Interface: Used for argument of CreateProjectV2 mutation. -// -// Possible types: -// -// - *Organization -// - *User -type OrganizationOrUser_Interface interface { - isOrganizationOrUser() -} - -func (*Organization) isOrganizationOrUser() {} -func (*User) isOrganizationOrUser() {} - -type OrganizationOrUser struct { - Interface OrganizationOrUser_Interface -} - -func (x *OrganizationOrUser) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *OrganizationOrUser) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for OrganizationOrUser", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// OrganizationOrder (INPUT_OBJECT): Ordering options for organization connections. -type OrganizationOrder struct { - // Field: The field to order organizations by. - // - // GraphQL type: OrganizationOrderField! - Field OrganizationOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// OrganizationOrderField (ENUM): Properties by which organization connections can be ordered. -type OrganizationOrderField string - -// OrganizationOrderField_CREATED_AT: Order organizations by creation time. -const OrganizationOrderField_CREATED_AT OrganizationOrderField = "CREATED_AT" - -// OrganizationOrderField_LOGIN: Order organizations by login. -const OrganizationOrderField_LOGIN OrganizationOrderField = "LOGIN" - -// OrganizationTeamsHovercardContext (OBJECT): An organization teams hovercard context. -type OrganizationTeamsHovercardContext struct { - // Message: A string describing this context. - Message string `json:"message,omitempty"` - - // Octicon: An octicon to accompany this context. - Octicon string `json:"octicon,omitempty"` - - // RelevantTeams: Teams in this organization the user is a member of that are relevant. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - RelevantTeams *TeamConnection `json:"relevantTeams,omitempty"` - - // TeamsResourcePath: The path for the full team list for this user. - TeamsResourcePath URI `json:"teamsResourcePath,omitempty"` - - // TeamsUrl: The URL for the full team list for this user. - TeamsUrl URI `json:"teamsUrl,omitempty"` - - // TotalTeamCount: The total number of teams the user is on in the organization. - TotalTeamCount int `json:"totalTeamCount,omitempty"` -} - -func (x *OrganizationTeamsHovercardContext) GetMessage() string { return x.Message } -func (x *OrganizationTeamsHovercardContext) GetOcticon() string { return x.Octicon } -func (x *OrganizationTeamsHovercardContext) GetRelevantTeams() *TeamConnection { - return x.RelevantTeams -} -func (x *OrganizationTeamsHovercardContext) GetTeamsResourcePath() URI { return x.TeamsResourcePath } -func (x *OrganizationTeamsHovercardContext) GetTeamsUrl() URI { return x.TeamsUrl } -func (x *OrganizationTeamsHovercardContext) GetTotalTeamCount() int { return x.TotalTeamCount } - -// OrganizationsHovercardContext (OBJECT): An organization list hovercard context. -type OrganizationsHovercardContext struct { - // Message: A string describing this context. - Message string `json:"message,omitempty"` - - // Octicon: An octicon to accompany this context. - Octicon string `json:"octicon,omitempty"` - - // RelevantOrganizations: Organizations this user is a member of that are relevant. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - RelevantOrganizations *OrganizationConnection `json:"relevantOrganizations,omitempty"` - - // TotalOrganizationCount: The total number of organizations this user is in. - TotalOrganizationCount int `json:"totalOrganizationCount,omitempty"` -} - -func (x *OrganizationsHovercardContext) GetMessage() string { return x.Message } -func (x *OrganizationsHovercardContext) GetOcticon() string { return x.Octicon } -func (x *OrganizationsHovercardContext) GetRelevantOrganizations() *OrganizationConnection { - return x.RelevantOrganizations -} -func (x *OrganizationsHovercardContext) GetTotalOrganizationCount() int { - return x.TotalOrganizationCount -} - -// Package (OBJECT): Information for an uploaded package. -type Package struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // LatestVersion: Find the latest version for the package. - LatestVersion *PackageVersion `json:"latestVersion,omitempty"` - - // Name: Identifies the name of the package. - Name string `json:"name,omitempty"` - - // PackageType: Identifies the type of the package. - PackageType PackageType `json:"packageType,omitempty"` - - // Repository: The repository this package belongs to. - Repository *Repository `json:"repository,omitempty"` - - // Statistics: Statistics about package activity. - Statistics *PackageStatistics `json:"statistics,omitempty"` - - // Version: Find package version by version string. - // - // Query arguments: - // - version String! - Version *PackageVersion `json:"version,omitempty"` - - // Versions: list of versions for this package. - // - // Query arguments: - // - orderBy PackageVersionOrder - // - after String - // - before String - // - first Int - // - last Int - Versions *PackageVersionConnection `json:"versions,omitempty"` -} - -func (x *Package) GetId() ID { return x.Id } -func (x *Package) GetLatestVersion() *PackageVersion { return x.LatestVersion } -func (x *Package) GetName() string { return x.Name } -func (x *Package) GetPackageType() PackageType { return x.PackageType } -func (x *Package) GetRepository() *Repository { return x.Repository } -func (x *Package) GetStatistics() *PackageStatistics { return x.Statistics } -func (x *Package) GetVersion() *PackageVersion { return x.Version } -func (x *Package) GetVersions() *PackageVersionConnection { return x.Versions } - -// PackageConnection (OBJECT): The connection type for Package. -type PackageConnection struct { - // Edges: A list of edges. - Edges []*PackageEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Package `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PackageConnection) GetEdges() []*PackageEdge { return x.Edges } -func (x *PackageConnection) GetNodes() []*Package { return x.Nodes } -func (x *PackageConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PackageConnection) GetTotalCount() int { return x.TotalCount } - -// PackageEdge (OBJECT): An edge in a connection. -type PackageEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Package `json:"node,omitempty"` -} - -func (x *PackageEdge) GetCursor() string { return x.Cursor } -func (x *PackageEdge) GetNode() *Package { return x.Node } - -// PackageFile (OBJECT): A file in a package version. -type PackageFile struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Md5: MD5 hash of the file. - Md5 string `json:"md5,omitempty"` - - // Name: Name of the file. - Name string `json:"name,omitempty"` - - // PackageVersion: The package version this file belongs to. - PackageVersion *PackageVersion `json:"packageVersion,omitempty"` - - // Sha1: SHA1 hash of the file. - Sha1 string `json:"sha1,omitempty"` - - // Sha256: SHA256 hash of the file. - Sha256 string `json:"sha256,omitempty"` - - // Size: Size of the file in bytes. - Size int `json:"size,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: URL to download the asset. - Url URI `json:"url,omitempty"` -} - -func (x *PackageFile) GetId() ID { return x.Id } -func (x *PackageFile) GetMd5() string { return x.Md5 } -func (x *PackageFile) GetName() string { return x.Name } -func (x *PackageFile) GetPackageVersion() *PackageVersion { return x.PackageVersion } -func (x *PackageFile) GetSha1() string { return x.Sha1 } -func (x *PackageFile) GetSha256() string { return x.Sha256 } -func (x *PackageFile) GetSize() int { return x.Size } -func (x *PackageFile) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *PackageFile) GetUrl() URI { return x.Url } - -// PackageFileConnection (OBJECT): The connection type for PackageFile. -type PackageFileConnection struct { - // Edges: A list of edges. - Edges []*PackageFileEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PackageFile `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PackageFileConnection) GetEdges() []*PackageFileEdge { return x.Edges } -func (x *PackageFileConnection) GetNodes() []*PackageFile { return x.Nodes } -func (x *PackageFileConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PackageFileConnection) GetTotalCount() int { return x.TotalCount } - -// PackageFileEdge (OBJECT): An edge in a connection. -type PackageFileEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PackageFile `json:"node,omitempty"` -} - -func (x *PackageFileEdge) GetCursor() string { return x.Cursor } -func (x *PackageFileEdge) GetNode() *PackageFile { return x.Node } - -// PackageFileOrder (INPUT_OBJECT): Ways in which lists of package files can be ordered upon return. -type PackageFileOrder struct { - // Field: The field in which to order package files by. - // - // GraphQL type: PackageFileOrderField - Field PackageFileOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order package files by the specified field. - // - // GraphQL type: OrderDirection - Direction OrderDirection `json:"direction,omitempty"` -} - -// PackageFileOrderField (ENUM): Properties by which package file connections can be ordered. -type PackageFileOrderField string - -// PackageFileOrderField_CREATED_AT: Order package files by creation time. -const PackageFileOrderField_CREATED_AT PackageFileOrderField = "CREATED_AT" - -// PackageOrder (INPUT_OBJECT): Ways in which lists of packages can be ordered upon return. -type PackageOrder struct { - // Field: The field in which to order packages by. - // - // GraphQL type: PackageOrderField - Field PackageOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order packages by the specified field. - // - // GraphQL type: OrderDirection - Direction OrderDirection `json:"direction,omitempty"` -} - -// PackageOrderField (ENUM): Properties by which package connections can be ordered. -type PackageOrderField string - -// PackageOrderField_CREATED_AT: Order packages by creation time. -const PackageOrderField_CREATED_AT PackageOrderField = "CREATED_AT" - -// PackageOwner (INTERFACE): Represents an owner of a package. -// PackageOwner_Interface: Represents an owner of a package. -// -// Possible types: -// -// - *Organization -// - *Repository -// - *User -type PackageOwner_Interface interface { - isPackageOwner() - GetId() ID - GetPackages() *PackageConnection -} - -func (*Organization) isPackageOwner() {} -func (*Repository) isPackageOwner() {} -func (*User) isPackageOwner() {} - -type PackageOwner struct { - Interface PackageOwner_Interface -} - -func (x *PackageOwner) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *PackageOwner) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for PackageOwner", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "Repository": - x.Interface = new(Repository) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// PackageStatistics (OBJECT): Represents a object that contains package activity statistics such as downloads. -type PackageStatistics struct { - // DownloadsTotalCount: Number of times the package was downloaded since it was created. - DownloadsTotalCount int `json:"downloadsTotalCount,omitempty"` -} - -func (x *PackageStatistics) GetDownloadsTotalCount() int { return x.DownloadsTotalCount } - -// PackageTag (OBJECT): A version tag contains the mapping between a tag name and a version. -type PackageTag struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: Identifies the tag name of the version. - Name string `json:"name,omitempty"` - - // Version: Version that the tag is associated with. - Version *PackageVersion `json:"version,omitempty"` -} - -func (x *PackageTag) GetId() ID { return x.Id } -func (x *PackageTag) GetName() string { return x.Name } -func (x *PackageTag) GetVersion() *PackageVersion { return x.Version } - -// PackageType (ENUM): The possible types of a package. -type PackageType string - -// PackageType_NPM: An npm package. -const PackageType_NPM PackageType = "NPM" - -// PackageType_RUBYGEMS: A rubygems package. -const PackageType_RUBYGEMS PackageType = "RUBYGEMS" - -// PackageType_MAVEN: A maven package. -const PackageType_MAVEN PackageType = "MAVEN" - -// PackageType_DOCKER: A docker image. -const PackageType_DOCKER PackageType = "DOCKER" - -// PackageType_DEBIAN: A debian package. -const PackageType_DEBIAN PackageType = "DEBIAN" - -// PackageType_NUGET: A nuget package. -const PackageType_NUGET PackageType = "NUGET" - -// PackageType_PYPI: A python package. -const PackageType_PYPI PackageType = "PYPI" - -// PackageVersion (OBJECT): Information about a specific package version. -type PackageVersion struct { - // Files: List of files associated with this package version. - // - // Query arguments: - // - orderBy PackageFileOrder - // - after String - // - before String - // - first Int - // - last Int - Files *PackageFileConnection `json:"files,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Package: The package associated with this version. - Package *Package `json:"package,omitempty"` - - // Platform: The platform this version was built for. - Platform string `json:"platform,omitempty"` - - // PreRelease: Whether or not this version is a pre-release. - PreRelease bool `json:"preRelease,omitempty"` - - // Readme: The README of this package version. - Readme string `json:"readme,omitempty"` - - // Release: The release associated with this package version. - Release *Release `json:"release,omitempty"` - - // Statistics: Statistics about package activity. - Statistics *PackageVersionStatistics `json:"statistics,omitempty"` - - // Summary: The package version summary. - Summary string `json:"summary,omitempty"` - - // Version: The version string. - Version string `json:"version,omitempty"` -} - -func (x *PackageVersion) GetFiles() *PackageFileConnection { return x.Files } -func (x *PackageVersion) GetId() ID { return x.Id } -func (x *PackageVersion) GetPackage() *Package { return x.Package } -func (x *PackageVersion) GetPlatform() string { return x.Platform } -func (x *PackageVersion) GetPreRelease() bool { return x.PreRelease } -func (x *PackageVersion) GetReadme() string { return x.Readme } -func (x *PackageVersion) GetRelease() *Release { return x.Release } -func (x *PackageVersion) GetStatistics() *PackageVersionStatistics { return x.Statistics } -func (x *PackageVersion) GetSummary() string { return x.Summary } -func (x *PackageVersion) GetVersion() string { return x.Version } - -// PackageVersionConnection (OBJECT): The connection type for PackageVersion. -type PackageVersionConnection struct { - // Edges: A list of edges. - Edges []*PackageVersionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PackageVersion `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PackageVersionConnection) GetEdges() []*PackageVersionEdge { return x.Edges } -func (x *PackageVersionConnection) GetNodes() []*PackageVersion { return x.Nodes } -func (x *PackageVersionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PackageVersionConnection) GetTotalCount() int { return x.TotalCount } - -// PackageVersionEdge (OBJECT): An edge in a connection. -type PackageVersionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PackageVersion `json:"node,omitempty"` -} - -func (x *PackageVersionEdge) GetCursor() string { return x.Cursor } -func (x *PackageVersionEdge) GetNode() *PackageVersion { return x.Node } - -// PackageVersionOrder (INPUT_OBJECT): Ways in which lists of package versions can be ordered upon return. -type PackageVersionOrder struct { - // Field: The field in which to order package versions by. - // - // GraphQL type: PackageVersionOrderField - Field PackageVersionOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order package versions by the specified field. - // - // GraphQL type: OrderDirection - Direction OrderDirection `json:"direction,omitempty"` -} - -// PackageVersionOrderField (ENUM): Properties by which package version connections can be ordered. -type PackageVersionOrderField string - -// PackageVersionOrderField_CREATED_AT: Order package versions by creation time. -const PackageVersionOrderField_CREATED_AT PackageVersionOrderField = "CREATED_AT" - -// PackageVersionStatistics (OBJECT): Represents a object that contains package version activity statistics such as downloads. -type PackageVersionStatistics struct { - // DownloadsTotalCount: Number of times the package was downloaded since it was created. - DownloadsTotalCount int `json:"downloadsTotalCount,omitempty"` -} - -func (x *PackageVersionStatistics) GetDownloadsTotalCount() int { return x.DownloadsTotalCount } - -// PageInfo (OBJECT): Information about pagination in a connection. -type PageInfo struct { - // EndCursor: When paginating forwards, the cursor to continue. - EndCursor string `json:"endCursor,omitempty"` - - // HasNextPage: When paginating forwards, are there more items?. - HasNextPage bool `json:"hasNextPage,omitempty"` - - // HasPreviousPage: When paginating backwards, are there more items?. - HasPreviousPage bool `json:"hasPreviousPage,omitempty"` - - // StartCursor: When paginating backwards, the cursor to continue. - StartCursor string `json:"startCursor,omitempty"` -} - -func (x *PageInfo) GetEndCursor() string { return x.EndCursor } -func (x *PageInfo) GetHasNextPage() bool { return x.HasNextPage } -func (x *PageInfo) GetHasPreviousPage() bool { return x.HasPreviousPage } -func (x *PageInfo) GetStartCursor() string { return x.StartCursor } - -// PatchStatus (ENUM): The possible types of patch statuses. -type PatchStatus string - -// PatchStatus_ADDED: The file was added. Git status 'A'. -const PatchStatus_ADDED PatchStatus = "ADDED" - -// PatchStatus_DELETED: The file was deleted. Git status 'D'. -const PatchStatus_DELETED PatchStatus = "DELETED" - -// PatchStatus_RENAMED: The file was renamed. Git status 'R'. -const PatchStatus_RENAMED PatchStatus = "RENAMED" - -// PatchStatus_COPIED: The file was copied. Git status 'C'. -const PatchStatus_COPIED PatchStatus = "COPIED" - -// PatchStatus_MODIFIED: The file's contents were changed. Git status 'M'. -const PatchStatus_MODIFIED PatchStatus = "MODIFIED" - -// PatchStatus_CHANGED: The file's type was changed. Git status 'T'. -const PatchStatus_CHANGED PatchStatus = "CHANGED" - -// PermissionGranter (UNION): Types that can grant permissions on a repository to a user. -// PermissionGranter_Interface: Types that can grant permissions on a repository to a user. -// -// Possible types: -// -// - *Organization -// - *Repository -// - *Team -type PermissionGranter_Interface interface { - isPermissionGranter() -} - -func (*Organization) isPermissionGranter() {} -func (*Repository) isPermissionGranter() {} -func (*Team) isPermissionGranter() {} - -type PermissionGranter struct { - Interface PermissionGranter_Interface -} - -func (x *PermissionGranter) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *PermissionGranter) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for PermissionGranter", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "Repository": - x.Interface = new(Repository) - case "Team": - x.Interface = new(Team) - } - return json.Unmarshal(js, x.Interface) -} - -// PermissionSource (OBJECT): A level of permission and source for a user's access to a repository. -type PermissionSource struct { - // Organization: The organization the repository belongs to. - Organization *Organization `json:"organization,omitempty"` - - // Permission: The level of access this source has granted to the user. - Permission DefaultRepositoryPermissionField `json:"permission,omitempty"` - - // Source: The source of this permission. - Source PermissionGranter `json:"source,omitempty"` -} - -func (x *PermissionSource) GetOrganization() *Organization { return x.Organization } -func (x *PermissionSource) GetPermission() DefaultRepositoryPermissionField { return x.Permission } -func (x *PermissionSource) GetSource() PermissionGranter { return x.Source } - -// PinIssueInput (INPUT_OBJECT): Autogenerated input type of PinIssue. -type PinIssueInput struct { - // IssueId: The ID of the issue to be pinned. - // - // GraphQL type: ID! - IssueId ID `json:"issueId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// PinIssuePayload (OBJECT): Autogenerated return type of PinIssue. -type PinIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Issue: The issue that was pinned. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *PinIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *PinIssuePayload) GetIssue() *Issue { return x.Issue } - -// PinnableItem (UNION): Types that can be pinned to a profile page. -// PinnableItem_Interface: Types that can be pinned to a profile page. -// -// Possible types: -// -// - *Gist -// - *Repository -type PinnableItem_Interface interface { - isPinnableItem() -} - -func (*Gist) isPinnableItem() {} -func (*Repository) isPinnableItem() {} - -type PinnableItem struct { - Interface PinnableItem_Interface -} - -func (x *PinnableItem) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *PinnableItem) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for PinnableItem", info.Typename) - case "Gist": - x.Interface = new(Gist) - case "Repository": - x.Interface = new(Repository) - } - return json.Unmarshal(js, x.Interface) -} - -// PinnableItemConnection (OBJECT): The connection type for PinnableItem. -type PinnableItemConnection struct { - // Edges: A list of edges. - Edges []*PinnableItemEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []PinnableItem `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PinnableItemConnection) GetEdges() []*PinnableItemEdge { return x.Edges } -func (x *PinnableItemConnection) GetNodes() []PinnableItem { return x.Nodes } -func (x *PinnableItemConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PinnableItemConnection) GetTotalCount() int { return x.TotalCount } - -// PinnableItemEdge (OBJECT): An edge in a connection. -type PinnableItemEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node PinnableItem `json:"node,omitempty"` -} - -func (x *PinnableItemEdge) GetCursor() string { return x.Cursor } -func (x *PinnableItemEdge) GetNode() PinnableItem { return x.Node } - -// PinnableItemType (ENUM): Represents items that can be pinned to a profile page or dashboard. -type PinnableItemType string - -// PinnableItemType_REPOSITORY: A repository. -const PinnableItemType_REPOSITORY PinnableItemType = "REPOSITORY" - -// PinnableItemType_GIST: A gist. -const PinnableItemType_GIST PinnableItemType = "GIST" - -// PinnableItemType_ISSUE: An issue. -const PinnableItemType_ISSUE PinnableItemType = "ISSUE" - -// PinnableItemType_PROJECT: A project. -const PinnableItemType_PROJECT PinnableItemType = "PROJECT" - -// PinnableItemType_PULL_REQUEST: A pull request. -const PinnableItemType_PULL_REQUEST PinnableItemType = "PULL_REQUEST" - -// PinnableItemType_USER: A user. -const PinnableItemType_USER PinnableItemType = "USER" - -// PinnableItemType_ORGANIZATION: An organization. -const PinnableItemType_ORGANIZATION PinnableItemType = "ORGANIZATION" - -// PinnableItemType_TEAM: A team. -const PinnableItemType_TEAM PinnableItemType = "TEAM" - -// PinnedDiscussion (OBJECT): A Pinned Discussion is a discussion pinned to a repository's index page. -type PinnedDiscussion struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Discussion: The discussion that was pinned. - Discussion *Discussion `json:"discussion,omitempty"` - - // GradientStopColors: Color stops of the chosen gradient. - GradientStopColors []string `json:"gradientStopColors,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Pattern: Background texture pattern. - Pattern PinnedDiscussionPattern `json:"pattern,omitempty"` - - // PinnedBy: The actor that pinned this discussion. - PinnedBy Actor `json:"pinnedBy,omitempty"` - - // PreconfiguredGradient: Preconfigured background gradient option. - PreconfiguredGradient PinnedDiscussionGradient `json:"preconfiguredGradient,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *PinnedDiscussion) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *PinnedDiscussion) GetDatabaseId() int { return x.DatabaseId } -func (x *PinnedDiscussion) GetDiscussion() *Discussion { return x.Discussion } -func (x *PinnedDiscussion) GetGradientStopColors() []string { return x.GradientStopColors } -func (x *PinnedDiscussion) GetId() ID { return x.Id } -func (x *PinnedDiscussion) GetPattern() PinnedDiscussionPattern { return x.Pattern } -func (x *PinnedDiscussion) GetPinnedBy() Actor { return x.PinnedBy } -func (x *PinnedDiscussion) GetPreconfiguredGradient() PinnedDiscussionGradient { - return x.PreconfiguredGradient -} -func (x *PinnedDiscussion) GetRepository() *Repository { return x.Repository } -func (x *PinnedDiscussion) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// PinnedDiscussionConnection (OBJECT): The connection type for PinnedDiscussion. -type PinnedDiscussionConnection struct { - // Edges: A list of edges. - Edges []*PinnedDiscussionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PinnedDiscussion `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PinnedDiscussionConnection) GetEdges() []*PinnedDiscussionEdge { return x.Edges } -func (x *PinnedDiscussionConnection) GetNodes() []*PinnedDiscussion { return x.Nodes } -func (x *PinnedDiscussionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PinnedDiscussionConnection) GetTotalCount() int { return x.TotalCount } - -// PinnedDiscussionEdge (OBJECT): An edge in a connection. -type PinnedDiscussionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PinnedDiscussion `json:"node,omitempty"` -} - -func (x *PinnedDiscussionEdge) GetCursor() string { return x.Cursor } -func (x *PinnedDiscussionEdge) GetNode() *PinnedDiscussion { return x.Node } - -// PinnedDiscussionGradient (ENUM): Preconfigured gradients that may be used to style discussions pinned within a repository. -type PinnedDiscussionGradient string - -// PinnedDiscussionGradient_RED_ORANGE: A gradient of red to orange. -const PinnedDiscussionGradient_RED_ORANGE PinnedDiscussionGradient = "RED_ORANGE" - -// PinnedDiscussionGradient_BLUE_MINT: A gradient of blue to mint. -const PinnedDiscussionGradient_BLUE_MINT PinnedDiscussionGradient = "BLUE_MINT" - -// PinnedDiscussionGradient_BLUE_PURPLE: A gradient of blue to purple. -const PinnedDiscussionGradient_BLUE_PURPLE PinnedDiscussionGradient = "BLUE_PURPLE" - -// PinnedDiscussionGradient_PINK_BLUE: A gradient of pink to blue. -const PinnedDiscussionGradient_PINK_BLUE PinnedDiscussionGradient = "PINK_BLUE" - -// PinnedDiscussionGradient_PURPLE_CORAL: A gradient of purple to coral. -const PinnedDiscussionGradient_PURPLE_CORAL PinnedDiscussionGradient = "PURPLE_CORAL" - -// PinnedDiscussionPattern (ENUM): Preconfigured background patterns that may be used to style discussions pinned within a repository. -type PinnedDiscussionPattern string - -// PinnedDiscussionPattern_DOT_FILL: A solid dot pattern. -const PinnedDiscussionPattern_DOT_FILL PinnedDiscussionPattern = "DOT_FILL" - -// PinnedDiscussionPattern_PLUS: A plus sign pattern. -const PinnedDiscussionPattern_PLUS PinnedDiscussionPattern = "PLUS" - -// PinnedDiscussionPattern_ZAP: A lightning bolt pattern. -const PinnedDiscussionPattern_ZAP PinnedDiscussionPattern = "ZAP" - -// PinnedDiscussionPattern_CHEVRON_UP: An upward-facing chevron pattern. -const PinnedDiscussionPattern_CHEVRON_UP PinnedDiscussionPattern = "CHEVRON_UP" - -// PinnedDiscussionPattern_DOT: A hollow dot pattern. -const PinnedDiscussionPattern_DOT PinnedDiscussionPattern = "DOT" - -// PinnedDiscussionPattern_HEART_FILL: A heart pattern. -const PinnedDiscussionPattern_HEART_FILL PinnedDiscussionPattern = "HEART_FILL" - -// PinnedEvent (OBJECT): Represents a 'pinned' event on a given issue or pull request. -type PinnedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Issue: Identifies the issue associated with the event. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *PinnedEvent) GetActor() Actor { return x.Actor } -func (x *PinnedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *PinnedEvent) GetId() ID { return x.Id } -func (x *PinnedEvent) GetIssue() *Issue { return x.Issue } - -// PinnedIssue (OBJECT): A Pinned Issue is a issue pinned to a repository's index page. -type PinnedIssue struct { - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Issue: The issue that was pinned. - Issue *Issue `json:"issue,omitempty"` - - // PinnedBy: The actor that pinned this issue. - PinnedBy Actor `json:"pinnedBy,omitempty"` - - // Repository: The repository that this issue was pinned to. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *PinnedIssue) GetDatabaseId() int { return x.DatabaseId } -func (x *PinnedIssue) GetId() ID { return x.Id } -func (x *PinnedIssue) GetIssue() *Issue { return x.Issue } -func (x *PinnedIssue) GetPinnedBy() Actor { return x.PinnedBy } -func (x *PinnedIssue) GetRepository() *Repository { return x.Repository } - -// PinnedIssueConnection (OBJECT): The connection type for PinnedIssue. -type PinnedIssueConnection struct { - // Edges: A list of edges. - Edges []*PinnedIssueEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PinnedIssue `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PinnedIssueConnection) GetEdges() []*PinnedIssueEdge { return x.Edges } -func (x *PinnedIssueConnection) GetNodes() []*PinnedIssue { return x.Nodes } -func (x *PinnedIssueConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PinnedIssueConnection) GetTotalCount() int { return x.TotalCount } - -// PinnedIssueEdge (OBJECT): An edge in a connection. -type PinnedIssueEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PinnedIssue `json:"node,omitempty"` -} - -func (x *PinnedIssueEdge) GetCursor() string { return x.Cursor } -func (x *PinnedIssueEdge) GetNode() *PinnedIssue { return x.Node } - -// PreciseDateTime (SCALAR): An ISO-8601 encoded UTC date string with millisecond precision. -type PreciseDateTime string - -// PrivateRepositoryForkingDisableAuditEntry (OBJECT): Audit log entry for a private_repository_forking.disable event. -type PrivateRepositoryForkingDisableAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // EnterpriseResourcePath: The HTTP path for this enterprise. - EnterpriseResourcePath URI `json:"enterpriseResourcePath,omitempty"` - - // EnterpriseSlug: The slug of the enterprise. - EnterpriseSlug string `json:"enterpriseSlug,omitempty"` - - // EnterpriseUrl: The HTTP URL for this enterprise. - EnterpriseUrl URI `json:"enterpriseUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *PrivateRepositoryForkingDisableAuditEntry) GetAction() string { return x.Action } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetEnterpriseResourcePath() URI { - return x.EnterpriseResourcePath -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetEnterpriseSlug() string { - return x.EnterpriseSlug -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetEnterpriseUrl() URI { return x.EnterpriseUrl } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetId() ID { return x.Id } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetUser() *User { return x.User } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *PrivateRepositoryForkingDisableAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *PrivateRepositoryForkingDisableAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// PrivateRepositoryForkingEnableAuditEntry (OBJECT): Audit log entry for a private_repository_forking.enable event. -type PrivateRepositoryForkingEnableAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // EnterpriseResourcePath: The HTTP path for this enterprise. - EnterpriseResourcePath URI `json:"enterpriseResourcePath,omitempty"` - - // EnterpriseSlug: The slug of the enterprise. - EnterpriseSlug string `json:"enterpriseSlug,omitempty"` - - // EnterpriseUrl: The HTTP URL for this enterprise. - EnterpriseUrl URI `json:"enterpriseUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *PrivateRepositoryForkingEnableAuditEntry) GetAction() string { return x.Action } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetEnterpriseResourcePath() URI { - return x.EnterpriseResourcePath -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetEnterpriseSlug() string { - return x.EnterpriseSlug -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetEnterpriseUrl() URI { return x.EnterpriseUrl } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetId() ID { return x.Id } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetUser() *User { return x.User } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *PrivateRepositoryForkingEnableAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *PrivateRepositoryForkingEnableAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// ProfileItemShowcase (OBJECT): A curatable list of repositories relating to a repository owner, which defaults to showing the most popular repositories they own. -type ProfileItemShowcase struct { - // HasPinnedItems: Whether or not the owner has pinned any repositories or gists. - HasPinnedItems bool `json:"hasPinnedItems,omitempty"` - - // Items: The repositories and gists in the showcase. If the profile owner has any pinned items, those will be returned. Otherwise, the profile owner's popular repositories will be returned. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Items *PinnableItemConnection `json:"items,omitempty"` -} - -func (x *ProfileItemShowcase) GetHasPinnedItems() bool { return x.HasPinnedItems } -func (x *ProfileItemShowcase) GetItems() *PinnableItemConnection { return x.Items } - -// ProfileOwner (INTERFACE): Represents any entity on GitHub that has a profile page. -// ProfileOwner_Interface: Represents any entity on GitHub that has a profile page. -// -// Possible types: -// -// - *Organization -// - *User -type ProfileOwner_Interface interface { - isProfileOwner() - GetAnyPinnableItems() bool - GetEmail() string - GetId() ID - GetItemShowcase() *ProfileItemShowcase - GetLocation() string - GetLogin() string - GetName() string - GetPinnableItems() *PinnableItemConnection - GetPinnedItems() *PinnableItemConnection - GetPinnedItemsRemaining() int - GetViewerCanChangePinnedItems() bool - GetWebsiteUrl() URI -} - -func (*Organization) isProfileOwner() {} -func (*User) isProfileOwner() {} - -type ProfileOwner struct { - Interface ProfileOwner_Interface -} - -func (x *ProfileOwner) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProfileOwner) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProfileOwner", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// Project (OBJECT): Projects manage issues, pull requests and notes within a project owner. -type Project struct { - // Body: The project's description body. - Body string `json:"body,omitempty"` - - // BodyHTML: The projects description body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // Closed: `true` if the object is closed (definition of closed may depend on type). - Closed bool `json:"closed,omitempty"` - - // ClosedAt: Identifies the date and time when the object was closed. - ClosedAt DateTime `json:"closedAt,omitempty"` - - // Columns: List of columns in the project. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Columns *ProjectColumnConnection `json:"columns,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who originally created the project. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The project's name. - Name string `json:"name,omitempty"` - - // Number: The project's number. - Number int `json:"number,omitempty"` - - // Owner: The project's owner. Currently limited to repositories, organizations, and users. - Owner ProjectOwner `json:"owner,omitempty"` - - // PendingCards: List of pending cards in this project. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - archivedStates [ProjectCardArchivedState] - PendingCards *ProjectCardConnection `json:"pendingCards,omitempty"` - - // Progress: Project progress details. - Progress *ProjectProgress `json:"progress,omitempty"` - - // ResourcePath: The HTTP path for this project. - ResourcePath URI `json:"resourcePath,omitempty"` - - // State: Whether the project is open or closed. - State ProjectState `json:"state,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this project. - Url URI `json:"url,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` -} - -func (x *Project) GetBody() string { return x.Body } -func (x *Project) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *Project) GetClosed() bool { return x.Closed } -func (x *Project) GetClosedAt() DateTime { return x.ClosedAt } -func (x *Project) GetColumns() *ProjectColumnConnection { return x.Columns } -func (x *Project) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Project) GetCreator() Actor { return x.Creator } -func (x *Project) GetDatabaseId() int { return x.DatabaseId } -func (x *Project) GetId() ID { return x.Id } -func (x *Project) GetName() string { return x.Name } -func (x *Project) GetNumber() int { return x.Number } -func (x *Project) GetOwner() ProjectOwner { return x.Owner } -func (x *Project) GetPendingCards() *ProjectCardConnection { return x.PendingCards } -func (x *Project) GetProgress() *ProjectProgress { return x.Progress } -func (x *Project) GetResourcePath() URI { return x.ResourcePath } -func (x *Project) GetState() ProjectState { return x.State } -func (x *Project) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Project) GetUrl() URI { return x.Url } -func (x *Project) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } - -// ProjectCard (OBJECT): A card in a project. -type ProjectCard struct { - // Column: The project column this card is associated under. A card may only belong to one - // project column at a time. The column field will be null if the card is created - // in a pending state and has yet to be associated with a column. Once cards are - // associated with a column, they will not become pending in the future. - // . - Column *ProjectColumn `json:"column,omitempty"` - - // Content: The card content item. - Content ProjectCardItem `json:"content,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created this card. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsArchived: Whether the card is archived. - IsArchived bool `json:"isArchived,omitempty"` - - // Note: The card note. - Note string `json:"note,omitempty"` - - // Project: The project that contains this card. - Project *Project `json:"project,omitempty"` - - // ResourcePath: The HTTP path for this card. - ResourcePath URI `json:"resourcePath,omitempty"` - - // State: The state of ProjectCard. - State ProjectCardState `json:"state,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this card. - Url URI `json:"url,omitempty"` -} - -func (x *ProjectCard) GetColumn() *ProjectColumn { return x.Column } -func (x *ProjectCard) GetContent() ProjectCardItem { return x.Content } -func (x *ProjectCard) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectCard) GetCreator() Actor { return x.Creator } -func (x *ProjectCard) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectCard) GetId() ID { return x.Id } -func (x *ProjectCard) GetIsArchived() bool { return x.IsArchived } -func (x *ProjectCard) GetNote() string { return x.Note } -func (x *ProjectCard) GetProject() *Project { return x.Project } -func (x *ProjectCard) GetResourcePath() URI { return x.ResourcePath } -func (x *ProjectCard) GetState() ProjectCardState { return x.State } -func (x *ProjectCard) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *ProjectCard) GetUrl() URI { return x.Url } - -// ProjectCardArchivedState (ENUM): The possible archived states of a project card. -type ProjectCardArchivedState string - -// ProjectCardArchivedState_ARCHIVED: A project card that is archived. -const ProjectCardArchivedState_ARCHIVED ProjectCardArchivedState = "ARCHIVED" - -// ProjectCardArchivedState_NOT_ARCHIVED: A project card that is not archived. -const ProjectCardArchivedState_NOT_ARCHIVED ProjectCardArchivedState = "NOT_ARCHIVED" - -// ProjectCardConnection (OBJECT): The connection type for ProjectCard. -type ProjectCardConnection struct { - // Edges: A list of edges. - Edges []*ProjectCardEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectCard `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectCardConnection) GetEdges() []*ProjectCardEdge { return x.Edges } -func (x *ProjectCardConnection) GetNodes() []*ProjectCard { return x.Nodes } -func (x *ProjectCardConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectCardConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectCardEdge (OBJECT): An edge in a connection. -type ProjectCardEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectCard `json:"node,omitempty"` -} - -func (x *ProjectCardEdge) GetCursor() string { return x.Cursor } -func (x *ProjectCardEdge) GetNode() *ProjectCard { return x.Node } - -// ProjectCardItem (UNION): Types that can be inside Project Cards. -// ProjectCardItem_Interface: Types that can be inside Project Cards. -// -// Possible types: -// -// - *Issue -// - *PullRequest -type ProjectCardItem_Interface interface { - isProjectCardItem() -} - -func (*Issue) isProjectCardItem() {} -func (*PullRequest) isProjectCardItem() {} - -type ProjectCardItem struct { - Interface ProjectCardItem_Interface -} - -func (x *ProjectCardItem) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectCardItem) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectCardItem", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectCardState (ENUM): Various content states of a ProjectCard. -type ProjectCardState string - -// ProjectCardState_CONTENT_ONLY: The card has content only. -const ProjectCardState_CONTENT_ONLY ProjectCardState = "CONTENT_ONLY" - -// ProjectCardState_NOTE_ONLY: The card has a note only. -const ProjectCardState_NOTE_ONLY ProjectCardState = "NOTE_ONLY" - -// ProjectCardState_REDACTED: The card is redacted. -const ProjectCardState_REDACTED ProjectCardState = "REDACTED" - -// ProjectColumn (OBJECT): A column inside a project. -type ProjectColumn struct { - // Cards: List of cards in the column. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - archivedStates [ProjectCardArchivedState] - Cards *ProjectCardConnection `json:"cards,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The project column's name. - Name string `json:"name,omitempty"` - - // Project: The project that contains this column. - Project *Project `json:"project,omitempty"` - - // Purpose: The semantic purpose of the column. - Purpose ProjectColumnPurpose `json:"purpose,omitempty"` - - // ResourcePath: The HTTP path for this project column. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this project column. - Url URI `json:"url,omitempty"` -} - -func (x *ProjectColumn) GetCards() *ProjectCardConnection { return x.Cards } -func (x *ProjectColumn) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectColumn) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectColumn) GetId() ID { return x.Id } -func (x *ProjectColumn) GetName() string { return x.Name } -func (x *ProjectColumn) GetProject() *Project { return x.Project } -func (x *ProjectColumn) GetPurpose() ProjectColumnPurpose { return x.Purpose } -func (x *ProjectColumn) GetResourcePath() URI { return x.ResourcePath } -func (x *ProjectColumn) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *ProjectColumn) GetUrl() URI { return x.Url } - -// ProjectColumnConnection (OBJECT): The connection type for ProjectColumn. -type ProjectColumnConnection struct { - // Edges: A list of edges. - Edges []*ProjectColumnEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectColumn `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectColumnConnection) GetEdges() []*ProjectColumnEdge { return x.Edges } -func (x *ProjectColumnConnection) GetNodes() []*ProjectColumn { return x.Nodes } -func (x *ProjectColumnConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectColumnConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectColumnEdge (OBJECT): An edge in a connection. -type ProjectColumnEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectColumn `json:"node,omitempty"` -} - -func (x *ProjectColumnEdge) GetCursor() string { return x.Cursor } -func (x *ProjectColumnEdge) GetNode() *ProjectColumn { return x.Node } - -// ProjectColumnPurpose (ENUM): The semantic purpose of the column - todo, in progress, or done. -type ProjectColumnPurpose string - -// ProjectColumnPurpose_TODO: The column contains cards still to be worked on. -const ProjectColumnPurpose_TODO ProjectColumnPurpose = "TODO" - -// ProjectColumnPurpose_IN_PROGRESS: The column contains cards which are currently being worked on. -const ProjectColumnPurpose_IN_PROGRESS ProjectColumnPurpose = "IN_PROGRESS" - -// ProjectColumnPurpose_DONE: The column contains cards which are complete. -const ProjectColumnPurpose_DONE ProjectColumnPurpose = "DONE" - -// ProjectConnection (OBJECT): A list of projects associated with the owner. -type ProjectConnection struct { - // Edges: A list of edges. - Edges []*ProjectEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Project `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectConnection) GetEdges() []*ProjectEdge { return x.Edges } -func (x *ProjectConnection) GetNodes() []*Project { return x.Nodes } -func (x *ProjectConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectEdge (OBJECT): An edge in a connection. -type ProjectEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Project `json:"node,omitempty"` -} - -func (x *ProjectEdge) GetCursor() string { return x.Cursor } -func (x *ProjectEdge) GetNode() *Project { return x.Node } - -// ProjectItemType (ENUM): The type of a project item. -type ProjectItemType string - -// ProjectItemType_ISSUE: Issue. -const ProjectItemType_ISSUE ProjectItemType = "ISSUE" - -// ProjectItemType_PULL_REQUEST: Pull Request. -const ProjectItemType_PULL_REQUEST ProjectItemType = "PULL_REQUEST" - -// ProjectItemType_DRAFT_ISSUE: Draft Issue. -const ProjectItemType_DRAFT_ISSUE ProjectItemType = "DRAFT_ISSUE" - -// ProjectItemType_REDACTED: Redacted Item. -const ProjectItemType_REDACTED ProjectItemType = "REDACTED" - -// ProjectNext (OBJECT): New projects that manage issues, pull requests and drafts using tables and boards. -type ProjectNext struct { - // Closed: Returns true if the project is closed. - // - // Deprecated: Returns true if the project is closed. - Closed bool `json:"closed,omitempty"` - - // ClosedAt: Identifies the date and time when the object was closed. - ClosedAt DateTime `json:"closedAt,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - // - // Deprecated: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who originally created the project. - // - // Deprecated: The actor who originally created the project. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - // - // Deprecated: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Description: The project's description. - // - // Deprecated: The project's description. - Description string `json:"description,omitempty"` - - // Fields: List of fields in the project. - // - // Deprecated: List of fields in the project. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Fields *ProjectNextFieldConnection `json:"fields,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Items: List of items in the project. - // - // Deprecated: List of items in the project. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Items *ProjectNextItemConnection `json:"items,omitempty"` - - // Number: The project's number. - // - // Deprecated: The project's number. - Number int `json:"number,omitempty"` - - // Owner: The project's owner. Currently limited to organizations and users. - // - // Deprecated: The project's owner. Currently limited to organizations and users. - Owner ProjectNextOwner `json:"owner,omitempty"` - - // Public: Returns true if the project is public. - // - // Deprecated: Returns true if the project is public. - Public bool `json:"public,omitempty"` - - // Repositories: The repositories the project is linked to. - // - // Deprecated: The repositories the project is linked to. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Repositories *RepositoryConnection `json:"repositories,omitempty"` - - // ResourcePath: The HTTP path for this project. - // - // Deprecated: The HTTP path for this project. - ResourcePath URI `json:"resourcePath,omitempty"` - - // ShortDescription: The project's short description. - // - // Deprecated: The project's short description. - ShortDescription string `json:"shortDescription,omitempty"` - - // Title: The project's name. - // - // Deprecated: The project's name. - Title string `json:"title,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - // - // Deprecated: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this project. - // - // Deprecated: The HTTP URL for this project. - Url URI `json:"url,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // Views: List of views in the project. - // - // Deprecated: List of views in the project. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Views *ProjectViewConnection `json:"views,omitempty"` -} - -func (x *ProjectNext) GetClosed() bool { return x.Closed } -func (x *ProjectNext) GetClosedAt() DateTime { return x.ClosedAt } -func (x *ProjectNext) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectNext) GetCreator() Actor { return x.Creator } -func (x *ProjectNext) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectNext) GetDescription() string { return x.Description } -func (x *ProjectNext) GetFields() *ProjectNextFieldConnection { return x.Fields } -func (x *ProjectNext) GetId() ID { return x.Id } -func (x *ProjectNext) GetItems() *ProjectNextItemConnection { return x.Items } -func (x *ProjectNext) GetNumber() int { return x.Number } -func (x *ProjectNext) GetOwner() ProjectNextOwner { return x.Owner } -func (x *ProjectNext) GetPublic() bool { return x.Public } -func (x *ProjectNext) GetRepositories() *RepositoryConnection { return x.Repositories } -func (x *ProjectNext) GetResourcePath() URI { return x.ResourcePath } -func (x *ProjectNext) GetShortDescription() string { return x.ShortDescription } -func (x *ProjectNext) GetTitle() string { return x.Title } -func (x *ProjectNext) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *ProjectNext) GetUrl() URI { return x.Url } -func (x *ProjectNext) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *ProjectNext) GetViews() *ProjectViewConnection { return x.Views } - -// ProjectNextConnection (OBJECT): The connection type for ProjectNext. -type ProjectNextConnection struct { - // Edges: A list of edges. - Edges []*ProjectNextEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectNext `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectNextConnection) GetEdges() []*ProjectNextEdge { return x.Edges } -func (x *ProjectNextConnection) GetNodes() []*ProjectNext { return x.Nodes } -func (x *ProjectNextConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectNextConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectNextEdge (OBJECT): An edge in a connection. -type ProjectNextEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectNext `json:"node,omitempty"` -} - -func (x *ProjectNextEdge) GetCursor() string { return x.Cursor } -func (x *ProjectNextEdge) GetNode() *ProjectNext { return x.Node } - -// ProjectNextField (OBJECT): A field inside a project. -type ProjectNextField struct { - // CreatedAt: Identifies the date and time when the object was created. - // - // Deprecated: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DataType: The field's type. - // - // Deprecated: The field's type. - DataType ProjectNextFieldType `json:"dataType,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - // - // Deprecated: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The project field's name. - // - // Deprecated: The project field's name. - Name string `json:"name,omitempty"` - - // Project: The project that contains this field. - // - // Deprecated: The project that contains this field. - Project *ProjectNext `json:"project,omitempty"` - - // Settings: The field's settings. - // - // Deprecated: The field's settings. - Settings string `json:"settings,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - // - // Deprecated: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectNextField) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectNextField) GetDataType() ProjectNextFieldType { return x.DataType } -func (x *ProjectNextField) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectNextField) GetId() ID { return x.Id } -func (x *ProjectNextField) GetName() string { return x.Name } -func (x *ProjectNextField) GetProject() *ProjectNext { return x.Project } -func (x *ProjectNextField) GetSettings() string { return x.Settings } -func (x *ProjectNextField) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectNextFieldCommon (INTERFACE): Common fields across different field types. -// ProjectNextFieldCommon_Interface: Common fields across different field types. -// -// Possible types: -// -// - *ProjectNextField -type ProjectNextFieldCommon_Interface interface { - isProjectNextFieldCommon() - GetCreatedAt() DateTime - GetDataType() ProjectNextFieldType - GetDatabaseId() int - GetId() ID - GetName() string - GetProject() *ProjectNext - GetSettings() string - GetUpdatedAt() DateTime -} - -func (*ProjectNextField) isProjectNextFieldCommon() {} - -type ProjectNextFieldCommon struct { - Interface ProjectNextFieldCommon_Interface -} - -func (x *ProjectNextFieldCommon) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectNextFieldCommon) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectNextFieldCommon", info.Typename) - case "ProjectNextField": - x.Interface = new(ProjectNextField) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectNextFieldConnection (OBJECT): The connection type for ProjectNextField. -type ProjectNextFieldConnection struct { - // Edges: A list of edges. - Edges []*ProjectNextFieldEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectNextField `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectNextFieldConnection) GetEdges() []*ProjectNextFieldEdge { return x.Edges } -func (x *ProjectNextFieldConnection) GetNodes() []*ProjectNextField { return x.Nodes } -func (x *ProjectNextFieldConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectNextFieldConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectNextFieldEdge (OBJECT): An edge in a connection. -type ProjectNextFieldEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectNextField `json:"node,omitempty"` -} - -func (x *ProjectNextFieldEdge) GetCursor() string { return x.Cursor } -func (x *ProjectNextFieldEdge) GetNode() *ProjectNextField { return x.Node } - -// ProjectNextFieldType (ENUM): The type of a project next field. -type ProjectNextFieldType string - -// ProjectNextFieldType_ASSIGNEES: Assignees. -const ProjectNextFieldType_ASSIGNEES ProjectNextFieldType = "ASSIGNEES" - -// ProjectNextFieldType_LINKED_PULL_REQUESTS: Linked Pull Requests. -const ProjectNextFieldType_LINKED_PULL_REQUESTS ProjectNextFieldType = "LINKED_PULL_REQUESTS" - -// ProjectNextFieldType_REVIEWERS: Reviewers. -const ProjectNextFieldType_REVIEWERS ProjectNextFieldType = "REVIEWERS" - -// ProjectNextFieldType_LABELS: Labels. -const ProjectNextFieldType_LABELS ProjectNextFieldType = "LABELS" - -// ProjectNextFieldType_MILESTONE: Milestone. -const ProjectNextFieldType_MILESTONE ProjectNextFieldType = "MILESTONE" - -// ProjectNextFieldType_REPOSITORY: Repository. -const ProjectNextFieldType_REPOSITORY ProjectNextFieldType = "REPOSITORY" - -// ProjectNextFieldType_TITLE: Title. -const ProjectNextFieldType_TITLE ProjectNextFieldType = "TITLE" - -// ProjectNextFieldType_TEXT: Text. -const ProjectNextFieldType_TEXT ProjectNextFieldType = "TEXT" - -// ProjectNextFieldType_SINGLE_SELECT: Single Select. -const ProjectNextFieldType_SINGLE_SELECT ProjectNextFieldType = "SINGLE_SELECT" - -// ProjectNextFieldType_NUMBER: Number. -const ProjectNextFieldType_NUMBER ProjectNextFieldType = "NUMBER" - -// ProjectNextFieldType_DATE: Date. -const ProjectNextFieldType_DATE ProjectNextFieldType = "DATE" - -// ProjectNextFieldType_ITERATION: Iteration. -const ProjectNextFieldType_ITERATION ProjectNextFieldType = "ITERATION" - -// ProjectNextFieldType_TASKS: Tasks. -const ProjectNextFieldType_TASKS ProjectNextFieldType = "TASKS" - -// ProjectNextItem (OBJECT): An item within a new Project. -type ProjectNextItem struct { - // Content: The content of the referenced draft issue, issue, or pull request. - // - // Deprecated: The content of the referenced draft issue, issue, or pull request. - Content ProjectNextItemContent `json:"content,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - // - // Deprecated: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created the item. - // - // Deprecated: The actor who created the item. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - // - // Deprecated: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // FieldValues: List of field values. - // - // Deprecated: List of field values. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - FieldValues *ProjectNextItemFieldValueConnection `json:"fieldValues,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsArchived: Whether the item is archived. - // - // Deprecated: Whether the item is archived. - IsArchived bool `json:"isArchived,omitempty"` - - // Project: The project that contains this item. - // - // Deprecated: The project that contains this item. - Project *ProjectNext `json:"project,omitempty"` - - // Title: The title of the item. - // - // Deprecated: The title of the item. - Title string `json:"title,omitempty"` - - // Type: The type of the item. - // - // Deprecated: The type of the item. - Type ProjectItemType `json:"type,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - // - // Deprecated: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectNextItem) GetContent() ProjectNextItemContent { return x.Content } -func (x *ProjectNextItem) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectNextItem) GetCreator() Actor { return x.Creator } -func (x *ProjectNextItem) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectNextItem) GetFieldValues() *ProjectNextItemFieldValueConnection { return x.FieldValues } -func (x *ProjectNextItem) GetId() ID { return x.Id } -func (x *ProjectNextItem) GetIsArchived() bool { return x.IsArchived } -func (x *ProjectNextItem) GetProject() *ProjectNext { return x.Project } -func (x *ProjectNextItem) GetTitle() string { return x.Title } -func (x *ProjectNextItem) GetType() ProjectItemType { return x.Type } -func (x *ProjectNextItem) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectNextItemConnection (OBJECT): The connection type for ProjectNextItem. -type ProjectNextItemConnection struct { - // Edges: A list of edges. - Edges []*ProjectNextItemEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectNextItem `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectNextItemConnection) GetEdges() []*ProjectNextItemEdge { return x.Edges } -func (x *ProjectNextItemConnection) GetNodes() []*ProjectNextItem { return x.Nodes } -func (x *ProjectNextItemConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectNextItemConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectNextItemContent (UNION): Types that can be inside Project Items. -// ProjectNextItemContent_Interface: Types that can be inside Project Items. -// -// Possible types: -// -// - *DraftIssue -// - *Issue -// - *PullRequest -type ProjectNextItemContent_Interface interface { - isProjectNextItemContent() -} - -func (*DraftIssue) isProjectNextItemContent() {} -func (*Issue) isProjectNextItemContent() {} -func (*PullRequest) isProjectNextItemContent() {} - -type ProjectNextItemContent struct { - Interface ProjectNextItemContent_Interface -} - -func (x *ProjectNextItemContent) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectNextItemContent) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectNextItemContent", info.Typename) - case "DraftIssue": - x.Interface = new(DraftIssue) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectNextItemEdge (OBJECT): An edge in a connection. -type ProjectNextItemEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectNextItem `json:"node,omitempty"` -} - -func (x *ProjectNextItemEdge) GetCursor() string { return x.Cursor } -func (x *ProjectNextItemEdge) GetNode() *ProjectNextItem { return x.Node } - -// ProjectNextItemFieldValue (OBJECT): An value of a field in an item of a new Project. -type ProjectNextItemFieldValue struct { - // CreatedAt: Identifies the date and time when the object was created. - // - // Deprecated: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created the item. - // - // Deprecated: The actor who created the item. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - // - // Deprecated: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // ProjectField: The project field that contains this value. - // - // Deprecated: The project field that contains this value. - ProjectField *ProjectNextField `json:"projectField,omitempty"` - - // ProjectItem: The project item that contains this value. - // - // Deprecated: The project item that contains this value. - ProjectItem *ProjectNextItem `json:"projectItem,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - // - // Deprecated: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Value: The value of a field. - // - // Deprecated: The value of a field. - Value string `json:"value,omitempty"` -} - -func (x *ProjectNextItemFieldValue) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectNextItemFieldValue) GetCreator() Actor { return x.Creator } -func (x *ProjectNextItemFieldValue) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectNextItemFieldValue) GetId() ID { return x.Id } -func (x *ProjectNextItemFieldValue) GetProjectField() *ProjectNextField { return x.ProjectField } -func (x *ProjectNextItemFieldValue) GetProjectItem() *ProjectNextItem { return x.ProjectItem } -func (x *ProjectNextItemFieldValue) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *ProjectNextItemFieldValue) GetValue() string { return x.Value } - -// ProjectNextItemFieldValueConnection (OBJECT): The connection type for ProjectNextItemFieldValue. -type ProjectNextItemFieldValueConnection struct { - // Edges: A list of edges. - Edges []*ProjectNextItemFieldValueEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectNextItemFieldValue `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectNextItemFieldValueConnection) GetEdges() []*ProjectNextItemFieldValueEdge { - return x.Edges -} -func (x *ProjectNextItemFieldValueConnection) GetNodes() []*ProjectNextItemFieldValue { return x.Nodes } -func (x *ProjectNextItemFieldValueConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectNextItemFieldValueConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectNextItemFieldValueEdge (OBJECT): An edge in a connection. -type ProjectNextItemFieldValueEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectNextItemFieldValue `json:"node,omitempty"` -} - -func (x *ProjectNextItemFieldValueEdge) GetCursor() string { return x.Cursor } -func (x *ProjectNextItemFieldValueEdge) GetNode() *ProjectNextItemFieldValue { return x.Node } - -// ProjectNextOrderField (ENUM): Properties by which the return project can be ordered. -type ProjectNextOrderField string - -// ProjectNextOrderField_TITLE: The project's title. -const ProjectNextOrderField_TITLE ProjectNextOrderField = "TITLE" - -// ProjectNextOrderField_NUMBER: The project's number. -const ProjectNextOrderField_NUMBER ProjectNextOrderField = "NUMBER" - -// ProjectNextOrderField_UPDATED_AT: The project's date and time of update. -const ProjectNextOrderField_UPDATED_AT ProjectNextOrderField = "UPDATED_AT" - -// ProjectNextOrderField_CREATED_AT: The project's date and time of creation. -const ProjectNextOrderField_CREATED_AT ProjectNextOrderField = "CREATED_AT" - -// ProjectNextOwner (INTERFACE): Represents an owner of a project (beta). -// ProjectNextOwner_Interface: Represents an owner of a project (beta). -// -// Possible types: -// -// - *Issue -// - *Organization -// - *PullRequest -// - *User -type ProjectNextOwner_Interface interface { - isProjectNextOwner() - GetId() ID - GetProjectNext() *ProjectNext - GetProjectsNext() *ProjectNextConnection -} - -func (*Issue) isProjectNextOwner() {} -func (*Organization) isProjectNextOwner() {} -func (*PullRequest) isProjectNextOwner() {} -func (*User) isProjectNextOwner() {} - -type ProjectNextOwner struct { - Interface ProjectNextOwner_Interface -} - -func (x *ProjectNextOwner) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectNextOwner) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectNextOwner", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "Organization": - x.Interface = new(Organization) - case "PullRequest": - x.Interface = new(PullRequest) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectOrder (INPUT_OBJECT): Ways in which lists of projects can be ordered upon return. -type ProjectOrder struct { - // Field: The field in which to order projects by. - // - // GraphQL type: ProjectOrderField! - Field ProjectOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order projects by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ProjectOrderField (ENUM): Properties by which project connections can be ordered. -type ProjectOrderField string - -// ProjectOrderField_CREATED_AT: Order projects by creation time. -const ProjectOrderField_CREATED_AT ProjectOrderField = "CREATED_AT" - -// ProjectOrderField_UPDATED_AT: Order projects by update time. -const ProjectOrderField_UPDATED_AT ProjectOrderField = "UPDATED_AT" - -// ProjectOrderField_NAME: Order projects by name. -const ProjectOrderField_NAME ProjectOrderField = "NAME" - -// ProjectOwner (INTERFACE): Represents an owner of a Project. -// ProjectOwner_Interface: Represents an owner of a Project. -// -// Possible types: -// -// - *Organization -// - *Repository -// - *User -type ProjectOwner_Interface interface { - isProjectOwner() - GetId() ID - GetProject() *Project - GetProjects() *ProjectConnection - GetProjectsResourcePath() URI - GetProjectsUrl() URI - GetViewerCanCreateProjects() bool -} - -func (*Organization) isProjectOwner() {} -func (*Repository) isProjectOwner() {} -func (*User) isProjectOwner() {} - -type ProjectOwner struct { - Interface ProjectOwner_Interface -} - -func (x *ProjectOwner) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectOwner) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectOwner", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "Repository": - x.Interface = new(Repository) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectProgress (OBJECT): Project progress stats. -type ProjectProgress struct { - // DoneCount: The number of done cards. - DoneCount int `json:"doneCount,omitempty"` - - // DonePercentage: The percentage of done cards. - DonePercentage float64 `json:"donePercentage,omitempty"` - - // Enabled: Whether progress tracking is enabled and cards with purpose exist for this project. - Enabled bool `json:"enabled,omitempty"` - - // InProgressCount: The number of in-progress cards. - InProgressCount int `json:"inProgressCount,omitempty"` - - // InProgressPercentage: The percentage of in-progress cards. - InProgressPercentage float64 `json:"inProgressPercentage,omitempty"` - - // TodoCount: The number of to do cards. - TodoCount int `json:"todoCount,omitempty"` - - // TodoPercentage: The percentage of to do cards. - TodoPercentage float64 `json:"todoPercentage,omitempty"` -} - -func (x *ProjectProgress) GetDoneCount() int { return x.DoneCount } -func (x *ProjectProgress) GetDonePercentage() float64 { return x.DonePercentage } -func (x *ProjectProgress) GetEnabled() bool { return x.Enabled } -func (x *ProjectProgress) GetInProgressCount() int { return x.InProgressCount } -func (x *ProjectProgress) GetInProgressPercentage() float64 { return x.InProgressPercentage } -func (x *ProjectProgress) GetTodoCount() int { return x.TodoCount } -func (x *ProjectProgress) GetTodoPercentage() float64 { return x.TodoPercentage } - -// ProjectState (ENUM): State of the project; either 'open' or 'closed'. -type ProjectState string - -// ProjectState_OPEN: The project is open. -const ProjectState_OPEN ProjectState = "OPEN" - -// ProjectState_CLOSED: The project is closed. -const ProjectState_CLOSED ProjectState = "CLOSED" - -// ProjectTemplate (ENUM): GitHub-provided templates for Projects. -type ProjectTemplate string - -// ProjectTemplate_BASIC_KANBAN: Create a board with columns for To do, In progress and Done. -const ProjectTemplate_BASIC_KANBAN ProjectTemplate = "BASIC_KANBAN" - -// ProjectTemplate_AUTOMATED_KANBAN_V2: Create a board with v2 triggers to automatically move cards across To do, In progress and Done columns. -const ProjectTemplate_AUTOMATED_KANBAN_V2 ProjectTemplate = "AUTOMATED_KANBAN_V2" - -// ProjectTemplate_AUTOMATED_REVIEWS_KANBAN: Create a board with triggers to automatically move cards across columns with review automation. -const ProjectTemplate_AUTOMATED_REVIEWS_KANBAN ProjectTemplate = "AUTOMATED_REVIEWS_KANBAN" - -// ProjectTemplate_BUG_TRIAGE: Create a board to triage and prioritize bugs with To do, priority, and Done columns. -const ProjectTemplate_BUG_TRIAGE ProjectTemplate = "BUG_TRIAGE" - -// ProjectV2 (OBJECT): New projects that manage issues, pull requests and drafts using tables and boards. -type ProjectV2 struct { - // Closed: Returns true if the project is closed. - Closed bool `json:"closed,omitempty"` - - // ClosedAt: Identifies the date and time when the object was closed. - ClosedAt DateTime `json:"closedAt,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who originally created the project. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Field: A field of the project. - // - // Query arguments: - // - name String! - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Fields: List of fields and their constraints in the project. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ProjectV2FieldOrder - Fields *ProjectV2FieldConfigurationConnection `json:"fields,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Items: List of items in the project. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ProjectV2ItemOrder - Items *ProjectV2ItemConnection `json:"items,omitempty"` - - // Number: The project's number. - Number int `json:"number,omitempty"` - - // Owner: The project's owner. Currently limited to organizations and users. - Owner ProjectV2Owner `json:"owner,omitempty"` - - // Public: Returns true if the project is public. - Public bool `json:"public,omitempty"` - - // Readme: The project's readme. - Readme string `json:"readme,omitempty"` - - // Repositories: The repositories the project is linked to. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy RepositoryOrder - Repositories *RepositoryConnection `json:"repositories,omitempty"` - - // ResourcePath: The HTTP path for this project. - ResourcePath URI `json:"resourcePath,omitempty"` - - // ShortDescription: The project's short description. - ShortDescription string `json:"shortDescription,omitempty"` - - // Title: The project's name. - Title string `json:"title,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this project. - Url URI `json:"url,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // Views: List of views in the project. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ProjectV2ViewOrder - Views *ProjectV2ViewConnection `json:"views,omitempty"` -} - -func (x *ProjectV2) GetClosed() bool { return x.Closed } -func (x *ProjectV2) GetClosedAt() DateTime { return x.ClosedAt } -func (x *ProjectV2) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2) GetCreator() Actor { return x.Creator } -func (x *ProjectV2) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2) GetFields() *ProjectV2FieldConfigurationConnection { return x.Fields } -func (x *ProjectV2) GetId() ID { return x.Id } -func (x *ProjectV2) GetItems() *ProjectV2ItemConnection { return x.Items } -func (x *ProjectV2) GetNumber() int { return x.Number } -func (x *ProjectV2) GetOwner() ProjectV2Owner { return x.Owner } -func (x *ProjectV2) GetPublic() bool { return x.Public } -func (x *ProjectV2) GetReadme() string { return x.Readme } -func (x *ProjectV2) GetRepositories() *RepositoryConnection { return x.Repositories } -func (x *ProjectV2) GetResourcePath() URI { return x.ResourcePath } -func (x *ProjectV2) GetShortDescription() string { return x.ShortDescription } -func (x *ProjectV2) GetTitle() string { return x.Title } -func (x *ProjectV2) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *ProjectV2) GetUrl() URI { return x.Url } -func (x *ProjectV2) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *ProjectV2) GetViews() *ProjectV2ViewConnection { return x.Views } - -// ProjectV2Connection (OBJECT): The connection type for ProjectV2. -type ProjectV2Connection struct { - // Edges: A list of edges. - Edges []*ProjectV2Edge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectV2 `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectV2Connection) GetEdges() []*ProjectV2Edge { return x.Edges } -func (x *ProjectV2Connection) GetNodes() []*ProjectV2 { return x.Nodes } -func (x *ProjectV2Connection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectV2Connection) GetTotalCount() int { return x.TotalCount } - -// ProjectV2Edge (OBJECT): An edge in a connection. -type ProjectV2Edge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectV2 `json:"node,omitempty"` -} - -func (x *ProjectV2Edge) GetCursor() string { return x.Cursor } -func (x *ProjectV2Edge) GetNode() *ProjectV2 { return x.Node } - -// ProjectV2Field (OBJECT): A field inside a project. -type ProjectV2Field struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DataType: The field's type. - DataType ProjectV2FieldType `json:"dataType,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The project field's name. - Name string `json:"name,omitempty"` - - // Project: The project that contains this field. - Project *ProjectV2 `json:"project,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2Field) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2Field) GetDataType() ProjectV2FieldType { return x.DataType } -func (x *ProjectV2Field) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2Field) GetId() ID { return x.Id } -func (x *ProjectV2Field) GetName() string { return x.Name } -func (x *ProjectV2Field) GetProject() *ProjectV2 { return x.Project } -func (x *ProjectV2Field) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2FieldCommon (INTERFACE): Common fields across different project field types. -// ProjectV2FieldCommon_Interface: Common fields across different project field types. -// -// Possible types: -// -// - *ProjectV2Field -// - *ProjectV2IterationField -// - *ProjectV2SingleSelectField -type ProjectV2FieldCommon_Interface interface { - isProjectV2FieldCommon() - GetCreatedAt() DateTime - GetDataType() ProjectV2FieldType - GetDatabaseId() int - GetId() ID - GetName() string - GetProject() *ProjectV2 - GetUpdatedAt() DateTime -} - -func (*ProjectV2Field) isProjectV2FieldCommon() {} -func (*ProjectV2IterationField) isProjectV2FieldCommon() {} -func (*ProjectV2SingleSelectField) isProjectV2FieldCommon() {} - -type ProjectV2FieldCommon struct { - Interface ProjectV2FieldCommon_Interface -} - -func (x *ProjectV2FieldCommon) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectV2FieldCommon) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectV2FieldCommon", info.Typename) - case "ProjectV2Field": - x.Interface = new(ProjectV2Field) - case "ProjectV2IterationField": - x.Interface = new(ProjectV2IterationField) - case "ProjectV2SingleSelectField": - x.Interface = new(ProjectV2SingleSelectField) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectV2FieldConfiguration (UNION): Configurations for project fields. -// ProjectV2FieldConfiguration_Interface: Configurations for project fields. -// -// Possible types: -// -// - *ProjectV2Field -// - *ProjectV2IterationField -// - *ProjectV2SingleSelectField -type ProjectV2FieldConfiguration_Interface interface { - isProjectV2FieldConfiguration() -} - -func (*ProjectV2Field) isProjectV2FieldConfiguration() {} -func (*ProjectV2IterationField) isProjectV2FieldConfiguration() {} -func (*ProjectV2SingleSelectField) isProjectV2FieldConfiguration() {} - -type ProjectV2FieldConfiguration struct { - Interface ProjectV2FieldConfiguration_Interface -} - -func (x *ProjectV2FieldConfiguration) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectV2FieldConfiguration) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectV2FieldConfiguration", info.Typename) - case "ProjectV2Field": - x.Interface = new(ProjectV2Field) - case "ProjectV2IterationField": - x.Interface = new(ProjectV2IterationField) - case "ProjectV2SingleSelectField": - x.Interface = new(ProjectV2SingleSelectField) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectV2FieldConfigurationConnection (OBJECT): The connection type for ProjectV2FieldConfiguration. -type ProjectV2FieldConfigurationConnection struct { - // Edges: A list of edges. - Edges []*ProjectV2FieldConfigurationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []ProjectV2FieldConfiguration `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectV2FieldConfigurationConnection) GetEdges() []*ProjectV2FieldConfigurationEdge { - return x.Edges -} -func (x *ProjectV2FieldConfigurationConnection) GetNodes() []ProjectV2FieldConfiguration { - return x.Nodes -} -func (x *ProjectV2FieldConfigurationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectV2FieldConfigurationConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectV2FieldConfigurationEdge (OBJECT): An edge in a connection. -type ProjectV2FieldConfigurationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node ProjectV2FieldConfiguration `json:"node,omitempty"` -} - -func (x *ProjectV2FieldConfigurationEdge) GetCursor() string { return x.Cursor } -func (x *ProjectV2FieldConfigurationEdge) GetNode() ProjectV2FieldConfiguration { return x.Node } - -// ProjectV2FieldConnection (OBJECT): The connection type for ProjectV2Field. -type ProjectV2FieldConnection struct { - // Edges: A list of edges. - Edges []*ProjectV2FieldEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectV2Field `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectV2FieldConnection) GetEdges() []*ProjectV2FieldEdge { return x.Edges } -func (x *ProjectV2FieldConnection) GetNodes() []*ProjectV2Field { return x.Nodes } -func (x *ProjectV2FieldConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectV2FieldConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectV2FieldEdge (OBJECT): An edge in a connection. -type ProjectV2FieldEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectV2Field `json:"node,omitempty"` -} - -func (x *ProjectV2FieldEdge) GetCursor() string { return x.Cursor } -func (x *ProjectV2FieldEdge) GetNode() *ProjectV2Field { return x.Node } - -// ProjectV2FieldOrder (INPUT_OBJECT): Ordering options for project v2 field connections. -type ProjectV2FieldOrder struct { - // Field: The field to order the project v2 fields by. - // - // GraphQL type: ProjectV2FieldOrderField! - Field ProjectV2FieldOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ProjectV2FieldOrderField (ENUM): Properties by which project v2 field connections can be ordered. -type ProjectV2FieldOrderField string - -// ProjectV2FieldOrderField_POSITION: Order project v2 fields by position. -const ProjectV2FieldOrderField_POSITION ProjectV2FieldOrderField = "POSITION" - -// ProjectV2FieldOrderField_CREATED_AT: Order project v2 fields by creation time. -const ProjectV2FieldOrderField_CREATED_AT ProjectV2FieldOrderField = "CREATED_AT" - -// ProjectV2FieldOrderField_NAME: Order project v2 fields by name. -const ProjectV2FieldOrderField_NAME ProjectV2FieldOrderField = "NAME" - -// ProjectV2FieldType (ENUM): The type of a project field. -type ProjectV2FieldType string - -// ProjectV2FieldType_ASSIGNEES: Assignees. -const ProjectV2FieldType_ASSIGNEES ProjectV2FieldType = "ASSIGNEES" - -// ProjectV2FieldType_LINKED_PULL_REQUESTS: Linked Pull Requests. -const ProjectV2FieldType_LINKED_PULL_REQUESTS ProjectV2FieldType = "LINKED_PULL_REQUESTS" - -// ProjectV2FieldType_REVIEWERS: Reviewers. -const ProjectV2FieldType_REVIEWERS ProjectV2FieldType = "REVIEWERS" - -// ProjectV2FieldType_LABELS: Labels. -const ProjectV2FieldType_LABELS ProjectV2FieldType = "LABELS" - -// ProjectV2FieldType_MILESTONE: Milestone. -const ProjectV2FieldType_MILESTONE ProjectV2FieldType = "MILESTONE" - -// ProjectV2FieldType_REPOSITORY: Repository. -const ProjectV2FieldType_REPOSITORY ProjectV2FieldType = "REPOSITORY" - -// ProjectV2FieldType_TITLE: Title. -const ProjectV2FieldType_TITLE ProjectV2FieldType = "TITLE" - -// ProjectV2FieldType_TEXT: Text. -const ProjectV2FieldType_TEXT ProjectV2FieldType = "TEXT" - -// ProjectV2FieldType_SINGLE_SELECT: Single Select. -const ProjectV2FieldType_SINGLE_SELECT ProjectV2FieldType = "SINGLE_SELECT" - -// ProjectV2FieldType_NUMBER: Number. -const ProjectV2FieldType_NUMBER ProjectV2FieldType = "NUMBER" - -// ProjectV2FieldType_DATE: Date. -const ProjectV2FieldType_DATE ProjectV2FieldType = "DATE" - -// ProjectV2FieldType_ITERATION: Iteration. -const ProjectV2FieldType_ITERATION ProjectV2FieldType = "ITERATION" - -// ProjectV2FieldType_TASKS: Tasks. -const ProjectV2FieldType_TASKS ProjectV2FieldType = "TASKS" - -// ProjectV2FieldValue (INPUT_OBJECT): The values that can be used to update a field of an item inside a Project. Only 1 value can be updated at a time. -type ProjectV2FieldValue struct { - // Text: The text to set on the field. - // - // GraphQL type: String - Text string `json:"text,omitempty"` - - // Number: The number to set on the field. - // - // GraphQL type: Float - Number float64 `json:"number,omitempty"` - - // Date: The ISO 8601 date to set on the field. - // - // GraphQL type: Date - Date Date `json:"date,omitempty"` - - // SingleSelectOptionId: The id of the single select option to set on the field. - // - // GraphQL type: String - SingleSelectOptionId string `json:"singleSelectOptionId,omitempty"` - - // IterationId: The id of the iteration to set on the field. - // - // GraphQL type: String - IterationId string `json:"iterationId,omitempty"` -} - -// ProjectV2Item (OBJECT): An item within a Project. -type ProjectV2Item struct { - // Content: The content of the referenced draft issue, issue, or pull request. - Content ProjectV2ItemContent `json:"content,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created the item. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // FieldValueByName: A specific field value given a field name. - // - // Query arguments: - // - name String! - FieldValueByName ProjectV2ItemFieldValue `json:"fieldValueByName,omitempty"` - - // FieldValues: List of field values. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ProjectV2ItemFieldValueOrder - FieldValues *ProjectV2ItemFieldValueConnection `json:"fieldValues,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsArchived: Whether the item is archived. - IsArchived bool `json:"isArchived,omitempty"` - - // Project: The project that contains this item. - Project *ProjectV2 `json:"project,omitempty"` - - // Type: The type of the item. - Type ProjectV2ItemType `json:"type,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2Item) GetContent() ProjectV2ItemContent { return x.Content } -func (x *ProjectV2Item) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2Item) GetCreator() Actor { return x.Creator } -func (x *ProjectV2Item) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2Item) GetFieldValueByName() ProjectV2ItemFieldValue { return x.FieldValueByName } -func (x *ProjectV2Item) GetFieldValues() *ProjectV2ItemFieldValueConnection { return x.FieldValues } -func (x *ProjectV2Item) GetId() ID { return x.Id } -func (x *ProjectV2Item) GetIsArchived() bool { return x.IsArchived } -func (x *ProjectV2Item) GetProject() *ProjectV2 { return x.Project } -func (x *ProjectV2Item) GetType() ProjectV2ItemType { return x.Type } -func (x *ProjectV2Item) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2ItemConnection (OBJECT): The connection type for ProjectV2Item. -type ProjectV2ItemConnection struct { - // Edges: A list of edges. - Edges []*ProjectV2ItemEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectV2Item `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectV2ItemConnection) GetEdges() []*ProjectV2ItemEdge { return x.Edges } -func (x *ProjectV2ItemConnection) GetNodes() []*ProjectV2Item { return x.Nodes } -func (x *ProjectV2ItemConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectV2ItemConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectV2ItemContent (UNION): Types that can be inside Project Items. -// ProjectV2ItemContent_Interface: Types that can be inside Project Items. -// -// Possible types: -// -// - *DraftIssue -// - *Issue -// - *PullRequest -type ProjectV2ItemContent_Interface interface { - isProjectV2ItemContent() -} - -func (*DraftIssue) isProjectV2ItemContent() {} -func (*Issue) isProjectV2ItemContent() {} -func (*PullRequest) isProjectV2ItemContent() {} - -type ProjectV2ItemContent struct { - Interface ProjectV2ItemContent_Interface -} - -func (x *ProjectV2ItemContent) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectV2ItemContent) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectV2ItemContent", info.Typename) - case "DraftIssue": - x.Interface = new(DraftIssue) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectV2ItemEdge (OBJECT): An edge in a connection. -type ProjectV2ItemEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectV2Item `json:"node,omitempty"` -} - -func (x *ProjectV2ItemEdge) GetCursor() string { return x.Cursor } -func (x *ProjectV2ItemEdge) GetNode() *ProjectV2Item { return x.Node } - -// ProjectV2ItemFieldDateValue (OBJECT): The value of a date field in a Project item. -type ProjectV2ItemFieldDateValue struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created the item. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Date: Date value for the field. - Date Date `json:"date,omitempty"` - - // Field: The project field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Item: The project item that contains this value. - Item *ProjectV2Item `json:"item,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2ItemFieldDateValue) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2ItemFieldDateValue) GetCreator() Actor { return x.Creator } -func (x *ProjectV2ItemFieldDateValue) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2ItemFieldDateValue) GetDate() Date { return x.Date } -func (x *ProjectV2ItemFieldDateValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldDateValue) GetId() ID { return x.Id } -func (x *ProjectV2ItemFieldDateValue) GetItem() *ProjectV2Item { return x.Item } -func (x *ProjectV2ItemFieldDateValue) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2ItemFieldIterationValue (OBJECT): The value of an iteration field in a Project item. -type ProjectV2ItemFieldIterationValue struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created the item. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Duration: The duration of the iteration in days. - Duration int `json:"duration,omitempty"` - - // Field: The project field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Item: The project item that contains this value. - Item *ProjectV2Item `json:"item,omitempty"` - - // IterationId: The ID of the iteration. - IterationId string `json:"iterationId,omitempty"` - - // StartDate: The start date of the iteration. - StartDate Date `json:"startDate,omitempty"` - - // Title: The title of the iteration. - Title string `json:"title,omitempty"` - - // TitleHTML: The title of the iteration, with HTML. - TitleHTML string `json:"titleHTML,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2ItemFieldIterationValue) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2ItemFieldIterationValue) GetCreator() Actor { return x.Creator } -func (x *ProjectV2ItemFieldIterationValue) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2ItemFieldIterationValue) GetDuration() int { return x.Duration } -func (x *ProjectV2ItemFieldIterationValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldIterationValue) GetId() ID { return x.Id } -func (x *ProjectV2ItemFieldIterationValue) GetItem() *ProjectV2Item { return x.Item } -func (x *ProjectV2ItemFieldIterationValue) GetIterationId() string { return x.IterationId } -func (x *ProjectV2ItemFieldIterationValue) GetStartDate() Date { return x.StartDate } -func (x *ProjectV2ItemFieldIterationValue) GetTitle() string { return x.Title } -func (x *ProjectV2ItemFieldIterationValue) GetTitleHTML() string { return x.TitleHTML } -func (x *ProjectV2ItemFieldIterationValue) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2ItemFieldLabelValue (OBJECT): The value of the labels field in a Project item. -type ProjectV2ItemFieldLabelValue struct { - // Field: The field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Labels: Labels value of a field. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Labels *LabelConnection `json:"labels,omitempty"` -} - -func (x *ProjectV2ItemFieldLabelValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldLabelValue) GetLabels() *LabelConnection { return x.Labels } - -// ProjectV2ItemFieldMilestoneValue (OBJECT): The value of a milestone field in a Project item. -type ProjectV2ItemFieldMilestoneValue struct { - // Field: The field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Milestone: Milestone value of a field. - Milestone *Milestone `json:"milestone,omitempty"` -} - -func (x *ProjectV2ItemFieldMilestoneValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldMilestoneValue) GetMilestone() *Milestone { return x.Milestone } - -// ProjectV2ItemFieldNumberValue (OBJECT): The value of a number field in a Project item. -type ProjectV2ItemFieldNumberValue struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created the item. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Field: The project field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Item: The project item that contains this value. - Item *ProjectV2Item `json:"item,omitempty"` - - // Number: Number as a float(8). - Number float64 `json:"number,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2ItemFieldNumberValue) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2ItemFieldNumberValue) GetCreator() Actor { return x.Creator } -func (x *ProjectV2ItemFieldNumberValue) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2ItemFieldNumberValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldNumberValue) GetId() ID { return x.Id } -func (x *ProjectV2ItemFieldNumberValue) GetItem() *ProjectV2Item { return x.Item } -func (x *ProjectV2ItemFieldNumberValue) GetNumber() float64 { return x.Number } -func (x *ProjectV2ItemFieldNumberValue) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2ItemFieldPullRequestValue (OBJECT): The value of a pull request field in a Project item. -type ProjectV2ItemFieldPullRequestValue struct { - // Field: The field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // PullRequests: The pull requests for this field. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy PullRequestOrder - PullRequests *PullRequestConnection `json:"pullRequests,omitempty"` -} - -func (x *ProjectV2ItemFieldPullRequestValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldPullRequestValue) GetPullRequests() *PullRequestConnection { - return x.PullRequests -} - -// ProjectV2ItemFieldRepositoryValue (OBJECT): The value of a repository field in a Project item. -type ProjectV2ItemFieldRepositoryValue struct { - // Field: The field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Repository: The repository for this field. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *ProjectV2ItemFieldRepositoryValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldRepositoryValue) GetRepository() *Repository { return x.Repository } - -// ProjectV2ItemFieldReviewerValue (OBJECT): The value of a reviewers field in a Project item. -type ProjectV2ItemFieldReviewerValue struct { - // Field: The field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Reviewers: The reviewers for this field. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Reviewers *RequestedReviewerConnection `json:"reviewers,omitempty"` -} - -func (x *ProjectV2ItemFieldReviewerValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldReviewerValue) GetReviewers() *RequestedReviewerConnection { - return x.Reviewers -} - -// ProjectV2ItemFieldSingleSelectValue (OBJECT): The value of a single select field in a Project item. -type ProjectV2ItemFieldSingleSelectValue struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created the item. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Field: The project field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Item: The project item that contains this value. - Item *ProjectV2Item `json:"item,omitempty"` - - // Name: The name of the selected single select option. - Name string `json:"name,omitempty"` - - // NameHTML: The html name of the selected single select option. - NameHTML string `json:"nameHTML,omitempty"` - - // OptionId: The id of the selected single select option. - OptionId string `json:"optionId,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2ItemFieldSingleSelectValue) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2ItemFieldSingleSelectValue) GetCreator() Actor { return x.Creator } -func (x *ProjectV2ItemFieldSingleSelectValue) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2ItemFieldSingleSelectValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldSingleSelectValue) GetId() ID { return x.Id } -func (x *ProjectV2ItemFieldSingleSelectValue) GetItem() *ProjectV2Item { return x.Item } -func (x *ProjectV2ItemFieldSingleSelectValue) GetName() string { return x.Name } -func (x *ProjectV2ItemFieldSingleSelectValue) GetNameHTML() string { return x.NameHTML } -func (x *ProjectV2ItemFieldSingleSelectValue) GetOptionId() string { return x.OptionId } -func (x *ProjectV2ItemFieldSingleSelectValue) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2ItemFieldTextValue (OBJECT): The value of a text field in a Project item. -type ProjectV2ItemFieldTextValue struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created the item. - Creator Actor `json:"creator,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Field: The project field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Item: The project item that contains this value. - Item *ProjectV2Item `json:"item,omitempty"` - - // Text: Text value of a field. - Text string `json:"text,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2ItemFieldTextValue) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2ItemFieldTextValue) GetCreator() Actor { return x.Creator } -func (x *ProjectV2ItemFieldTextValue) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2ItemFieldTextValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldTextValue) GetId() ID { return x.Id } -func (x *ProjectV2ItemFieldTextValue) GetItem() *ProjectV2Item { return x.Item } -func (x *ProjectV2ItemFieldTextValue) GetText() string { return x.Text } -func (x *ProjectV2ItemFieldTextValue) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2ItemFieldUserValue (OBJECT): The value of a user field in a Project item. -type ProjectV2ItemFieldUserValue struct { - // Field: The field that contains this value. - Field ProjectV2FieldConfiguration `json:"field,omitempty"` - - // Users: The users for this field. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Users *UserConnection `json:"users,omitempty"` -} - -func (x *ProjectV2ItemFieldUserValue) GetField() ProjectV2FieldConfiguration { return x.Field } -func (x *ProjectV2ItemFieldUserValue) GetUsers() *UserConnection { return x.Users } - -// ProjectV2ItemFieldValue (UNION): Project field values. -// ProjectV2ItemFieldValue_Interface: Project field values. -// -// Possible types: -// -// - *ProjectV2ItemFieldDateValue -// - *ProjectV2ItemFieldIterationValue -// - *ProjectV2ItemFieldLabelValue -// - *ProjectV2ItemFieldMilestoneValue -// - *ProjectV2ItemFieldNumberValue -// - *ProjectV2ItemFieldPullRequestValue -// - *ProjectV2ItemFieldRepositoryValue -// - *ProjectV2ItemFieldReviewerValue -// - *ProjectV2ItemFieldSingleSelectValue -// - *ProjectV2ItemFieldTextValue -// - *ProjectV2ItemFieldUserValue -type ProjectV2ItemFieldValue_Interface interface { - isProjectV2ItemFieldValue() -} - -func (*ProjectV2ItemFieldDateValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldIterationValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldLabelValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldMilestoneValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldNumberValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldPullRequestValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldRepositoryValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldReviewerValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldSingleSelectValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldTextValue) isProjectV2ItemFieldValue() {} -func (*ProjectV2ItemFieldUserValue) isProjectV2ItemFieldValue() {} - -type ProjectV2ItemFieldValue struct { - Interface ProjectV2ItemFieldValue_Interface -} - -func (x *ProjectV2ItemFieldValue) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectV2ItemFieldValue) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectV2ItemFieldValue", info.Typename) - case "ProjectV2ItemFieldDateValue": - x.Interface = new(ProjectV2ItemFieldDateValue) - case "ProjectV2ItemFieldIterationValue": - x.Interface = new(ProjectV2ItemFieldIterationValue) - case "ProjectV2ItemFieldLabelValue": - x.Interface = new(ProjectV2ItemFieldLabelValue) - case "ProjectV2ItemFieldMilestoneValue": - x.Interface = new(ProjectV2ItemFieldMilestoneValue) - case "ProjectV2ItemFieldNumberValue": - x.Interface = new(ProjectV2ItemFieldNumberValue) - case "ProjectV2ItemFieldPullRequestValue": - x.Interface = new(ProjectV2ItemFieldPullRequestValue) - case "ProjectV2ItemFieldRepositoryValue": - x.Interface = new(ProjectV2ItemFieldRepositoryValue) - case "ProjectV2ItemFieldReviewerValue": - x.Interface = new(ProjectV2ItemFieldReviewerValue) - case "ProjectV2ItemFieldSingleSelectValue": - x.Interface = new(ProjectV2ItemFieldSingleSelectValue) - case "ProjectV2ItemFieldTextValue": - x.Interface = new(ProjectV2ItemFieldTextValue) - case "ProjectV2ItemFieldUserValue": - x.Interface = new(ProjectV2ItemFieldUserValue) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectV2ItemFieldValueCommon (INTERFACE): Common fields across different project field value types. -// ProjectV2ItemFieldValueCommon_Interface: Common fields across different project field value types. -// -// Possible types: -// -// - *ProjectV2ItemFieldDateValue -// - *ProjectV2ItemFieldIterationValue -// - *ProjectV2ItemFieldNumberValue -// - *ProjectV2ItemFieldSingleSelectValue -// - *ProjectV2ItemFieldTextValue -type ProjectV2ItemFieldValueCommon_Interface interface { - isProjectV2ItemFieldValueCommon() - GetCreatedAt() DateTime - GetCreator() Actor - GetDatabaseId() int - GetField() ProjectV2FieldConfiguration - GetId() ID - GetItem() *ProjectV2Item - GetUpdatedAt() DateTime -} - -func (*ProjectV2ItemFieldDateValue) isProjectV2ItemFieldValueCommon() {} -func (*ProjectV2ItemFieldIterationValue) isProjectV2ItemFieldValueCommon() {} -func (*ProjectV2ItemFieldNumberValue) isProjectV2ItemFieldValueCommon() {} -func (*ProjectV2ItemFieldSingleSelectValue) isProjectV2ItemFieldValueCommon() {} -func (*ProjectV2ItemFieldTextValue) isProjectV2ItemFieldValueCommon() {} - -type ProjectV2ItemFieldValueCommon struct { - Interface ProjectV2ItemFieldValueCommon_Interface -} - -func (x *ProjectV2ItemFieldValueCommon) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectV2ItemFieldValueCommon) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectV2ItemFieldValueCommon", info.Typename) - case "ProjectV2ItemFieldDateValue": - x.Interface = new(ProjectV2ItemFieldDateValue) - case "ProjectV2ItemFieldIterationValue": - x.Interface = new(ProjectV2ItemFieldIterationValue) - case "ProjectV2ItemFieldNumberValue": - x.Interface = new(ProjectV2ItemFieldNumberValue) - case "ProjectV2ItemFieldSingleSelectValue": - x.Interface = new(ProjectV2ItemFieldSingleSelectValue) - case "ProjectV2ItemFieldTextValue": - x.Interface = new(ProjectV2ItemFieldTextValue) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectV2ItemFieldValueConnection (OBJECT): The connection type for ProjectV2ItemFieldValue. -type ProjectV2ItemFieldValueConnection struct { - // Edges: A list of edges. - Edges []*ProjectV2ItemFieldValueEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []ProjectV2ItemFieldValue `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectV2ItemFieldValueConnection) GetEdges() []*ProjectV2ItemFieldValueEdge { return x.Edges } -func (x *ProjectV2ItemFieldValueConnection) GetNodes() []ProjectV2ItemFieldValue { return x.Nodes } -func (x *ProjectV2ItemFieldValueConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectV2ItemFieldValueConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectV2ItemFieldValueEdge (OBJECT): An edge in a connection. -type ProjectV2ItemFieldValueEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node ProjectV2ItemFieldValue `json:"node,omitempty"` -} - -func (x *ProjectV2ItemFieldValueEdge) GetCursor() string { return x.Cursor } -func (x *ProjectV2ItemFieldValueEdge) GetNode() ProjectV2ItemFieldValue { return x.Node } - -// ProjectV2ItemFieldValueOrder (INPUT_OBJECT): Ordering options for project v2 item field value connections. -type ProjectV2ItemFieldValueOrder struct { - // Field: The field to order the project v2 item field values by. - // - // GraphQL type: ProjectV2ItemFieldValueOrderField! - Field ProjectV2ItemFieldValueOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ProjectV2ItemFieldValueOrderField (ENUM): Properties by which project v2 item field value connections can be ordered. -type ProjectV2ItemFieldValueOrderField string - -// ProjectV2ItemFieldValueOrderField_POSITION: Order project v2 item field values by the their position in the project. -const ProjectV2ItemFieldValueOrderField_POSITION ProjectV2ItemFieldValueOrderField = "POSITION" - -// ProjectV2ItemOrder (INPUT_OBJECT): Ordering options for project v2 item connections. -type ProjectV2ItemOrder struct { - // Field: The field to order the project v2 items by. - // - // GraphQL type: ProjectV2ItemOrderField! - Field ProjectV2ItemOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ProjectV2ItemOrderField (ENUM): Properties by which project v2 item connections can be ordered. -type ProjectV2ItemOrderField string - -// ProjectV2ItemOrderField_POSITION: Order project v2 items by the their position in the project. -const ProjectV2ItemOrderField_POSITION ProjectV2ItemOrderField = "POSITION" - -// ProjectV2ItemType (ENUM): The type of a project item. -type ProjectV2ItemType string - -// ProjectV2ItemType_ISSUE: Issue. -const ProjectV2ItemType_ISSUE ProjectV2ItemType = "ISSUE" - -// ProjectV2ItemType_PULL_REQUEST: Pull Request. -const ProjectV2ItemType_PULL_REQUEST ProjectV2ItemType = "PULL_REQUEST" - -// ProjectV2ItemType_DRAFT_ISSUE: Draft Issue. -const ProjectV2ItemType_DRAFT_ISSUE ProjectV2ItemType = "DRAFT_ISSUE" - -// ProjectV2ItemType_REDACTED: Redacted Item. -const ProjectV2ItemType_REDACTED ProjectV2ItemType = "REDACTED" - -// ProjectV2IterationField (OBJECT): An iteration field inside a project. -type ProjectV2IterationField struct { - // Configuration: Iteration configuration settings. - Configuration *ProjectV2IterationFieldConfiguration `json:"configuration,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DataType: The field's type. - DataType ProjectV2FieldType `json:"dataType,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The project field's name. - Name string `json:"name,omitempty"` - - // Project: The project that contains this field. - Project *ProjectV2 `json:"project,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2IterationField) GetConfiguration() *ProjectV2IterationFieldConfiguration { - return x.Configuration -} -func (x *ProjectV2IterationField) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2IterationField) GetDataType() ProjectV2FieldType { return x.DataType } -func (x *ProjectV2IterationField) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2IterationField) GetId() ID { return x.Id } -func (x *ProjectV2IterationField) GetName() string { return x.Name } -func (x *ProjectV2IterationField) GetProject() *ProjectV2 { return x.Project } -func (x *ProjectV2IterationField) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2IterationFieldConfiguration (OBJECT): Iteration field configuration for a project. -type ProjectV2IterationFieldConfiguration struct { - // CompletedIterations: The iteration's completed iterations. - CompletedIterations []*ProjectV2IterationFieldIteration `json:"completedIterations,omitempty"` - - // Duration: The iteration's duration in days. - Duration int `json:"duration,omitempty"` - - // Iterations: The iteration's iterations. - Iterations []*ProjectV2IterationFieldIteration `json:"iterations,omitempty"` - - // StartDay: The iteration's start day of the week. - StartDay int `json:"startDay,omitempty"` -} - -func (x *ProjectV2IterationFieldConfiguration) GetCompletedIterations() []*ProjectV2IterationFieldIteration { - return x.CompletedIterations -} -func (x *ProjectV2IterationFieldConfiguration) GetDuration() int { return x.Duration } -func (x *ProjectV2IterationFieldConfiguration) GetIterations() []*ProjectV2IterationFieldIteration { - return x.Iterations -} -func (x *ProjectV2IterationFieldConfiguration) GetStartDay() int { return x.StartDay } - -// ProjectV2IterationFieldIteration (OBJECT): Iteration field iteration settings for a project. -type ProjectV2IterationFieldIteration struct { - // Duration: The iteration's duration in days. - Duration int `json:"duration,omitempty"` - - // Id: The iteration's ID. - Id string `json:"id,omitempty"` - - // StartDate: The iteration's start date. - StartDate Date `json:"startDate,omitempty"` - - // Title: The iteration's title. - Title string `json:"title,omitempty"` - - // TitleHTML: The iteration's html title. - TitleHTML string `json:"titleHTML,omitempty"` -} - -func (x *ProjectV2IterationFieldIteration) GetDuration() int { return x.Duration } -func (x *ProjectV2IterationFieldIteration) GetId() string { return x.Id } -func (x *ProjectV2IterationFieldIteration) GetStartDate() Date { return x.StartDate } -func (x *ProjectV2IterationFieldIteration) GetTitle() string { return x.Title } -func (x *ProjectV2IterationFieldIteration) GetTitleHTML() string { return x.TitleHTML } - -// ProjectV2Order (INPUT_OBJECT): Ways in which lists of projects can be ordered upon return. -type ProjectV2Order struct { - // Field: The field in which to order projects by. - // - // GraphQL type: ProjectV2OrderField! - Field ProjectV2OrderField `json:"field,omitempty"` - - // Direction: The direction in which to order projects by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ProjectV2OrderField (ENUM): Properties by which projects can be ordered. -type ProjectV2OrderField string - -// ProjectV2OrderField_TITLE: The project's title. -const ProjectV2OrderField_TITLE ProjectV2OrderField = "TITLE" - -// ProjectV2OrderField_NUMBER: The project's number. -const ProjectV2OrderField_NUMBER ProjectV2OrderField = "NUMBER" - -// ProjectV2OrderField_UPDATED_AT: The project's date and time of update. -const ProjectV2OrderField_UPDATED_AT ProjectV2OrderField = "UPDATED_AT" - -// ProjectV2OrderField_CREATED_AT: The project's date and time of creation. -const ProjectV2OrderField_CREATED_AT ProjectV2OrderField = "CREATED_AT" - -// ProjectV2Owner (INTERFACE): Represents an owner of a project (beta). -// ProjectV2Owner_Interface: Represents an owner of a project (beta). -// -// Possible types: -// -// - *Issue -// - *Organization -// - *PullRequest -// - *User -type ProjectV2Owner_Interface interface { - isProjectV2Owner() - GetId() ID - GetProjectV2() *ProjectV2 - GetProjectsV2() *ProjectV2Connection -} - -func (*Issue) isProjectV2Owner() {} -func (*Organization) isProjectV2Owner() {} -func (*PullRequest) isProjectV2Owner() {} -func (*User) isProjectV2Owner() {} - -type ProjectV2Owner struct { - Interface ProjectV2Owner_Interface -} - -func (x *ProjectV2Owner) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectV2Owner) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectV2Owner", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "Organization": - x.Interface = new(Organization) - case "PullRequest": - x.Interface = new(PullRequest) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectV2Recent (INTERFACE): Recent projects for the owner. -// ProjectV2Recent_Interface: Recent projects for the owner. -// -// Possible types: -// -// - *Organization -// - *Repository -// - *User -type ProjectV2Recent_Interface interface { - isProjectV2Recent() - GetRecentProjects() *ProjectV2Connection -} - -func (*Organization) isProjectV2Recent() {} -func (*Repository) isProjectV2Recent() {} -func (*User) isProjectV2Recent() {} - -type ProjectV2Recent struct { - Interface ProjectV2Recent_Interface -} - -func (x *ProjectV2Recent) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ProjectV2Recent) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ProjectV2Recent", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "Repository": - x.Interface = new(Repository) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// ProjectV2SingleSelectField (OBJECT): A single select field inside a project. -type ProjectV2SingleSelectField struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DataType: The field's type. - DataType ProjectV2FieldType `json:"dataType,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The project field's name. - Name string `json:"name,omitempty"` - - // Options: Options for the single select field. - Options []*ProjectV2SingleSelectFieldOption `json:"options,omitempty"` - - // Project: The project that contains this field. - Project *ProjectV2 `json:"project,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *ProjectV2SingleSelectField) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2SingleSelectField) GetDataType() ProjectV2FieldType { return x.DataType } -func (x *ProjectV2SingleSelectField) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2SingleSelectField) GetId() ID { return x.Id } -func (x *ProjectV2SingleSelectField) GetName() string { return x.Name } -func (x *ProjectV2SingleSelectField) GetOptions() []*ProjectV2SingleSelectFieldOption { - return x.Options -} -func (x *ProjectV2SingleSelectField) GetProject() *ProjectV2 { return x.Project } -func (x *ProjectV2SingleSelectField) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// ProjectV2SingleSelectFieldOption (OBJECT): Single select field option for a configuration for a project. -type ProjectV2SingleSelectFieldOption struct { - // Id: The option's ID. - Id string `json:"id,omitempty"` - - // Name: The option's name. - Name string `json:"name,omitempty"` - - // NameHTML: The option's html name. - NameHTML string `json:"nameHTML,omitempty"` -} - -func (x *ProjectV2SingleSelectFieldOption) GetId() string { return x.Id } -func (x *ProjectV2SingleSelectFieldOption) GetName() string { return x.Name } -func (x *ProjectV2SingleSelectFieldOption) GetNameHTML() string { return x.NameHTML } - -// ProjectV2SortBy (OBJECT): Represents a sort by field and direction. -type ProjectV2SortBy struct { - // Direction: The direction of the sorting. Possible values are ASC and DESC. - Direction OrderDirection `json:"direction,omitempty"` - - // Field: The field by which items are sorted. - Field *ProjectV2Field `json:"field,omitempty"` -} - -func (x *ProjectV2SortBy) GetDirection() OrderDirection { return x.Direction } -func (x *ProjectV2SortBy) GetField() *ProjectV2Field { return x.Field } - -// ProjectV2SortByConnection (OBJECT): The connection type for ProjectV2SortBy. -type ProjectV2SortByConnection struct { - // Edges: A list of edges. - Edges []*ProjectV2SortByEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectV2SortBy `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectV2SortByConnection) GetEdges() []*ProjectV2SortByEdge { return x.Edges } -func (x *ProjectV2SortByConnection) GetNodes() []*ProjectV2SortBy { return x.Nodes } -func (x *ProjectV2SortByConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectV2SortByConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectV2SortByEdge (OBJECT): An edge in a connection. -type ProjectV2SortByEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectV2SortBy `json:"node,omitempty"` -} - -func (x *ProjectV2SortByEdge) GetCursor() string { return x.Cursor } -func (x *ProjectV2SortByEdge) GetNode() *ProjectV2SortBy { return x.Node } - -// ProjectV2View (OBJECT): A view within a ProjectV2. -type ProjectV2View struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Filter: The project view's filter. - Filter string `json:"filter,omitempty"` - - // GroupBy: The view's group-by field. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ProjectV2FieldOrder - GroupBy *ProjectV2FieldConnection `json:"groupBy,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Layout: The project view's layout. - Layout ProjectV2ViewLayout `json:"layout,omitempty"` - - // Name: The project view's name. - Name string `json:"name,omitempty"` - - // Number: The project view's number. - Number int `json:"number,omitempty"` - - // Project: The project that contains this view. - Project *ProjectV2 `json:"project,omitempty"` - - // SortBy: The view's sort-by config. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - SortBy *ProjectV2SortByConnection `json:"sortBy,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // VerticalGroupBy: The view's vertical-group-by field. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ProjectV2FieldOrder - VerticalGroupBy *ProjectV2FieldConnection `json:"verticalGroupBy,omitempty"` - - // VisibleFields: The view's visible fields. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ProjectV2FieldOrder - VisibleFields *ProjectV2FieldConnection `json:"visibleFields,omitempty"` -} - -func (x *ProjectV2View) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectV2View) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectV2View) GetFilter() string { return x.Filter } -func (x *ProjectV2View) GetGroupBy() *ProjectV2FieldConnection { return x.GroupBy } -func (x *ProjectV2View) GetId() ID { return x.Id } -func (x *ProjectV2View) GetLayout() ProjectV2ViewLayout { return x.Layout } -func (x *ProjectV2View) GetName() string { return x.Name } -func (x *ProjectV2View) GetNumber() int { return x.Number } -func (x *ProjectV2View) GetProject() *ProjectV2 { return x.Project } -func (x *ProjectV2View) GetSortBy() *ProjectV2SortByConnection { return x.SortBy } -func (x *ProjectV2View) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *ProjectV2View) GetVerticalGroupBy() *ProjectV2FieldConnection { return x.VerticalGroupBy } -func (x *ProjectV2View) GetVisibleFields() *ProjectV2FieldConnection { return x.VisibleFields } - -// ProjectV2ViewConnection (OBJECT): The connection type for ProjectV2View. -type ProjectV2ViewConnection struct { - // Edges: A list of edges. - Edges []*ProjectV2ViewEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectV2View `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectV2ViewConnection) GetEdges() []*ProjectV2ViewEdge { return x.Edges } -func (x *ProjectV2ViewConnection) GetNodes() []*ProjectV2View { return x.Nodes } -func (x *ProjectV2ViewConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectV2ViewConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectV2ViewEdge (OBJECT): An edge in a connection. -type ProjectV2ViewEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectV2View `json:"node,omitempty"` -} - -func (x *ProjectV2ViewEdge) GetCursor() string { return x.Cursor } -func (x *ProjectV2ViewEdge) GetNode() *ProjectV2View { return x.Node } - -// ProjectV2ViewLayout (ENUM): The layout of a project v2 view. -type ProjectV2ViewLayout string - -// ProjectV2ViewLayout_BOARD_LAYOUT: Board layout. -const ProjectV2ViewLayout_BOARD_LAYOUT ProjectV2ViewLayout = "BOARD_LAYOUT" - -// ProjectV2ViewLayout_TABLE_LAYOUT: Table layout. -const ProjectV2ViewLayout_TABLE_LAYOUT ProjectV2ViewLayout = "TABLE_LAYOUT" - -// ProjectV2ViewOrder (INPUT_OBJECT): Ordering options for project v2 view connections. -type ProjectV2ViewOrder struct { - // Field: The field to order the project v2 views by. - // - // GraphQL type: ProjectV2ViewOrderField! - Field ProjectV2ViewOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ProjectV2ViewOrderField (ENUM): Properties by which project v2 view connections can be ordered. -type ProjectV2ViewOrderField string - -// ProjectV2ViewOrderField_POSITION: Order project v2 views by position. -const ProjectV2ViewOrderField_POSITION ProjectV2ViewOrderField = "POSITION" - -// ProjectV2ViewOrderField_CREATED_AT: Order project v2 views by creation time. -const ProjectV2ViewOrderField_CREATED_AT ProjectV2ViewOrderField = "CREATED_AT" - -// ProjectV2ViewOrderField_NAME: Order project v2 views by name. -const ProjectV2ViewOrderField_NAME ProjectV2ViewOrderField = "NAME" - -// ProjectView (OBJECT): A view within a Project. -type ProjectView struct { - // CreatedAt: Identifies the date and time when the object was created. - // - // Deprecated: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - // - // Deprecated: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Filter: The project view's filter. - // - // Deprecated: The project view's filter. - Filter string `json:"filter,omitempty"` - - // GroupBy: The view's group-by field. - // - // Deprecated: The view's group-by field. - GroupBy []int `json:"groupBy,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Layout: The project view's layout. - // - // Deprecated: The project view's layout. - Layout ProjectViewLayout `json:"layout,omitempty"` - - // Name: The project view's name. - // - // Deprecated: The project view's name. - Name string `json:"name,omitempty"` - - // Number: The project view's number. - // - // Deprecated: The project view's number. - Number int `json:"number,omitempty"` - - // Project: The project that contains this view. - // - // Deprecated: The project that contains this view. - Project *ProjectNext `json:"project,omitempty"` - - // SortBy: The view's sort-by config. - // - // Deprecated: The view's sort-by config. - SortBy []*SortBy `json:"sortBy,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - // - // Deprecated: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // VerticalGroupBy: The view's vertical-group-by field. - // - // Deprecated: The view's vertical-group-by field. - VerticalGroupBy []int `json:"verticalGroupBy,omitempty"` - - // VisibleFields: The view's visible fields. - // - // Deprecated: The view's visible fields. - VisibleFields []int `json:"visibleFields,omitempty"` -} - -func (x *ProjectView) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ProjectView) GetDatabaseId() int { return x.DatabaseId } -func (x *ProjectView) GetFilter() string { return x.Filter } -func (x *ProjectView) GetGroupBy() []int { return x.GroupBy } -func (x *ProjectView) GetId() ID { return x.Id } -func (x *ProjectView) GetLayout() ProjectViewLayout { return x.Layout } -func (x *ProjectView) GetName() string { return x.Name } -func (x *ProjectView) GetNumber() int { return x.Number } -func (x *ProjectView) GetProject() *ProjectNext { return x.Project } -func (x *ProjectView) GetSortBy() []*SortBy { return x.SortBy } -func (x *ProjectView) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *ProjectView) GetVerticalGroupBy() []int { return x.VerticalGroupBy } -func (x *ProjectView) GetVisibleFields() []int { return x.VisibleFields } - -// ProjectViewConnection (OBJECT): The connection type for ProjectView. -type ProjectViewConnection struct { - // Edges: A list of edges. - Edges []*ProjectViewEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ProjectView `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ProjectViewConnection) GetEdges() []*ProjectViewEdge { return x.Edges } -func (x *ProjectViewConnection) GetNodes() []*ProjectView { return x.Nodes } -func (x *ProjectViewConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ProjectViewConnection) GetTotalCount() int { return x.TotalCount } - -// ProjectViewEdge (OBJECT): An edge in a connection. -type ProjectViewEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ProjectView `json:"node,omitempty"` -} - -func (x *ProjectViewEdge) GetCursor() string { return x.Cursor } -func (x *ProjectViewEdge) GetNode() *ProjectView { return x.Node } - -// ProjectViewLayout (ENUM): The layout of a project view. -type ProjectViewLayout string - -// ProjectViewLayout_BOARD_LAYOUT: Board layout. -const ProjectViewLayout_BOARD_LAYOUT ProjectViewLayout = "BOARD_LAYOUT" - -// ProjectViewLayout_TABLE_LAYOUT: Table layout. -const ProjectViewLayout_TABLE_LAYOUT ProjectViewLayout = "TABLE_LAYOUT" - -// PublicKey (OBJECT): A user's public key. -type PublicKey struct { - // AccessedAt: The last time this authorization was used to perform an action. Values will be null for keys not owned by the user. - AccessedAt DateTime `json:"accessedAt,omitempty"` - - // CreatedAt: Identifies the date and time when the key was created. Keys created before March 5th, 2014 have inaccurate values. Values will be null for keys not owned by the user. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Fingerprint: The fingerprint for this PublicKey. - Fingerprint string `json:"fingerprint,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsReadOnly: Whether this PublicKey is read-only or not. Values will be null for keys not owned by the user. - IsReadOnly bool `json:"isReadOnly,omitempty"` - - // Key: The public key string. - Key string `json:"key,omitempty"` - - // UpdatedAt: Identifies the date and time when the key was updated. Keys created before March 5th, 2014 may have inaccurate values. Values will be null for keys not owned by the user. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *PublicKey) GetAccessedAt() DateTime { return x.AccessedAt } -func (x *PublicKey) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *PublicKey) GetFingerprint() string { return x.Fingerprint } -func (x *PublicKey) GetId() ID { return x.Id } -func (x *PublicKey) GetIsReadOnly() bool { return x.IsReadOnly } -func (x *PublicKey) GetKey() string { return x.Key } -func (x *PublicKey) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// PublicKeyConnection (OBJECT): The connection type for PublicKey. -type PublicKeyConnection struct { - // Edges: A list of edges. - Edges []*PublicKeyEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PublicKey `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PublicKeyConnection) GetEdges() []*PublicKeyEdge { return x.Edges } -func (x *PublicKeyConnection) GetNodes() []*PublicKey { return x.Nodes } -func (x *PublicKeyConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PublicKeyConnection) GetTotalCount() int { return x.TotalCount } - -// PublicKeyEdge (OBJECT): An edge in a connection. -type PublicKeyEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PublicKey `json:"node,omitempty"` -} - -func (x *PublicKeyEdge) GetCursor() string { return x.Cursor } -func (x *PublicKeyEdge) GetNode() *PublicKey { return x.Node } - -// PullRequest (OBJECT): A repository pull request. -type PullRequest struct { - // ActiveLockReason: Reason that the conversation was locked. - ActiveLockReason LockReason `json:"activeLockReason,omitempty"` - - // Additions: The number of additions in this pull request. - Additions int `json:"additions,omitempty"` - - // Assignees: A list of Users assigned to this object. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Assignees *UserConnection `json:"assignees,omitempty"` - - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the subject of the comment. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // AutoMergeRequest: Returns the auto-merge request object if one exists for this pull request. - AutoMergeRequest *AutoMergeRequest `json:"autoMergeRequest,omitempty"` - - // BaseRef: Identifies the base Ref associated with the pull request. - BaseRef *Ref `json:"baseRef,omitempty"` - - // BaseRefName: Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. - BaseRefName string `json:"baseRefName,omitempty"` - - // BaseRefOid: Identifies the oid of the base ref associated with the pull request, even if the ref has been deleted. - BaseRefOid GitObjectID `json:"baseRefOid,omitempty"` - - // BaseRepository: The repository associated with this pull request's base Ref. - BaseRepository *Repository `json:"baseRepository,omitempty"` - - // Body: The body as Markdown. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // ChangedFiles: The number of changed files in this pull request. - ChangedFiles int `json:"changedFiles,omitempty"` - - // ChecksResourcePath: The HTTP path for the checks of this pull request. - ChecksResourcePath URI `json:"checksResourcePath,omitempty"` - - // ChecksUrl: The HTTP URL for the checks of this pull request. - ChecksUrl URI `json:"checksUrl,omitempty"` - - // Closed: `true` if the pull request is closed. - Closed bool `json:"closed,omitempty"` - - // ClosedAt: Identifies the date and time when the object was closed. - ClosedAt DateTime `json:"closedAt,omitempty"` - - // ClosingIssuesReferences: List of issues that were may be closed by this pull request. - // - // Query arguments: - // - userLinkedOnly Boolean - // - after String - // - before String - // - first Int - // - last Int - // - orderBy IssueOrder - ClosingIssuesReferences *IssueConnection `json:"closingIssuesReferences,omitempty"` - - // Comments: A list of comments associated with the pull request. - // - // Query arguments: - // - orderBy IssueCommentOrder - // - after String - // - before String - // - first Int - // - last Int - Comments *IssueCommentConnection `json:"comments,omitempty"` - - // Commits: A list of commits present in this pull request's head branch not present in the base branch. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Commits *PullRequestCommitConnection `json:"commits,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Deletions: The number of deletions in this pull request. - Deletions int `json:"deletions,omitempty"` - - // Editor: The actor who edited this pull request's body. - Editor Actor `json:"editor,omitempty"` - - // Files: Lists the files changed within this pull request. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Files *PullRequestChangedFileConnection `json:"files,omitempty"` - - // HeadRef: Identifies the head Ref associated with the pull request. - HeadRef *Ref `json:"headRef,omitempty"` - - // HeadRefName: Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. - HeadRefName string `json:"headRefName,omitempty"` - - // HeadRefOid: Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. - HeadRefOid GitObjectID `json:"headRefOid,omitempty"` - - // HeadRepository: The repository associated with this pull request's head Ref. - HeadRepository *Repository `json:"headRepository,omitempty"` - - // HeadRepositoryOwner: The owner of the repository associated with this pull request's head Ref. - HeadRepositoryOwner RepositoryOwner `json:"headRepositoryOwner,omitempty"` - - // Hovercard: The hovercard information for this issue. - // - // Query arguments: - // - includeNotificationContexts Boolean - Hovercard *Hovercard `json:"hovercard,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // IsCrossRepository: The head and base repositories are different. - IsCrossRepository bool `json:"isCrossRepository,omitempty"` - - // IsDraft: Identifies if the pull request is a draft. - IsDraft bool `json:"isDraft,omitempty"` - - // IsReadByViewer: Is this pull request read by the viewer. - IsReadByViewer bool `json:"isReadByViewer,omitempty"` - - // Labels: A list of labels associated with the object. - // - // Query arguments: - // - orderBy LabelOrder - // - after String - // - before String - // - first Int - // - last Int - Labels *LabelConnection `json:"labels,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // LatestOpinionatedReviews: A list of latest reviews per user associated with the pull request. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - writersOnly Boolean - LatestOpinionatedReviews *PullRequestReviewConnection `json:"latestOpinionatedReviews,omitempty"` - - // LatestReviews: A list of latest reviews per user associated with the pull request that are not also pending review. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - LatestReviews *PullRequestReviewConnection `json:"latestReviews,omitempty"` - - // Locked: `true` if the pull request is locked. - Locked bool `json:"locked,omitempty"` - - // MaintainerCanModify: Indicates whether maintainers can modify the pull request. - MaintainerCanModify bool `json:"maintainerCanModify,omitempty"` - - // MergeCommit: The commit that was created when this pull request was merged. - MergeCommit *Commit `json:"mergeCommit,omitempty"` - - // Mergeable: Whether or not the pull request can be merged based on the existence of merge conflicts. - Mergeable MergeableState `json:"mergeable,omitempty"` - - // Merged: Whether or not the pull request was merged. - Merged bool `json:"merged,omitempty"` - - // MergedAt: The date and time that the pull request was merged. - MergedAt DateTime `json:"mergedAt,omitempty"` - - // MergedBy: The actor who merged the pull request. - MergedBy Actor `json:"mergedBy,omitempty"` - - // Milestone: Identifies the milestone associated with the pull request. - Milestone *Milestone `json:"milestone,omitempty"` - - // Number: Identifies the pull request number. - Number int `json:"number,omitempty"` - - // Participants: A list of Users that are participating in the Pull Request conversation. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Participants *UserConnection `json:"participants,omitempty"` - - // Permalink: The permalink to the pull request. - Permalink URI `json:"permalink,omitempty"` - - // PotentialMergeCommit: The commit that GitHub automatically generated to test if this pull request could be merged. This field will not return a value if the pull request is merged, or if the test merge commit is still being generated. See the `mergeable` field for more details on the mergeability of the pull request. - PotentialMergeCommit *Commit `json:"potentialMergeCommit,omitempty"` - - // ProjectCards: List of project cards associated with this pull request. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - archivedStates [ProjectCardArchivedState] - ProjectCards *ProjectCardConnection `json:"projectCards,omitempty"` - - // ProjectItems: List of project items associated with this pull request. - // - // Query arguments: - // - includeArchived Boolean - // - after String - // - before String - // - first Int - // - last Int - ProjectItems *ProjectV2ItemConnection `json:"projectItems,omitempty"` - - // ProjectNext: Find a project by project (beta) number. - // - // Deprecated: Find a project by project (beta) number. - // - // Query arguments: - // - number Int! - ProjectNext *ProjectNext `json:"projectNext,omitempty"` - - // ProjectNextItems: List of project (beta) items associated with this pull request. - // - // Deprecated: List of project (beta) items associated with this pull request. - // - // Query arguments: - // - includeArchived Boolean - // - after String - // - before String - // - first Int - // - last Int - ProjectNextItems *ProjectNextItemConnection `json:"projectNextItems,omitempty"` - - // ProjectV2: Find a project by number. - // - // Query arguments: - // - number Int! - ProjectV2 *ProjectV2 `json:"projectV2,omitempty"` - - // ProjectsNext: A list of projects (beta) under the owner. - // - // Deprecated: A list of projects (beta) under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - sortBy ProjectNextOrderField - ProjectsNext *ProjectNextConnection `json:"projectsNext,omitempty"` - - // ProjectsV2: A list of projects under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - orderBy ProjectV2Order - ProjectsV2 *ProjectV2Connection `json:"projectsV2,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this pull request. - ResourcePath URI `json:"resourcePath,omitempty"` - - // RevertResourcePath: The HTTP path for reverting this pull request. - RevertResourcePath URI `json:"revertResourcePath,omitempty"` - - // RevertUrl: The HTTP URL for reverting this pull request. - RevertUrl URI `json:"revertUrl,omitempty"` - - // ReviewDecision: The current status of this pull request with respect to code review. - ReviewDecision PullRequestReviewDecision `json:"reviewDecision,omitempty"` - - // ReviewRequests: A list of review requests associated with the pull request. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - ReviewRequests *ReviewRequestConnection `json:"reviewRequests,omitempty"` - - // ReviewThreads: The list of all review threads for this pull request. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - ReviewThreads *PullRequestReviewThreadConnection `json:"reviewThreads,omitempty"` - - // Reviews: A list of reviews associated with the pull request. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - states [PullRequestReviewState!] - // - author String - Reviews *PullRequestReviewConnection `json:"reviews,omitempty"` - - // State: Identifies the state of the pull request. - State PullRequestState `json:"state,omitempty"` - - // SuggestedReviewers: A list of reviewer suggestions based on commit history and past review comments. - SuggestedReviewers []*SuggestedReviewer `json:"suggestedReviewers,omitempty"` - - // Timeline: A list of events, comments, commits, etc. associated with the pull request. - // - // Deprecated: A list of events, comments, commits, etc. associated with the pull request. - // - // Query arguments: - // - since DateTime - // - after String - // - before String - // - first Int - // - last Int - Timeline *PullRequestTimelineConnection `json:"timeline,omitempty"` - - // TimelineItems: A list of events, comments, commits, etc. associated with the pull request. - // - // Query arguments: - // - since DateTime - // - skip Int - // - itemTypes [PullRequestTimelineItemsItemType!] - // - after String - // - before String - // - first Int - // - last Int - TimelineItems *PullRequestTimelineItemsConnection `json:"timelineItems,omitempty"` - - // Title: Identifies the pull request title. - Title string `json:"title,omitempty"` - - // TitleHTML: Identifies the pull request title rendered to HTML. - TitleHTML template.HTML `json:"titleHTML,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this pull request. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanApplySuggestion: Whether or not the viewer can apply suggestion. - ViewerCanApplySuggestion bool `json:"viewerCanApplySuggestion,omitempty"` - - // ViewerCanDeleteHeadRef: Check if the viewer can restore the deleted head ref. - ViewerCanDeleteHeadRef bool `json:"viewerCanDeleteHeadRef,omitempty"` - - // ViewerCanDisableAutoMerge: Whether or not the viewer can disable auto-merge. - ViewerCanDisableAutoMerge bool `json:"viewerCanDisableAutoMerge,omitempty"` - - // ViewerCanEditFiles: Can the viewer edit files within this pull request. - ViewerCanEditFiles bool `json:"viewerCanEditFiles,omitempty"` - - // ViewerCanEnableAutoMerge: Whether or not the viewer can enable auto-merge. - ViewerCanEnableAutoMerge bool `json:"viewerCanEnableAutoMerge,omitempty"` - - // ViewerCanMergeAsAdmin: Indicates whether the viewer can bypass branch protections and merge the pull request immediately. - ViewerCanMergeAsAdmin bool `json:"viewerCanMergeAsAdmin,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanSubscribe: Check if the viewer is able to change their subscription status for the repository. - ViewerCanSubscribe bool `json:"viewerCanSubscribe,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` - - // ViewerLatestReview: The latest review given from the viewer. - ViewerLatestReview *PullRequestReview `json:"viewerLatestReview,omitempty"` - - // ViewerLatestReviewRequest: The person who has requested the viewer for review on this pull request. - ViewerLatestReviewRequest *ReviewRequest `json:"viewerLatestReviewRequest,omitempty"` - - // ViewerMergeBodyText: The merge body text for the viewer and method. - // - // Query arguments: - // - mergeType PullRequestMergeMethod - ViewerMergeBodyText string `json:"viewerMergeBodyText,omitempty"` - - // ViewerMergeHeadlineText: The merge headline text for the viewer and method. - // - // Query arguments: - // - mergeType PullRequestMergeMethod - ViewerMergeHeadlineText string `json:"viewerMergeHeadlineText,omitempty"` - - // ViewerSubscription: Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - ViewerSubscription SubscriptionState `json:"viewerSubscription,omitempty"` -} - -func (x *PullRequest) GetActiveLockReason() LockReason { return x.ActiveLockReason } -func (x *PullRequest) GetAdditions() int { return x.Additions } -func (x *PullRequest) GetAssignees() *UserConnection { return x.Assignees } -func (x *PullRequest) GetAuthor() Actor { return x.Author } -func (x *PullRequest) GetAuthorAssociation() CommentAuthorAssociation { return x.AuthorAssociation } -func (x *PullRequest) GetAutoMergeRequest() *AutoMergeRequest { return x.AutoMergeRequest } -func (x *PullRequest) GetBaseRef() *Ref { return x.BaseRef } -func (x *PullRequest) GetBaseRefName() string { return x.BaseRefName } -func (x *PullRequest) GetBaseRefOid() GitObjectID { return x.BaseRefOid } -func (x *PullRequest) GetBaseRepository() *Repository { return x.BaseRepository } -func (x *PullRequest) GetBody() string { return x.Body } -func (x *PullRequest) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *PullRequest) GetBodyText() string { return x.BodyText } -func (x *PullRequest) GetChangedFiles() int { return x.ChangedFiles } -func (x *PullRequest) GetChecksResourcePath() URI { return x.ChecksResourcePath } -func (x *PullRequest) GetChecksUrl() URI { return x.ChecksUrl } -func (x *PullRequest) GetClosed() bool { return x.Closed } -func (x *PullRequest) GetClosedAt() DateTime { return x.ClosedAt } -func (x *PullRequest) GetClosingIssuesReferences() *IssueConnection { return x.ClosingIssuesReferences } -func (x *PullRequest) GetComments() *IssueCommentConnection { return x.Comments } -func (x *PullRequest) GetCommits() *PullRequestCommitConnection { return x.Commits } -func (x *PullRequest) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *PullRequest) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *PullRequest) GetDatabaseId() int { return x.DatabaseId } -func (x *PullRequest) GetDeletions() int { return x.Deletions } -func (x *PullRequest) GetEditor() Actor { return x.Editor } -func (x *PullRequest) GetFiles() *PullRequestChangedFileConnection { return x.Files } -func (x *PullRequest) GetHeadRef() *Ref { return x.HeadRef } -func (x *PullRequest) GetHeadRefName() string { return x.HeadRefName } -func (x *PullRequest) GetHeadRefOid() GitObjectID { return x.HeadRefOid } -func (x *PullRequest) GetHeadRepository() *Repository { return x.HeadRepository } -func (x *PullRequest) GetHeadRepositoryOwner() RepositoryOwner { return x.HeadRepositoryOwner } -func (x *PullRequest) GetHovercard() *Hovercard { return x.Hovercard } -func (x *PullRequest) GetId() ID { return x.Id } -func (x *PullRequest) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *PullRequest) GetIsCrossRepository() bool { return x.IsCrossRepository } -func (x *PullRequest) GetIsDraft() bool { return x.IsDraft } -func (x *PullRequest) GetIsReadByViewer() bool { return x.IsReadByViewer } -func (x *PullRequest) GetLabels() *LabelConnection { return x.Labels } -func (x *PullRequest) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *PullRequest) GetLatestOpinionatedReviews() *PullRequestReviewConnection { - return x.LatestOpinionatedReviews -} -func (x *PullRequest) GetLatestReviews() *PullRequestReviewConnection { return x.LatestReviews } -func (x *PullRequest) GetLocked() bool { return x.Locked } -func (x *PullRequest) GetMaintainerCanModify() bool { return x.MaintainerCanModify } -func (x *PullRequest) GetMergeCommit() *Commit { return x.MergeCommit } -func (x *PullRequest) GetMergeable() MergeableState { return x.Mergeable } -func (x *PullRequest) GetMerged() bool { return x.Merged } -func (x *PullRequest) GetMergedAt() DateTime { return x.MergedAt } -func (x *PullRequest) GetMergedBy() Actor { return x.MergedBy } -func (x *PullRequest) GetMilestone() *Milestone { return x.Milestone } -func (x *PullRequest) GetNumber() int { return x.Number } -func (x *PullRequest) GetParticipants() *UserConnection { return x.Participants } -func (x *PullRequest) GetPermalink() URI { return x.Permalink } -func (x *PullRequest) GetPotentialMergeCommit() *Commit { return x.PotentialMergeCommit } -func (x *PullRequest) GetProjectCards() *ProjectCardConnection { return x.ProjectCards } -func (x *PullRequest) GetProjectItems() *ProjectV2ItemConnection { return x.ProjectItems } -func (x *PullRequest) GetProjectNext() *ProjectNext { return x.ProjectNext } -func (x *PullRequest) GetProjectNextItems() *ProjectNextItemConnection { return x.ProjectNextItems } -func (x *PullRequest) GetProjectV2() *ProjectV2 { return x.ProjectV2 } -func (x *PullRequest) GetProjectsNext() *ProjectNextConnection { return x.ProjectsNext } -func (x *PullRequest) GetProjectsV2() *ProjectV2Connection { return x.ProjectsV2 } -func (x *PullRequest) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *PullRequest) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *PullRequest) GetReactions() *ReactionConnection { return x.Reactions } -func (x *PullRequest) GetRepository() *Repository { return x.Repository } -func (x *PullRequest) GetResourcePath() URI { return x.ResourcePath } -func (x *PullRequest) GetRevertResourcePath() URI { return x.RevertResourcePath } -func (x *PullRequest) GetRevertUrl() URI { return x.RevertUrl } -func (x *PullRequest) GetReviewDecision() PullRequestReviewDecision { return x.ReviewDecision } -func (x *PullRequest) GetReviewRequests() *ReviewRequestConnection { return x.ReviewRequests } -func (x *PullRequest) GetReviewThreads() *PullRequestReviewThreadConnection { return x.ReviewThreads } -func (x *PullRequest) GetReviews() *PullRequestReviewConnection { return x.Reviews } -func (x *PullRequest) GetState() PullRequestState { return x.State } -func (x *PullRequest) GetSuggestedReviewers() []*SuggestedReviewer { return x.SuggestedReviewers } -func (x *PullRequest) GetTimeline() *PullRequestTimelineConnection { return x.Timeline } -func (x *PullRequest) GetTimelineItems() *PullRequestTimelineItemsConnection { return x.TimelineItems } -func (x *PullRequest) GetTitle() string { return x.Title } -func (x *PullRequest) GetTitleHTML() template.HTML { return x.TitleHTML } -func (x *PullRequest) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *PullRequest) GetUrl() URI { return x.Url } -func (x *PullRequest) GetUserContentEdits() *UserContentEditConnection { return x.UserContentEdits } -func (x *PullRequest) GetViewerCanApplySuggestion() bool { return x.ViewerCanApplySuggestion } -func (x *PullRequest) GetViewerCanDeleteHeadRef() bool { return x.ViewerCanDeleteHeadRef } -func (x *PullRequest) GetViewerCanDisableAutoMerge() bool { return x.ViewerCanDisableAutoMerge } -func (x *PullRequest) GetViewerCanEditFiles() bool { return x.ViewerCanEditFiles } -func (x *PullRequest) GetViewerCanEnableAutoMerge() bool { return x.ViewerCanEnableAutoMerge } -func (x *PullRequest) GetViewerCanMergeAsAdmin() bool { return x.ViewerCanMergeAsAdmin } -func (x *PullRequest) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *PullRequest) GetViewerCanSubscribe() bool { return x.ViewerCanSubscribe } -func (x *PullRequest) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *PullRequest) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *PullRequest) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } -func (x *PullRequest) GetViewerLatestReview() *PullRequestReview { return x.ViewerLatestReview } -func (x *PullRequest) GetViewerLatestReviewRequest() *ReviewRequest { - return x.ViewerLatestReviewRequest -} -func (x *PullRequest) GetViewerMergeBodyText() string { return x.ViewerMergeBodyText } -func (x *PullRequest) GetViewerMergeHeadlineText() string { return x.ViewerMergeHeadlineText } -func (x *PullRequest) GetViewerSubscription() SubscriptionState { return x.ViewerSubscription } - -// PullRequestChangedFile (OBJECT): A file changed in a pull request. -type PullRequestChangedFile struct { - // Additions: The number of additions to the file. - Additions int `json:"additions,omitempty"` - - // ChangeType: How the file was changed in this PullRequest. - ChangeType PatchStatus `json:"changeType,omitempty"` - - // Deletions: The number of deletions to the file. - Deletions int `json:"deletions,omitempty"` - - // Path: The path of the file. - Path string `json:"path,omitempty"` - - // ViewerViewedState: The state of the file for the viewer. - ViewerViewedState FileViewedState `json:"viewerViewedState,omitempty"` -} - -func (x *PullRequestChangedFile) GetAdditions() int { return x.Additions } -func (x *PullRequestChangedFile) GetChangeType() PatchStatus { return x.ChangeType } -func (x *PullRequestChangedFile) GetDeletions() int { return x.Deletions } -func (x *PullRequestChangedFile) GetPath() string { return x.Path } -func (x *PullRequestChangedFile) GetViewerViewedState() FileViewedState { return x.ViewerViewedState } - -// PullRequestChangedFileConnection (OBJECT): The connection type for PullRequestChangedFile. -type PullRequestChangedFileConnection struct { - // Edges: A list of edges. - Edges []*PullRequestChangedFileEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PullRequestChangedFile `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PullRequestChangedFileConnection) GetEdges() []*PullRequestChangedFileEdge { return x.Edges } -func (x *PullRequestChangedFileConnection) GetNodes() []*PullRequestChangedFile { return x.Nodes } -func (x *PullRequestChangedFileConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PullRequestChangedFileConnection) GetTotalCount() int { return x.TotalCount } - -// PullRequestChangedFileEdge (OBJECT): An edge in a connection. -type PullRequestChangedFileEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PullRequestChangedFile `json:"node,omitempty"` -} - -func (x *PullRequestChangedFileEdge) GetCursor() string { return x.Cursor } -func (x *PullRequestChangedFileEdge) GetNode() *PullRequestChangedFile { return x.Node } - -// PullRequestCommit (OBJECT): Represents a Git commit part of a pull request. -type PullRequestCommit struct { - // Commit: The Git commit object. - Commit *Commit `json:"commit,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: The pull request this commit belongs to. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // ResourcePath: The HTTP path for this pull request commit. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this pull request commit. - Url URI `json:"url,omitempty"` -} - -func (x *PullRequestCommit) GetCommit() *Commit { return x.Commit } -func (x *PullRequestCommit) GetId() ID { return x.Id } -func (x *PullRequestCommit) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *PullRequestCommit) GetResourcePath() URI { return x.ResourcePath } -func (x *PullRequestCommit) GetUrl() URI { return x.Url } - -// PullRequestCommitCommentThread (OBJECT): Represents a commit comment thread part of a pull request. -type PullRequestCommitCommentThread struct { - // Comments: The comments that exist in this thread. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Comments *CommitCommentConnection `json:"comments,omitempty"` - - // Commit: The commit the comments were made on. - Commit *Commit `json:"commit,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Path: The file the comments were made on. - Path string `json:"path,omitempty"` - - // Position: The position in the diff for the commit that the comment was made on. - Position int `json:"position,omitempty"` - - // PullRequest: The pull request this commit comment thread belongs to. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *PullRequestCommitCommentThread) GetComments() *CommitCommentConnection { return x.Comments } -func (x *PullRequestCommitCommentThread) GetCommit() *Commit { return x.Commit } -func (x *PullRequestCommitCommentThread) GetId() ID { return x.Id } -func (x *PullRequestCommitCommentThread) GetPath() string { return x.Path } -func (x *PullRequestCommitCommentThread) GetPosition() int { return x.Position } -func (x *PullRequestCommitCommentThread) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *PullRequestCommitCommentThread) GetRepository() *Repository { return x.Repository } - -// PullRequestCommitConnection (OBJECT): The connection type for PullRequestCommit. -type PullRequestCommitConnection struct { - // Edges: A list of edges. - Edges []*PullRequestCommitEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PullRequestCommit `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PullRequestCommitConnection) GetEdges() []*PullRequestCommitEdge { return x.Edges } -func (x *PullRequestCommitConnection) GetNodes() []*PullRequestCommit { return x.Nodes } -func (x *PullRequestCommitConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PullRequestCommitConnection) GetTotalCount() int { return x.TotalCount } - -// PullRequestCommitEdge (OBJECT): An edge in a connection. -type PullRequestCommitEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PullRequestCommit `json:"node,omitempty"` -} - -func (x *PullRequestCommitEdge) GetCursor() string { return x.Cursor } -func (x *PullRequestCommitEdge) GetNode() *PullRequestCommit { return x.Node } - -// PullRequestConnection (OBJECT): The connection type for PullRequest. -type PullRequestConnection struct { - // Edges: A list of edges. - Edges []*PullRequestEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PullRequest `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PullRequestConnection) GetEdges() []*PullRequestEdge { return x.Edges } -func (x *PullRequestConnection) GetNodes() []*PullRequest { return x.Nodes } -func (x *PullRequestConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PullRequestConnection) GetTotalCount() int { return x.TotalCount } - -// PullRequestContributionsByRepository (OBJECT): This aggregates pull requests opened by a user within one repository. -type PullRequestContributionsByRepository struct { - // Contributions: The pull request contributions. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ContributionOrder - Contributions *CreatedPullRequestContributionConnection `json:"contributions,omitempty"` - - // Repository: The repository in which the pull requests were opened. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *PullRequestContributionsByRepository) GetContributions() *CreatedPullRequestContributionConnection { - return x.Contributions -} -func (x *PullRequestContributionsByRepository) GetRepository() *Repository { return x.Repository } - -// PullRequestEdge (OBJECT): An edge in a connection. -type PullRequestEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PullRequest `json:"node,omitempty"` -} - -func (x *PullRequestEdge) GetCursor() string { return x.Cursor } -func (x *PullRequestEdge) GetNode() *PullRequest { return x.Node } - -// PullRequestMergeMethod (ENUM): Represents available types of methods to use when merging a pull request. -type PullRequestMergeMethod string - -// PullRequestMergeMethod_MERGE: Add all commits from the head branch to the base branch with a merge commit. -const PullRequestMergeMethod_MERGE PullRequestMergeMethod = "MERGE" - -// PullRequestMergeMethod_SQUASH: Combine all commits from the head branch into a single commit in the base branch. -const PullRequestMergeMethod_SQUASH PullRequestMergeMethod = "SQUASH" - -// PullRequestMergeMethod_REBASE: Add all commits from the head branch onto the base branch individually. -const PullRequestMergeMethod_REBASE PullRequestMergeMethod = "REBASE" - -// PullRequestOrder (INPUT_OBJECT): Ways in which lists of issues can be ordered upon return. -type PullRequestOrder struct { - // Field: The field in which to order pull requests by. - // - // GraphQL type: PullRequestOrderField! - Field PullRequestOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order pull requests by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// PullRequestOrderField (ENUM): Properties by which pull_requests connections can be ordered. -type PullRequestOrderField string - -// PullRequestOrderField_CREATED_AT: Order pull_requests by creation time. -const PullRequestOrderField_CREATED_AT PullRequestOrderField = "CREATED_AT" - -// PullRequestOrderField_UPDATED_AT: Order pull_requests by update time. -const PullRequestOrderField_UPDATED_AT PullRequestOrderField = "UPDATED_AT" - -// PullRequestReview (OBJECT): A review object for a given pull request. -type PullRequestReview struct { - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the subject of the comment. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // AuthorCanPushToRepository: Indicates whether the author of this review has push access to the repository. - AuthorCanPushToRepository bool `json:"authorCanPushToRepository,omitempty"` - - // Body: Identifies the pull request review body. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body of this review rendered as plain text. - BodyText string `json:"bodyText,omitempty"` - - // Comments: A list of review comments for the current pull request review. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Comments *PullRequestReviewCommentConnection `json:"comments,omitempty"` - - // Commit: Identifies the commit associated with this pull request review. - Commit *Commit `json:"commit,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // OnBehalfOf: A list of teams that this review was made on behalf of. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - OnBehalfOf *TeamConnection `json:"onBehalfOf,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // PullRequest: Identifies the pull request associated with this pull request review. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path permalink for this PullRequestReview. - ResourcePath URI `json:"resourcePath,omitempty"` - - // State: Identifies the current state of the pull request review. - State PullRequestReviewState `json:"state,omitempty"` - - // SubmittedAt: Identifies when the Pull Request Review was submitted. - SubmittedAt DateTime `json:"submittedAt,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL permalink for this PullRequestReview. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` -} - -func (x *PullRequestReview) GetAuthor() Actor { return x.Author } -func (x *PullRequestReview) GetAuthorAssociation() CommentAuthorAssociation { - return x.AuthorAssociation -} -func (x *PullRequestReview) GetAuthorCanPushToRepository() bool { return x.AuthorCanPushToRepository } -func (x *PullRequestReview) GetBody() string { return x.Body } -func (x *PullRequestReview) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *PullRequestReview) GetBodyText() string { return x.BodyText } -func (x *PullRequestReview) GetComments() *PullRequestReviewCommentConnection { return x.Comments } -func (x *PullRequestReview) GetCommit() *Commit { return x.Commit } -func (x *PullRequestReview) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *PullRequestReview) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *PullRequestReview) GetDatabaseId() int { return x.DatabaseId } -func (x *PullRequestReview) GetEditor() Actor { return x.Editor } -func (x *PullRequestReview) GetId() ID { return x.Id } -func (x *PullRequestReview) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *PullRequestReview) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *PullRequestReview) GetOnBehalfOf() *TeamConnection { return x.OnBehalfOf } -func (x *PullRequestReview) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *PullRequestReview) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *PullRequestReview) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *PullRequestReview) GetReactions() *ReactionConnection { return x.Reactions } -func (x *PullRequestReview) GetRepository() *Repository { return x.Repository } -func (x *PullRequestReview) GetResourcePath() URI { return x.ResourcePath } -func (x *PullRequestReview) GetState() PullRequestReviewState { return x.State } -func (x *PullRequestReview) GetSubmittedAt() DateTime { return x.SubmittedAt } -func (x *PullRequestReview) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *PullRequestReview) GetUrl() URI { return x.Url } -func (x *PullRequestReview) GetUserContentEdits() *UserContentEditConnection { - return x.UserContentEdits -} -func (x *PullRequestReview) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *PullRequestReview) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *PullRequestReview) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *PullRequestReview) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *PullRequestReview) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } - -// PullRequestReviewComment (OBJECT): A review comment associated with a given repository pull request. -type PullRequestReviewComment struct { - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the subject of the comment. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: The comment body of this review comment. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The comment body of this review comment rendered as plain text. - BodyText string `json:"bodyText,omitempty"` - - // Commit: Identifies the commit associated with the comment. - Commit *Commit `json:"commit,omitempty"` - - // CreatedAt: Identifies when the comment was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // DiffHunk: The diff hunk to which the comment applies. - DiffHunk string `json:"diffHunk,omitempty"` - - // DraftedAt: Identifies when the comment was created in a draft state. - DraftedAt DateTime `json:"draftedAt,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // IsMinimized: Returns whether or not a comment has been minimized. - IsMinimized bool `json:"isMinimized,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // MinimizedReason: Returns why the comment was minimized. - MinimizedReason string `json:"minimizedReason,omitempty"` - - // OriginalCommit: Identifies the original commit associated with the comment. - OriginalCommit *Commit `json:"originalCommit,omitempty"` - - // OriginalPosition: The original line index in the diff to which the comment applies. - OriginalPosition int `json:"originalPosition,omitempty"` - - // Outdated: Identifies when the comment body is outdated. - Outdated bool `json:"outdated,omitempty"` - - // Path: The path to which the comment applies. - Path string `json:"path,omitempty"` - - // Position: The line index in the diff to which the comment applies. - Position int `json:"position,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // PullRequest: The pull request associated with this review comment. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // PullRequestReview: The pull request review associated with this review comment. - PullRequestReview *PullRequestReview `json:"pullRequestReview,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // ReplyTo: The comment this is a reply to. - ReplyTo *PullRequestReviewComment `json:"replyTo,omitempty"` - - // Repository: The repository associated with this node. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path permalink for this review comment. - ResourcePath URI `json:"resourcePath,omitempty"` - - // State: Identifies the state of the comment. - State PullRequestReviewCommentState `json:"state,omitempty"` - - // UpdatedAt: Identifies when the comment was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL permalink for this review comment. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanMinimize: Check if the current viewer can minimize this object. - ViewerCanMinimize bool `json:"viewerCanMinimize,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` -} - -func (x *PullRequestReviewComment) GetAuthor() Actor { return x.Author } -func (x *PullRequestReviewComment) GetAuthorAssociation() CommentAuthorAssociation { - return x.AuthorAssociation -} -func (x *PullRequestReviewComment) GetBody() string { return x.Body } -func (x *PullRequestReviewComment) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *PullRequestReviewComment) GetBodyText() string { return x.BodyText } -func (x *PullRequestReviewComment) GetCommit() *Commit { return x.Commit } -func (x *PullRequestReviewComment) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *PullRequestReviewComment) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *PullRequestReviewComment) GetDatabaseId() int { return x.DatabaseId } -func (x *PullRequestReviewComment) GetDiffHunk() string { return x.DiffHunk } -func (x *PullRequestReviewComment) GetDraftedAt() DateTime { return x.DraftedAt } -func (x *PullRequestReviewComment) GetEditor() Actor { return x.Editor } -func (x *PullRequestReviewComment) GetId() ID { return x.Id } -func (x *PullRequestReviewComment) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *PullRequestReviewComment) GetIsMinimized() bool { return x.IsMinimized } -func (x *PullRequestReviewComment) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *PullRequestReviewComment) GetMinimizedReason() string { return x.MinimizedReason } -func (x *PullRequestReviewComment) GetOriginalCommit() *Commit { return x.OriginalCommit } -func (x *PullRequestReviewComment) GetOriginalPosition() int { return x.OriginalPosition } -func (x *PullRequestReviewComment) GetOutdated() bool { return x.Outdated } -func (x *PullRequestReviewComment) GetPath() string { return x.Path } -func (x *PullRequestReviewComment) GetPosition() int { return x.Position } -func (x *PullRequestReviewComment) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *PullRequestReviewComment) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *PullRequestReviewComment) GetPullRequestReview() *PullRequestReview { - return x.PullRequestReview -} -func (x *PullRequestReviewComment) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *PullRequestReviewComment) GetReactions() *ReactionConnection { return x.Reactions } -func (x *PullRequestReviewComment) GetReplyTo() *PullRequestReviewComment { return x.ReplyTo } -func (x *PullRequestReviewComment) GetRepository() *Repository { return x.Repository } -func (x *PullRequestReviewComment) GetResourcePath() URI { return x.ResourcePath } -func (x *PullRequestReviewComment) GetState() PullRequestReviewCommentState { return x.State } -func (x *PullRequestReviewComment) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *PullRequestReviewComment) GetUrl() URI { return x.Url } -func (x *PullRequestReviewComment) GetUserContentEdits() *UserContentEditConnection { - return x.UserContentEdits -} -func (x *PullRequestReviewComment) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *PullRequestReviewComment) GetViewerCanMinimize() bool { return x.ViewerCanMinimize } -func (x *PullRequestReviewComment) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *PullRequestReviewComment) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *PullRequestReviewComment) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *PullRequestReviewComment) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } - -// PullRequestReviewCommentConnection (OBJECT): The connection type for PullRequestReviewComment. -type PullRequestReviewCommentConnection struct { - // Edges: A list of edges. - Edges []*PullRequestReviewCommentEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PullRequestReviewComment `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PullRequestReviewCommentConnection) GetEdges() []*PullRequestReviewCommentEdge { - return x.Edges -} -func (x *PullRequestReviewCommentConnection) GetNodes() []*PullRequestReviewComment { return x.Nodes } -func (x *PullRequestReviewCommentConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PullRequestReviewCommentConnection) GetTotalCount() int { return x.TotalCount } - -// PullRequestReviewCommentEdge (OBJECT): An edge in a connection. -type PullRequestReviewCommentEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PullRequestReviewComment `json:"node,omitempty"` -} - -func (x *PullRequestReviewCommentEdge) GetCursor() string { return x.Cursor } -func (x *PullRequestReviewCommentEdge) GetNode() *PullRequestReviewComment { return x.Node } - -// PullRequestReviewCommentState (ENUM): The possible states of a pull request review comment. -type PullRequestReviewCommentState string - -// PullRequestReviewCommentState_PENDING: A comment that is part of a pending review. -const PullRequestReviewCommentState_PENDING PullRequestReviewCommentState = "PENDING" - -// PullRequestReviewCommentState_SUBMITTED: A comment that is part of a submitted review. -const PullRequestReviewCommentState_SUBMITTED PullRequestReviewCommentState = "SUBMITTED" - -// PullRequestReviewConnection (OBJECT): The connection type for PullRequestReview. -type PullRequestReviewConnection struct { - // Edges: A list of edges. - Edges []*PullRequestReviewEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PullRequestReview `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PullRequestReviewConnection) GetEdges() []*PullRequestReviewEdge { return x.Edges } -func (x *PullRequestReviewConnection) GetNodes() []*PullRequestReview { return x.Nodes } -func (x *PullRequestReviewConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PullRequestReviewConnection) GetTotalCount() int { return x.TotalCount } - -// PullRequestReviewContributionsByRepository (OBJECT): This aggregates pull request reviews made by a user within one repository. -type PullRequestReviewContributionsByRepository struct { - // Contributions: The pull request review contributions. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ContributionOrder - Contributions *CreatedPullRequestReviewContributionConnection `json:"contributions,omitempty"` - - // Repository: The repository in which the pull request reviews were made. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *PullRequestReviewContributionsByRepository) GetContributions() *CreatedPullRequestReviewContributionConnection { - return x.Contributions -} -func (x *PullRequestReviewContributionsByRepository) GetRepository() *Repository { return x.Repository } - -// PullRequestReviewDecision (ENUM): The review status of a pull request. -type PullRequestReviewDecision string - -// PullRequestReviewDecision_CHANGES_REQUESTED: Changes have been requested on the pull request. -const PullRequestReviewDecision_CHANGES_REQUESTED PullRequestReviewDecision = "CHANGES_REQUESTED" - -// PullRequestReviewDecision_APPROVED: The pull request has received an approving review. -const PullRequestReviewDecision_APPROVED PullRequestReviewDecision = "APPROVED" - -// PullRequestReviewDecision_REVIEW_REQUIRED: A review is required before the pull request can be merged. -const PullRequestReviewDecision_REVIEW_REQUIRED PullRequestReviewDecision = "REVIEW_REQUIRED" - -// PullRequestReviewEdge (OBJECT): An edge in a connection. -type PullRequestReviewEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PullRequestReview `json:"node,omitempty"` -} - -func (x *PullRequestReviewEdge) GetCursor() string { return x.Cursor } -func (x *PullRequestReviewEdge) GetNode() *PullRequestReview { return x.Node } - -// PullRequestReviewEvent (ENUM): The possible events to perform on a pull request review. -type PullRequestReviewEvent string - -// PullRequestReviewEvent_COMMENT: Submit general feedback without explicit approval. -const PullRequestReviewEvent_COMMENT PullRequestReviewEvent = "COMMENT" - -// PullRequestReviewEvent_APPROVE: Submit feedback and approve merging these changes. -const PullRequestReviewEvent_APPROVE PullRequestReviewEvent = "APPROVE" - -// PullRequestReviewEvent_REQUEST_CHANGES: Submit feedback that must be addressed before merging. -const PullRequestReviewEvent_REQUEST_CHANGES PullRequestReviewEvent = "REQUEST_CHANGES" - -// PullRequestReviewEvent_DISMISS: Dismiss review so it now longer effects merging. -const PullRequestReviewEvent_DISMISS PullRequestReviewEvent = "DISMISS" - -// PullRequestReviewState (ENUM): The possible states of a pull request review. -type PullRequestReviewState string - -// PullRequestReviewState_PENDING: A review that has not yet been submitted. -const PullRequestReviewState_PENDING PullRequestReviewState = "PENDING" - -// PullRequestReviewState_COMMENTED: An informational review. -const PullRequestReviewState_COMMENTED PullRequestReviewState = "COMMENTED" - -// PullRequestReviewState_APPROVED: A review allowing the pull request to merge. -const PullRequestReviewState_APPROVED PullRequestReviewState = "APPROVED" - -// PullRequestReviewState_CHANGES_REQUESTED: A review blocking the pull request from merging. -const PullRequestReviewState_CHANGES_REQUESTED PullRequestReviewState = "CHANGES_REQUESTED" - -// PullRequestReviewState_DISMISSED: A review that has been dismissed. -const PullRequestReviewState_DISMISSED PullRequestReviewState = "DISMISSED" - -// PullRequestReviewThread (OBJECT): A threaded list of comments for a given pull request. -type PullRequestReviewThread struct { - // Comments: A list of pull request comments associated with the thread. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - skip Int - Comments *PullRequestReviewCommentConnection `json:"comments,omitempty"` - - // DiffSide: The side of the diff on which this thread was placed. - DiffSide DiffSide `json:"diffSide,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCollapsed: Whether or not the thread has been collapsed (resolved). - IsCollapsed bool `json:"isCollapsed,omitempty"` - - // IsOutdated: Indicates whether this thread was outdated by newer changes. - IsOutdated bool `json:"isOutdated,omitempty"` - - // IsResolved: Whether this thread has been resolved. - IsResolved bool `json:"isResolved,omitempty"` - - // Line: The line in the file to which this thread refers. - Line int `json:"line,omitempty"` - - // OriginalLine: The original line in the file to which this thread refers. - OriginalLine int `json:"originalLine,omitempty"` - - // OriginalStartLine: The original start line in the file to which this thread refers (multi-line only). - OriginalStartLine int `json:"originalStartLine,omitempty"` - - // Path: Identifies the file path of this thread. - Path string `json:"path,omitempty"` - - // PullRequest: Identifies the pull request associated with this thread. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // Repository: Identifies the repository associated with this thread. - Repository *Repository `json:"repository,omitempty"` - - // ResolvedBy: The user who resolved this thread. - ResolvedBy *User `json:"resolvedBy,omitempty"` - - // StartDiffSide: The side of the diff that the first line of the thread starts on (multi-line only). - StartDiffSide DiffSide `json:"startDiffSide,omitempty"` - - // StartLine: The start line in the file to which this thread refers (multi-line only). - StartLine int `json:"startLine,omitempty"` - - // ViewerCanReply: Indicates whether the current viewer can reply to this thread. - ViewerCanReply bool `json:"viewerCanReply,omitempty"` - - // ViewerCanResolve: Whether or not the viewer can resolve this thread. - ViewerCanResolve bool `json:"viewerCanResolve,omitempty"` - - // ViewerCanUnresolve: Whether or not the viewer can unresolve this thread. - ViewerCanUnresolve bool `json:"viewerCanUnresolve,omitempty"` -} - -func (x *PullRequestReviewThread) GetComments() *PullRequestReviewCommentConnection { - return x.Comments -} -func (x *PullRequestReviewThread) GetDiffSide() DiffSide { return x.DiffSide } -func (x *PullRequestReviewThread) GetId() ID { return x.Id } -func (x *PullRequestReviewThread) GetIsCollapsed() bool { return x.IsCollapsed } -func (x *PullRequestReviewThread) GetIsOutdated() bool { return x.IsOutdated } -func (x *PullRequestReviewThread) GetIsResolved() bool { return x.IsResolved } -func (x *PullRequestReviewThread) GetLine() int { return x.Line } -func (x *PullRequestReviewThread) GetOriginalLine() int { return x.OriginalLine } -func (x *PullRequestReviewThread) GetOriginalStartLine() int { return x.OriginalStartLine } -func (x *PullRequestReviewThread) GetPath() string { return x.Path } -func (x *PullRequestReviewThread) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *PullRequestReviewThread) GetRepository() *Repository { return x.Repository } -func (x *PullRequestReviewThread) GetResolvedBy() *User { return x.ResolvedBy } -func (x *PullRequestReviewThread) GetStartDiffSide() DiffSide { return x.StartDiffSide } -func (x *PullRequestReviewThread) GetStartLine() int { return x.StartLine } -func (x *PullRequestReviewThread) GetViewerCanReply() bool { return x.ViewerCanReply } -func (x *PullRequestReviewThread) GetViewerCanResolve() bool { return x.ViewerCanResolve } -func (x *PullRequestReviewThread) GetViewerCanUnresolve() bool { return x.ViewerCanUnresolve } - -// PullRequestReviewThreadConnection (OBJECT): Review comment threads for a pull request review. -type PullRequestReviewThreadConnection struct { - // Edges: A list of edges. - Edges []*PullRequestReviewThreadEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PullRequestReviewThread `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PullRequestReviewThreadConnection) GetEdges() []*PullRequestReviewThreadEdge { return x.Edges } -func (x *PullRequestReviewThreadConnection) GetNodes() []*PullRequestReviewThread { return x.Nodes } -func (x *PullRequestReviewThreadConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PullRequestReviewThreadConnection) GetTotalCount() int { return x.TotalCount } - -// PullRequestReviewThreadEdge (OBJECT): An edge in a connection. -type PullRequestReviewThreadEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PullRequestReviewThread `json:"node,omitempty"` -} - -func (x *PullRequestReviewThreadEdge) GetCursor() string { return x.Cursor } -func (x *PullRequestReviewThreadEdge) GetNode() *PullRequestReviewThread { return x.Node } - -// PullRequestRevisionMarker (OBJECT): Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits. -type PullRequestRevisionMarker struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // LastSeenCommit: The last commit the viewer has seen. - LastSeenCommit *Commit `json:"lastSeenCommit,omitempty"` - - // PullRequest: The pull request to which the marker belongs. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *PullRequestRevisionMarker) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *PullRequestRevisionMarker) GetLastSeenCommit() *Commit { return x.LastSeenCommit } -func (x *PullRequestRevisionMarker) GetPullRequest() *PullRequest { return x.PullRequest } - -// PullRequestState (ENUM): The possible states of a pull request. -type PullRequestState string - -// PullRequestState_OPEN: A pull request that is still open. -const PullRequestState_OPEN PullRequestState = "OPEN" - -// PullRequestState_CLOSED: A pull request that has been closed without being merged. -const PullRequestState_CLOSED PullRequestState = "CLOSED" - -// PullRequestState_MERGED: A pull request that has been closed by being merged. -const PullRequestState_MERGED PullRequestState = "MERGED" - -// PullRequestTemplate (OBJECT): A repository pull request template. -type PullRequestTemplate struct { - // Body: The body of the template. - Body string `json:"body,omitempty"` - - // Filename: The filename of the template. - Filename string `json:"filename,omitempty"` - - // Repository: The repository the template belongs to. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *PullRequestTemplate) GetBody() string { return x.Body } -func (x *PullRequestTemplate) GetFilename() string { return x.Filename } -func (x *PullRequestTemplate) GetRepository() *Repository { return x.Repository } - -// PullRequestThread (OBJECT): A threaded list of comments for a given pull request. -type PullRequestThread struct { - // Comments: A list of pull request comments associated with the thread. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - skip Int - Comments *PullRequestReviewCommentConnection `json:"comments,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCollapsed: Whether or not the thread has been collapsed (resolved). - IsCollapsed bool `json:"isCollapsed,omitempty"` - - // IsOutdated: Indicates whether this thread was outdated by newer changes. - IsOutdated bool `json:"isOutdated,omitempty"` - - // IsResolved: Whether this thread has been resolved. - IsResolved bool `json:"isResolved,omitempty"` - - // PullRequest: Identifies the pull request associated with this thread. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // Repository: Identifies the repository associated with this thread. - Repository *Repository `json:"repository,omitempty"` - - // ResolvedBy: The user who resolved this thread. - ResolvedBy *User `json:"resolvedBy,omitempty"` - - // ViewerCanReply: Indicates whether the current viewer can reply to this thread. - ViewerCanReply bool `json:"viewerCanReply,omitempty"` - - // ViewerCanResolve: Whether or not the viewer can resolve this thread. - ViewerCanResolve bool `json:"viewerCanResolve,omitempty"` - - // ViewerCanUnresolve: Whether or not the viewer can unresolve this thread. - ViewerCanUnresolve bool `json:"viewerCanUnresolve,omitempty"` -} - -func (x *PullRequestThread) GetComments() *PullRequestReviewCommentConnection { return x.Comments } -func (x *PullRequestThread) GetId() ID { return x.Id } -func (x *PullRequestThread) GetIsCollapsed() bool { return x.IsCollapsed } -func (x *PullRequestThread) GetIsOutdated() bool { return x.IsOutdated } -func (x *PullRequestThread) GetIsResolved() bool { return x.IsResolved } -func (x *PullRequestThread) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *PullRequestThread) GetRepository() *Repository { return x.Repository } -func (x *PullRequestThread) GetResolvedBy() *User { return x.ResolvedBy } -func (x *PullRequestThread) GetViewerCanReply() bool { return x.ViewerCanReply } -func (x *PullRequestThread) GetViewerCanResolve() bool { return x.ViewerCanResolve } -func (x *PullRequestThread) GetViewerCanUnresolve() bool { return x.ViewerCanUnresolve } - -// PullRequestTimelineConnection (OBJECT): The connection type for PullRequestTimelineItem. -type PullRequestTimelineConnection struct { - // Edges: A list of edges. - Edges []*PullRequestTimelineItemEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []PullRequestTimelineItem `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PullRequestTimelineConnection) GetEdges() []*PullRequestTimelineItemEdge { return x.Edges } -func (x *PullRequestTimelineConnection) GetNodes() []PullRequestTimelineItem { return x.Nodes } -func (x *PullRequestTimelineConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PullRequestTimelineConnection) GetTotalCount() int { return x.TotalCount } - -// PullRequestTimelineItem (UNION): An item in a pull request timeline. -// PullRequestTimelineItem_Interface: An item in a pull request timeline. -// -// Possible types: -// -// - *AssignedEvent -// - *BaseRefDeletedEvent -// - *BaseRefForcePushedEvent -// - *ClosedEvent -// - *Commit -// - *CommitCommentThread -// - *CrossReferencedEvent -// - *DemilestonedEvent -// - *DeployedEvent -// - *DeploymentEnvironmentChangedEvent -// - *HeadRefDeletedEvent -// - *HeadRefForcePushedEvent -// - *HeadRefRestoredEvent -// - *IssueComment -// - *LabeledEvent -// - *LockedEvent -// - *MergedEvent -// - *MilestonedEvent -// - *PullRequestReview -// - *PullRequestReviewComment -// - *PullRequestReviewThread -// - *ReferencedEvent -// - *RenamedTitleEvent -// - *ReopenedEvent -// - *ReviewDismissedEvent -// - *ReviewRequestRemovedEvent -// - *ReviewRequestedEvent -// - *SubscribedEvent -// - *UnassignedEvent -// - *UnlabeledEvent -// - *UnlockedEvent -// - *UnsubscribedEvent -// - *UserBlockedEvent -type PullRequestTimelineItem_Interface interface { - isPullRequestTimelineItem() -} - -func (*AssignedEvent) isPullRequestTimelineItem() {} -func (*BaseRefDeletedEvent) isPullRequestTimelineItem() {} -func (*BaseRefForcePushedEvent) isPullRequestTimelineItem() {} -func (*ClosedEvent) isPullRequestTimelineItem() {} -func (*Commit) isPullRequestTimelineItem() {} -func (*CommitCommentThread) isPullRequestTimelineItem() {} -func (*CrossReferencedEvent) isPullRequestTimelineItem() {} -func (*DemilestonedEvent) isPullRequestTimelineItem() {} -func (*DeployedEvent) isPullRequestTimelineItem() {} -func (*DeploymentEnvironmentChangedEvent) isPullRequestTimelineItem() {} -func (*HeadRefDeletedEvent) isPullRequestTimelineItem() {} -func (*HeadRefForcePushedEvent) isPullRequestTimelineItem() {} -func (*HeadRefRestoredEvent) isPullRequestTimelineItem() {} -func (*IssueComment) isPullRequestTimelineItem() {} -func (*LabeledEvent) isPullRequestTimelineItem() {} -func (*LockedEvent) isPullRequestTimelineItem() {} -func (*MergedEvent) isPullRequestTimelineItem() {} -func (*MilestonedEvent) isPullRequestTimelineItem() {} -func (*PullRequestReview) isPullRequestTimelineItem() {} -func (*PullRequestReviewComment) isPullRequestTimelineItem() {} -func (*PullRequestReviewThread) isPullRequestTimelineItem() {} -func (*ReferencedEvent) isPullRequestTimelineItem() {} -func (*RenamedTitleEvent) isPullRequestTimelineItem() {} -func (*ReopenedEvent) isPullRequestTimelineItem() {} -func (*ReviewDismissedEvent) isPullRequestTimelineItem() {} -func (*ReviewRequestRemovedEvent) isPullRequestTimelineItem() {} -func (*ReviewRequestedEvent) isPullRequestTimelineItem() {} -func (*SubscribedEvent) isPullRequestTimelineItem() {} -func (*UnassignedEvent) isPullRequestTimelineItem() {} -func (*UnlabeledEvent) isPullRequestTimelineItem() {} -func (*UnlockedEvent) isPullRequestTimelineItem() {} -func (*UnsubscribedEvent) isPullRequestTimelineItem() {} -func (*UserBlockedEvent) isPullRequestTimelineItem() {} - -type PullRequestTimelineItem struct { - Interface PullRequestTimelineItem_Interface -} - -func (x *PullRequestTimelineItem) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *PullRequestTimelineItem) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for PullRequestTimelineItem", info.Typename) - case "AssignedEvent": - x.Interface = new(AssignedEvent) - case "BaseRefDeletedEvent": - x.Interface = new(BaseRefDeletedEvent) - case "BaseRefForcePushedEvent": - x.Interface = new(BaseRefForcePushedEvent) - case "ClosedEvent": - x.Interface = new(ClosedEvent) - case "Commit": - x.Interface = new(Commit) - case "CommitCommentThread": - x.Interface = new(CommitCommentThread) - case "CrossReferencedEvent": - x.Interface = new(CrossReferencedEvent) - case "DemilestonedEvent": - x.Interface = new(DemilestonedEvent) - case "DeployedEvent": - x.Interface = new(DeployedEvent) - case "DeploymentEnvironmentChangedEvent": - x.Interface = new(DeploymentEnvironmentChangedEvent) - case "HeadRefDeletedEvent": - x.Interface = new(HeadRefDeletedEvent) - case "HeadRefForcePushedEvent": - x.Interface = new(HeadRefForcePushedEvent) - case "HeadRefRestoredEvent": - x.Interface = new(HeadRefRestoredEvent) - case "IssueComment": - x.Interface = new(IssueComment) - case "LabeledEvent": - x.Interface = new(LabeledEvent) - case "LockedEvent": - x.Interface = new(LockedEvent) - case "MergedEvent": - x.Interface = new(MergedEvent) - case "MilestonedEvent": - x.Interface = new(MilestonedEvent) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - case "PullRequestReviewThread": - x.Interface = new(PullRequestReviewThread) - case "ReferencedEvent": - x.Interface = new(ReferencedEvent) - case "RenamedTitleEvent": - x.Interface = new(RenamedTitleEvent) - case "ReopenedEvent": - x.Interface = new(ReopenedEvent) - case "ReviewDismissedEvent": - x.Interface = new(ReviewDismissedEvent) - case "ReviewRequestRemovedEvent": - x.Interface = new(ReviewRequestRemovedEvent) - case "ReviewRequestedEvent": - x.Interface = new(ReviewRequestedEvent) - case "SubscribedEvent": - x.Interface = new(SubscribedEvent) - case "UnassignedEvent": - x.Interface = new(UnassignedEvent) - case "UnlabeledEvent": - x.Interface = new(UnlabeledEvent) - case "UnlockedEvent": - x.Interface = new(UnlockedEvent) - case "UnsubscribedEvent": - x.Interface = new(UnsubscribedEvent) - case "UserBlockedEvent": - x.Interface = new(UserBlockedEvent) - } - return json.Unmarshal(js, x.Interface) -} - -// PullRequestTimelineItemEdge (OBJECT): An edge in a connection. -type PullRequestTimelineItemEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node PullRequestTimelineItem `json:"node,omitempty"` -} - -func (x *PullRequestTimelineItemEdge) GetCursor() string { return x.Cursor } -func (x *PullRequestTimelineItemEdge) GetNode() PullRequestTimelineItem { return x.Node } - -// PullRequestTimelineItems (UNION): An item in a pull request timeline. -// PullRequestTimelineItems_Interface: An item in a pull request timeline. -// -// Possible types: -// -// - *AddedToProjectEvent -// - *AssignedEvent -// - *AutoMergeDisabledEvent -// - *AutoMergeEnabledEvent -// - *AutoRebaseEnabledEvent -// - *AutoSquashEnabledEvent -// - *AutomaticBaseChangeFailedEvent -// - *AutomaticBaseChangeSucceededEvent -// - *BaseRefChangedEvent -// - *BaseRefDeletedEvent -// - *BaseRefForcePushedEvent -// - *ClosedEvent -// - *CommentDeletedEvent -// - *ConnectedEvent -// - *ConvertToDraftEvent -// - *ConvertedNoteToIssueEvent -// - *ConvertedToDiscussionEvent -// - *CrossReferencedEvent -// - *DemilestonedEvent -// - *DeployedEvent -// - *DeploymentEnvironmentChangedEvent -// - *DisconnectedEvent -// - *HeadRefDeletedEvent -// - *HeadRefForcePushedEvent -// - *HeadRefRestoredEvent -// - *IssueComment -// - *LabeledEvent -// - *LockedEvent -// - *MarkedAsDuplicateEvent -// - *MentionedEvent -// - *MergedEvent -// - *MilestonedEvent -// - *MovedColumnsInProjectEvent -// - *PinnedEvent -// - *PullRequestCommit -// - *PullRequestCommitCommentThread -// - *PullRequestReview -// - *PullRequestReviewThread -// - *PullRequestRevisionMarker -// - *ReadyForReviewEvent -// - *ReferencedEvent -// - *RemovedFromProjectEvent -// - *RenamedTitleEvent -// - *ReopenedEvent -// - *ReviewDismissedEvent -// - *ReviewRequestRemovedEvent -// - *ReviewRequestedEvent -// - *SubscribedEvent -// - *TransferredEvent -// - *UnassignedEvent -// - *UnlabeledEvent -// - *UnlockedEvent -// - *UnmarkedAsDuplicateEvent -// - *UnpinnedEvent -// - *UnsubscribedEvent -// - *UserBlockedEvent -type PullRequestTimelineItems_Interface interface { - isPullRequestTimelineItems() -} - -func (*AddedToProjectEvent) isPullRequestTimelineItems() {} -func (*AssignedEvent) isPullRequestTimelineItems() {} -func (*AutoMergeDisabledEvent) isPullRequestTimelineItems() {} -func (*AutoMergeEnabledEvent) isPullRequestTimelineItems() {} -func (*AutoRebaseEnabledEvent) isPullRequestTimelineItems() {} -func (*AutoSquashEnabledEvent) isPullRequestTimelineItems() {} -func (*AutomaticBaseChangeFailedEvent) isPullRequestTimelineItems() {} -func (*AutomaticBaseChangeSucceededEvent) isPullRequestTimelineItems() {} -func (*BaseRefChangedEvent) isPullRequestTimelineItems() {} -func (*BaseRefDeletedEvent) isPullRequestTimelineItems() {} -func (*BaseRefForcePushedEvent) isPullRequestTimelineItems() {} -func (*ClosedEvent) isPullRequestTimelineItems() {} -func (*CommentDeletedEvent) isPullRequestTimelineItems() {} -func (*ConnectedEvent) isPullRequestTimelineItems() {} -func (*ConvertToDraftEvent) isPullRequestTimelineItems() {} -func (*ConvertedNoteToIssueEvent) isPullRequestTimelineItems() {} -func (*ConvertedToDiscussionEvent) isPullRequestTimelineItems() {} -func (*CrossReferencedEvent) isPullRequestTimelineItems() {} -func (*DemilestonedEvent) isPullRequestTimelineItems() {} -func (*DeployedEvent) isPullRequestTimelineItems() {} -func (*DeploymentEnvironmentChangedEvent) isPullRequestTimelineItems() {} -func (*DisconnectedEvent) isPullRequestTimelineItems() {} -func (*HeadRefDeletedEvent) isPullRequestTimelineItems() {} -func (*HeadRefForcePushedEvent) isPullRequestTimelineItems() {} -func (*HeadRefRestoredEvent) isPullRequestTimelineItems() {} -func (*IssueComment) isPullRequestTimelineItems() {} -func (*LabeledEvent) isPullRequestTimelineItems() {} -func (*LockedEvent) isPullRequestTimelineItems() {} -func (*MarkedAsDuplicateEvent) isPullRequestTimelineItems() {} -func (*MentionedEvent) isPullRequestTimelineItems() {} -func (*MergedEvent) isPullRequestTimelineItems() {} -func (*MilestonedEvent) isPullRequestTimelineItems() {} -func (*MovedColumnsInProjectEvent) isPullRequestTimelineItems() {} -func (*PinnedEvent) isPullRequestTimelineItems() {} -func (*PullRequestCommit) isPullRequestTimelineItems() {} -func (*PullRequestCommitCommentThread) isPullRequestTimelineItems() {} -func (*PullRequestReview) isPullRequestTimelineItems() {} -func (*PullRequestReviewThread) isPullRequestTimelineItems() {} -func (*PullRequestRevisionMarker) isPullRequestTimelineItems() {} -func (*ReadyForReviewEvent) isPullRequestTimelineItems() {} -func (*ReferencedEvent) isPullRequestTimelineItems() {} -func (*RemovedFromProjectEvent) isPullRequestTimelineItems() {} -func (*RenamedTitleEvent) isPullRequestTimelineItems() {} -func (*ReopenedEvent) isPullRequestTimelineItems() {} -func (*ReviewDismissedEvent) isPullRequestTimelineItems() {} -func (*ReviewRequestRemovedEvent) isPullRequestTimelineItems() {} -func (*ReviewRequestedEvent) isPullRequestTimelineItems() {} -func (*SubscribedEvent) isPullRequestTimelineItems() {} -func (*TransferredEvent) isPullRequestTimelineItems() {} -func (*UnassignedEvent) isPullRequestTimelineItems() {} -func (*UnlabeledEvent) isPullRequestTimelineItems() {} -func (*UnlockedEvent) isPullRequestTimelineItems() {} -func (*UnmarkedAsDuplicateEvent) isPullRequestTimelineItems() {} -func (*UnpinnedEvent) isPullRequestTimelineItems() {} -func (*UnsubscribedEvent) isPullRequestTimelineItems() {} -func (*UserBlockedEvent) isPullRequestTimelineItems() {} - -type PullRequestTimelineItems struct { - Interface PullRequestTimelineItems_Interface -} - -func (x *PullRequestTimelineItems) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *PullRequestTimelineItems) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for PullRequestTimelineItems", info.Typename) - case "AddedToProjectEvent": - x.Interface = new(AddedToProjectEvent) - case "AssignedEvent": - x.Interface = new(AssignedEvent) - case "AutoMergeDisabledEvent": - x.Interface = new(AutoMergeDisabledEvent) - case "AutoMergeEnabledEvent": - x.Interface = new(AutoMergeEnabledEvent) - case "AutoRebaseEnabledEvent": - x.Interface = new(AutoRebaseEnabledEvent) - case "AutoSquashEnabledEvent": - x.Interface = new(AutoSquashEnabledEvent) - case "AutomaticBaseChangeFailedEvent": - x.Interface = new(AutomaticBaseChangeFailedEvent) - case "AutomaticBaseChangeSucceededEvent": - x.Interface = new(AutomaticBaseChangeSucceededEvent) - case "BaseRefChangedEvent": - x.Interface = new(BaseRefChangedEvent) - case "BaseRefDeletedEvent": - x.Interface = new(BaseRefDeletedEvent) - case "BaseRefForcePushedEvent": - x.Interface = new(BaseRefForcePushedEvent) - case "ClosedEvent": - x.Interface = new(ClosedEvent) - case "CommentDeletedEvent": - x.Interface = new(CommentDeletedEvent) - case "ConnectedEvent": - x.Interface = new(ConnectedEvent) - case "ConvertToDraftEvent": - x.Interface = new(ConvertToDraftEvent) - case "ConvertedNoteToIssueEvent": - x.Interface = new(ConvertedNoteToIssueEvent) - case "ConvertedToDiscussionEvent": - x.Interface = new(ConvertedToDiscussionEvent) - case "CrossReferencedEvent": - x.Interface = new(CrossReferencedEvent) - case "DemilestonedEvent": - x.Interface = new(DemilestonedEvent) - case "DeployedEvent": - x.Interface = new(DeployedEvent) - case "DeploymentEnvironmentChangedEvent": - x.Interface = new(DeploymentEnvironmentChangedEvent) - case "DisconnectedEvent": - x.Interface = new(DisconnectedEvent) - case "HeadRefDeletedEvent": - x.Interface = new(HeadRefDeletedEvent) - case "HeadRefForcePushedEvent": - x.Interface = new(HeadRefForcePushedEvent) - case "HeadRefRestoredEvent": - x.Interface = new(HeadRefRestoredEvent) - case "IssueComment": - x.Interface = new(IssueComment) - case "LabeledEvent": - x.Interface = new(LabeledEvent) - case "LockedEvent": - x.Interface = new(LockedEvent) - case "MarkedAsDuplicateEvent": - x.Interface = new(MarkedAsDuplicateEvent) - case "MentionedEvent": - x.Interface = new(MentionedEvent) - case "MergedEvent": - x.Interface = new(MergedEvent) - case "MilestonedEvent": - x.Interface = new(MilestonedEvent) - case "MovedColumnsInProjectEvent": - x.Interface = new(MovedColumnsInProjectEvent) - case "PinnedEvent": - x.Interface = new(PinnedEvent) - case "PullRequestCommit": - x.Interface = new(PullRequestCommit) - case "PullRequestCommitCommentThread": - x.Interface = new(PullRequestCommitCommentThread) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewThread": - x.Interface = new(PullRequestReviewThread) - case "PullRequestRevisionMarker": - x.Interface = new(PullRequestRevisionMarker) - case "ReadyForReviewEvent": - x.Interface = new(ReadyForReviewEvent) - case "ReferencedEvent": - x.Interface = new(ReferencedEvent) - case "RemovedFromProjectEvent": - x.Interface = new(RemovedFromProjectEvent) - case "RenamedTitleEvent": - x.Interface = new(RenamedTitleEvent) - case "ReopenedEvent": - x.Interface = new(ReopenedEvent) - case "ReviewDismissedEvent": - x.Interface = new(ReviewDismissedEvent) - case "ReviewRequestRemovedEvent": - x.Interface = new(ReviewRequestRemovedEvent) - case "ReviewRequestedEvent": - x.Interface = new(ReviewRequestedEvent) - case "SubscribedEvent": - x.Interface = new(SubscribedEvent) - case "TransferredEvent": - x.Interface = new(TransferredEvent) - case "UnassignedEvent": - x.Interface = new(UnassignedEvent) - case "UnlabeledEvent": - x.Interface = new(UnlabeledEvent) - case "UnlockedEvent": - x.Interface = new(UnlockedEvent) - case "UnmarkedAsDuplicateEvent": - x.Interface = new(UnmarkedAsDuplicateEvent) - case "UnpinnedEvent": - x.Interface = new(UnpinnedEvent) - case "UnsubscribedEvent": - x.Interface = new(UnsubscribedEvent) - case "UserBlockedEvent": - x.Interface = new(UserBlockedEvent) - } - return json.Unmarshal(js, x.Interface) -} - -// PullRequestTimelineItemsConnection (OBJECT): The connection type for PullRequestTimelineItems. -type PullRequestTimelineItemsConnection struct { - // Edges: A list of edges. - Edges []*PullRequestTimelineItemsEdge `json:"edges,omitempty"` - - // FilteredCount: Identifies the count of items after applying `before` and `after` filters. - FilteredCount int `json:"filteredCount,omitempty"` - - // Nodes: A list of nodes. - Nodes []PullRequestTimelineItems `json:"nodes,omitempty"` - - // PageCount: Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. - PageCount int `json:"pageCount,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` - - // UpdatedAt: Identifies the date and time when the timeline was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *PullRequestTimelineItemsConnection) GetEdges() []*PullRequestTimelineItemsEdge { - return x.Edges -} -func (x *PullRequestTimelineItemsConnection) GetFilteredCount() int { return x.FilteredCount } -func (x *PullRequestTimelineItemsConnection) GetNodes() []PullRequestTimelineItems { return x.Nodes } -func (x *PullRequestTimelineItemsConnection) GetPageCount() int { return x.PageCount } -func (x *PullRequestTimelineItemsConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PullRequestTimelineItemsConnection) GetTotalCount() int { return x.TotalCount } -func (x *PullRequestTimelineItemsConnection) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// PullRequestTimelineItemsEdge (OBJECT): An edge in a connection. -type PullRequestTimelineItemsEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node PullRequestTimelineItems `json:"node,omitempty"` -} - -func (x *PullRequestTimelineItemsEdge) GetCursor() string { return x.Cursor } -func (x *PullRequestTimelineItemsEdge) GetNode() PullRequestTimelineItems { return x.Node } - -// PullRequestTimelineItemsItemType (ENUM): The possible item types found in a timeline. -type PullRequestTimelineItemsItemType string - -// PullRequestTimelineItemsItemType_PULL_REQUEST_COMMIT: Represents a Git commit part of a pull request. -const PullRequestTimelineItemsItemType_PULL_REQUEST_COMMIT PullRequestTimelineItemsItemType = "PULL_REQUEST_COMMIT" - -// PullRequestTimelineItemsItemType_PULL_REQUEST_COMMIT_COMMENT_THREAD: Represents a commit comment thread part of a pull request. -const PullRequestTimelineItemsItemType_PULL_REQUEST_COMMIT_COMMENT_THREAD PullRequestTimelineItemsItemType = "PULL_REQUEST_COMMIT_COMMENT_THREAD" - -// PullRequestTimelineItemsItemType_PULL_REQUEST_REVIEW: A review object for a given pull request. -const PullRequestTimelineItemsItemType_PULL_REQUEST_REVIEW PullRequestTimelineItemsItemType = "PULL_REQUEST_REVIEW" - -// PullRequestTimelineItemsItemType_PULL_REQUEST_REVIEW_THREAD: A threaded list of comments for a given pull request. -const PullRequestTimelineItemsItemType_PULL_REQUEST_REVIEW_THREAD PullRequestTimelineItemsItemType = "PULL_REQUEST_REVIEW_THREAD" - -// PullRequestTimelineItemsItemType_PULL_REQUEST_REVISION_MARKER: Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits. -const PullRequestTimelineItemsItemType_PULL_REQUEST_REVISION_MARKER PullRequestTimelineItemsItemType = "PULL_REQUEST_REVISION_MARKER" - -// PullRequestTimelineItemsItemType_AUTOMATIC_BASE_CHANGE_FAILED_EVENT: Represents a 'automatic_base_change_failed' event on a given pull request. -const PullRequestTimelineItemsItemType_AUTOMATIC_BASE_CHANGE_FAILED_EVENT PullRequestTimelineItemsItemType = "AUTOMATIC_BASE_CHANGE_FAILED_EVENT" - -// PullRequestTimelineItemsItemType_AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT: Represents a 'automatic_base_change_succeeded' event on a given pull request. -const PullRequestTimelineItemsItemType_AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT PullRequestTimelineItemsItemType = "AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT" - -// PullRequestTimelineItemsItemType_AUTO_MERGE_DISABLED_EVENT: Represents a 'auto_merge_disabled' event on a given pull request. -const PullRequestTimelineItemsItemType_AUTO_MERGE_DISABLED_EVENT PullRequestTimelineItemsItemType = "AUTO_MERGE_DISABLED_EVENT" - -// PullRequestTimelineItemsItemType_AUTO_MERGE_ENABLED_EVENT: Represents a 'auto_merge_enabled' event on a given pull request. -const PullRequestTimelineItemsItemType_AUTO_MERGE_ENABLED_EVENT PullRequestTimelineItemsItemType = "AUTO_MERGE_ENABLED_EVENT" - -// PullRequestTimelineItemsItemType_AUTO_REBASE_ENABLED_EVENT: Represents a 'auto_rebase_enabled' event on a given pull request. -const PullRequestTimelineItemsItemType_AUTO_REBASE_ENABLED_EVENT PullRequestTimelineItemsItemType = "AUTO_REBASE_ENABLED_EVENT" - -// PullRequestTimelineItemsItemType_AUTO_SQUASH_ENABLED_EVENT: Represents a 'auto_squash_enabled' event on a given pull request. -const PullRequestTimelineItemsItemType_AUTO_SQUASH_ENABLED_EVENT PullRequestTimelineItemsItemType = "AUTO_SQUASH_ENABLED_EVENT" - -// PullRequestTimelineItemsItemType_BASE_REF_CHANGED_EVENT: Represents a 'base_ref_changed' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_BASE_REF_CHANGED_EVENT PullRequestTimelineItemsItemType = "BASE_REF_CHANGED_EVENT" - -// PullRequestTimelineItemsItemType_BASE_REF_FORCE_PUSHED_EVENT: Represents a 'base_ref_force_pushed' event on a given pull request. -const PullRequestTimelineItemsItemType_BASE_REF_FORCE_PUSHED_EVENT PullRequestTimelineItemsItemType = "BASE_REF_FORCE_PUSHED_EVENT" - -// PullRequestTimelineItemsItemType_BASE_REF_DELETED_EVENT: Represents a 'base_ref_deleted' event on a given pull request. -const PullRequestTimelineItemsItemType_BASE_REF_DELETED_EVENT PullRequestTimelineItemsItemType = "BASE_REF_DELETED_EVENT" - -// PullRequestTimelineItemsItemType_DEPLOYED_EVENT: Represents a 'deployed' event on a given pull request. -const PullRequestTimelineItemsItemType_DEPLOYED_EVENT PullRequestTimelineItemsItemType = "DEPLOYED_EVENT" - -// PullRequestTimelineItemsItemType_DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT: Represents a 'deployment_environment_changed' event on a given pull request. -const PullRequestTimelineItemsItemType_DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT PullRequestTimelineItemsItemType = "DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT" - -// PullRequestTimelineItemsItemType_HEAD_REF_DELETED_EVENT: Represents a 'head_ref_deleted' event on a given pull request. -const PullRequestTimelineItemsItemType_HEAD_REF_DELETED_EVENT PullRequestTimelineItemsItemType = "HEAD_REF_DELETED_EVENT" - -// PullRequestTimelineItemsItemType_HEAD_REF_FORCE_PUSHED_EVENT: Represents a 'head_ref_force_pushed' event on a given pull request. -const PullRequestTimelineItemsItemType_HEAD_REF_FORCE_PUSHED_EVENT PullRequestTimelineItemsItemType = "HEAD_REF_FORCE_PUSHED_EVENT" - -// PullRequestTimelineItemsItemType_HEAD_REF_RESTORED_EVENT: Represents a 'head_ref_restored' event on a given pull request. -const PullRequestTimelineItemsItemType_HEAD_REF_RESTORED_EVENT PullRequestTimelineItemsItemType = "HEAD_REF_RESTORED_EVENT" - -// PullRequestTimelineItemsItemType_MERGED_EVENT: Represents a 'merged' event on a given pull request. -const PullRequestTimelineItemsItemType_MERGED_EVENT PullRequestTimelineItemsItemType = "MERGED_EVENT" - -// PullRequestTimelineItemsItemType_REVIEW_DISMISSED_EVENT: Represents a 'review_dismissed' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_REVIEW_DISMISSED_EVENT PullRequestTimelineItemsItemType = "REVIEW_DISMISSED_EVENT" - -// PullRequestTimelineItemsItemType_REVIEW_REQUESTED_EVENT: Represents an 'review_requested' event on a given pull request. -const PullRequestTimelineItemsItemType_REVIEW_REQUESTED_EVENT PullRequestTimelineItemsItemType = "REVIEW_REQUESTED_EVENT" - -// PullRequestTimelineItemsItemType_REVIEW_REQUEST_REMOVED_EVENT: Represents an 'review_request_removed' event on a given pull request. -const PullRequestTimelineItemsItemType_REVIEW_REQUEST_REMOVED_EVENT PullRequestTimelineItemsItemType = "REVIEW_REQUEST_REMOVED_EVENT" - -// PullRequestTimelineItemsItemType_READY_FOR_REVIEW_EVENT: Represents a 'ready_for_review' event on a given pull request. -const PullRequestTimelineItemsItemType_READY_FOR_REVIEW_EVENT PullRequestTimelineItemsItemType = "READY_FOR_REVIEW_EVENT" - -// PullRequestTimelineItemsItemType_CONVERT_TO_DRAFT_EVENT: Represents a 'convert_to_draft' event on a given pull request. -const PullRequestTimelineItemsItemType_CONVERT_TO_DRAFT_EVENT PullRequestTimelineItemsItemType = "CONVERT_TO_DRAFT_EVENT" - -// PullRequestTimelineItemsItemType_ADDED_TO_MERGE_QUEUE_EVENT: Represents an 'added_to_merge_queue' event on a given pull request. -const PullRequestTimelineItemsItemType_ADDED_TO_MERGE_QUEUE_EVENT PullRequestTimelineItemsItemType = "ADDED_TO_MERGE_QUEUE_EVENT" - -// PullRequestTimelineItemsItemType_REMOVED_FROM_MERGE_QUEUE_EVENT: Represents a 'removed_from_merge_queue' event on a given pull request. -const PullRequestTimelineItemsItemType_REMOVED_FROM_MERGE_QUEUE_EVENT PullRequestTimelineItemsItemType = "REMOVED_FROM_MERGE_QUEUE_EVENT" - -// PullRequestTimelineItemsItemType_ISSUE_COMMENT: Represents a comment on an Issue. -const PullRequestTimelineItemsItemType_ISSUE_COMMENT PullRequestTimelineItemsItemType = "ISSUE_COMMENT" - -// PullRequestTimelineItemsItemType_CROSS_REFERENCED_EVENT: Represents a mention made by one issue or pull request to another. -const PullRequestTimelineItemsItemType_CROSS_REFERENCED_EVENT PullRequestTimelineItemsItemType = "CROSS_REFERENCED_EVENT" - -// PullRequestTimelineItemsItemType_ADDED_TO_PROJECT_EVENT: Represents a 'added_to_project' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_ADDED_TO_PROJECT_EVENT PullRequestTimelineItemsItemType = "ADDED_TO_PROJECT_EVENT" - -// PullRequestTimelineItemsItemType_ASSIGNED_EVENT: Represents an 'assigned' event on any assignable object. -const PullRequestTimelineItemsItemType_ASSIGNED_EVENT PullRequestTimelineItemsItemType = "ASSIGNED_EVENT" - -// PullRequestTimelineItemsItemType_CLOSED_EVENT: Represents a 'closed' event on any `Closable`. -const PullRequestTimelineItemsItemType_CLOSED_EVENT PullRequestTimelineItemsItemType = "CLOSED_EVENT" - -// PullRequestTimelineItemsItemType_COMMENT_DELETED_EVENT: Represents a 'comment_deleted' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_COMMENT_DELETED_EVENT PullRequestTimelineItemsItemType = "COMMENT_DELETED_EVENT" - -// PullRequestTimelineItemsItemType_CONNECTED_EVENT: Represents a 'connected' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_CONNECTED_EVENT PullRequestTimelineItemsItemType = "CONNECTED_EVENT" - -// PullRequestTimelineItemsItemType_CONVERTED_NOTE_TO_ISSUE_EVENT: Represents a 'converted_note_to_issue' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_CONVERTED_NOTE_TO_ISSUE_EVENT PullRequestTimelineItemsItemType = "CONVERTED_NOTE_TO_ISSUE_EVENT" - -// PullRequestTimelineItemsItemType_CONVERTED_TO_DISCUSSION_EVENT: Represents a 'converted_to_discussion' event on a given issue. -const PullRequestTimelineItemsItemType_CONVERTED_TO_DISCUSSION_EVENT PullRequestTimelineItemsItemType = "CONVERTED_TO_DISCUSSION_EVENT" - -// PullRequestTimelineItemsItemType_DEMILESTONED_EVENT: Represents a 'demilestoned' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_DEMILESTONED_EVENT PullRequestTimelineItemsItemType = "DEMILESTONED_EVENT" - -// PullRequestTimelineItemsItemType_DISCONNECTED_EVENT: Represents a 'disconnected' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_DISCONNECTED_EVENT PullRequestTimelineItemsItemType = "DISCONNECTED_EVENT" - -// PullRequestTimelineItemsItemType_LABELED_EVENT: Represents a 'labeled' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_LABELED_EVENT PullRequestTimelineItemsItemType = "LABELED_EVENT" - -// PullRequestTimelineItemsItemType_LOCKED_EVENT: Represents a 'locked' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_LOCKED_EVENT PullRequestTimelineItemsItemType = "LOCKED_EVENT" - -// PullRequestTimelineItemsItemType_MARKED_AS_DUPLICATE_EVENT: Represents a 'marked_as_duplicate' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_MARKED_AS_DUPLICATE_EVENT PullRequestTimelineItemsItemType = "MARKED_AS_DUPLICATE_EVENT" - -// PullRequestTimelineItemsItemType_MENTIONED_EVENT: Represents a 'mentioned' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_MENTIONED_EVENT PullRequestTimelineItemsItemType = "MENTIONED_EVENT" - -// PullRequestTimelineItemsItemType_MILESTONED_EVENT: Represents a 'milestoned' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_MILESTONED_EVENT PullRequestTimelineItemsItemType = "MILESTONED_EVENT" - -// PullRequestTimelineItemsItemType_MOVED_COLUMNS_IN_PROJECT_EVENT: Represents a 'moved_columns_in_project' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_MOVED_COLUMNS_IN_PROJECT_EVENT PullRequestTimelineItemsItemType = "MOVED_COLUMNS_IN_PROJECT_EVENT" - -// PullRequestTimelineItemsItemType_PINNED_EVENT: Represents a 'pinned' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_PINNED_EVENT PullRequestTimelineItemsItemType = "PINNED_EVENT" - -// PullRequestTimelineItemsItemType_REFERENCED_EVENT: Represents a 'referenced' event on a given `ReferencedSubject`. -const PullRequestTimelineItemsItemType_REFERENCED_EVENT PullRequestTimelineItemsItemType = "REFERENCED_EVENT" - -// PullRequestTimelineItemsItemType_REMOVED_FROM_PROJECT_EVENT: Represents a 'removed_from_project' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_REMOVED_FROM_PROJECT_EVENT PullRequestTimelineItemsItemType = "REMOVED_FROM_PROJECT_EVENT" - -// PullRequestTimelineItemsItemType_RENAMED_TITLE_EVENT: Represents a 'renamed' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_RENAMED_TITLE_EVENT PullRequestTimelineItemsItemType = "RENAMED_TITLE_EVENT" - -// PullRequestTimelineItemsItemType_REOPENED_EVENT: Represents a 'reopened' event on any `Closable`. -const PullRequestTimelineItemsItemType_REOPENED_EVENT PullRequestTimelineItemsItemType = "REOPENED_EVENT" - -// PullRequestTimelineItemsItemType_SUBSCRIBED_EVENT: Represents a 'subscribed' event on a given `Subscribable`. -const PullRequestTimelineItemsItemType_SUBSCRIBED_EVENT PullRequestTimelineItemsItemType = "SUBSCRIBED_EVENT" - -// PullRequestTimelineItemsItemType_TRANSFERRED_EVENT: Represents a 'transferred' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_TRANSFERRED_EVENT PullRequestTimelineItemsItemType = "TRANSFERRED_EVENT" - -// PullRequestTimelineItemsItemType_UNASSIGNED_EVENT: Represents an 'unassigned' event on any assignable object. -const PullRequestTimelineItemsItemType_UNASSIGNED_EVENT PullRequestTimelineItemsItemType = "UNASSIGNED_EVENT" - -// PullRequestTimelineItemsItemType_UNLABELED_EVENT: Represents an 'unlabeled' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_UNLABELED_EVENT PullRequestTimelineItemsItemType = "UNLABELED_EVENT" - -// PullRequestTimelineItemsItemType_UNLOCKED_EVENT: Represents an 'unlocked' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_UNLOCKED_EVENT PullRequestTimelineItemsItemType = "UNLOCKED_EVENT" - -// PullRequestTimelineItemsItemType_USER_BLOCKED_EVENT: Represents a 'user_blocked' event on a given user. -const PullRequestTimelineItemsItemType_USER_BLOCKED_EVENT PullRequestTimelineItemsItemType = "USER_BLOCKED_EVENT" - -// PullRequestTimelineItemsItemType_UNMARKED_AS_DUPLICATE_EVENT: Represents an 'unmarked_as_duplicate' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_UNMARKED_AS_DUPLICATE_EVENT PullRequestTimelineItemsItemType = "UNMARKED_AS_DUPLICATE_EVENT" - -// PullRequestTimelineItemsItemType_UNPINNED_EVENT: Represents an 'unpinned' event on a given issue or pull request. -const PullRequestTimelineItemsItemType_UNPINNED_EVENT PullRequestTimelineItemsItemType = "UNPINNED_EVENT" - -// PullRequestTimelineItemsItemType_UNSUBSCRIBED_EVENT: Represents an 'unsubscribed' event on a given `Subscribable`. -const PullRequestTimelineItemsItemType_UNSUBSCRIBED_EVENT PullRequestTimelineItemsItemType = "UNSUBSCRIBED_EVENT" - -// PullRequestUpdateState (ENUM): The possible target states when updating a pull request. -type PullRequestUpdateState string - -// PullRequestUpdateState_OPEN: A pull request that is still open. -const PullRequestUpdateState_OPEN PullRequestUpdateState = "OPEN" - -// PullRequestUpdateState_CLOSED: A pull request that has been closed without being merged. -const PullRequestUpdateState_CLOSED PullRequestUpdateState = "CLOSED" - -// Push (OBJECT): A Git push. -type Push struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // NextSha: The SHA after the push. - NextSha GitObjectID `json:"nextSha,omitempty"` - - // Permalink: The permalink for this push. - Permalink URI `json:"permalink,omitempty"` - - // PreviousSha: The SHA before the push. - PreviousSha GitObjectID `json:"previousSha,omitempty"` - - // Pusher: The actor who pushed. - Pusher Actor `json:"pusher,omitempty"` - - // Repository: The repository that was pushed to. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *Push) GetId() ID { return x.Id } -func (x *Push) GetNextSha() GitObjectID { return x.NextSha } -func (x *Push) GetPermalink() URI { return x.Permalink } -func (x *Push) GetPreviousSha() GitObjectID { return x.PreviousSha } -func (x *Push) GetPusher() Actor { return x.Pusher } -func (x *Push) GetRepository() *Repository { return x.Repository } - -// PushAllowance (OBJECT): A team, user, or app who has the ability to push to a protected branch. -type PushAllowance struct { - // Actor: The actor that can push. - Actor PushAllowanceActor `json:"actor,omitempty"` - - // BranchProtectionRule: Identifies the branch protection rule associated with the allowed user, team, or app. - BranchProtectionRule *BranchProtectionRule `json:"branchProtectionRule,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` -} - -func (x *PushAllowance) GetActor() PushAllowanceActor { return x.Actor } -func (x *PushAllowance) GetBranchProtectionRule() *BranchProtectionRule { - return x.BranchProtectionRule -} -func (x *PushAllowance) GetId() ID { return x.Id } - -// PushAllowanceActor (UNION): Types that can be an actor. -// PushAllowanceActor_Interface: Types that can be an actor. -// -// Possible types: -// -// - *App -// - *Team -// - *User -type PushAllowanceActor_Interface interface { - isPushAllowanceActor() -} - -func (*App) isPushAllowanceActor() {} -func (*Team) isPushAllowanceActor() {} -func (*User) isPushAllowanceActor() {} - -type PushAllowanceActor struct { - Interface PushAllowanceActor_Interface -} - -func (x *PushAllowanceActor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *PushAllowanceActor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for PushAllowanceActor", info.Typename) - case "App": - x.Interface = new(App) - case "Team": - x.Interface = new(Team) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// PushAllowanceConnection (OBJECT): The connection type for PushAllowance. -type PushAllowanceConnection struct { - // Edges: A list of edges. - Edges []*PushAllowanceEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*PushAllowance `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *PushAllowanceConnection) GetEdges() []*PushAllowanceEdge { return x.Edges } -func (x *PushAllowanceConnection) GetNodes() []*PushAllowance { return x.Nodes } -func (x *PushAllowanceConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *PushAllowanceConnection) GetTotalCount() int { return x.TotalCount } - -// PushAllowanceEdge (OBJECT): An edge in a connection. -type PushAllowanceEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *PushAllowance `json:"node,omitempty"` -} - -func (x *PushAllowanceEdge) GetCursor() string { return x.Cursor } -func (x *PushAllowanceEdge) GetNode() *PushAllowance { return x.Node } - -// Query (OBJECT): The query root of GitHub's GraphQL interface. -type Query struct { - // CodeOfConduct: Look up a code of conduct by its key. - // - // Query arguments: - // - key String! - CodeOfConduct *CodeOfConduct `json:"codeOfConduct,omitempty"` - - // CodesOfConduct: Look up a code of conduct by its key. - CodesOfConduct []*CodeOfConduct `json:"codesOfConduct,omitempty"` - - // Enterprise: Look up an enterprise by URL slug. - // - // Query arguments: - // - slug String! - // - invitationToken String - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // EnterpriseAdministratorInvitation: Look up a pending enterprise administrator invitation by invitee, enterprise and role. - // - // Query arguments: - // - userLogin String! - // - enterpriseSlug String! - // - role EnterpriseAdministratorRole! - EnterpriseAdministratorInvitation *EnterpriseAdministratorInvitation `json:"enterpriseAdministratorInvitation,omitempty"` - - // EnterpriseAdministratorInvitationByToken: Look up a pending enterprise administrator invitation by invitation token. - // - // Query arguments: - // - invitationToken String! - EnterpriseAdministratorInvitationByToken *EnterpriseAdministratorInvitation `json:"enterpriseAdministratorInvitationByToken,omitempty"` - - // License: Look up an open source license by its key. - // - // Query arguments: - // - key String! - License *License `json:"license,omitempty"` - - // Licenses: Return a list of known open source licenses. - Licenses []*License `json:"licenses,omitempty"` - - // MarketplaceCategories: Get alphabetically sorted list of Marketplace categories. - // - // Query arguments: - // - includeCategories [String!] - // - excludeEmpty Boolean - // - excludeSubcategories Boolean - MarketplaceCategories []*MarketplaceCategory `json:"marketplaceCategories,omitempty"` - - // MarketplaceCategory: Look up a Marketplace category by its slug. - // - // Query arguments: - // - slug String! - // - useTopicAliases Boolean - MarketplaceCategory *MarketplaceCategory `json:"marketplaceCategory,omitempty"` - - // MarketplaceListing: Look up a single Marketplace listing. - // - // Query arguments: - // - slug String! - MarketplaceListing *MarketplaceListing `json:"marketplaceListing,omitempty"` - - // MarketplaceListings: Look up Marketplace listings. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - categorySlug String - // - useTopicAliases Boolean - // - viewerCanAdmin Boolean - // - adminId ID - // - organizationId ID - // - allStates Boolean - // - slugs [String] - // - primaryCategoryOnly Boolean - // - withFreeTrialsOnly Boolean - MarketplaceListings *MarketplaceListingConnection `json:"marketplaceListings,omitempty"` - - // Meta: Return information about the GitHub instance. - Meta *GitHubMetadata `json:"meta,omitempty"` - - // Node: Fetches an object given its ID. - // - // Query arguments: - // - id ID! - Node Node `json:"node,omitempty"` - - // Nodes: Lookup nodes by a list of IDs. - // - // Query arguments: - // - ids [ID!]! - Nodes []Node `json:"nodes,omitempty"` - - // Organization: Lookup a organization by login. - // - // Query arguments: - // - login String! - Organization *Organization `json:"organization,omitempty"` - - // RateLimit: The client's rate limit information. - // - // Query arguments: - // - dryRun Boolean - RateLimit *RateLimit `json:"rateLimit,omitempty"` - - // Relay: Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object. - Relay *Query `json:"relay,omitempty"` - - // Repository: Lookup a given repository by the owner and repository name. - // - // Query arguments: - // - owner String! - // - name String! - // - followRenames Boolean - Repository *Repository `json:"repository,omitempty"` - - // RepositoryOwner: Lookup a repository owner (ie. either a User or an Organization) by login. - // - // Query arguments: - // - login String! - RepositoryOwner RepositoryOwner `json:"repositoryOwner,omitempty"` - - // Resource: Lookup resource by a URL. - // - // Query arguments: - // - url URI! - Resource UniformResourceLocatable `json:"resource,omitempty"` - - // Search: Perform a search across resources. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String! - // - type SearchType! - Search *SearchResultItemConnection `json:"search,omitempty"` - - // SecurityAdvisories: GitHub Security Advisories. - // - // Query arguments: - // - orderBy SecurityAdvisoryOrder - // - identifier SecurityAdvisoryIdentifierFilter - // - publishedSince DateTime - // - updatedSince DateTime - // - classifications [SecurityAdvisoryClassification!] - // - after String - // - before String - // - first Int - // - last Int - SecurityAdvisories *SecurityAdvisoryConnection `json:"securityAdvisories,omitempty"` - - // SecurityAdvisory: Fetch a Security Advisory by its GHSA ID. - // - // Query arguments: - // - ghsaId String! - SecurityAdvisory *SecurityAdvisory `json:"securityAdvisory,omitempty"` - - // SecurityVulnerabilities: Software Vulnerabilities documented by GitHub Security Advisories. - // - // Query arguments: - // - orderBy SecurityVulnerabilityOrder - // - ecosystem SecurityAdvisoryEcosystem - // - package String - // - severities [SecurityAdvisorySeverity!] - // - classifications [SecurityAdvisoryClassification!] - // - after String - // - before String - // - first Int - // - last Int - SecurityVulnerabilities *SecurityVulnerabilityConnection `json:"securityVulnerabilities,omitempty"` - - // Sponsorables: Users and organizations who can be sponsored via GitHub Sponsors. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SponsorableOrder - // - onlyDependencies Boolean - // - orgLoginForDependencies String - // - dependencyEcosystem SecurityAdvisoryEcosystem - // - ecosystem DependencyGraphEcosystem - Sponsorables *SponsorableItemConnection `json:"sponsorables,omitempty"` - - // Topic: Look up a topic by name. - // - // Query arguments: - // - name String! - Topic *Topic `json:"topic,omitempty"` - - // User: Lookup a user by login. - // - // Query arguments: - // - login String! - User *User `json:"user,omitempty"` - - // Viewer: The currently authenticated user. - Viewer *User `json:"viewer,omitempty"` -} - -func (x *Query) GetCodeOfConduct() *CodeOfConduct { return x.CodeOfConduct } -func (x *Query) GetCodesOfConduct() []*CodeOfConduct { return x.CodesOfConduct } -func (x *Query) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *Query) GetEnterpriseAdministratorInvitation() *EnterpriseAdministratorInvitation { - return x.EnterpriseAdministratorInvitation -} -func (x *Query) GetEnterpriseAdministratorInvitationByToken() *EnterpriseAdministratorInvitation { - return x.EnterpriseAdministratorInvitationByToken -} -func (x *Query) GetLicense() *License { return x.License } -func (x *Query) GetLicenses() []*License { return x.Licenses } -func (x *Query) GetMarketplaceCategories() []*MarketplaceCategory { return x.MarketplaceCategories } -func (x *Query) GetMarketplaceCategory() *MarketplaceCategory { return x.MarketplaceCategory } -func (x *Query) GetMarketplaceListing() *MarketplaceListing { return x.MarketplaceListing } -func (x *Query) GetMarketplaceListings() *MarketplaceListingConnection { return x.MarketplaceListings } -func (x *Query) GetMeta() *GitHubMetadata { return x.Meta } -func (x *Query) GetNode() Node { return x.Node } -func (x *Query) GetNodes() []Node { return x.Nodes } -func (x *Query) GetOrganization() *Organization { return x.Organization } -func (x *Query) GetRateLimit() *RateLimit { return x.RateLimit } -func (x *Query) GetRelay() *Query { return x.Relay } -func (x *Query) GetRepository() *Repository { return x.Repository } -func (x *Query) GetRepositoryOwner() RepositoryOwner { return x.RepositoryOwner } -func (x *Query) GetResource() UniformResourceLocatable { return x.Resource } -func (x *Query) GetSearch() *SearchResultItemConnection { return x.Search } -func (x *Query) GetSecurityAdvisories() *SecurityAdvisoryConnection { return x.SecurityAdvisories } -func (x *Query) GetSecurityAdvisory() *SecurityAdvisory { return x.SecurityAdvisory } -func (x *Query) GetSecurityVulnerabilities() *SecurityVulnerabilityConnection { - return x.SecurityVulnerabilities -} -func (x *Query) GetSponsorables() *SponsorableItemConnection { return x.Sponsorables } -func (x *Query) GetTopic() *Topic { return x.Topic } -func (x *Query) GetUser() *User { return x.User } -func (x *Query) GetViewer() *User { return x.Viewer } - -// RateLimit (OBJECT): Represents the client's rate limit. -type RateLimit struct { - // Cost: The point cost for the current query counting against the rate limit. - Cost int `json:"cost,omitempty"` - - // Limit: The maximum number of points the client is permitted to consume in a 60 minute window. - Limit int `json:"limit,omitempty"` - - // NodeCount: The maximum number of nodes this query may return. - NodeCount int `json:"nodeCount,omitempty"` - - // Remaining: The number of points remaining in the current rate limit window. - Remaining int `json:"remaining,omitempty"` - - // ResetAt: The time at which the current rate limit window resets in UTC epoch seconds. - ResetAt DateTime `json:"resetAt,omitempty"` - - // Used: The number of points used in the current rate limit window. - Used int `json:"used,omitempty"` -} - -func (x *RateLimit) GetCost() int { return x.Cost } -func (x *RateLimit) GetLimit() int { return x.Limit } -func (x *RateLimit) GetNodeCount() int { return x.NodeCount } -func (x *RateLimit) GetRemaining() int { return x.Remaining } -func (x *RateLimit) GetResetAt() DateTime { return x.ResetAt } -func (x *RateLimit) GetUsed() int { return x.Used } - -// Reactable (INTERFACE): Represents a subject that can be reacted on. -// Reactable_Interface: Represents a subject that can be reacted on. -// -// Possible types: -// -// - *CommitComment -// - *Discussion -// - *DiscussionComment -// - *Issue -// - *IssueComment -// - *PullRequest -// - *PullRequestReview -// - *PullRequestReviewComment -// - *Release -// - *TeamDiscussion -// - *TeamDiscussionComment -type Reactable_Interface interface { - isReactable() - GetDatabaseId() int - GetId() ID - GetReactionGroups() []*ReactionGroup - GetReactions() *ReactionConnection - GetViewerCanReact() bool -} - -func (*CommitComment) isReactable() {} -func (*Discussion) isReactable() {} -func (*DiscussionComment) isReactable() {} -func (*Issue) isReactable() {} -func (*IssueComment) isReactable() {} -func (*PullRequest) isReactable() {} -func (*PullRequestReview) isReactable() {} -func (*PullRequestReviewComment) isReactable() {} -func (*Release) isReactable() {} -func (*TeamDiscussion) isReactable() {} -func (*TeamDiscussionComment) isReactable() {} - -type Reactable struct { - Interface Reactable_Interface -} - -func (x *Reactable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Reactable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Reactable", info.Typename) - case "CommitComment": - x.Interface = new(CommitComment) - case "Discussion": - x.Interface = new(Discussion) - case "DiscussionComment": - x.Interface = new(DiscussionComment) - case "Issue": - x.Interface = new(Issue) - case "IssueComment": - x.Interface = new(IssueComment) - case "PullRequest": - x.Interface = new(PullRequest) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - case "Release": - x.Interface = new(Release) - case "TeamDiscussion": - x.Interface = new(TeamDiscussion) - case "TeamDiscussionComment": - x.Interface = new(TeamDiscussionComment) - } - return json.Unmarshal(js, x.Interface) -} - -// ReactingUserConnection (OBJECT): The connection type for User. -type ReactingUserConnection struct { - // Edges: A list of edges. - Edges []*ReactingUserEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ReactingUserConnection) GetEdges() []*ReactingUserEdge { return x.Edges } -func (x *ReactingUserConnection) GetNodes() []*User { return x.Nodes } -func (x *ReactingUserConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ReactingUserConnection) GetTotalCount() int { return x.TotalCount } - -// ReactingUserEdge (OBJECT): Represents a user that's made a reaction. -type ReactingUserEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: undocumented. - Node *User `json:"node,omitempty"` - - // ReactedAt: The moment when the user made the reaction. - ReactedAt DateTime `json:"reactedAt,omitempty"` -} - -func (x *ReactingUserEdge) GetCursor() string { return x.Cursor } -func (x *ReactingUserEdge) GetNode() *User { return x.Node } -func (x *ReactingUserEdge) GetReactedAt() DateTime { return x.ReactedAt } - -// Reaction (OBJECT): An emoji reaction to a particular piece of content. -type Reaction struct { - // Content: Identifies the emoji reaction. - Content ReactionContent `json:"content,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Reactable: The reactable piece of content. - Reactable Reactable `json:"reactable,omitempty"` - - // User: Identifies the user who created this reaction. - User *User `json:"user,omitempty"` -} - -func (x *Reaction) GetContent() ReactionContent { return x.Content } -func (x *Reaction) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Reaction) GetDatabaseId() int { return x.DatabaseId } -func (x *Reaction) GetId() ID { return x.Id } -func (x *Reaction) GetReactable() Reactable { return x.Reactable } -func (x *Reaction) GetUser() *User { return x.User } - -// ReactionConnection (OBJECT): A list of reactions that have been left on the subject. -type ReactionConnection struct { - // Edges: A list of edges. - Edges []*ReactionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Reaction `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` - - // ViewerHasReacted: Whether or not the authenticated user has left a reaction on the subject. - ViewerHasReacted bool `json:"viewerHasReacted,omitempty"` -} - -func (x *ReactionConnection) GetEdges() []*ReactionEdge { return x.Edges } -func (x *ReactionConnection) GetNodes() []*Reaction { return x.Nodes } -func (x *ReactionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ReactionConnection) GetTotalCount() int { return x.TotalCount } -func (x *ReactionConnection) GetViewerHasReacted() bool { return x.ViewerHasReacted } - -// ReactionContent (ENUM): Emojis that can be attached to Issues, Pull Requests and Comments. -type ReactionContent string - -// ReactionContent_THUMBS_UP: Represents the `:+1:` emoji. -const ReactionContent_THUMBS_UP ReactionContent = "THUMBS_UP" - -// ReactionContent_THUMBS_DOWN: Represents the `:-1:` emoji. -const ReactionContent_THUMBS_DOWN ReactionContent = "THUMBS_DOWN" - -// ReactionContent_LAUGH: Represents the `:laugh:` emoji. -const ReactionContent_LAUGH ReactionContent = "LAUGH" - -// ReactionContent_HOORAY: Represents the `:hooray:` emoji. -const ReactionContent_HOORAY ReactionContent = "HOORAY" - -// ReactionContent_CONFUSED: Represents the `:confused:` emoji. -const ReactionContent_CONFUSED ReactionContent = "CONFUSED" - -// ReactionContent_HEART: Represents the `:heart:` emoji. -const ReactionContent_HEART ReactionContent = "HEART" - -// ReactionContent_ROCKET: Represents the `:rocket:` emoji. -const ReactionContent_ROCKET ReactionContent = "ROCKET" - -// ReactionContent_EYES: Represents the `:eyes:` emoji. -const ReactionContent_EYES ReactionContent = "EYES" - -// ReactionEdge (OBJECT): An edge in a connection. -type ReactionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Reaction `json:"node,omitempty"` -} - -func (x *ReactionEdge) GetCursor() string { return x.Cursor } -func (x *ReactionEdge) GetNode() *Reaction { return x.Node } - -// ReactionGroup (OBJECT): A group of emoji reactions to a particular piece of content. -type ReactionGroup struct { - // Content: Identifies the emoji reaction. - Content ReactionContent `json:"content,omitempty"` - - // CreatedAt: Identifies when the reaction was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Reactors: Reactors to the reaction subject with the emotion represented by this reaction group. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Reactors *ReactorConnection `json:"reactors,omitempty"` - - // Subject: The subject that was reacted to. - Subject Reactable `json:"subject,omitempty"` - - // Users: Users who have reacted to the reaction subject with the emotion represented by this reaction group. - // - // Deprecated: Users who have reacted to the reaction subject with the emotion represented by this reaction group. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Users *ReactingUserConnection `json:"users,omitempty"` - - // ViewerHasReacted: Whether or not the authenticated user has left a reaction on the subject. - ViewerHasReacted bool `json:"viewerHasReacted,omitempty"` -} - -func (x *ReactionGroup) GetContent() ReactionContent { return x.Content } -func (x *ReactionGroup) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ReactionGroup) GetReactors() *ReactorConnection { return x.Reactors } -func (x *ReactionGroup) GetSubject() Reactable { return x.Subject } -func (x *ReactionGroup) GetUsers() *ReactingUserConnection { return x.Users } -func (x *ReactionGroup) GetViewerHasReacted() bool { return x.ViewerHasReacted } - -// ReactionOrder (INPUT_OBJECT): Ways in which lists of reactions can be ordered upon return. -type ReactionOrder struct { - // Field: The field in which to order reactions by. - // - // GraphQL type: ReactionOrderField! - Field ReactionOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order reactions by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ReactionOrderField (ENUM): A list of fields that reactions can be ordered by. -type ReactionOrderField string - -// ReactionOrderField_CREATED_AT: Allows ordering a list of reactions by when they were created. -const ReactionOrderField_CREATED_AT ReactionOrderField = "CREATED_AT" - -// Reactor (UNION): Types that can be assigned to reactions. -// Reactor_Interface: Types that can be assigned to reactions. -// -// Possible types: -// -// - *Bot -// - *Mannequin -// - *Organization -// - *User -type Reactor_Interface interface { - isReactor() -} - -func (*Bot) isReactor() {} -func (*Mannequin) isReactor() {} -func (*Organization) isReactor() {} -func (*User) isReactor() {} - -type Reactor struct { - Interface Reactor_Interface -} - -func (x *Reactor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Reactor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Reactor", info.Typename) - case "Bot": - x.Interface = new(Bot) - case "Mannequin": - x.Interface = new(Mannequin) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// ReactorConnection (OBJECT): The connection type for Reactor. -type ReactorConnection struct { - // Edges: A list of edges. - Edges []*ReactorEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []Reactor `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ReactorConnection) GetEdges() []*ReactorEdge { return x.Edges } -func (x *ReactorConnection) GetNodes() []Reactor { return x.Nodes } -func (x *ReactorConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ReactorConnection) GetTotalCount() int { return x.TotalCount } - -// ReactorEdge (OBJECT): Represents an author of a reaction. -type ReactorEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The author of the reaction. - Node Reactor `json:"node,omitempty"` - - // ReactedAt: The moment when the user made the reaction. - ReactedAt DateTime `json:"reactedAt,omitempty"` -} - -func (x *ReactorEdge) GetCursor() string { return x.Cursor } -func (x *ReactorEdge) GetNode() Reactor { return x.Node } -func (x *ReactorEdge) GetReactedAt() DateTime { return x.ReactedAt } - -// ReadyForReviewEvent (OBJECT): Represents a 'ready_for_review' event on a given pull request. -type ReadyForReviewEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // ResourcePath: The HTTP path for this ready for review event. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this ready for review event. - Url URI `json:"url,omitempty"` -} - -func (x *ReadyForReviewEvent) GetActor() Actor { return x.Actor } -func (x *ReadyForReviewEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ReadyForReviewEvent) GetId() ID { return x.Id } -func (x *ReadyForReviewEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *ReadyForReviewEvent) GetResourcePath() URI { return x.ResourcePath } -func (x *ReadyForReviewEvent) GetUrl() URI { return x.Url } - -// Ref (OBJECT): Represents a Git reference. -type Ref struct { - // AssociatedPullRequests: A list of pull requests with this ref as the head ref. - // - // Query arguments: - // - states [PullRequestState!] - // - labels [String!] - // - headRefName String - // - baseRefName String - // - orderBy IssueOrder - // - after String - // - before String - // - first Int - // - last Int - AssociatedPullRequests *PullRequestConnection `json:"associatedPullRequests,omitempty"` - - // BranchProtectionRule: Branch protection rules for this ref. - BranchProtectionRule *BranchProtectionRule `json:"branchProtectionRule,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The ref name. - Name string `json:"name,omitempty"` - - // Prefix: The ref's prefix, such as `refs/heads/` or `refs/tags/`. - Prefix string `json:"prefix,omitempty"` - - // RefUpdateRule: Branch protection rules that are viewable by non-admins. - RefUpdateRule *RefUpdateRule `json:"refUpdateRule,omitempty"` - - // Repository: The repository the ref belongs to. - Repository *Repository `json:"repository,omitempty"` - - // Target: The object the ref points to. Returns null when object does not exist. - Target GitObject `json:"target,omitempty"` -} - -func (x *Ref) GetAssociatedPullRequests() *PullRequestConnection { return x.AssociatedPullRequests } -func (x *Ref) GetBranchProtectionRule() *BranchProtectionRule { return x.BranchProtectionRule } -func (x *Ref) GetId() ID { return x.Id } -func (x *Ref) GetName() string { return x.Name } -func (x *Ref) GetPrefix() string { return x.Prefix } -func (x *Ref) GetRefUpdateRule() *RefUpdateRule { return x.RefUpdateRule } -func (x *Ref) GetRepository() *Repository { return x.Repository } -func (x *Ref) GetTarget() GitObject { return x.Target } - -// RefConnection (OBJECT): The connection type for Ref. -type RefConnection struct { - // Edges: A list of edges. - Edges []*RefEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Ref `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *RefConnection) GetEdges() []*RefEdge { return x.Edges } -func (x *RefConnection) GetNodes() []*Ref { return x.Nodes } -func (x *RefConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *RefConnection) GetTotalCount() int { return x.TotalCount } - -// RefEdge (OBJECT): An edge in a connection. -type RefEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Ref `json:"node,omitempty"` -} - -func (x *RefEdge) GetCursor() string { return x.Cursor } -func (x *RefEdge) GetNode() *Ref { return x.Node } - -// RefOrder (INPUT_OBJECT): Ways in which lists of git refs can be ordered upon return. -type RefOrder struct { - // Field: The field in which to order refs by. - // - // GraphQL type: RefOrderField! - Field RefOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order refs by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// RefOrderField (ENUM): Properties by which ref connections can be ordered. -type RefOrderField string - -// RefOrderField_TAG_COMMIT_DATE: Order refs by underlying commit date if the ref prefix is refs/tags/. -const RefOrderField_TAG_COMMIT_DATE RefOrderField = "TAG_COMMIT_DATE" - -// RefOrderField_ALPHABETICAL: Order refs by their alphanumeric name. -const RefOrderField_ALPHABETICAL RefOrderField = "ALPHABETICAL" - -// RefUpdateRule (OBJECT): A ref update rules for a viewer. -type RefUpdateRule struct { - // AllowsDeletions: Can this branch be deleted. - AllowsDeletions bool `json:"allowsDeletions,omitempty"` - - // AllowsForcePushes: Are force pushes allowed on this branch. - AllowsForcePushes bool `json:"allowsForcePushes,omitempty"` - - // BlocksCreations: Can matching branches be created. - BlocksCreations bool `json:"blocksCreations,omitempty"` - - // Pattern: Identifies the protection rule pattern. - Pattern string `json:"pattern,omitempty"` - - // RequiredApprovingReviewCount: Number of approving reviews required to update matching branches. - RequiredApprovingReviewCount int `json:"requiredApprovingReviewCount,omitempty"` - - // RequiredStatusCheckContexts: List of required status check contexts that must pass for commits to be accepted to matching branches. - RequiredStatusCheckContexts []string `json:"requiredStatusCheckContexts,omitempty"` - - // RequiresCodeOwnerReviews: Are reviews from code owners required to update matching branches. - RequiresCodeOwnerReviews bool `json:"requiresCodeOwnerReviews,omitempty"` - - // RequiresConversationResolution: Are conversations required to be resolved before merging. - RequiresConversationResolution bool `json:"requiresConversationResolution,omitempty"` - - // RequiresLinearHistory: Are merge commits prohibited from being pushed to this branch. - RequiresLinearHistory bool `json:"requiresLinearHistory,omitempty"` - - // RequiresSignatures: Are commits required to be signed. - RequiresSignatures bool `json:"requiresSignatures,omitempty"` - - // ViewerAllowedToDismissReviews: Is the viewer allowed to dismiss reviews. - ViewerAllowedToDismissReviews bool `json:"viewerAllowedToDismissReviews,omitempty"` - - // ViewerCanPush: Can the viewer push to the branch. - ViewerCanPush bool `json:"viewerCanPush,omitempty"` -} - -func (x *RefUpdateRule) GetAllowsDeletions() bool { return x.AllowsDeletions } -func (x *RefUpdateRule) GetAllowsForcePushes() bool { return x.AllowsForcePushes } -func (x *RefUpdateRule) GetBlocksCreations() bool { return x.BlocksCreations } -func (x *RefUpdateRule) GetPattern() string { return x.Pattern } -func (x *RefUpdateRule) GetRequiredApprovingReviewCount() int { return x.RequiredApprovingReviewCount } -func (x *RefUpdateRule) GetRequiredStatusCheckContexts() []string { - return x.RequiredStatusCheckContexts -} -func (x *RefUpdateRule) GetRequiresCodeOwnerReviews() bool { return x.RequiresCodeOwnerReviews } -func (x *RefUpdateRule) GetRequiresConversationResolution() bool { - return x.RequiresConversationResolution -} -func (x *RefUpdateRule) GetRequiresLinearHistory() bool { return x.RequiresLinearHistory } -func (x *RefUpdateRule) GetRequiresSignatures() bool { return x.RequiresSignatures } -func (x *RefUpdateRule) GetViewerAllowedToDismissReviews() bool { - return x.ViewerAllowedToDismissReviews -} -func (x *RefUpdateRule) GetViewerCanPush() bool { return x.ViewerCanPush } - -// ReferencedEvent (OBJECT): Represents a 'referenced' event on a given `ReferencedSubject`. -type ReferencedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // Commit: Identifies the commit associated with the 'referenced' event. - Commit *Commit `json:"commit,omitempty"` - - // CommitRepository: Identifies the repository associated with the 'referenced' event. - CommitRepository *Repository `json:"commitRepository,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCrossRepository: Reference originated in a different repository. - IsCrossRepository bool `json:"isCrossRepository,omitempty"` - - // IsDirectReference: Checks if the commit message itself references the subject. Can be false in the case of a commit comment reference. - IsDirectReference bool `json:"isDirectReference,omitempty"` - - // Subject: Object referenced by event. - Subject ReferencedSubject `json:"subject,omitempty"` -} - -func (x *ReferencedEvent) GetActor() Actor { return x.Actor } -func (x *ReferencedEvent) GetCommit() *Commit { return x.Commit } -func (x *ReferencedEvent) GetCommitRepository() *Repository { return x.CommitRepository } -func (x *ReferencedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ReferencedEvent) GetId() ID { return x.Id } -func (x *ReferencedEvent) GetIsCrossRepository() bool { return x.IsCrossRepository } -func (x *ReferencedEvent) GetIsDirectReference() bool { return x.IsDirectReference } -func (x *ReferencedEvent) GetSubject() ReferencedSubject { return x.Subject } - -// ReferencedSubject (UNION): Any referencable object. -// ReferencedSubject_Interface: Any referencable object. -// -// Possible types: -// -// - *Issue -// - *PullRequest -type ReferencedSubject_Interface interface { - isReferencedSubject() -} - -func (*Issue) isReferencedSubject() {} -func (*PullRequest) isReferencedSubject() {} - -type ReferencedSubject struct { - Interface ReferencedSubject_Interface -} - -func (x *ReferencedSubject) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ReferencedSubject) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ReferencedSubject", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// RegenerateEnterpriseIdentityProviderRecoveryCodesInput (INPUT_OBJECT): Autogenerated input type of RegenerateEnterpriseIdentityProviderRecoveryCodes. -type RegenerateEnterpriseIdentityProviderRecoveryCodesInput struct { - // EnterpriseId: The ID of the enterprise on which to set an identity provider. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RegenerateEnterpriseIdentityProviderRecoveryCodesPayload (OBJECT): Autogenerated return type of RegenerateEnterpriseIdentityProviderRecoveryCodes. -type RegenerateEnterpriseIdentityProviderRecoveryCodesPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // IdentityProvider: The identity provider for the enterprise. - IdentityProvider *EnterpriseIdentityProvider `json:"identityProvider,omitempty"` -} - -func (x *RegenerateEnterpriseIdentityProviderRecoveryCodesPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *RegenerateEnterpriseIdentityProviderRecoveryCodesPayload) GetIdentityProvider() *EnterpriseIdentityProvider { - return x.IdentityProvider -} - -// RegenerateVerifiableDomainTokenInput (INPUT_OBJECT): Autogenerated input type of RegenerateVerifiableDomainToken. -type RegenerateVerifiableDomainTokenInput struct { - // Id: The ID of the verifiable domain to regenerate the verification token of. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RegenerateVerifiableDomainTokenPayload (OBJECT): Autogenerated return type of RegenerateVerifiableDomainToken. -type RegenerateVerifiableDomainTokenPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // VerificationToken: The verification token that was generated. - VerificationToken string `json:"verificationToken,omitempty"` -} - -func (x *RegenerateVerifiableDomainTokenPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *RegenerateVerifiableDomainTokenPayload) GetVerificationToken() string { - return x.VerificationToken -} - -// RejectDeploymentsInput (INPUT_OBJECT): Autogenerated input type of RejectDeployments. -type RejectDeploymentsInput struct { - // WorkflowRunId: The node ID of the workflow run containing the pending deployments. - // - // GraphQL type: ID! - WorkflowRunId ID `json:"workflowRunId,omitempty"` - - // EnvironmentIds: The ids of environments to reject deployments. - // - // GraphQL type: [ID!]! - EnvironmentIds []ID `json:"environmentIds,omitempty"` - - // Comment: Optional comment for rejecting deployments. - // - // GraphQL type: String - Comment string `json:"comment,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RejectDeploymentsPayload (OBJECT): Autogenerated return type of RejectDeployments. -type RejectDeploymentsPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Deployments: The affected deployments. - Deployments []*Deployment `json:"deployments,omitempty"` -} - -func (x *RejectDeploymentsPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RejectDeploymentsPayload) GetDeployments() []*Deployment { return x.Deployments } - -// Release (OBJECT): A release contains the content for a release. -type Release struct { - // Author: The author of the release. - Author *User `json:"author,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Description: The description of the release. - Description string `json:"description,omitempty"` - - // DescriptionHTML: The description of this release rendered to HTML. - DescriptionHTML template.HTML `json:"descriptionHTML,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsDraft: Whether or not the release is a draft. - IsDraft bool `json:"isDraft,omitempty"` - - // IsLatest: Whether or not the release is the latest releast. - IsLatest bool `json:"isLatest,omitempty"` - - // IsPrerelease: Whether or not the release is a prerelease. - IsPrerelease bool `json:"isPrerelease,omitempty"` - - // Mentions: A list of users mentioned in the release description. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Mentions *UserConnection `json:"mentions,omitempty"` - - // Name: The title of the release. - Name string `json:"name,omitempty"` - - // PublishedAt: Identifies the date and time when the release was created. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // ReleaseAssets: List of releases assets which are dependent on this release. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - name String - ReleaseAssets *ReleaseAssetConnection `json:"releaseAssets,omitempty"` - - // Repository: The repository that the release belongs to. - Repository *Repository `json:"repository,omitempty"` - - // ResourcePath: The HTTP path for this issue. - ResourcePath URI `json:"resourcePath,omitempty"` - - // ShortDescriptionHTML: A description of the release, rendered to HTML without any links in it. - // - // Query arguments: - // - limit Int - ShortDescriptionHTML template.HTML `json:"shortDescriptionHTML,omitempty"` - - // Tag: The Git tag the release points to. - Tag *Ref `json:"tag,omitempty"` - - // TagCommit: The tag commit for this release. - TagCommit *Commit `json:"tagCommit,omitempty"` - - // TagName: The name of the release's Git tag. - TagName string `json:"tagName,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this issue. - Url URI `json:"url,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` -} - -func (x *Release) GetAuthor() *User { return x.Author } -func (x *Release) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Release) GetDatabaseId() int { return x.DatabaseId } -func (x *Release) GetDescription() string { return x.Description } -func (x *Release) GetDescriptionHTML() template.HTML { return x.DescriptionHTML } -func (x *Release) GetId() ID { return x.Id } -func (x *Release) GetIsDraft() bool { return x.IsDraft } -func (x *Release) GetIsLatest() bool { return x.IsLatest } -func (x *Release) GetIsPrerelease() bool { return x.IsPrerelease } -func (x *Release) GetMentions() *UserConnection { return x.Mentions } -func (x *Release) GetName() string { return x.Name } -func (x *Release) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *Release) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *Release) GetReactions() *ReactionConnection { return x.Reactions } -func (x *Release) GetReleaseAssets() *ReleaseAssetConnection { return x.ReleaseAssets } -func (x *Release) GetRepository() *Repository { return x.Repository } -func (x *Release) GetResourcePath() URI { return x.ResourcePath } -func (x *Release) GetShortDescriptionHTML() template.HTML { return x.ShortDescriptionHTML } -func (x *Release) GetTag() *Ref { return x.Tag } -func (x *Release) GetTagCommit() *Commit { return x.TagCommit } -func (x *Release) GetTagName() string { return x.TagName } -func (x *Release) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Release) GetUrl() URI { return x.Url } -func (x *Release) GetViewerCanReact() bool { return x.ViewerCanReact } - -// ReleaseAsset (OBJECT): A release asset contains the content for a release asset. -type ReleaseAsset struct { - // ContentType: The asset's content-type. - ContentType string `json:"contentType,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DownloadCount: The number of times this asset was downloaded. - DownloadCount int `json:"downloadCount,omitempty"` - - // DownloadUrl: Identifies the URL where you can download the release asset via the browser. - DownloadUrl URI `json:"downloadUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: Identifies the title of the release asset. - Name string `json:"name,omitempty"` - - // Release: Release that the asset is associated with. - Release *Release `json:"release,omitempty"` - - // Size: The size (in bytes) of the asset. - Size int `json:"size,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // UploadedBy: The user that performed the upload. - UploadedBy *User `json:"uploadedBy,omitempty"` - - // Url: Identifies the URL of the release asset. - Url URI `json:"url,omitempty"` -} - -func (x *ReleaseAsset) GetContentType() string { return x.ContentType } -func (x *ReleaseAsset) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ReleaseAsset) GetDownloadCount() int { return x.DownloadCount } -func (x *ReleaseAsset) GetDownloadUrl() URI { return x.DownloadUrl } -func (x *ReleaseAsset) GetId() ID { return x.Id } -func (x *ReleaseAsset) GetName() string { return x.Name } -func (x *ReleaseAsset) GetRelease() *Release { return x.Release } -func (x *ReleaseAsset) GetSize() int { return x.Size } -func (x *ReleaseAsset) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *ReleaseAsset) GetUploadedBy() *User { return x.UploadedBy } -func (x *ReleaseAsset) GetUrl() URI { return x.Url } - -// ReleaseAssetConnection (OBJECT): The connection type for ReleaseAsset. -type ReleaseAssetConnection struct { - // Edges: A list of edges. - Edges []*ReleaseAssetEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ReleaseAsset `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ReleaseAssetConnection) GetEdges() []*ReleaseAssetEdge { return x.Edges } -func (x *ReleaseAssetConnection) GetNodes() []*ReleaseAsset { return x.Nodes } -func (x *ReleaseAssetConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ReleaseAssetConnection) GetTotalCount() int { return x.TotalCount } - -// ReleaseAssetEdge (OBJECT): An edge in a connection. -type ReleaseAssetEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ReleaseAsset `json:"node,omitempty"` -} - -func (x *ReleaseAssetEdge) GetCursor() string { return x.Cursor } -func (x *ReleaseAssetEdge) GetNode() *ReleaseAsset { return x.Node } - -// ReleaseConnection (OBJECT): The connection type for Release. -type ReleaseConnection struct { - // Edges: A list of edges. - Edges []*ReleaseEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Release `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ReleaseConnection) GetEdges() []*ReleaseEdge { return x.Edges } -func (x *ReleaseConnection) GetNodes() []*Release { return x.Nodes } -func (x *ReleaseConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ReleaseConnection) GetTotalCount() int { return x.TotalCount } - -// ReleaseEdge (OBJECT): An edge in a connection. -type ReleaseEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Release `json:"node,omitempty"` -} - -func (x *ReleaseEdge) GetCursor() string { return x.Cursor } -func (x *ReleaseEdge) GetNode() *Release { return x.Node } - -// ReleaseOrder (INPUT_OBJECT): Ways in which lists of releases can be ordered upon return. -type ReleaseOrder struct { - // Field: The field in which to order releases by. - // - // GraphQL type: ReleaseOrderField! - Field ReleaseOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order releases by the specified field. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// ReleaseOrderField (ENUM): Properties by which release connections can be ordered. -type ReleaseOrderField string - -// ReleaseOrderField_CREATED_AT: Order releases by creation time. -const ReleaseOrderField_CREATED_AT ReleaseOrderField = "CREATED_AT" - -// ReleaseOrderField_NAME: Order releases alphabetically by name. -const ReleaseOrderField_NAME ReleaseOrderField = "NAME" - -// RemoveAssigneesFromAssignableInput (INPUT_OBJECT): Autogenerated input type of RemoveAssigneesFromAssignable. -type RemoveAssigneesFromAssignableInput struct { - // AssignableId: The id of the assignable object to remove assignees from. - // - // GraphQL type: ID! - AssignableId ID `json:"assignableId,omitempty"` - - // AssigneeIds: The id of users to remove as assignees. - // - // GraphQL type: [ID!]! - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveAssigneesFromAssignablePayload (OBJECT): Autogenerated return type of RemoveAssigneesFromAssignable. -type RemoveAssigneesFromAssignablePayload struct { - // Assignable: The item that was unassigned. - Assignable Assignable `json:"assignable,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *RemoveAssigneesFromAssignablePayload) GetAssignable() Assignable { return x.Assignable } -func (x *RemoveAssigneesFromAssignablePayload) GetClientMutationId() string { - return x.ClientMutationId -} - -// RemoveEnterpriseAdminInput (INPUT_OBJECT): Autogenerated input type of RemoveEnterpriseAdmin. -type RemoveEnterpriseAdminInput struct { - // EnterpriseId: The Enterprise ID from which to remove the administrator. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Login: The login of the user to remove as an administrator. - // - // GraphQL type: String! - Login string `json:"login,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveEnterpriseAdminPayload (OBJECT): Autogenerated return type of RemoveEnterpriseAdmin. -type RemoveEnterpriseAdminPayload struct { - // Admin: The user who was removed as an administrator. - Admin *User `json:"admin,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The updated enterprise. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of removing an administrator. - Message string `json:"message,omitempty"` - - // Viewer: The viewer performing the mutation. - Viewer *User `json:"viewer,omitempty"` -} - -func (x *RemoveEnterpriseAdminPayload) GetAdmin() *User { return x.Admin } -func (x *RemoveEnterpriseAdminPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RemoveEnterpriseAdminPayload) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *RemoveEnterpriseAdminPayload) GetMessage() string { return x.Message } -func (x *RemoveEnterpriseAdminPayload) GetViewer() *User { return x.Viewer } - -// RemoveEnterpriseIdentityProviderInput (INPUT_OBJECT): Autogenerated input type of RemoveEnterpriseIdentityProvider. -type RemoveEnterpriseIdentityProviderInput struct { - // EnterpriseId: The ID of the enterprise from which to remove the identity provider. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveEnterpriseIdentityProviderPayload (OBJECT): Autogenerated return type of RemoveEnterpriseIdentityProvider. -type RemoveEnterpriseIdentityProviderPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // IdentityProvider: The identity provider that was removed from the enterprise. - IdentityProvider *EnterpriseIdentityProvider `json:"identityProvider,omitempty"` -} - -func (x *RemoveEnterpriseIdentityProviderPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *RemoveEnterpriseIdentityProviderPayload) GetIdentityProvider() *EnterpriseIdentityProvider { - return x.IdentityProvider -} - -// RemoveEnterpriseOrganizationInput (INPUT_OBJECT): Autogenerated input type of RemoveEnterpriseOrganization. -type RemoveEnterpriseOrganizationInput struct { - // EnterpriseId: The ID of the enterprise from which the organization should be removed. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // OrganizationId: The ID of the organization to remove from the enterprise. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveEnterpriseOrganizationPayload (OBJECT): Autogenerated return type of RemoveEnterpriseOrganization. -type RemoveEnterpriseOrganizationPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The updated enterprise. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Organization: The organization that was removed from the enterprise. - Organization *Organization `json:"organization,omitempty"` - - // Viewer: The viewer performing the mutation. - Viewer *User `json:"viewer,omitempty"` -} - -func (x *RemoveEnterpriseOrganizationPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RemoveEnterpriseOrganizationPayload) GetEnterprise() *Enterprise { return x.Enterprise } -func (x *RemoveEnterpriseOrganizationPayload) GetOrganization() *Organization { return x.Organization } -func (x *RemoveEnterpriseOrganizationPayload) GetViewer() *User { return x.Viewer } - -// RemoveEnterpriseSupportEntitlementInput (INPUT_OBJECT): Autogenerated input type of RemoveEnterpriseSupportEntitlement. -type RemoveEnterpriseSupportEntitlementInput struct { - // EnterpriseId: The ID of the Enterprise which the admin belongs to. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Login: The login of a member who will lose the support entitlement. - // - // GraphQL type: String! - Login string `json:"login,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveEnterpriseSupportEntitlementPayload (OBJECT): Autogenerated return type of RemoveEnterpriseSupportEntitlement. -type RemoveEnterpriseSupportEntitlementPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Message: A message confirming the result of removing the support entitlement. - Message string `json:"message,omitempty"` -} - -func (x *RemoveEnterpriseSupportEntitlementPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *RemoveEnterpriseSupportEntitlementPayload) GetMessage() string { return x.Message } - -// RemoveLabelsFromLabelableInput (INPUT_OBJECT): Autogenerated input type of RemoveLabelsFromLabelable. -type RemoveLabelsFromLabelableInput struct { - // LabelableId: The id of the Labelable to remove labels from. - // - // GraphQL type: ID! - LabelableId ID `json:"labelableId,omitempty"` - - // LabelIds: The ids of labels to remove. - // - // GraphQL type: [ID!]! - LabelIds []ID `json:"labelIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveLabelsFromLabelablePayload (OBJECT): Autogenerated return type of RemoveLabelsFromLabelable. -type RemoveLabelsFromLabelablePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Labelable: The Labelable the labels were removed from. - Labelable Labelable `json:"labelable,omitempty"` -} - -func (x *RemoveLabelsFromLabelablePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RemoveLabelsFromLabelablePayload) GetLabelable() Labelable { return x.Labelable } - -// RemoveOutsideCollaboratorInput (INPUT_OBJECT): Autogenerated input type of RemoveOutsideCollaborator. -type RemoveOutsideCollaboratorInput struct { - // UserId: The ID of the outside collaborator to remove. - // - // GraphQL type: ID! - UserId ID `json:"userId,omitempty"` - - // OrganizationId: The ID of the organization to remove the outside collaborator from. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveOutsideCollaboratorPayload (OBJECT): Autogenerated return type of RemoveOutsideCollaborator. -type RemoveOutsideCollaboratorPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // RemovedUser: The user that was removed as an outside collaborator. - RemovedUser *User `json:"removedUser,omitempty"` -} - -func (x *RemoveOutsideCollaboratorPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RemoveOutsideCollaboratorPayload) GetRemovedUser() *User { return x.RemovedUser } - -// RemoveReactionInput (INPUT_OBJECT): Autogenerated input type of RemoveReaction. -type RemoveReactionInput struct { - // SubjectId: The Node ID of the subject to modify. - // - // GraphQL type: ID! - SubjectId ID `json:"subjectId,omitempty"` - - // Content: The name of the emoji reaction to remove. - // - // GraphQL type: ReactionContent! - Content ReactionContent `json:"content,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveReactionPayload (OBJECT): Autogenerated return type of RemoveReaction. -type RemoveReactionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Reaction: The reaction object. - Reaction *Reaction `json:"reaction,omitempty"` - - // Subject: The reactable subject. - Subject Reactable `json:"subject,omitempty"` -} - -func (x *RemoveReactionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RemoveReactionPayload) GetReaction() *Reaction { return x.Reaction } -func (x *RemoveReactionPayload) GetSubject() Reactable { return x.Subject } - -// RemoveStarInput (INPUT_OBJECT): Autogenerated input type of RemoveStar. -type RemoveStarInput struct { - // StarrableId: The Starrable ID to unstar. - // - // GraphQL type: ID! - StarrableId ID `json:"starrableId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveStarPayload (OBJECT): Autogenerated return type of RemoveStar. -type RemoveStarPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Starrable: The starrable. - Starrable Starrable `json:"starrable,omitempty"` -} - -func (x *RemoveStarPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RemoveStarPayload) GetStarrable() Starrable { return x.Starrable } - -// RemoveUpvoteInput (INPUT_OBJECT): Autogenerated input type of RemoveUpvote. -type RemoveUpvoteInput struct { - // SubjectId: The Node ID of the discussion or comment to remove upvote. - // - // GraphQL type: ID! - SubjectId ID `json:"subjectId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RemoveUpvotePayload (OBJECT): Autogenerated return type of RemoveUpvote. -type RemoveUpvotePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Subject: The votable subject. - Subject Votable `json:"subject,omitempty"` -} - -func (x *RemoveUpvotePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RemoveUpvotePayload) GetSubject() Votable { return x.Subject } - -// RemovedFromProjectEvent (OBJECT): Represents a 'removed_from_project' event on a given issue or pull request. -type RemovedFromProjectEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Project: Project referenced by event. - Project *Project `json:"project,omitempty"` - - // ProjectColumnName: Column name referenced by this project event. - ProjectColumnName string `json:"projectColumnName,omitempty"` -} - -func (x *RemovedFromProjectEvent) GetActor() Actor { return x.Actor } -func (x *RemovedFromProjectEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *RemovedFromProjectEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *RemovedFromProjectEvent) GetId() ID { return x.Id } -func (x *RemovedFromProjectEvent) GetProject() *Project { return x.Project } -func (x *RemovedFromProjectEvent) GetProjectColumnName() string { return x.ProjectColumnName } - -// RenamedTitleEvent (OBJECT): Represents a 'renamed' event on a given issue or pull request. -type RenamedTitleEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CurrentTitle: Identifies the current title of the issue or pull request. - CurrentTitle string `json:"currentTitle,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PreviousTitle: Identifies the previous title of the issue or pull request. - PreviousTitle string `json:"previousTitle,omitempty"` - - // Subject: Subject that was renamed. - Subject RenamedTitleSubject `json:"subject,omitempty"` -} - -func (x *RenamedTitleEvent) GetActor() Actor { return x.Actor } -func (x *RenamedTitleEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *RenamedTitleEvent) GetCurrentTitle() string { return x.CurrentTitle } -func (x *RenamedTitleEvent) GetId() ID { return x.Id } -func (x *RenamedTitleEvent) GetPreviousTitle() string { return x.PreviousTitle } -func (x *RenamedTitleEvent) GetSubject() RenamedTitleSubject { return x.Subject } - -// RenamedTitleSubject (UNION): An object which has a renamable title. -// RenamedTitleSubject_Interface: An object which has a renamable title. -// -// Possible types: -// -// - *Issue -// - *PullRequest -type RenamedTitleSubject_Interface interface { - isRenamedTitleSubject() -} - -func (*Issue) isRenamedTitleSubject() {} -func (*PullRequest) isRenamedTitleSubject() {} - -type RenamedTitleSubject struct { - Interface RenamedTitleSubject_Interface -} - -func (x *RenamedTitleSubject) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RenamedTitleSubject) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RenamedTitleSubject", info.Typename) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - } - return json.Unmarshal(js, x.Interface) -} - -// ReopenIssueInput (INPUT_OBJECT): Autogenerated input type of ReopenIssue. -type ReopenIssueInput struct { - // IssueId: ID of the issue to be opened. - // - // GraphQL type: ID! - IssueId ID `json:"issueId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ReopenIssuePayload (OBJECT): Autogenerated return type of ReopenIssue. -type ReopenIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Issue: The issue that was opened. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *ReopenIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ReopenIssuePayload) GetIssue() *Issue { return x.Issue } - -// ReopenPullRequestInput (INPUT_OBJECT): Autogenerated input type of ReopenPullRequest. -type ReopenPullRequestInput struct { - // PullRequestId: ID of the pull request to be reopened. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ReopenPullRequestPayload (OBJECT): Autogenerated return type of ReopenPullRequest. -type ReopenPullRequestPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The pull request that was reopened. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *ReopenPullRequestPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ReopenPullRequestPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// ReopenedEvent (OBJECT): Represents a 'reopened' event on any `Closable`. -type ReopenedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // Closable: Object that was reopened. - Closable Closable `json:"closable,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // StateReason: The reason the issue state was changed to open. - StateReason IssueStateReason `json:"stateReason,omitempty"` -} - -func (x *ReopenedEvent) GetActor() Actor { return x.Actor } -func (x *ReopenedEvent) GetClosable() Closable { return x.Closable } -func (x *ReopenedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ReopenedEvent) GetId() ID { return x.Id } -func (x *ReopenedEvent) GetStateReason() IssueStateReason { return x.StateReason } - -// RepoAccessAuditEntry (OBJECT): Audit log entry for a repo.access event. -type RepoAccessAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` - - // Visibility: The visibility of the repository. - Visibility RepoAccessAuditEntryVisibility `json:"visibility,omitempty"` -} - -func (x *RepoAccessAuditEntry) GetAction() string { return x.Action } -func (x *RepoAccessAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoAccessAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoAccessAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoAccessAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoAccessAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoAccessAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoAccessAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoAccessAuditEntry) GetId() ID { return x.Id } -func (x *RepoAccessAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoAccessAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoAccessAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoAccessAuditEntry) GetOrganizationResourcePath() URI { return x.OrganizationResourcePath } -func (x *RepoAccessAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoAccessAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoAccessAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoAccessAuditEntry) GetRepositoryResourcePath() URI { return x.RepositoryResourcePath } -func (x *RepoAccessAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoAccessAuditEntry) GetUser() *User { return x.User } -func (x *RepoAccessAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoAccessAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoAccessAuditEntry) GetUserUrl() URI { return x.UserUrl } -func (x *RepoAccessAuditEntry) GetVisibility() RepoAccessAuditEntryVisibility { return x.Visibility } - -// RepoAccessAuditEntryVisibility (ENUM): The privacy of a repository. -type RepoAccessAuditEntryVisibility string - -// RepoAccessAuditEntryVisibility_INTERNAL: The repository is visible only to users in the same business. -const RepoAccessAuditEntryVisibility_INTERNAL RepoAccessAuditEntryVisibility = "INTERNAL" - -// RepoAccessAuditEntryVisibility_PRIVATE: The repository is visible only to those with explicit access. -const RepoAccessAuditEntryVisibility_PRIVATE RepoAccessAuditEntryVisibility = "PRIVATE" - -// RepoAccessAuditEntryVisibility_PUBLIC: The repository is visible to everyone. -const RepoAccessAuditEntryVisibility_PUBLIC RepoAccessAuditEntryVisibility = "PUBLIC" - -// RepoAddMemberAuditEntry (OBJECT): Audit log entry for a repo.add_member event. -type RepoAddMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` - - // Visibility: The visibility of the repository. - Visibility RepoAddMemberAuditEntryVisibility `json:"visibility,omitempty"` -} - -func (x *RepoAddMemberAuditEntry) GetAction() string { return x.Action } -func (x *RepoAddMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoAddMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoAddMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoAddMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoAddMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoAddMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoAddMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoAddMemberAuditEntry) GetId() ID { return x.Id } -func (x *RepoAddMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoAddMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoAddMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoAddMemberAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoAddMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoAddMemberAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoAddMemberAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoAddMemberAuditEntry) GetRepositoryResourcePath() URI { return x.RepositoryResourcePath } -func (x *RepoAddMemberAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoAddMemberAuditEntry) GetUser() *User { return x.User } -func (x *RepoAddMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoAddMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoAddMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } -func (x *RepoAddMemberAuditEntry) GetVisibility() RepoAddMemberAuditEntryVisibility { - return x.Visibility -} - -// RepoAddMemberAuditEntryVisibility (ENUM): The privacy of a repository. -type RepoAddMemberAuditEntryVisibility string - -// RepoAddMemberAuditEntryVisibility_INTERNAL: The repository is visible only to users in the same business. -const RepoAddMemberAuditEntryVisibility_INTERNAL RepoAddMemberAuditEntryVisibility = "INTERNAL" - -// RepoAddMemberAuditEntryVisibility_PRIVATE: The repository is visible only to those with explicit access. -const RepoAddMemberAuditEntryVisibility_PRIVATE RepoAddMemberAuditEntryVisibility = "PRIVATE" - -// RepoAddMemberAuditEntryVisibility_PUBLIC: The repository is visible to everyone. -const RepoAddMemberAuditEntryVisibility_PUBLIC RepoAddMemberAuditEntryVisibility = "PUBLIC" - -// RepoAddTopicAuditEntry (OBJECT): Audit log entry for a repo.add_topic event. -type RepoAddTopicAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // Topic: The name of the topic added to the repository. - Topic *Topic `json:"topic,omitempty"` - - // TopicName: The name of the topic added to the repository. - TopicName string `json:"topicName,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoAddTopicAuditEntry) GetAction() string { return x.Action } -func (x *RepoAddTopicAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoAddTopicAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoAddTopicAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoAddTopicAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoAddTopicAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoAddTopicAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoAddTopicAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoAddTopicAuditEntry) GetId() ID { return x.Id } -func (x *RepoAddTopicAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoAddTopicAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoAddTopicAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoAddTopicAuditEntry) GetOrganizationResourcePath() URI { return x.OrganizationResourcePath } -func (x *RepoAddTopicAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoAddTopicAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoAddTopicAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoAddTopicAuditEntry) GetRepositoryResourcePath() URI { return x.RepositoryResourcePath } -func (x *RepoAddTopicAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoAddTopicAuditEntry) GetTopic() *Topic { return x.Topic } -func (x *RepoAddTopicAuditEntry) GetTopicName() string { return x.TopicName } -func (x *RepoAddTopicAuditEntry) GetUser() *User { return x.User } -func (x *RepoAddTopicAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoAddTopicAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoAddTopicAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoArchivedAuditEntry (OBJECT): Audit log entry for a repo.archived event. -type RepoArchivedAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` - - // Visibility: The visibility of the repository. - Visibility RepoArchivedAuditEntryVisibility `json:"visibility,omitempty"` -} - -func (x *RepoArchivedAuditEntry) GetAction() string { return x.Action } -func (x *RepoArchivedAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoArchivedAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoArchivedAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoArchivedAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoArchivedAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoArchivedAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoArchivedAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoArchivedAuditEntry) GetId() ID { return x.Id } -func (x *RepoArchivedAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoArchivedAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoArchivedAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoArchivedAuditEntry) GetOrganizationResourcePath() URI { return x.OrganizationResourcePath } -func (x *RepoArchivedAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoArchivedAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoArchivedAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoArchivedAuditEntry) GetRepositoryResourcePath() URI { return x.RepositoryResourcePath } -func (x *RepoArchivedAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoArchivedAuditEntry) GetUser() *User { return x.User } -func (x *RepoArchivedAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoArchivedAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoArchivedAuditEntry) GetUserUrl() URI { return x.UserUrl } -func (x *RepoArchivedAuditEntry) GetVisibility() RepoArchivedAuditEntryVisibility { - return x.Visibility -} - -// RepoArchivedAuditEntryVisibility (ENUM): The privacy of a repository. -type RepoArchivedAuditEntryVisibility string - -// RepoArchivedAuditEntryVisibility_INTERNAL: The repository is visible only to users in the same business. -const RepoArchivedAuditEntryVisibility_INTERNAL RepoArchivedAuditEntryVisibility = "INTERNAL" - -// RepoArchivedAuditEntryVisibility_PRIVATE: The repository is visible only to those with explicit access. -const RepoArchivedAuditEntryVisibility_PRIVATE RepoArchivedAuditEntryVisibility = "PRIVATE" - -// RepoArchivedAuditEntryVisibility_PUBLIC: The repository is visible to everyone. -const RepoArchivedAuditEntryVisibility_PUBLIC RepoArchivedAuditEntryVisibility = "PUBLIC" - -// RepoChangeMergeSettingAuditEntry (OBJECT): Audit log entry for a repo.change_merge_setting event. -type RepoChangeMergeSettingAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsEnabled: Whether the change was to enable (true) or disable (false) the merge type. - IsEnabled bool `json:"isEnabled,omitempty"` - - // MergeType: The merge method affected by the change. - MergeType RepoChangeMergeSettingAuditEntryMergeType `json:"mergeType,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoChangeMergeSettingAuditEntry) GetAction() string { return x.Action } -func (x *RepoChangeMergeSettingAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoChangeMergeSettingAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoChangeMergeSettingAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoChangeMergeSettingAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoChangeMergeSettingAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoChangeMergeSettingAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoChangeMergeSettingAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoChangeMergeSettingAuditEntry) GetId() ID { return x.Id } -func (x *RepoChangeMergeSettingAuditEntry) GetIsEnabled() bool { return x.IsEnabled } -func (x *RepoChangeMergeSettingAuditEntry) GetMergeType() RepoChangeMergeSettingAuditEntryMergeType { - return x.MergeType -} -func (x *RepoChangeMergeSettingAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoChangeMergeSettingAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoChangeMergeSettingAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoChangeMergeSettingAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoChangeMergeSettingAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoChangeMergeSettingAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoChangeMergeSettingAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoChangeMergeSettingAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoChangeMergeSettingAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoChangeMergeSettingAuditEntry) GetUser() *User { return x.User } -func (x *RepoChangeMergeSettingAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoChangeMergeSettingAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoChangeMergeSettingAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoChangeMergeSettingAuditEntryMergeType (ENUM): The merge options available for pull requests to this repository. -type RepoChangeMergeSettingAuditEntryMergeType string - -// RepoChangeMergeSettingAuditEntryMergeType_MERGE: The pull request is added to the base branch in a merge commit. -const RepoChangeMergeSettingAuditEntryMergeType_MERGE RepoChangeMergeSettingAuditEntryMergeType = "MERGE" - -// RepoChangeMergeSettingAuditEntryMergeType_REBASE: Commits from the pull request are added onto the base branch individually without a merge commit. -const RepoChangeMergeSettingAuditEntryMergeType_REBASE RepoChangeMergeSettingAuditEntryMergeType = "REBASE" - -// RepoChangeMergeSettingAuditEntryMergeType_SQUASH: The pull request's commits are squashed into a single commit before they are merged to the base branch. -const RepoChangeMergeSettingAuditEntryMergeType_SQUASH RepoChangeMergeSettingAuditEntryMergeType = "SQUASH" - -// RepoConfigDisableAnonymousGitAccessAuditEntry (OBJECT): Audit log entry for a repo.config.disable_anonymous_git_access event. -type RepoConfigDisableAnonymousGitAccessAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetRepository() *Repository { - return x.Repository -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetRepositoryUrl() URI { - return x.RepositoryUrl -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigDisableAnonymousGitAccessAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigDisableCollaboratorsOnlyAuditEntry (OBJECT): Audit log entry for a repo.config.disable_collaborators_only event. -type RepoConfigDisableCollaboratorsOnlyAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetRepository() *Repository { - return x.Repository -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigDisableCollaboratorsOnlyAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigDisableContributorsOnlyAuditEntry (OBJECT): Audit log entry for a repo.config.disable_contributors_only event. -type RepoConfigDisableContributorsOnlyAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetRepository() *Repository { - return x.Repository -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigDisableContributorsOnlyAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigDisableSockpuppetDisallowedAuditEntry (OBJECT): Audit log entry for a repo.config.disable_sockpuppet_disallowed event. -type RepoConfigDisableSockpuppetDisallowedAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetRepository() *Repository { - return x.Repository -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetRepositoryUrl() URI { - return x.RepositoryUrl -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigDisableSockpuppetDisallowedAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigEnableAnonymousGitAccessAuditEntry (OBJECT): Audit log entry for a repo.config.enable_anonymous_git_access event. -type RepoConfigEnableAnonymousGitAccessAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetRepository() *Repository { - return x.Repository -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigEnableAnonymousGitAccessAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigEnableCollaboratorsOnlyAuditEntry (OBJECT): Audit log entry for a repo.config.enable_collaborators_only event. -type RepoConfigEnableCollaboratorsOnlyAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetRepository() *Repository { - return x.Repository -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigEnableCollaboratorsOnlyAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigEnableContributorsOnlyAuditEntry (OBJECT): Audit log entry for a repo.config.enable_contributors_only event. -type RepoConfigEnableContributorsOnlyAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigEnableContributorsOnlyAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigEnableSockpuppetDisallowedAuditEntry (OBJECT): Audit log entry for a repo.config.enable_sockpuppet_disallowed event. -type RepoConfigEnableSockpuppetDisallowedAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetRepository() *Repository { - return x.Repository -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetRepositoryUrl() URI { - return x.RepositoryUrl -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigEnableSockpuppetDisallowedAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigLockAnonymousGitAccessAuditEntry (OBJECT): Audit log entry for a repo.config.lock_anonymous_git_access event. -type RepoConfigLockAnonymousGitAccessAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigLockAnonymousGitAccessAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoConfigUnlockAnonymousGitAccessAuditEntry (OBJECT): Audit log entry for a repo.config.unlock_anonymous_git_access event. -type RepoConfigUnlockAnonymousGitAccessAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetAction() string { return x.Action } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetId() ID { return x.Id } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetRepository() *Repository { - return x.Repository -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetRepositoryName() string { - return x.RepositoryName -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetUser() *User { return x.User } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepoConfigUnlockAnonymousGitAccessAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepoCreateAuditEntry (OBJECT): Audit log entry for a repo.create event. -type RepoCreateAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // ForkParentName: The name of the parent repository for this forked repository. - ForkParentName string `json:"forkParentName,omitempty"` - - // ForkSourceName: The name of the root repository for this network. - ForkSourceName string `json:"forkSourceName,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` - - // Visibility: The visibility of the repository. - Visibility RepoCreateAuditEntryVisibility `json:"visibility,omitempty"` -} - -func (x *RepoCreateAuditEntry) GetAction() string { return x.Action } -func (x *RepoCreateAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoCreateAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoCreateAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoCreateAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoCreateAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoCreateAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoCreateAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoCreateAuditEntry) GetForkParentName() string { return x.ForkParentName } -func (x *RepoCreateAuditEntry) GetForkSourceName() string { return x.ForkSourceName } -func (x *RepoCreateAuditEntry) GetId() ID { return x.Id } -func (x *RepoCreateAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoCreateAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoCreateAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoCreateAuditEntry) GetOrganizationResourcePath() URI { return x.OrganizationResourcePath } -func (x *RepoCreateAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoCreateAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoCreateAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoCreateAuditEntry) GetRepositoryResourcePath() URI { return x.RepositoryResourcePath } -func (x *RepoCreateAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoCreateAuditEntry) GetUser() *User { return x.User } -func (x *RepoCreateAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoCreateAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoCreateAuditEntry) GetUserUrl() URI { return x.UserUrl } -func (x *RepoCreateAuditEntry) GetVisibility() RepoCreateAuditEntryVisibility { return x.Visibility } - -// RepoCreateAuditEntryVisibility (ENUM): The privacy of a repository. -type RepoCreateAuditEntryVisibility string - -// RepoCreateAuditEntryVisibility_INTERNAL: The repository is visible only to users in the same business. -const RepoCreateAuditEntryVisibility_INTERNAL RepoCreateAuditEntryVisibility = "INTERNAL" - -// RepoCreateAuditEntryVisibility_PRIVATE: The repository is visible only to those with explicit access. -const RepoCreateAuditEntryVisibility_PRIVATE RepoCreateAuditEntryVisibility = "PRIVATE" - -// RepoCreateAuditEntryVisibility_PUBLIC: The repository is visible to everyone. -const RepoCreateAuditEntryVisibility_PUBLIC RepoCreateAuditEntryVisibility = "PUBLIC" - -// RepoDestroyAuditEntry (OBJECT): Audit log entry for a repo.destroy event. -type RepoDestroyAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` - - // Visibility: The visibility of the repository. - Visibility RepoDestroyAuditEntryVisibility `json:"visibility,omitempty"` -} - -func (x *RepoDestroyAuditEntry) GetAction() string { return x.Action } -func (x *RepoDestroyAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoDestroyAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoDestroyAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoDestroyAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoDestroyAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoDestroyAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoDestroyAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoDestroyAuditEntry) GetId() ID { return x.Id } -func (x *RepoDestroyAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoDestroyAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoDestroyAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoDestroyAuditEntry) GetOrganizationResourcePath() URI { return x.OrganizationResourcePath } -func (x *RepoDestroyAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoDestroyAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoDestroyAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoDestroyAuditEntry) GetRepositoryResourcePath() URI { return x.RepositoryResourcePath } -func (x *RepoDestroyAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoDestroyAuditEntry) GetUser() *User { return x.User } -func (x *RepoDestroyAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoDestroyAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoDestroyAuditEntry) GetUserUrl() URI { return x.UserUrl } -func (x *RepoDestroyAuditEntry) GetVisibility() RepoDestroyAuditEntryVisibility { return x.Visibility } - -// RepoDestroyAuditEntryVisibility (ENUM): The privacy of a repository. -type RepoDestroyAuditEntryVisibility string - -// RepoDestroyAuditEntryVisibility_INTERNAL: The repository is visible only to users in the same business. -const RepoDestroyAuditEntryVisibility_INTERNAL RepoDestroyAuditEntryVisibility = "INTERNAL" - -// RepoDestroyAuditEntryVisibility_PRIVATE: The repository is visible only to those with explicit access. -const RepoDestroyAuditEntryVisibility_PRIVATE RepoDestroyAuditEntryVisibility = "PRIVATE" - -// RepoDestroyAuditEntryVisibility_PUBLIC: The repository is visible to everyone. -const RepoDestroyAuditEntryVisibility_PUBLIC RepoDestroyAuditEntryVisibility = "PUBLIC" - -// RepoRemoveMemberAuditEntry (OBJECT): Audit log entry for a repo.remove_member event. -type RepoRemoveMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` - - // Visibility: The visibility of the repository. - Visibility RepoRemoveMemberAuditEntryVisibility `json:"visibility,omitempty"` -} - -func (x *RepoRemoveMemberAuditEntry) GetAction() string { return x.Action } -func (x *RepoRemoveMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoRemoveMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoRemoveMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoRemoveMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoRemoveMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoRemoveMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoRemoveMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoRemoveMemberAuditEntry) GetId() ID { return x.Id } -func (x *RepoRemoveMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoRemoveMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoRemoveMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoRemoveMemberAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoRemoveMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoRemoveMemberAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoRemoveMemberAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoRemoveMemberAuditEntry) GetRepositoryResourcePath() URI { return x.RepositoryResourcePath } -func (x *RepoRemoveMemberAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoRemoveMemberAuditEntry) GetUser() *User { return x.User } -func (x *RepoRemoveMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoRemoveMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoRemoveMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } -func (x *RepoRemoveMemberAuditEntry) GetVisibility() RepoRemoveMemberAuditEntryVisibility { - return x.Visibility -} - -// RepoRemoveMemberAuditEntryVisibility (ENUM): The privacy of a repository. -type RepoRemoveMemberAuditEntryVisibility string - -// RepoRemoveMemberAuditEntryVisibility_INTERNAL: The repository is visible only to users in the same business. -const RepoRemoveMemberAuditEntryVisibility_INTERNAL RepoRemoveMemberAuditEntryVisibility = "INTERNAL" - -// RepoRemoveMemberAuditEntryVisibility_PRIVATE: The repository is visible only to those with explicit access. -const RepoRemoveMemberAuditEntryVisibility_PRIVATE RepoRemoveMemberAuditEntryVisibility = "PRIVATE" - -// RepoRemoveMemberAuditEntryVisibility_PUBLIC: The repository is visible to everyone. -const RepoRemoveMemberAuditEntryVisibility_PUBLIC RepoRemoveMemberAuditEntryVisibility = "PUBLIC" - -// RepoRemoveTopicAuditEntry (OBJECT): Audit log entry for a repo.remove_topic event. -type RepoRemoveTopicAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // Topic: The name of the topic added to the repository. - Topic *Topic `json:"topic,omitempty"` - - // TopicName: The name of the topic added to the repository. - TopicName string `json:"topicName,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepoRemoveTopicAuditEntry) GetAction() string { return x.Action } -func (x *RepoRemoveTopicAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepoRemoveTopicAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepoRemoveTopicAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *RepoRemoveTopicAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepoRemoveTopicAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *RepoRemoveTopicAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepoRemoveTopicAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *RepoRemoveTopicAuditEntry) GetId() ID { return x.Id } -func (x *RepoRemoveTopicAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *RepoRemoveTopicAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *RepoRemoveTopicAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *RepoRemoveTopicAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepoRemoveTopicAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *RepoRemoveTopicAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *RepoRemoveTopicAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *RepoRemoveTopicAuditEntry) GetRepositoryResourcePath() URI { return x.RepositoryResourcePath } -func (x *RepoRemoveTopicAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *RepoRemoveTopicAuditEntry) GetTopic() *Topic { return x.Topic } -func (x *RepoRemoveTopicAuditEntry) GetTopicName() string { return x.TopicName } -func (x *RepoRemoveTopicAuditEntry) GetUser() *User { return x.User } -func (x *RepoRemoveTopicAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepoRemoveTopicAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *RepoRemoveTopicAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// ReportedContentClassifiers (ENUM): The reasons a piece of content can be reported or minimized. -type ReportedContentClassifiers string - -// ReportedContentClassifiers_SPAM: A spammy piece of content. -const ReportedContentClassifiers_SPAM ReportedContentClassifiers = "SPAM" - -// ReportedContentClassifiers_ABUSE: An abusive or harassing piece of content. -const ReportedContentClassifiers_ABUSE ReportedContentClassifiers = "ABUSE" - -// ReportedContentClassifiers_OFF_TOPIC: An irrelevant piece of content. -const ReportedContentClassifiers_OFF_TOPIC ReportedContentClassifiers = "OFF_TOPIC" - -// ReportedContentClassifiers_OUTDATED: An outdated piece of content. -const ReportedContentClassifiers_OUTDATED ReportedContentClassifiers = "OUTDATED" - -// ReportedContentClassifiers_DUPLICATE: A duplicated piece of content. -const ReportedContentClassifiers_DUPLICATE ReportedContentClassifiers = "DUPLICATE" - -// ReportedContentClassifiers_RESOLVED: The content has been resolved. -const ReportedContentClassifiers_RESOLVED ReportedContentClassifiers = "RESOLVED" - -// Repository (OBJECT): A repository contains the content for a project. -type Repository struct { - // AllowUpdateBranch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - AllowUpdateBranch bool `json:"allowUpdateBranch,omitempty"` - - // AssignableUsers: A list of users that can be assigned to issues in this repository. - // - // Query arguments: - // - query String - // - after String - // - before String - // - first Int - // - last Int - AssignableUsers *UserConnection `json:"assignableUsers,omitempty"` - - // AutoMergeAllowed: Whether or not Auto-merge can be enabled on pull requests in this repository. - AutoMergeAllowed bool `json:"autoMergeAllowed,omitempty"` - - // BranchProtectionRules: A list of branch protection rules for this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - BranchProtectionRules *BranchProtectionRuleConnection `json:"branchProtectionRules,omitempty"` - - // CodeOfConduct: Returns the code of conduct for this repository. - CodeOfConduct *CodeOfConduct `json:"codeOfConduct,omitempty"` - - // Codeowners: Information extracted from the repository's `CODEOWNERS` file. - // - // Query arguments: - // - refName String - Codeowners *RepositoryCodeowners `json:"codeowners,omitempty"` - - // Collaborators: A list of collaborators associated with the repository. - // - // Query arguments: - // - affiliation CollaboratorAffiliation - // - query String - // - after String - // - before String - // - first Int - // - last Int - Collaborators *RepositoryCollaboratorConnection `json:"collaborators,omitempty"` - - // CommitComments: A list of commit comments associated with the repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - CommitComments *CommitCommentConnection `json:"commitComments,omitempty"` - - // ContactLinks: Returns a list of contact links associated to the repository. - ContactLinks []*RepositoryContactLink `json:"contactLinks,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // DefaultBranchRef: The Ref associated with the repository's default branch. - DefaultBranchRef *Ref `json:"defaultBranchRef,omitempty"` - - // DeleteBranchOnMerge: Whether or not branches are automatically deleted when merged in this repository. - DeleteBranchOnMerge bool `json:"deleteBranchOnMerge,omitempty"` - - // DeployKeys: A list of deploy keys that are on this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - DeployKeys *DeployKeyConnection `json:"deployKeys,omitempty"` - - // Deployments: Deployments associated with the repository. - // - // Query arguments: - // - environments [String!] - // - orderBy DeploymentOrder - // - after String - // - before String - // - first Int - // - last Int - Deployments *DeploymentConnection `json:"deployments,omitempty"` - - // Description: The description of the repository. - Description string `json:"description,omitempty"` - - // DescriptionHTML: The description of the repository rendered to HTML. - DescriptionHTML template.HTML `json:"descriptionHTML,omitempty"` - - // Discussion: Returns a single discussion from the current repository by number. - // - // Query arguments: - // - number Int! - Discussion *Discussion `json:"discussion,omitempty"` - - // DiscussionCategories: A list of discussion categories that are available in the repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - filterByAssignable Boolean - DiscussionCategories *DiscussionCategoryConnection `json:"discussionCategories,omitempty"` - - // Discussions: A list of discussions that have been opened in the repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - categoryId ID - // - orderBy DiscussionOrder - Discussions *DiscussionConnection `json:"discussions,omitempty"` - - // DiskUsage: The number of kilobytes this repository occupies on disk. - DiskUsage int `json:"diskUsage,omitempty"` - - // Environment: Returns a single active environment from the current repository by name. - // - // Query arguments: - // - name String! - Environment *Environment `json:"environment,omitempty"` - - // Environments: A list of environments that are in this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Environments *EnvironmentConnection `json:"environments,omitempty"` - - // ForkCount: Returns how many forks there are of this repository in the whole network. - ForkCount int `json:"forkCount,omitempty"` - - // ForkingAllowed: Whether this repository allows forks. - ForkingAllowed bool `json:"forkingAllowed,omitempty"` - - // Forks: A list of direct forked repositories. - // - // Query arguments: - // - privacy RepositoryPrivacy - // - orderBy RepositoryOrder - // - affiliations [RepositoryAffiliation] - // - ownerAffiliations [RepositoryAffiliation] - // - isLocked Boolean - // - after String - // - before String - // - first Int - // - last Int - Forks *RepositoryConnection `json:"forks,omitempty"` - - // FundingLinks: The funding links for this repository. - FundingLinks []*FundingLink `json:"fundingLinks,omitempty"` - - // HasIssuesEnabled: Indicates if the repository has issues feature enabled. - HasIssuesEnabled bool `json:"hasIssuesEnabled,omitempty"` - - // HasProjectsEnabled: Indicates if the repository has the Projects feature enabled. - HasProjectsEnabled bool `json:"hasProjectsEnabled,omitempty"` - - // HasWikiEnabled: Indicates if the repository has wiki feature enabled. - HasWikiEnabled bool `json:"hasWikiEnabled,omitempty"` - - // HomepageUrl: The repository's URL. - HomepageUrl URI `json:"homepageUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // InteractionAbility: The interaction ability settings for this repository. - InteractionAbility *RepositoryInteractionAbility `json:"interactionAbility,omitempty"` - - // IsArchived: Indicates if the repository is unmaintained. - IsArchived bool `json:"isArchived,omitempty"` - - // IsBlankIssuesEnabled: Returns true if blank issue creation is allowed. - IsBlankIssuesEnabled bool `json:"isBlankIssuesEnabled,omitempty"` - - // IsDisabled: Returns whether or not this repository disabled. - IsDisabled bool `json:"isDisabled,omitempty"` - - // IsEmpty: Returns whether or not this repository is empty. - IsEmpty bool `json:"isEmpty,omitempty"` - - // IsFork: Identifies if the repository is a fork. - IsFork bool `json:"isFork,omitempty"` - - // IsInOrganization: Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. - IsInOrganization bool `json:"isInOrganization,omitempty"` - - // IsLocked: Indicates if the repository has been locked or not. - IsLocked bool `json:"isLocked,omitempty"` - - // IsMirror: Identifies if the repository is a mirror. - IsMirror bool `json:"isMirror,omitempty"` - - // IsPrivate: Identifies if the repository is private or internal. - IsPrivate bool `json:"isPrivate,omitempty"` - - // IsSecurityPolicyEnabled: Returns true if this repository has a security policy. - IsSecurityPolicyEnabled bool `json:"isSecurityPolicyEnabled,omitempty"` - - // IsTemplate: Identifies if the repository is a template that can be used to generate new repositories. - IsTemplate bool `json:"isTemplate,omitempty"` - - // IsUserConfigurationRepository: Is this repository a user configuration repository?. - IsUserConfigurationRepository bool `json:"isUserConfigurationRepository,omitempty"` - - // Issue: Returns a single issue from the current repository by number. - // - // Query arguments: - // - number Int! - Issue *Issue `json:"issue,omitempty"` - - // IssueOrPullRequest: Returns a single issue-like object from the current repository by number. - // - // Query arguments: - // - number Int! - IssueOrPullRequest IssueOrPullRequest `json:"issueOrPullRequest,omitempty"` - - // IssueTemplates: Returns a list of issue templates associated to the repository. - IssueTemplates []*IssueTemplate `json:"issueTemplates,omitempty"` - - // Issues: A list of issues that have been opened in the repository. - // - // Query arguments: - // - orderBy IssueOrder - // - labels [String!] - // - states [IssueState!] - // - filterBy IssueFilters - // - after String - // - before String - // - first Int - // - last Int - Issues *IssueConnection `json:"issues,omitempty"` - - // Label: Returns a single label by name. - // - // Query arguments: - // - name String! - Label *Label `json:"label,omitempty"` - - // Labels: A list of labels associated with the repository. - // - // Query arguments: - // - orderBy LabelOrder - // - after String - // - before String - // - first Int - // - last Int - // - query String - Labels *LabelConnection `json:"labels,omitempty"` - - // Languages: A list containing a breakdown of the language composition of the repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy LanguageOrder - Languages *LanguageConnection `json:"languages,omitempty"` - - // LatestRelease: Get the latest release for the repository if one exists. - LatestRelease *Release `json:"latestRelease,omitempty"` - - // LicenseInfo: The license associated with the repository. - LicenseInfo *License `json:"licenseInfo,omitempty"` - - // LockReason: The reason the repository has been locked. - LockReason RepositoryLockReason `json:"lockReason,omitempty"` - - // MentionableUsers: A list of Users that can be mentioned in the context of the repository. - // - // Query arguments: - // - query String - // - after String - // - before String - // - first Int - // - last Int - MentionableUsers *UserConnection `json:"mentionableUsers,omitempty"` - - // MergeCommitAllowed: Whether or not PRs are merged with a merge commit on this repository. - MergeCommitAllowed bool `json:"mergeCommitAllowed,omitempty"` - - // Milestone: Returns a single milestone from the current repository by number. - // - // Query arguments: - // - number Int! - Milestone *Milestone `json:"milestone,omitempty"` - - // Milestones: A list of milestones associated with the repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - states [MilestoneState!] - // - orderBy MilestoneOrder - // - query String - Milestones *MilestoneConnection `json:"milestones,omitempty"` - - // MirrorUrl: The repository's original mirror URL. - MirrorUrl URI `json:"mirrorUrl,omitempty"` - - // Name: The name of the repository. - Name string `json:"name,omitempty"` - - // NameWithOwner: The repository's name with owner. - NameWithOwner string `json:"nameWithOwner,omitempty"` - - // Object: A Git object in the repository. - // - // Query arguments: - // - oid GitObjectID - // - expression String - Object GitObject `json:"object,omitempty"` - - // OpenGraphImageUrl: The image used to represent this repository in Open Graph data. - OpenGraphImageUrl URI `json:"openGraphImageUrl,omitempty"` - - // Owner: The User owner of the repository. - Owner RepositoryOwner `json:"owner,omitempty"` - - // Packages: A list of packages under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - names [String] - // - repositoryId ID - // - packageType PackageType - // - orderBy PackageOrder - Packages *PackageConnection `json:"packages,omitempty"` - - // Parent: The repository parent, if this is a fork. - Parent *Repository `json:"parent,omitempty"` - - // PinnedDiscussions: A list of discussions that have been pinned in this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - PinnedDiscussions *PinnedDiscussionConnection `json:"pinnedDiscussions,omitempty"` - - // PinnedIssues: A list of pinned issues for this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - PinnedIssues *PinnedIssueConnection `json:"pinnedIssues,omitempty"` - - // PrimaryLanguage: The primary language of the repository's code. - PrimaryLanguage *Language `json:"primaryLanguage,omitempty"` - - // Project: Find project by number. - // - // Query arguments: - // - number Int! - Project *Project `json:"project,omitempty"` - - // ProjectNext: Finds and returns the Project (beta) according to the provided Project (beta) number. - // - // Deprecated: Finds and returns the Project (beta) according to the provided Project (beta) number. - // - // Query arguments: - // - number Int! - ProjectNext *ProjectNext `json:"projectNext,omitempty"` - - // ProjectV2: Finds and returns the Project according to the provided Project number. - // - // Query arguments: - // - number Int! - ProjectV2 *ProjectV2 `json:"projectV2,omitempty"` - - // Projects: A list of projects under the owner. - // - // Query arguments: - // - orderBy ProjectOrder - // - search String - // - states [ProjectState!] - // - after String - // - before String - // - first Int - // - last Int - Projects *ProjectConnection `json:"projects,omitempty"` - - // ProjectsNext: List of projects (beta) linked to this repository. - // - // Deprecated: List of projects (beta) linked to this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - sortBy ProjectNextOrderField - ProjectsNext *ProjectNextConnection `json:"projectsNext,omitempty"` - - // ProjectsResourcePath: The HTTP path listing the repository's projects. - ProjectsResourcePath URI `json:"projectsResourcePath,omitempty"` - - // ProjectsUrl: The HTTP URL listing the repository's projects. - ProjectsUrl URI `json:"projectsUrl,omitempty"` - - // ProjectsV2: List of projects linked to this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - orderBy ProjectV2Order - ProjectsV2 *ProjectV2Connection `json:"projectsV2,omitempty"` - - // PullRequest: Returns a single pull request from the current repository by number. - // - // Query arguments: - // - number Int! - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // PullRequestTemplates: Returns a list of pull request templates associated to the repository. - PullRequestTemplates []*PullRequestTemplate `json:"pullRequestTemplates,omitempty"` - - // PullRequests: A list of pull requests that have been opened in the repository. - // - // Query arguments: - // - states [PullRequestState!] - // - labels [String!] - // - headRefName String - // - baseRefName String - // - orderBy IssueOrder - // - after String - // - before String - // - first Int - // - last Int - PullRequests *PullRequestConnection `json:"pullRequests,omitempty"` - - // PushedAt: Identifies when the repository was last pushed to. - PushedAt DateTime `json:"pushedAt,omitempty"` - - // RebaseMergeAllowed: Whether or not rebase-merging is enabled on this repository. - RebaseMergeAllowed bool `json:"rebaseMergeAllowed,omitempty"` - - // RecentProjects: Recent projects that this user has modified in the context of the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - RecentProjects *ProjectV2Connection `json:"recentProjects,omitempty"` - - // Ref: Fetch a given ref from the repository. - // - // Query arguments: - // - qualifiedName String! - Ref *Ref `json:"ref,omitempty"` - - // Refs: Fetch a list of refs from the repository. - // - // Query arguments: - // - query String - // - after String - // - before String - // - first Int - // - last Int - // - refPrefix String! - // - direction OrderDirection - // - orderBy RefOrder - Refs *RefConnection `json:"refs,omitempty"` - - // Release: Lookup a single release given various criteria. - // - // Query arguments: - // - tagName String! - Release *Release `json:"release,omitempty"` - - // Releases: List of releases which are dependent on this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy ReleaseOrder - Releases *ReleaseConnection `json:"releases,omitempty"` - - // RepositoryTopics: A list of applied repository-topic associations for this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - RepositoryTopics *RepositoryTopicConnection `json:"repositoryTopics,omitempty"` - - // ResourcePath: The HTTP path for this repository. - ResourcePath URI `json:"resourcePath,omitempty"` - - // SecurityPolicyUrl: The security policy URL. - SecurityPolicyUrl URI `json:"securityPolicyUrl,omitempty"` - - // ShortDescriptionHTML: A description of the repository, rendered to HTML without any links in it. - // - // Query arguments: - // - limit Int - ShortDescriptionHTML template.HTML `json:"shortDescriptionHTML,omitempty"` - - // SquashMergeAllowed: Whether or not squash-merging is enabled on this repository. - SquashMergeAllowed bool `json:"squashMergeAllowed,omitempty"` - - // SquashPrTitleUsedAsDefault: Whether a squash merge commit can use the pull request title as default. - SquashPrTitleUsedAsDefault bool `json:"squashPrTitleUsedAsDefault,omitempty"` - - // SshUrl: The SSH URL to clone this repository. - SshUrl GitSSHRemote `json:"sshUrl,omitempty"` - - // StargazerCount: Returns a count of how many stargazers there are on this object - // . - StargazerCount int `json:"stargazerCount,omitempty"` - - // Stargazers: A list of users who have starred this starrable. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy StarOrder - Stargazers *StargazerConnection `json:"stargazers,omitempty"` - - // Submodules: Returns a list of all submodules in this repository parsed from the .gitmodules file as of the default branch's HEAD commit. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Submodules *SubmoduleConnection `json:"submodules,omitempty"` - - // TempCloneToken: Temporary authentication token for cloning this repository. - TempCloneToken string `json:"tempCloneToken,omitempty"` - - // TemplateRepository: The repository from which this repository was generated, if any. - TemplateRepository *Repository `json:"templateRepository,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this repository. - Url URI `json:"url,omitempty"` - - // UsesCustomOpenGraphImage: Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. - UsesCustomOpenGraphImage bool `json:"usesCustomOpenGraphImage,omitempty"` - - // ViewerCanAdminister: Indicates whether the viewer has admin permissions on this repository. - ViewerCanAdminister bool `json:"viewerCanAdminister,omitempty"` - - // ViewerCanCreateProjects: Can the current viewer create new projects on this owner. - ViewerCanCreateProjects bool `json:"viewerCanCreateProjects,omitempty"` - - // ViewerCanSubscribe: Check if the viewer is able to change their subscription status for the repository. - ViewerCanSubscribe bool `json:"viewerCanSubscribe,omitempty"` - - // ViewerCanUpdateTopics: Indicates whether the viewer can update the topics of this repository. - ViewerCanUpdateTopics bool `json:"viewerCanUpdateTopics,omitempty"` - - // ViewerDefaultCommitEmail: The last commit email for the viewer. - ViewerDefaultCommitEmail string `json:"viewerDefaultCommitEmail,omitempty"` - - // ViewerDefaultMergeMethod: The last used merge method by the viewer or the default for the repository. - ViewerDefaultMergeMethod PullRequestMergeMethod `json:"viewerDefaultMergeMethod,omitempty"` - - // ViewerHasStarred: Returns a boolean indicating whether the viewing user has starred this starrable. - ViewerHasStarred bool `json:"viewerHasStarred,omitempty"` - - // ViewerPermission: The users permission level on the repository. Will return null if authenticated as an GitHub App. - ViewerPermission RepositoryPermission `json:"viewerPermission,omitempty"` - - // ViewerPossibleCommitEmails: A list of emails this viewer can commit with. - ViewerPossibleCommitEmails []string `json:"viewerPossibleCommitEmails,omitempty"` - - // ViewerSubscription: Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - ViewerSubscription SubscriptionState `json:"viewerSubscription,omitempty"` - - // Visibility: Indicates the repository's visibility level. - Visibility RepositoryVisibility `json:"visibility,omitempty"` - - // VulnerabilityAlerts: A list of vulnerability alerts that are on this repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - states [RepositoryVulnerabilityAlertState!] - // - dependencyScopes [RepositoryVulnerabilityAlertDependencyScope!] - VulnerabilityAlerts *RepositoryVulnerabilityAlertConnection `json:"vulnerabilityAlerts,omitempty"` - - // Watchers: A list of users watching the repository. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Watchers *UserConnection `json:"watchers,omitempty"` -} - -func (x *Repository) GetAllowUpdateBranch() bool { return x.AllowUpdateBranch } -func (x *Repository) GetAssignableUsers() *UserConnection { return x.AssignableUsers } -func (x *Repository) GetAutoMergeAllowed() bool { return x.AutoMergeAllowed } -func (x *Repository) GetBranchProtectionRules() *BranchProtectionRuleConnection { - return x.BranchProtectionRules -} -func (x *Repository) GetCodeOfConduct() *CodeOfConduct { return x.CodeOfConduct } -func (x *Repository) GetCodeowners() *RepositoryCodeowners { return x.Codeowners } -func (x *Repository) GetCollaborators() *RepositoryCollaboratorConnection { return x.Collaborators } -func (x *Repository) GetCommitComments() *CommitCommentConnection { return x.CommitComments } -func (x *Repository) GetContactLinks() []*RepositoryContactLink { return x.ContactLinks } -func (x *Repository) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Repository) GetDatabaseId() int { return x.DatabaseId } -func (x *Repository) GetDefaultBranchRef() *Ref { return x.DefaultBranchRef } -func (x *Repository) GetDeleteBranchOnMerge() bool { return x.DeleteBranchOnMerge } -func (x *Repository) GetDeployKeys() *DeployKeyConnection { return x.DeployKeys } -func (x *Repository) GetDeployments() *DeploymentConnection { return x.Deployments } -func (x *Repository) GetDescription() string { return x.Description } -func (x *Repository) GetDescriptionHTML() template.HTML { return x.DescriptionHTML } -func (x *Repository) GetDiscussion() *Discussion { return x.Discussion } -func (x *Repository) GetDiscussionCategories() *DiscussionCategoryConnection { - return x.DiscussionCategories -} -func (x *Repository) GetDiscussions() *DiscussionConnection { return x.Discussions } -func (x *Repository) GetDiskUsage() int { return x.DiskUsage } -func (x *Repository) GetEnvironment() *Environment { return x.Environment } -func (x *Repository) GetEnvironments() *EnvironmentConnection { return x.Environments } -func (x *Repository) GetForkCount() int { return x.ForkCount } -func (x *Repository) GetForkingAllowed() bool { return x.ForkingAllowed } -func (x *Repository) GetForks() *RepositoryConnection { return x.Forks } -func (x *Repository) GetFundingLinks() []*FundingLink { return x.FundingLinks } -func (x *Repository) GetHasIssuesEnabled() bool { return x.HasIssuesEnabled } -func (x *Repository) GetHasProjectsEnabled() bool { return x.HasProjectsEnabled } -func (x *Repository) GetHasWikiEnabled() bool { return x.HasWikiEnabled } -func (x *Repository) GetHomepageUrl() URI { return x.HomepageUrl } -func (x *Repository) GetId() ID { return x.Id } -func (x *Repository) GetInteractionAbility() *RepositoryInteractionAbility { - return x.InteractionAbility -} -func (x *Repository) GetIsArchived() bool { return x.IsArchived } -func (x *Repository) GetIsBlankIssuesEnabled() bool { return x.IsBlankIssuesEnabled } -func (x *Repository) GetIsDisabled() bool { return x.IsDisabled } -func (x *Repository) GetIsEmpty() bool { return x.IsEmpty } -func (x *Repository) GetIsFork() bool { return x.IsFork } -func (x *Repository) GetIsInOrganization() bool { return x.IsInOrganization } -func (x *Repository) GetIsLocked() bool { return x.IsLocked } -func (x *Repository) GetIsMirror() bool { return x.IsMirror } -func (x *Repository) GetIsPrivate() bool { return x.IsPrivate } -func (x *Repository) GetIsSecurityPolicyEnabled() bool { return x.IsSecurityPolicyEnabled } -func (x *Repository) GetIsTemplate() bool { return x.IsTemplate } -func (x *Repository) GetIsUserConfigurationRepository() bool { return x.IsUserConfigurationRepository } -func (x *Repository) GetIssue() *Issue { return x.Issue } -func (x *Repository) GetIssueOrPullRequest() IssueOrPullRequest { return x.IssueOrPullRequest } -func (x *Repository) GetIssueTemplates() []*IssueTemplate { return x.IssueTemplates } -func (x *Repository) GetIssues() *IssueConnection { return x.Issues } -func (x *Repository) GetLabel() *Label { return x.Label } -func (x *Repository) GetLabels() *LabelConnection { return x.Labels } -func (x *Repository) GetLanguages() *LanguageConnection { return x.Languages } -func (x *Repository) GetLatestRelease() *Release { return x.LatestRelease } -func (x *Repository) GetLicenseInfo() *License { return x.LicenseInfo } -func (x *Repository) GetLockReason() RepositoryLockReason { return x.LockReason } -func (x *Repository) GetMentionableUsers() *UserConnection { return x.MentionableUsers } -func (x *Repository) GetMergeCommitAllowed() bool { return x.MergeCommitAllowed } -func (x *Repository) GetMilestone() *Milestone { return x.Milestone } -func (x *Repository) GetMilestones() *MilestoneConnection { return x.Milestones } -func (x *Repository) GetMirrorUrl() URI { return x.MirrorUrl } -func (x *Repository) GetName() string { return x.Name } -func (x *Repository) GetNameWithOwner() string { return x.NameWithOwner } -func (x *Repository) GetObject() GitObject { return x.Object } -func (x *Repository) GetOpenGraphImageUrl() URI { return x.OpenGraphImageUrl } -func (x *Repository) GetOwner() RepositoryOwner { return x.Owner } -func (x *Repository) GetPackages() *PackageConnection { return x.Packages } -func (x *Repository) GetParent() *Repository { return x.Parent } -func (x *Repository) GetPinnedDiscussions() *PinnedDiscussionConnection { return x.PinnedDiscussions } -func (x *Repository) GetPinnedIssues() *PinnedIssueConnection { return x.PinnedIssues } -func (x *Repository) GetPrimaryLanguage() *Language { return x.PrimaryLanguage } -func (x *Repository) GetProject() *Project { return x.Project } -func (x *Repository) GetProjectNext() *ProjectNext { return x.ProjectNext } -func (x *Repository) GetProjectV2() *ProjectV2 { return x.ProjectV2 } -func (x *Repository) GetProjects() *ProjectConnection { return x.Projects } -func (x *Repository) GetProjectsNext() *ProjectNextConnection { return x.ProjectsNext } -func (x *Repository) GetProjectsResourcePath() URI { return x.ProjectsResourcePath } -func (x *Repository) GetProjectsUrl() URI { return x.ProjectsUrl } -func (x *Repository) GetProjectsV2() *ProjectV2Connection { return x.ProjectsV2 } -func (x *Repository) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *Repository) GetPullRequestTemplates() []*PullRequestTemplate { return x.PullRequestTemplates } -func (x *Repository) GetPullRequests() *PullRequestConnection { return x.PullRequests } -func (x *Repository) GetPushedAt() DateTime { return x.PushedAt } -func (x *Repository) GetRebaseMergeAllowed() bool { return x.RebaseMergeAllowed } -func (x *Repository) GetRecentProjects() *ProjectV2Connection { return x.RecentProjects } -func (x *Repository) GetRef() *Ref { return x.Ref } -func (x *Repository) GetRefs() *RefConnection { return x.Refs } -func (x *Repository) GetRelease() *Release { return x.Release } -func (x *Repository) GetReleases() *ReleaseConnection { return x.Releases } -func (x *Repository) GetRepositoryTopics() *RepositoryTopicConnection { return x.RepositoryTopics } -func (x *Repository) GetResourcePath() URI { return x.ResourcePath } -func (x *Repository) GetSecurityPolicyUrl() URI { return x.SecurityPolicyUrl } -func (x *Repository) GetShortDescriptionHTML() template.HTML { return x.ShortDescriptionHTML } -func (x *Repository) GetSquashMergeAllowed() bool { return x.SquashMergeAllowed } -func (x *Repository) GetSquashPrTitleUsedAsDefault() bool { return x.SquashPrTitleUsedAsDefault } -func (x *Repository) GetSshUrl() GitSSHRemote { return x.SshUrl } -func (x *Repository) GetStargazerCount() int { return x.StargazerCount } -func (x *Repository) GetStargazers() *StargazerConnection { return x.Stargazers } -func (x *Repository) GetSubmodules() *SubmoduleConnection { return x.Submodules } -func (x *Repository) GetTempCloneToken() string { return x.TempCloneToken } -func (x *Repository) GetTemplateRepository() *Repository { return x.TemplateRepository } -func (x *Repository) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Repository) GetUrl() URI { return x.Url } -func (x *Repository) GetUsesCustomOpenGraphImage() bool { return x.UsesCustomOpenGraphImage } -func (x *Repository) GetViewerCanAdminister() bool { return x.ViewerCanAdminister } -func (x *Repository) GetViewerCanCreateProjects() bool { return x.ViewerCanCreateProjects } -func (x *Repository) GetViewerCanSubscribe() bool { return x.ViewerCanSubscribe } -func (x *Repository) GetViewerCanUpdateTopics() bool { return x.ViewerCanUpdateTopics } -func (x *Repository) GetViewerDefaultCommitEmail() string { return x.ViewerDefaultCommitEmail } -func (x *Repository) GetViewerDefaultMergeMethod() PullRequestMergeMethod { - return x.ViewerDefaultMergeMethod -} -func (x *Repository) GetViewerHasStarred() bool { return x.ViewerHasStarred } -func (x *Repository) GetViewerPermission() RepositoryPermission { return x.ViewerPermission } -func (x *Repository) GetViewerPossibleCommitEmails() []string { return x.ViewerPossibleCommitEmails } -func (x *Repository) GetViewerSubscription() SubscriptionState { return x.ViewerSubscription } -func (x *Repository) GetVisibility() RepositoryVisibility { return x.Visibility } -func (x *Repository) GetVulnerabilityAlerts() *RepositoryVulnerabilityAlertConnection { - return x.VulnerabilityAlerts -} -func (x *Repository) GetWatchers() *UserConnection { return x.Watchers } - -// RepositoryAffiliation (ENUM): The affiliation of a user to a repository. -type RepositoryAffiliation string - -// RepositoryAffiliation_OWNER: Repositories that are owned by the authenticated user. -const RepositoryAffiliation_OWNER RepositoryAffiliation = "OWNER" - -// RepositoryAffiliation_COLLABORATOR: Repositories that the user has been added to as a collaborator. -const RepositoryAffiliation_COLLABORATOR RepositoryAffiliation = "COLLABORATOR" - -// RepositoryAffiliation_ORGANIZATION_MEMBER: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. -const RepositoryAffiliation_ORGANIZATION_MEMBER RepositoryAffiliation = "ORGANIZATION_MEMBER" - -// RepositoryAuditEntryData (INTERFACE): Metadata for an audit entry with action repo.*. -// RepositoryAuditEntryData_Interface: Metadata for an audit entry with action repo.*. -// -// Possible types: -// -// - *OrgRestoreMemberMembershipRepositoryAuditEntryData -// - *PrivateRepositoryForkingDisableAuditEntry -// - *PrivateRepositoryForkingEnableAuditEntry -// - *RepoAccessAuditEntry -// - *RepoAddMemberAuditEntry -// - *RepoAddTopicAuditEntry -// - *RepoArchivedAuditEntry -// - *RepoChangeMergeSettingAuditEntry -// - *RepoConfigDisableAnonymousGitAccessAuditEntry -// - *RepoConfigDisableCollaboratorsOnlyAuditEntry -// - *RepoConfigDisableContributorsOnlyAuditEntry -// - *RepoConfigDisableSockpuppetDisallowedAuditEntry -// - *RepoConfigEnableAnonymousGitAccessAuditEntry -// - *RepoConfigEnableCollaboratorsOnlyAuditEntry -// - *RepoConfigEnableContributorsOnlyAuditEntry -// - *RepoConfigEnableSockpuppetDisallowedAuditEntry -// - *RepoConfigLockAnonymousGitAccessAuditEntry -// - *RepoConfigUnlockAnonymousGitAccessAuditEntry -// - *RepoCreateAuditEntry -// - *RepoDestroyAuditEntry -// - *RepoRemoveMemberAuditEntry -// - *RepoRemoveTopicAuditEntry -// - *TeamAddRepositoryAuditEntry -// - *TeamRemoveRepositoryAuditEntry -type RepositoryAuditEntryData_Interface interface { - isRepositoryAuditEntryData() - GetRepository() *Repository - GetRepositoryName() string - GetRepositoryResourcePath() URI - GetRepositoryUrl() URI -} - -func (*OrgRestoreMemberMembershipRepositoryAuditEntryData) isRepositoryAuditEntryData() {} -func (*PrivateRepositoryForkingDisableAuditEntry) isRepositoryAuditEntryData() {} -func (*PrivateRepositoryForkingEnableAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoAccessAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoAddMemberAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoAddTopicAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoArchivedAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoChangeMergeSettingAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigDisableAnonymousGitAccessAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigDisableCollaboratorsOnlyAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigDisableContributorsOnlyAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigDisableSockpuppetDisallowedAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigEnableAnonymousGitAccessAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigEnableCollaboratorsOnlyAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigEnableContributorsOnlyAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigEnableSockpuppetDisallowedAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigLockAnonymousGitAccessAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoConfigUnlockAnonymousGitAccessAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoCreateAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoDestroyAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoRemoveMemberAuditEntry) isRepositoryAuditEntryData() {} -func (*RepoRemoveTopicAuditEntry) isRepositoryAuditEntryData() {} -func (*TeamAddRepositoryAuditEntry) isRepositoryAuditEntryData() {} -func (*TeamRemoveRepositoryAuditEntry) isRepositoryAuditEntryData() {} - -type RepositoryAuditEntryData struct { - Interface RepositoryAuditEntryData_Interface -} - -func (x *RepositoryAuditEntryData) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RepositoryAuditEntryData) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RepositoryAuditEntryData", info.Typename) - case "OrgRestoreMemberMembershipRepositoryAuditEntryData": - x.Interface = new(OrgRestoreMemberMembershipRepositoryAuditEntryData) - case "PrivateRepositoryForkingDisableAuditEntry": - x.Interface = new(PrivateRepositoryForkingDisableAuditEntry) - case "PrivateRepositoryForkingEnableAuditEntry": - x.Interface = new(PrivateRepositoryForkingEnableAuditEntry) - case "RepoAccessAuditEntry": - x.Interface = new(RepoAccessAuditEntry) - case "RepoAddMemberAuditEntry": - x.Interface = new(RepoAddMemberAuditEntry) - case "RepoAddTopicAuditEntry": - x.Interface = new(RepoAddTopicAuditEntry) - case "RepoArchivedAuditEntry": - x.Interface = new(RepoArchivedAuditEntry) - case "RepoChangeMergeSettingAuditEntry": - x.Interface = new(RepoChangeMergeSettingAuditEntry) - case "RepoConfigDisableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigDisableAnonymousGitAccessAuditEntry) - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableCollaboratorsOnlyAuditEntry) - case "RepoConfigDisableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigDisableContributorsOnlyAuditEntry) - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigDisableSockpuppetDisallowedAuditEntry) - case "RepoConfigEnableAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigEnableAnonymousGitAccessAuditEntry) - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableCollaboratorsOnlyAuditEntry) - case "RepoConfigEnableContributorsOnlyAuditEntry": - x.Interface = new(RepoConfigEnableContributorsOnlyAuditEntry) - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": - x.Interface = new(RepoConfigEnableSockpuppetDisallowedAuditEntry) - case "RepoConfigLockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigLockAnonymousGitAccessAuditEntry) - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": - x.Interface = new(RepoConfigUnlockAnonymousGitAccessAuditEntry) - case "RepoCreateAuditEntry": - x.Interface = new(RepoCreateAuditEntry) - case "RepoDestroyAuditEntry": - x.Interface = new(RepoDestroyAuditEntry) - case "RepoRemoveMemberAuditEntry": - x.Interface = new(RepoRemoveMemberAuditEntry) - case "RepoRemoveTopicAuditEntry": - x.Interface = new(RepoRemoveTopicAuditEntry) - case "TeamAddRepositoryAuditEntry": - x.Interface = new(TeamAddRepositoryAuditEntry) - case "TeamRemoveRepositoryAuditEntry": - x.Interface = new(TeamRemoveRepositoryAuditEntry) - } - return json.Unmarshal(js, x.Interface) -} - -// RepositoryCodeowners (OBJECT): Information extracted from a repository's `CODEOWNERS` file. -type RepositoryCodeowners struct { - // Errors: Any problems that were encountered while parsing the `CODEOWNERS` file. - Errors []*RepositoryCodeownersError `json:"errors,omitempty"` -} - -func (x *RepositoryCodeowners) GetErrors() []*RepositoryCodeownersError { return x.Errors } - -// RepositoryCodeownersError (OBJECT): An error in a `CODEOWNERS` file. -type RepositoryCodeownersError struct { - // Column: The column number where the error occurs. - Column int `json:"column,omitempty"` - - // Kind: A short string describing the type of error. - Kind string `json:"kind,omitempty"` - - // Line: The line number where the error occurs. - Line int `json:"line,omitempty"` - - // Message: A complete description of the error, combining information from other fields. - Message string `json:"message,omitempty"` - - // Path: The path to the file when the error occurs. - Path string `json:"path,omitempty"` - - // Source: The content of the line where the error occurs. - Source string `json:"source,omitempty"` - - // Suggestion: A suggestion of how to fix the error. - Suggestion string `json:"suggestion,omitempty"` -} - -func (x *RepositoryCodeownersError) GetColumn() int { return x.Column } -func (x *RepositoryCodeownersError) GetKind() string { return x.Kind } -func (x *RepositoryCodeownersError) GetLine() int { return x.Line } -func (x *RepositoryCodeownersError) GetMessage() string { return x.Message } -func (x *RepositoryCodeownersError) GetPath() string { return x.Path } -func (x *RepositoryCodeownersError) GetSource() string { return x.Source } -func (x *RepositoryCodeownersError) GetSuggestion() string { return x.Suggestion } - -// RepositoryCollaboratorConnection (OBJECT): The connection type for User. -type RepositoryCollaboratorConnection struct { - // Edges: A list of edges. - Edges []*RepositoryCollaboratorEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *RepositoryCollaboratorConnection) GetEdges() []*RepositoryCollaboratorEdge { return x.Edges } -func (x *RepositoryCollaboratorConnection) GetNodes() []*User { return x.Nodes } -func (x *RepositoryCollaboratorConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *RepositoryCollaboratorConnection) GetTotalCount() int { return x.TotalCount } - -// RepositoryCollaboratorEdge (OBJECT): Represents a user who is a collaborator of a repository. -type RepositoryCollaboratorEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: undocumented. - Node *User `json:"node,omitempty"` - - // Permission: The permission the user has on the repository. - Permission RepositoryPermission `json:"permission,omitempty"` - - // PermissionSources: A list of sources for the user's access to the repository. - PermissionSources []*PermissionSource `json:"permissionSources,omitempty"` -} - -func (x *RepositoryCollaboratorEdge) GetCursor() string { return x.Cursor } -func (x *RepositoryCollaboratorEdge) GetNode() *User { return x.Node } -func (x *RepositoryCollaboratorEdge) GetPermission() RepositoryPermission { return x.Permission } -func (x *RepositoryCollaboratorEdge) GetPermissionSources() []*PermissionSource { - return x.PermissionSources -} - -// RepositoryConnection (OBJECT): A list of repositories owned by the subject. -type RepositoryConnection struct { - // Edges: A list of edges. - Edges []*RepositoryEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Repository `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` - - // TotalDiskUsage: The total size in kilobytes of all repositories in the connection. - TotalDiskUsage int `json:"totalDiskUsage,omitempty"` -} - -func (x *RepositoryConnection) GetEdges() []*RepositoryEdge { return x.Edges } -func (x *RepositoryConnection) GetNodes() []*Repository { return x.Nodes } -func (x *RepositoryConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *RepositoryConnection) GetTotalCount() int { return x.TotalCount } -func (x *RepositoryConnection) GetTotalDiskUsage() int { return x.TotalDiskUsage } - -// RepositoryContactLink (OBJECT): A repository contact link. -type RepositoryContactLink struct { - // About: The contact link purpose. - About string `json:"about,omitempty"` - - // Name: The contact link name. - Name string `json:"name,omitempty"` - - // Url: The contact link URL. - Url URI `json:"url,omitempty"` -} - -func (x *RepositoryContactLink) GetAbout() string { return x.About } -func (x *RepositoryContactLink) GetName() string { return x.Name } -func (x *RepositoryContactLink) GetUrl() URI { return x.Url } - -// RepositoryContributionType (ENUM): The reason a repository is listed as 'contributed'. -type RepositoryContributionType string - -// RepositoryContributionType_COMMIT: Created a commit. -const RepositoryContributionType_COMMIT RepositoryContributionType = "COMMIT" - -// RepositoryContributionType_ISSUE: Created an issue. -const RepositoryContributionType_ISSUE RepositoryContributionType = "ISSUE" - -// RepositoryContributionType_PULL_REQUEST: Created a pull request. -const RepositoryContributionType_PULL_REQUEST RepositoryContributionType = "PULL_REQUEST" - -// RepositoryContributionType_REPOSITORY: Created the repository. -const RepositoryContributionType_REPOSITORY RepositoryContributionType = "REPOSITORY" - -// RepositoryContributionType_PULL_REQUEST_REVIEW: Reviewed a pull request. -const RepositoryContributionType_PULL_REQUEST_REVIEW RepositoryContributionType = "PULL_REQUEST_REVIEW" - -// RepositoryDiscussionAuthor (INTERFACE): Represents an author of discussions in repositories. -// RepositoryDiscussionAuthor_Interface: Represents an author of discussions in repositories. -// -// Possible types: -// -// - *Organization -// - *User -type RepositoryDiscussionAuthor_Interface interface { - isRepositoryDiscussionAuthor() - GetRepositoryDiscussions() *DiscussionConnection -} - -func (*Organization) isRepositoryDiscussionAuthor() {} -func (*User) isRepositoryDiscussionAuthor() {} - -type RepositoryDiscussionAuthor struct { - Interface RepositoryDiscussionAuthor_Interface -} - -func (x *RepositoryDiscussionAuthor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RepositoryDiscussionAuthor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RepositoryDiscussionAuthor", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// RepositoryDiscussionCommentAuthor (INTERFACE): Represents an author of discussion comments in repositories. -// RepositoryDiscussionCommentAuthor_Interface: Represents an author of discussion comments in repositories. -// -// Possible types: -// -// - *Organization -// - *User -type RepositoryDiscussionCommentAuthor_Interface interface { - isRepositoryDiscussionCommentAuthor() - GetRepositoryDiscussionComments() *DiscussionCommentConnection -} - -func (*Organization) isRepositoryDiscussionCommentAuthor() {} -func (*User) isRepositoryDiscussionCommentAuthor() {} - -type RepositoryDiscussionCommentAuthor struct { - Interface RepositoryDiscussionCommentAuthor_Interface -} - -func (x *RepositoryDiscussionCommentAuthor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RepositoryDiscussionCommentAuthor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RepositoryDiscussionCommentAuthor", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// RepositoryEdge (OBJECT): An edge in a connection. -type RepositoryEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Repository `json:"node,omitempty"` -} - -func (x *RepositoryEdge) GetCursor() string { return x.Cursor } -func (x *RepositoryEdge) GetNode() *Repository { return x.Node } - -// RepositoryInfo (INTERFACE): A subset of repository info. -// RepositoryInfo_Interface: A subset of repository info. -// -// Possible types: -// -// - *Repository -type RepositoryInfo_Interface interface { - isRepositoryInfo() - GetCreatedAt() DateTime - GetDescription() string - GetDescriptionHTML() template.HTML - GetForkCount() int - GetHasIssuesEnabled() bool - GetHasProjectsEnabled() bool - GetHasWikiEnabled() bool - GetHomepageUrl() URI - GetIsArchived() bool - GetIsFork() bool - GetIsInOrganization() bool - GetIsLocked() bool - GetIsMirror() bool - GetIsPrivate() bool - GetIsTemplate() bool - GetLicenseInfo() *License - GetLockReason() RepositoryLockReason - GetMirrorUrl() URI - GetName() string - GetNameWithOwner() string - GetOpenGraphImageUrl() URI - GetOwner() RepositoryOwner - GetPushedAt() DateTime - GetResourcePath() URI - GetShortDescriptionHTML() template.HTML - GetUpdatedAt() DateTime - GetUrl() URI - GetUsesCustomOpenGraphImage() bool - GetVisibility() RepositoryVisibility -} - -func (*Repository) isRepositoryInfo() {} - -type RepositoryInfo struct { - Interface RepositoryInfo_Interface -} - -func (x *RepositoryInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RepositoryInfo) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RepositoryInfo", info.Typename) - case "Repository": - x.Interface = new(Repository) - } - return json.Unmarshal(js, x.Interface) -} - -// RepositoryInteractionAbility (OBJECT): Repository interaction limit that applies to this object. -type RepositoryInteractionAbility struct { - // ExpiresAt: The time the currently active limit expires. - ExpiresAt DateTime `json:"expiresAt,omitempty"` - - // Limit: The current limit that is enabled on this object. - Limit RepositoryInteractionLimit `json:"limit,omitempty"` - - // Origin: The origin of the currently active interaction limit. - Origin RepositoryInteractionLimitOrigin `json:"origin,omitempty"` -} - -func (x *RepositoryInteractionAbility) GetExpiresAt() DateTime { return x.ExpiresAt } -func (x *RepositoryInteractionAbility) GetLimit() RepositoryInteractionLimit { return x.Limit } -func (x *RepositoryInteractionAbility) GetOrigin() RepositoryInteractionLimitOrigin { return x.Origin } - -// RepositoryInteractionLimit (ENUM): A repository interaction limit. -type RepositoryInteractionLimit string - -// RepositoryInteractionLimit_EXISTING_USERS: Users that have recently created their account will be unable to interact with the repository. -const RepositoryInteractionLimit_EXISTING_USERS RepositoryInteractionLimit = "EXISTING_USERS" - -// RepositoryInteractionLimit_CONTRIBUTORS_ONLY: Users that have not previously committed to a repository’s default branch will be unable to interact with the repository. -const RepositoryInteractionLimit_CONTRIBUTORS_ONLY RepositoryInteractionLimit = "CONTRIBUTORS_ONLY" - -// RepositoryInteractionLimit_COLLABORATORS_ONLY: Users that are not collaborators will not be able to interact with the repository. -const RepositoryInteractionLimit_COLLABORATORS_ONLY RepositoryInteractionLimit = "COLLABORATORS_ONLY" - -// RepositoryInteractionLimit_NO_LIMIT: No interaction limits are enabled. -const RepositoryInteractionLimit_NO_LIMIT RepositoryInteractionLimit = "NO_LIMIT" - -// RepositoryInteractionLimitExpiry (ENUM): The length for a repository interaction limit to be enabled for. -type RepositoryInteractionLimitExpiry string - -// RepositoryInteractionLimitExpiry_ONE_DAY: The interaction limit will expire after 1 day. -const RepositoryInteractionLimitExpiry_ONE_DAY RepositoryInteractionLimitExpiry = "ONE_DAY" - -// RepositoryInteractionLimitExpiry_THREE_DAYS: The interaction limit will expire after 3 days. -const RepositoryInteractionLimitExpiry_THREE_DAYS RepositoryInteractionLimitExpiry = "THREE_DAYS" - -// RepositoryInteractionLimitExpiry_ONE_WEEK: The interaction limit will expire after 1 week. -const RepositoryInteractionLimitExpiry_ONE_WEEK RepositoryInteractionLimitExpiry = "ONE_WEEK" - -// RepositoryInteractionLimitExpiry_ONE_MONTH: The interaction limit will expire after 1 month. -const RepositoryInteractionLimitExpiry_ONE_MONTH RepositoryInteractionLimitExpiry = "ONE_MONTH" - -// RepositoryInteractionLimitExpiry_SIX_MONTHS: The interaction limit will expire after 6 months. -const RepositoryInteractionLimitExpiry_SIX_MONTHS RepositoryInteractionLimitExpiry = "SIX_MONTHS" - -// RepositoryInteractionLimitOrigin (ENUM): Indicates where an interaction limit is configured. -type RepositoryInteractionLimitOrigin string - -// RepositoryInteractionLimitOrigin_REPOSITORY: A limit that is configured at the repository level. -const RepositoryInteractionLimitOrigin_REPOSITORY RepositoryInteractionLimitOrigin = "REPOSITORY" - -// RepositoryInteractionLimitOrigin_ORGANIZATION: A limit that is configured at the organization level. -const RepositoryInteractionLimitOrigin_ORGANIZATION RepositoryInteractionLimitOrigin = "ORGANIZATION" - -// RepositoryInteractionLimitOrigin_USER: A limit that is configured at the user-wide level. -const RepositoryInteractionLimitOrigin_USER RepositoryInteractionLimitOrigin = "USER" - -// RepositoryInvitation (OBJECT): An invitation for a user to be added to a repository. -type RepositoryInvitation struct { - // Email: The email address that received the invitation. - Email string `json:"email,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Invitee: The user who received the invitation. - Invitee *User `json:"invitee,omitempty"` - - // Inviter: The user who created the invitation. - Inviter *User `json:"inviter,omitempty"` - - // Permalink: The permalink for this repository invitation. - Permalink URI `json:"permalink,omitempty"` - - // Permission: The permission granted on this repository by this invitation. - Permission RepositoryPermission `json:"permission,omitempty"` - - // Repository: The Repository the user is invited to. - Repository RepositoryInfo `json:"repository,omitempty"` -} - -func (x *RepositoryInvitation) GetEmail() string { return x.Email } -func (x *RepositoryInvitation) GetId() ID { return x.Id } -func (x *RepositoryInvitation) GetInvitee() *User { return x.Invitee } -func (x *RepositoryInvitation) GetInviter() *User { return x.Inviter } -func (x *RepositoryInvitation) GetPermalink() URI { return x.Permalink } -func (x *RepositoryInvitation) GetPermission() RepositoryPermission { return x.Permission } -func (x *RepositoryInvitation) GetRepository() RepositoryInfo { return x.Repository } - -// RepositoryInvitationConnection (OBJECT): A list of repository invitations. -type RepositoryInvitationConnection struct { - // Edges: A list of edges. - Edges []*RepositoryInvitationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*RepositoryInvitation `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *RepositoryInvitationConnection) GetEdges() []*RepositoryInvitationEdge { return x.Edges } -func (x *RepositoryInvitationConnection) GetNodes() []*RepositoryInvitation { return x.Nodes } -func (x *RepositoryInvitationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *RepositoryInvitationConnection) GetTotalCount() int { return x.TotalCount } - -// RepositoryInvitationEdge (OBJECT): An edge in a connection. -type RepositoryInvitationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *RepositoryInvitation `json:"node,omitempty"` -} - -func (x *RepositoryInvitationEdge) GetCursor() string { return x.Cursor } -func (x *RepositoryInvitationEdge) GetNode() *RepositoryInvitation { return x.Node } - -// RepositoryInvitationOrder (INPUT_OBJECT): Ordering options for repository invitation connections. -type RepositoryInvitationOrder struct { - // Field: The field to order repository invitations by. - // - // GraphQL type: RepositoryInvitationOrderField! - Field RepositoryInvitationOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// RepositoryInvitationOrderField (ENUM): Properties by which repository invitation connections can be ordered. -type RepositoryInvitationOrderField string - -// RepositoryInvitationOrderField_CREATED_AT: Order repository invitations by creation time. -const RepositoryInvitationOrderField_CREATED_AT RepositoryInvitationOrderField = "CREATED_AT" - -// RepositoryLockReason (ENUM): The possible reasons a given repository could be in a locked state. -type RepositoryLockReason string - -// RepositoryLockReason_MOVING: The repository is locked due to a move. -const RepositoryLockReason_MOVING RepositoryLockReason = "MOVING" - -// RepositoryLockReason_BILLING: The repository is locked due to a billing related reason. -const RepositoryLockReason_BILLING RepositoryLockReason = "BILLING" - -// RepositoryLockReason_RENAME: The repository is locked due to a rename. -const RepositoryLockReason_RENAME RepositoryLockReason = "RENAME" - -// RepositoryLockReason_MIGRATING: The repository is locked due to a migration. -const RepositoryLockReason_MIGRATING RepositoryLockReason = "MIGRATING" - -// RepositoryMigration (OBJECT): An Octoshift repository migration. -type RepositoryMigration struct { - // ContinueOnError: The Octoshift migration flag to continue on error. - ContinueOnError bool `json:"continueOnError,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // FailureReason: The reason the migration failed. - FailureReason string `json:"failureReason,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // MigrationLogUrl: The URL for the migration log (expires 1 day after migration completes). - MigrationLogUrl URI `json:"migrationLogUrl,omitempty"` - - // MigrationSource: The Octoshift migration source. - MigrationSource *MigrationSource `json:"migrationSource,omitempty"` - - // RepositoryName: The target repository name. - RepositoryName string `json:"repositoryName,omitempty"` - - // SourceUrl: The Octoshift migration source URL. - SourceUrl URI `json:"sourceUrl,omitempty"` - - // State: The Octoshift migration state. - State MigrationState `json:"state,omitempty"` -} - -func (x *RepositoryMigration) GetContinueOnError() bool { return x.ContinueOnError } -func (x *RepositoryMigration) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *RepositoryMigration) GetFailureReason() string { return x.FailureReason } -func (x *RepositoryMigration) GetId() ID { return x.Id } -func (x *RepositoryMigration) GetMigrationLogUrl() URI { return x.MigrationLogUrl } -func (x *RepositoryMigration) GetMigrationSource() *MigrationSource { return x.MigrationSource } -func (x *RepositoryMigration) GetRepositoryName() string { return x.RepositoryName } -func (x *RepositoryMigration) GetSourceUrl() URI { return x.SourceUrl } -func (x *RepositoryMigration) GetState() MigrationState { return x.State } - -// RepositoryMigrationConnection (OBJECT): The connection type for RepositoryMigration. -type RepositoryMigrationConnection struct { - // Edges: A list of edges. - Edges []*RepositoryMigrationEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*RepositoryMigration `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *RepositoryMigrationConnection) GetEdges() []*RepositoryMigrationEdge { return x.Edges } -func (x *RepositoryMigrationConnection) GetNodes() []*RepositoryMigration { return x.Nodes } -func (x *RepositoryMigrationConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *RepositoryMigrationConnection) GetTotalCount() int { return x.TotalCount } - -// RepositoryMigrationEdge (OBJECT): Represents a repository migration. -type RepositoryMigrationEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *RepositoryMigration `json:"node,omitempty"` -} - -func (x *RepositoryMigrationEdge) GetCursor() string { return x.Cursor } -func (x *RepositoryMigrationEdge) GetNode() *RepositoryMigration { return x.Node } - -// RepositoryMigrationOrder (INPUT_OBJECT): Ordering options for repository migrations. -type RepositoryMigrationOrder struct { - // Field: The field to order repository migrations by. - // - // GraphQL type: RepositoryMigrationOrderField! - Field RepositoryMigrationOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: RepositoryMigrationOrderDirection! - Direction RepositoryMigrationOrderDirection `json:"direction,omitempty"` -} - -// RepositoryMigrationOrderDirection (ENUM): Possible directions in which to order a list of repository migrations when provided an `orderBy` argument. -type RepositoryMigrationOrderDirection string - -// RepositoryMigrationOrderDirection_ASC: Specifies an ascending order for a given `orderBy` argument. -const RepositoryMigrationOrderDirection_ASC RepositoryMigrationOrderDirection = "ASC" - -// RepositoryMigrationOrderDirection_DESC: Specifies a descending order for a given `orderBy` argument. -const RepositoryMigrationOrderDirection_DESC RepositoryMigrationOrderDirection = "DESC" - -// RepositoryMigrationOrderField (ENUM): Properties by which repository migrations can be ordered. -type RepositoryMigrationOrderField string - -// RepositoryMigrationOrderField_CREATED_AT: Order mannequins why when they were created. -const RepositoryMigrationOrderField_CREATED_AT RepositoryMigrationOrderField = "CREATED_AT" - -// RepositoryNode (INTERFACE): Represents a object that belongs to a repository. -// RepositoryNode_Interface: Represents a object that belongs to a repository. -// -// Possible types: -// -// - *CommitComment -// - *CommitCommentThread -// - *DependabotUpdate -// - *Discussion -// - *DiscussionCategory -// - *Issue -// - *IssueComment -// - *PinnedDiscussion -// - *PullRequest -// - *PullRequestCommitCommentThread -// - *PullRequestReview -// - *PullRequestReviewComment -// - *RepositoryVulnerabilityAlert -type RepositoryNode_Interface interface { - isRepositoryNode() - GetRepository() *Repository -} - -func (*CommitComment) isRepositoryNode() {} -func (*CommitCommentThread) isRepositoryNode() {} -func (*DependabotUpdate) isRepositoryNode() {} -func (*Discussion) isRepositoryNode() {} -func (*DiscussionCategory) isRepositoryNode() {} -func (*Issue) isRepositoryNode() {} -func (*IssueComment) isRepositoryNode() {} -func (*PinnedDiscussion) isRepositoryNode() {} -func (*PullRequest) isRepositoryNode() {} -func (*PullRequestCommitCommentThread) isRepositoryNode() {} -func (*PullRequestReview) isRepositoryNode() {} -func (*PullRequestReviewComment) isRepositoryNode() {} -func (*RepositoryVulnerabilityAlert) isRepositoryNode() {} - -type RepositoryNode struct { - Interface RepositoryNode_Interface -} - -func (x *RepositoryNode) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RepositoryNode) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RepositoryNode", info.Typename) - case "CommitComment": - x.Interface = new(CommitComment) - case "CommitCommentThread": - x.Interface = new(CommitCommentThread) - case "DependabotUpdate": - x.Interface = new(DependabotUpdate) - case "Discussion": - x.Interface = new(Discussion) - case "DiscussionCategory": - x.Interface = new(DiscussionCategory) - case "Issue": - x.Interface = new(Issue) - case "IssueComment": - x.Interface = new(IssueComment) - case "PinnedDiscussion": - x.Interface = new(PinnedDiscussion) - case "PullRequest": - x.Interface = new(PullRequest) - case "PullRequestCommitCommentThread": - x.Interface = new(PullRequestCommitCommentThread) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - case "RepositoryVulnerabilityAlert": - x.Interface = new(RepositoryVulnerabilityAlert) - } - return json.Unmarshal(js, x.Interface) -} - -// RepositoryOrder (INPUT_OBJECT): Ordering options for repository connections. -type RepositoryOrder struct { - // Field: The field to order repositories by. - // - // GraphQL type: RepositoryOrderField! - Field RepositoryOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// RepositoryOrderField (ENUM): Properties by which repository connections can be ordered. -type RepositoryOrderField string - -// RepositoryOrderField_CREATED_AT: Order repositories by creation time. -const RepositoryOrderField_CREATED_AT RepositoryOrderField = "CREATED_AT" - -// RepositoryOrderField_UPDATED_AT: Order repositories by update time. -const RepositoryOrderField_UPDATED_AT RepositoryOrderField = "UPDATED_AT" - -// RepositoryOrderField_PUSHED_AT: Order repositories by push time. -const RepositoryOrderField_PUSHED_AT RepositoryOrderField = "PUSHED_AT" - -// RepositoryOrderField_NAME: Order repositories by name. -const RepositoryOrderField_NAME RepositoryOrderField = "NAME" - -// RepositoryOrderField_STARGAZERS: Order repositories by number of stargazers. -const RepositoryOrderField_STARGAZERS RepositoryOrderField = "STARGAZERS" - -// RepositoryOwner (INTERFACE): Represents an owner of a Repository. -// RepositoryOwner_Interface: Represents an owner of a Repository. -// -// Possible types: -// -// - *Organization -// - *User -type RepositoryOwner_Interface interface { - isRepositoryOwner() - GetAvatarUrl() URI - GetId() ID - GetLogin() string - GetRepositories() *RepositoryConnection - GetRepository() *Repository - GetResourcePath() URI - GetUrl() URI -} - -func (*Organization) isRepositoryOwner() {} -func (*User) isRepositoryOwner() {} - -type RepositoryOwner struct { - Interface RepositoryOwner_Interface -} - -func (x *RepositoryOwner) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RepositoryOwner) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RepositoryOwner", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// RepositoryPermission (ENUM): The access level to a repository. -type RepositoryPermission string - -// RepositoryPermission_ADMIN: Can read, clone, and push to this repository. Can also manage issues, pull requests, and repository settings, including adding collaborators. -const RepositoryPermission_ADMIN RepositoryPermission = "ADMIN" - -// RepositoryPermission_MAINTAIN: Can read, clone, and push to this repository. They can also manage issues, pull requests, and some repository settings. -const RepositoryPermission_MAINTAIN RepositoryPermission = "MAINTAIN" - -// RepositoryPermission_WRITE: Can read, clone, and push to this repository. Can also manage issues and pull requests. -const RepositoryPermission_WRITE RepositoryPermission = "WRITE" - -// RepositoryPermission_TRIAGE: Can read and clone this repository. Can also manage issues and pull requests. -const RepositoryPermission_TRIAGE RepositoryPermission = "TRIAGE" - -// RepositoryPermission_READ: Can read and clone this repository. Can also open and comment on issues and pull requests. -const RepositoryPermission_READ RepositoryPermission = "READ" - -// RepositoryPrivacy (ENUM): The privacy of a repository. -type RepositoryPrivacy string - -// RepositoryPrivacy_PUBLIC: Public. -const RepositoryPrivacy_PUBLIC RepositoryPrivacy = "PUBLIC" - -// RepositoryPrivacy_PRIVATE: Private. -const RepositoryPrivacy_PRIVATE RepositoryPrivacy = "PRIVATE" - -// RepositoryTopic (OBJECT): A repository-topic connects a repository to a topic. -type RepositoryTopic struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // ResourcePath: The HTTP path for this repository-topic. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Topic: The topic. - Topic *Topic `json:"topic,omitempty"` - - // Url: The HTTP URL for this repository-topic. - Url URI `json:"url,omitempty"` -} - -func (x *RepositoryTopic) GetId() ID { return x.Id } -func (x *RepositoryTopic) GetResourcePath() URI { return x.ResourcePath } -func (x *RepositoryTopic) GetTopic() *Topic { return x.Topic } -func (x *RepositoryTopic) GetUrl() URI { return x.Url } - -// RepositoryTopicConnection (OBJECT): The connection type for RepositoryTopic. -type RepositoryTopicConnection struct { - // Edges: A list of edges. - Edges []*RepositoryTopicEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*RepositoryTopic `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *RepositoryTopicConnection) GetEdges() []*RepositoryTopicEdge { return x.Edges } -func (x *RepositoryTopicConnection) GetNodes() []*RepositoryTopic { return x.Nodes } -func (x *RepositoryTopicConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *RepositoryTopicConnection) GetTotalCount() int { return x.TotalCount } - -// RepositoryTopicEdge (OBJECT): An edge in a connection. -type RepositoryTopicEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *RepositoryTopic `json:"node,omitempty"` -} - -func (x *RepositoryTopicEdge) GetCursor() string { return x.Cursor } -func (x *RepositoryTopicEdge) GetNode() *RepositoryTopic { return x.Node } - -// RepositoryVisibility (ENUM): The repository's visibility level. -type RepositoryVisibility string - -// RepositoryVisibility_PRIVATE: The repository is visible only to those with explicit access. -const RepositoryVisibility_PRIVATE RepositoryVisibility = "PRIVATE" - -// RepositoryVisibility_PUBLIC: The repository is visible to everyone. -const RepositoryVisibility_PUBLIC RepositoryVisibility = "PUBLIC" - -// RepositoryVisibility_INTERNAL: The repository is visible only to users in the same business. -const RepositoryVisibility_INTERNAL RepositoryVisibility = "INTERNAL" - -// RepositoryVisibilityChangeDisableAuditEntry (OBJECT): Audit log entry for a repository_visibility_change.disable event. -type RepositoryVisibilityChangeDisableAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // EnterpriseResourcePath: The HTTP path for this enterprise. - EnterpriseResourcePath URI `json:"enterpriseResourcePath,omitempty"` - - // EnterpriseSlug: The slug of the enterprise. - EnterpriseSlug string `json:"enterpriseSlug,omitempty"` - - // EnterpriseUrl: The HTTP URL for this enterprise. - EnterpriseUrl URI `json:"enterpriseUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetAction() string { return x.Action } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetEnterpriseResourcePath() URI { - return x.EnterpriseResourcePath -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetEnterpriseSlug() string { - return x.EnterpriseSlug -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetEnterpriseUrl() URI { return x.EnterpriseUrl } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetId() ID { return x.Id } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetUser() *User { return x.User } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepositoryVisibilityChangeDisableAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepositoryVisibilityChangeEnableAuditEntry (OBJECT): Audit log entry for a repository_visibility_change.enable event. -type RepositoryVisibilityChangeEnableAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // EnterpriseResourcePath: The HTTP path for this enterprise. - EnterpriseResourcePath URI `json:"enterpriseResourcePath,omitempty"` - - // EnterpriseSlug: The slug of the enterprise. - EnterpriseSlug string `json:"enterpriseSlug,omitempty"` - - // EnterpriseUrl: The HTTP URL for this enterprise. - EnterpriseUrl URI `json:"enterpriseUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetAction() string { return x.Action } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetActorLocation() *ActorLocation { - return x.ActorLocation -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetActorResourcePath() URI { - return x.ActorResourcePath -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetCreatedAt() PreciseDateTime { - return x.CreatedAt -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetEnterpriseResourcePath() URI { - return x.EnterpriseResourcePath -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetEnterpriseSlug() string { - return x.EnterpriseSlug -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetEnterpriseUrl() URI { return x.EnterpriseUrl } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetId() ID { return x.Id } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetOperationType() OperationType { - return x.OperationType -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetOrganization() *Organization { - return x.Organization -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetOrganizationName() string { - return x.OrganizationName -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetOrganizationUrl() URI { - return x.OrganizationUrl -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetUser() *User { return x.User } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetUserResourcePath() URI { - return x.UserResourcePath -} -func (x *RepositoryVisibilityChangeEnableAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// RepositoryVulnerabilityAlert (OBJECT): A Dependabot alert for a repository with a dependency affected by a security vulnerability. -type RepositoryVulnerabilityAlert struct { - // CreatedAt: When was the alert created?. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DependabotUpdate: The associated Dependabot update. - DependabotUpdate *DependabotUpdate `json:"dependabotUpdate,omitempty"` - - // DependencyScope: The scope of an alert's dependency. - DependencyScope RepositoryVulnerabilityAlertDependencyScope `json:"dependencyScope,omitempty"` - - // DismissReason: The reason the alert was dismissed. - DismissReason string `json:"dismissReason,omitempty"` - - // DismissedAt: When was the alert dismissed?. - DismissedAt DateTime `json:"dismissedAt,omitempty"` - - // Dismisser: The user who dismissed the alert. - Dismisser *User `json:"dismisser,omitempty"` - - // FixReason: The reason the alert was marked as fixed. - // - // Deprecated: The reason the alert was marked as fixed. - FixReason string `json:"fixReason,omitempty"` - - // FixedAt: When was the alert fixed?. - FixedAt DateTime `json:"fixedAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Number: Identifies the alert number. - Number int `json:"number,omitempty"` - - // Repository: The associated repository. - Repository *Repository `json:"repository,omitempty"` - - // SecurityAdvisory: The associated security advisory. - SecurityAdvisory *SecurityAdvisory `json:"securityAdvisory,omitempty"` - - // SecurityVulnerability: The associated security vulnerability. - SecurityVulnerability *SecurityVulnerability `json:"securityVulnerability,omitempty"` - - // State: Identifies the state of the alert. - State RepositoryVulnerabilityAlertState `json:"state,omitempty"` - - // VulnerableManifestFilename: The vulnerable manifest filename. - VulnerableManifestFilename string `json:"vulnerableManifestFilename,omitempty"` - - // VulnerableManifestPath: The vulnerable manifest path. - VulnerableManifestPath string `json:"vulnerableManifestPath,omitempty"` - - // VulnerableRequirements: The vulnerable requirements. - VulnerableRequirements string `json:"vulnerableRequirements,omitempty"` -} - -func (x *RepositoryVulnerabilityAlert) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *RepositoryVulnerabilityAlert) GetDependabotUpdate() *DependabotUpdate { - return x.DependabotUpdate -} -func (x *RepositoryVulnerabilityAlert) GetDependencyScope() RepositoryVulnerabilityAlertDependencyScope { - return x.DependencyScope -} -func (x *RepositoryVulnerabilityAlert) GetDismissReason() string { return x.DismissReason } -func (x *RepositoryVulnerabilityAlert) GetDismissedAt() DateTime { return x.DismissedAt } -func (x *RepositoryVulnerabilityAlert) GetDismisser() *User { return x.Dismisser } -func (x *RepositoryVulnerabilityAlert) GetFixReason() string { return x.FixReason } -func (x *RepositoryVulnerabilityAlert) GetFixedAt() DateTime { return x.FixedAt } -func (x *RepositoryVulnerabilityAlert) GetId() ID { return x.Id } -func (x *RepositoryVulnerabilityAlert) GetNumber() int { return x.Number } -func (x *RepositoryVulnerabilityAlert) GetRepository() *Repository { return x.Repository } -func (x *RepositoryVulnerabilityAlert) GetSecurityAdvisory() *SecurityAdvisory { - return x.SecurityAdvisory -} -func (x *RepositoryVulnerabilityAlert) GetSecurityVulnerability() *SecurityVulnerability { - return x.SecurityVulnerability -} -func (x *RepositoryVulnerabilityAlert) GetState() RepositoryVulnerabilityAlertState { return x.State } -func (x *RepositoryVulnerabilityAlert) GetVulnerableManifestFilename() string { - return x.VulnerableManifestFilename -} -func (x *RepositoryVulnerabilityAlert) GetVulnerableManifestPath() string { - return x.VulnerableManifestPath -} -func (x *RepositoryVulnerabilityAlert) GetVulnerableRequirements() string { - return x.VulnerableRequirements -} - -// RepositoryVulnerabilityAlertConnection (OBJECT): The connection type for RepositoryVulnerabilityAlert. -type RepositoryVulnerabilityAlertConnection struct { - // Edges: A list of edges. - Edges []*RepositoryVulnerabilityAlertEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*RepositoryVulnerabilityAlert `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *RepositoryVulnerabilityAlertConnection) GetEdges() []*RepositoryVulnerabilityAlertEdge { - return x.Edges -} -func (x *RepositoryVulnerabilityAlertConnection) GetNodes() []*RepositoryVulnerabilityAlert { - return x.Nodes -} -func (x *RepositoryVulnerabilityAlertConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *RepositoryVulnerabilityAlertConnection) GetTotalCount() int { return x.TotalCount } - -// RepositoryVulnerabilityAlertDependencyScope (ENUM): The possible scopes of an alert's dependency. -type RepositoryVulnerabilityAlertDependencyScope string - -// RepositoryVulnerabilityAlertDependencyScope_RUNTIME: A dependency that is leveraged during application runtime. -const RepositoryVulnerabilityAlertDependencyScope_RUNTIME RepositoryVulnerabilityAlertDependencyScope = "RUNTIME" - -// RepositoryVulnerabilityAlertDependencyScope_DEVELOPMENT: A dependency that is only used in development. -const RepositoryVulnerabilityAlertDependencyScope_DEVELOPMENT RepositoryVulnerabilityAlertDependencyScope = "DEVELOPMENT" - -// RepositoryVulnerabilityAlertEdge (OBJECT): An edge in a connection. -type RepositoryVulnerabilityAlertEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *RepositoryVulnerabilityAlert `json:"node,omitempty"` -} - -func (x *RepositoryVulnerabilityAlertEdge) GetCursor() string { return x.Cursor } -func (x *RepositoryVulnerabilityAlertEdge) GetNode() *RepositoryVulnerabilityAlert { return x.Node } - -// RepositoryVulnerabilityAlertState (ENUM): The possible states of an alert. -type RepositoryVulnerabilityAlertState string - -// RepositoryVulnerabilityAlertState_OPEN: An alert that is still open. -const RepositoryVulnerabilityAlertState_OPEN RepositoryVulnerabilityAlertState = "OPEN" - -// RepositoryVulnerabilityAlertState_FIXED: An alert that has been resolved by a code change. -const RepositoryVulnerabilityAlertState_FIXED RepositoryVulnerabilityAlertState = "FIXED" - -// RepositoryVulnerabilityAlertState_DISMISSED: An alert that has been manually closed by a user. -const RepositoryVulnerabilityAlertState_DISMISSED RepositoryVulnerabilityAlertState = "DISMISSED" - -// RequestReviewsInput (INPUT_OBJECT): Autogenerated input type of RequestReviews. -type RequestReviewsInput struct { - // PullRequestId: The Node ID of the pull request to modify. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // UserIds: The Node IDs of the user to request. - // - // GraphQL type: [ID!] - UserIds []ID `json:"userIds,omitempty"` - - // TeamIds: The Node IDs of the team to request. - // - // GraphQL type: [ID!] - TeamIds []ID `json:"teamIds,omitempty"` - - // Union: Add users to the set rather than replace. - // - // GraphQL type: Boolean - Union bool `json:"union,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RequestReviewsPayload (OBJECT): Autogenerated return type of RequestReviews. -type RequestReviewsPayload struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The pull request that is getting requests. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // RequestedReviewersEdge: The edge from the pull request to the requested reviewers. - RequestedReviewersEdge *UserEdge `json:"requestedReviewersEdge,omitempty"` -} - -func (x *RequestReviewsPayload) GetActor() Actor { return x.Actor } -func (x *RequestReviewsPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RequestReviewsPayload) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *RequestReviewsPayload) GetRequestedReviewersEdge() *UserEdge { - return x.RequestedReviewersEdge -} - -// RequestableCheckStatusState (ENUM): The possible states that can be requested when creating a check run. -type RequestableCheckStatusState string - -// RequestableCheckStatusState_QUEUED: The check suite or run has been queued. -const RequestableCheckStatusState_QUEUED RequestableCheckStatusState = "QUEUED" - -// RequestableCheckStatusState_IN_PROGRESS: The check suite or run is in progress. -const RequestableCheckStatusState_IN_PROGRESS RequestableCheckStatusState = "IN_PROGRESS" - -// RequestableCheckStatusState_COMPLETED: The check suite or run has been completed. -const RequestableCheckStatusState_COMPLETED RequestableCheckStatusState = "COMPLETED" - -// RequestableCheckStatusState_WAITING: The check suite or run is in waiting state. -const RequestableCheckStatusState_WAITING RequestableCheckStatusState = "WAITING" - -// RequestableCheckStatusState_PENDING: The check suite or run is in pending state. -const RequestableCheckStatusState_PENDING RequestableCheckStatusState = "PENDING" - -// RequestedReviewer (UNION): Types that can be requested reviewers. -// RequestedReviewer_Interface: Types that can be requested reviewers. -// -// Possible types: -// -// - *Mannequin -// - *Team -// - *User -type RequestedReviewer_Interface interface { - isRequestedReviewer() -} - -func (*Mannequin) isRequestedReviewer() {} -func (*Team) isRequestedReviewer() {} -func (*User) isRequestedReviewer() {} - -type RequestedReviewer struct { - Interface RequestedReviewer_Interface -} - -func (x *RequestedReviewer) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RequestedReviewer) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RequestedReviewer", info.Typename) - case "Mannequin": - x.Interface = new(Mannequin) - case "Team": - x.Interface = new(Team) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// RequestedReviewerConnection (OBJECT): The connection type for RequestedReviewer. -type RequestedReviewerConnection struct { - // Edges: A list of edges. - Edges []*RequestedReviewerEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []RequestedReviewer `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *RequestedReviewerConnection) GetEdges() []*RequestedReviewerEdge { return x.Edges } -func (x *RequestedReviewerConnection) GetNodes() []RequestedReviewer { return x.Nodes } -func (x *RequestedReviewerConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *RequestedReviewerConnection) GetTotalCount() int { return x.TotalCount } - -// RequestedReviewerEdge (OBJECT): An edge in a connection. -type RequestedReviewerEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node RequestedReviewer `json:"node,omitempty"` -} - -func (x *RequestedReviewerEdge) GetCursor() string { return x.Cursor } -func (x *RequestedReviewerEdge) GetNode() RequestedReviewer { return x.Node } - -// RequirableByPullRequest (INTERFACE): Represents a type that can be required by a pull request for merging. -// RequirableByPullRequest_Interface: Represents a type that can be required by a pull request for merging. -// -// Possible types: -// -// - *CheckRun -// - *StatusContext -type RequirableByPullRequest_Interface interface { - isRequirableByPullRequest() - GetIsRequired() bool -} - -func (*CheckRun) isRequirableByPullRequest() {} -func (*StatusContext) isRequirableByPullRequest() {} - -type RequirableByPullRequest struct { - Interface RequirableByPullRequest_Interface -} - -func (x *RequirableByPullRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *RequirableByPullRequest) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for RequirableByPullRequest", info.Typename) - case "CheckRun": - x.Interface = new(CheckRun) - case "StatusContext": - x.Interface = new(StatusContext) - } - return json.Unmarshal(js, x.Interface) -} - -// RequiredStatusCheckDescription (OBJECT): Represents a required status check for a protected branch, but not any specific run of that check. -type RequiredStatusCheckDescription struct { - // App: The App that must provide this status in order for it to be accepted. - App *App `json:"app,omitempty"` - - // Context: The name of this status. - Context string `json:"context,omitempty"` -} - -func (x *RequiredStatusCheckDescription) GetApp() *App { return x.App } -func (x *RequiredStatusCheckDescription) GetContext() string { return x.Context } - -// RequiredStatusCheckInput (INPUT_OBJECT): Specifies the attributes for a new or updated required status check. -type RequiredStatusCheckInput struct { - // Context: Status check context that must pass for commits to be accepted to the matching branch. - // - // GraphQL type: String! - Context string `json:"context,omitempty"` - - // AppId: The ID of the App that must set the status in order for it to be accepted. Omit this value to use whichever app has recently been setting this status, or use "any" to allow any app to set the status. - // - // GraphQL type: ID - AppId ID `json:"appId,omitempty"` -} - -// RerequestCheckSuiteInput (INPUT_OBJECT): Autogenerated input type of RerequestCheckSuite. -type RerequestCheckSuiteInput struct { - // RepositoryId: The Node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // CheckSuiteId: The Node ID of the check suite. - // - // GraphQL type: ID! - CheckSuiteId ID `json:"checkSuiteId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RerequestCheckSuitePayload (OBJECT): Autogenerated return type of RerequestCheckSuite. -type RerequestCheckSuitePayload struct { - // CheckSuite: The requested check suite. - CheckSuite *CheckSuite `json:"checkSuite,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *RerequestCheckSuitePayload) GetCheckSuite() *CheckSuite { return x.CheckSuite } -func (x *RerequestCheckSuitePayload) GetClientMutationId() string { return x.ClientMutationId } - -// ResolveReviewThreadInput (INPUT_OBJECT): Autogenerated input type of ResolveReviewThread. -type ResolveReviewThreadInput struct { - // ThreadId: The ID of the thread to resolve. - // - // GraphQL type: ID! - ThreadId ID `json:"threadId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// ResolveReviewThreadPayload (OBJECT): Autogenerated return type of ResolveReviewThread. -type ResolveReviewThreadPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Thread: The thread to resolve. - Thread *PullRequestReviewThread `json:"thread,omitempty"` -} - -func (x *ResolveReviewThreadPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *ResolveReviewThreadPayload) GetThread() *PullRequestReviewThread { return x.Thread } - -// RestrictedContribution (OBJECT): Represents a private contribution a user made on GitHub. -type RestrictedContribution struct { - // IsRestricted: Whether this contribution is associated with a record you do not have access to. For - // example, your own 'first issue' contribution may have been made on a repository you can no - // longer access. - // . - IsRestricted bool `json:"isRestricted,omitempty"` - - // OccurredAt: When this contribution was made. - OccurredAt DateTime `json:"occurredAt,omitempty"` - - // ResourcePath: The HTTP path for this contribution. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Url: The HTTP URL for this contribution. - Url URI `json:"url,omitempty"` - - // User: The user who made this contribution. - // . - User *User `json:"user,omitempty"` -} - -func (x *RestrictedContribution) GetIsRestricted() bool { return x.IsRestricted } -func (x *RestrictedContribution) GetOccurredAt() DateTime { return x.OccurredAt } -func (x *RestrictedContribution) GetResourcePath() URI { return x.ResourcePath } -func (x *RestrictedContribution) GetUrl() URI { return x.Url } -func (x *RestrictedContribution) GetUser() *User { return x.User } - -// ReviewDismissalAllowance (OBJECT): A user, team, or app who has the ability to dismiss a review on a protected branch. -type ReviewDismissalAllowance struct { - // Actor: The actor that can dismiss. - Actor ReviewDismissalAllowanceActor `json:"actor,omitempty"` - - // BranchProtectionRule: Identifies the branch protection rule associated with the allowed user, team, or app. - BranchProtectionRule *BranchProtectionRule `json:"branchProtectionRule,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` -} - -func (x *ReviewDismissalAllowance) GetActor() ReviewDismissalAllowanceActor { return x.Actor } -func (x *ReviewDismissalAllowance) GetBranchProtectionRule() *BranchProtectionRule { - return x.BranchProtectionRule -} -func (x *ReviewDismissalAllowance) GetId() ID { return x.Id } - -// ReviewDismissalAllowanceActor (UNION): Types that can be an actor. -// ReviewDismissalAllowanceActor_Interface: Types that can be an actor. -// -// Possible types: -// -// - *App -// - *Team -// - *User -type ReviewDismissalAllowanceActor_Interface interface { - isReviewDismissalAllowanceActor() -} - -func (*App) isReviewDismissalAllowanceActor() {} -func (*Team) isReviewDismissalAllowanceActor() {} -func (*User) isReviewDismissalAllowanceActor() {} - -type ReviewDismissalAllowanceActor struct { - Interface ReviewDismissalAllowanceActor_Interface -} - -func (x *ReviewDismissalAllowanceActor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *ReviewDismissalAllowanceActor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for ReviewDismissalAllowanceActor", info.Typename) - case "App": - x.Interface = new(App) - case "Team": - x.Interface = new(Team) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// ReviewDismissalAllowanceConnection (OBJECT): The connection type for ReviewDismissalAllowance. -type ReviewDismissalAllowanceConnection struct { - // Edges: A list of edges. - Edges []*ReviewDismissalAllowanceEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ReviewDismissalAllowance `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ReviewDismissalAllowanceConnection) GetEdges() []*ReviewDismissalAllowanceEdge { - return x.Edges -} -func (x *ReviewDismissalAllowanceConnection) GetNodes() []*ReviewDismissalAllowance { return x.Nodes } -func (x *ReviewDismissalAllowanceConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ReviewDismissalAllowanceConnection) GetTotalCount() int { return x.TotalCount } - -// ReviewDismissalAllowanceEdge (OBJECT): An edge in a connection. -type ReviewDismissalAllowanceEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ReviewDismissalAllowance `json:"node,omitempty"` -} - -func (x *ReviewDismissalAllowanceEdge) GetCursor() string { return x.Cursor } -func (x *ReviewDismissalAllowanceEdge) GetNode() *ReviewDismissalAllowance { return x.Node } - -// ReviewDismissedEvent (OBJECT): Represents a 'review_dismissed' event on a given issue or pull request. -type ReviewDismissedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // DismissalMessage: Identifies the optional message associated with the 'review_dismissed' event. - DismissalMessage string `json:"dismissalMessage,omitempty"` - - // DismissalMessageHTML: Identifies the optional message associated with the event, rendered to HTML. - DismissalMessageHTML string `json:"dismissalMessageHTML,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PreviousReviewState: Identifies the previous state of the review with the 'review_dismissed' event. - PreviousReviewState PullRequestReviewState `json:"previousReviewState,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // PullRequestCommit: Identifies the commit which caused the review to become stale. - PullRequestCommit *PullRequestCommit `json:"pullRequestCommit,omitempty"` - - // ResourcePath: The HTTP path for this review dismissed event. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Review: Identifies the review associated with the 'review_dismissed' event. - Review *PullRequestReview `json:"review,omitempty"` - - // Url: The HTTP URL for this review dismissed event. - Url URI `json:"url,omitempty"` -} - -func (x *ReviewDismissedEvent) GetActor() Actor { return x.Actor } -func (x *ReviewDismissedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ReviewDismissedEvent) GetDatabaseId() int { return x.DatabaseId } -func (x *ReviewDismissedEvent) GetDismissalMessage() string { return x.DismissalMessage } -func (x *ReviewDismissedEvent) GetDismissalMessageHTML() string { return x.DismissalMessageHTML } -func (x *ReviewDismissedEvent) GetId() ID { return x.Id } -func (x *ReviewDismissedEvent) GetPreviousReviewState() PullRequestReviewState { - return x.PreviousReviewState -} -func (x *ReviewDismissedEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *ReviewDismissedEvent) GetPullRequestCommit() *PullRequestCommit { return x.PullRequestCommit } -func (x *ReviewDismissedEvent) GetResourcePath() URI { return x.ResourcePath } -func (x *ReviewDismissedEvent) GetReview() *PullRequestReview { return x.Review } -func (x *ReviewDismissedEvent) GetUrl() URI { return x.Url } - -// ReviewRequest (OBJECT): A request for a user to review a pull request. -type ReviewRequest struct { - // AsCodeOwner: Whether this request was created for a code owner. - AsCodeOwner bool `json:"asCodeOwner,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: Identifies the pull request associated with this review request. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // RequestedReviewer: The reviewer that is requested. - RequestedReviewer RequestedReviewer `json:"requestedReviewer,omitempty"` -} - -func (x *ReviewRequest) GetAsCodeOwner() bool { return x.AsCodeOwner } -func (x *ReviewRequest) GetDatabaseId() int { return x.DatabaseId } -func (x *ReviewRequest) GetId() ID { return x.Id } -func (x *ReviewRequest) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *ReviewRequest) GetRequestedReviewer() RequestedReviewer { return x.RequestedReviewer } - -// ReviewRequestConnection (OBJECT): The connection type for ReviewRequest. -type ReviewRequestConnection struct { - // Edges: A list of edges. - Edges []*ReviewRequestEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*ReviewRequest `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *ReviewRequestConnection) GetEdges() []*ReviewRequestEdge { return x.Edges } -func (x *ReviewRequestConnection) GetNodes() []*ReviewRequest { return x.Nodes } -func (x *ReviewRequestConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *ReviewRequestConnection) GetTotalCount() int { return x.TotalCount } - -// ReviewRequestEdge (OBJECT): An edge in a connection. -type ReviewRequestEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *ReviewRequest `json:"node,omitempty"` -} - -func (x *ReviewRequestEdge) GetCursor() string { return x.Cursor } -func (x *ReviewRequestEdge) GetNode() *ReviewRequest { return x.Node } - -// ReviewRequestRemovedEvent (OBJECT): Represents an 'review_request_removed' event on a given pull request. -type ReviewRequestRemovedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // RequestedReviewer: Identifies the reviewer whose review request was removed. - RequestedReviewer RequestedReviewer `json:"requestedReviewer,omitempty"` -} - -func (x *ReviewRequestRemovedEvent) GetActor() Actor { return x.Actor } -func (x *ReviewRequestRemovedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ReviewRequestRemovedEvent) GetId() ID { return x.Id } -func (x *ReviewRequestRemovedEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *ReviewRequestRemovedEvent) GetRequestedReviewer() RequestedReviewer { - return x.RequestedReviewer -} - -// ReviewRequestedEvent (OBJECT): Represents an 'review_requested' event on a given pull request. -type ReviewRequestedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PullRequest: PullRequest referenced by event. - PullRequest *PullRequest `json:"pullRequest,omitempty"` - - // RequestedReviewer: Identifies the reviewer whose review was requested. - RequestedReviewer RequestedReviewer `json:"requestedReviewer,omitempty"` -} - -func (x *ReviewRequestedEvent) GetActor() Actor { return x.Actor } -func (x *ReviewRequestedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *ReviewRequestedEvent) GetId() ID { return x.Id } -func (x *ReviewRequestedEvent) GetPullRequest() *PullRequest { return x.PullRequest } -func (x *ReviewRequestedEvent) GetRequestedReviewer() RequestedReviewer { return x.RequestedReviewer } - -// ReviewStatusHovercardContext (OBJECT): A hovercard context with a message describing the current code review state of the pull -// request. -// . -type ReviewStatusHovercardContext struct { - // Message: A string describing this context. - Message string `json:"message,omitempty"` - - // Octicon: An octicon to accompany this context. - Octicon string `json:"octicon,omitempty"` - - // ReviewDecision: The current status of the pull request with respect to code review. - ReviewDecision PullRequestReviewDecision `json:"reviewDecision,omitempty"` -} - -func (x *ReviewStatusHovercardContext) GetMessage() string { return x.Message } -func (x *ReviewStatusHovercardContext) GetOcticon() string { return x.Octicon } -func (x *ReviewStatusHovercardContext) GetReviewDecision() PullRequestReviewDecision { - return x.ReviewDecision -} - -// RevokeEnterpriseOrganizationsMigratorRoleInput (INPUT_OBJECT): Autogenerated input type of RevokeEnterpriseOrganizationsMigratorRole. -type RevokeEnterpriseOrganizationsMigratorRoleInput struct { - // EnterpriseId: The ID of the enterprise to which all organizations managed by it will be granted the migrator role. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Login: The login of the user to revoke the migrator role. - // - // GraphQL type: String! - Login string `json:"login,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RevokeEnterpriseOrganizationsMigratorRolePayload (OBJECT): Autogenerated return type of RevokeEnterpriseOrganizationsMigratorRole. -type RevokeEnterpriseOrganizationsMigratorRolePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Organizations: The organizations that had the migrator role revoked for the given user. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Organizations *OrganizationConnection `json:"organizations,omitempty"` -} - -func (x *RevokeEnterpriseOrganizationsMigratorRolePayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *RevokeEnterpriseOrganizationsMigratorRolePayload) GetOrganizations() *OrganizationConnection { - return x.Organizations -} - -// RevokeMigratorRoleInput (INPUT_OBJECT): Autogenerated input type of RevokeMigratorRole. -type RevokeMigratorRoleInput struct { - // OrganizationId: The ID of the organization that the user/team belongs to. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // Actor: The user login or Team slug to revoke the migrator role from. - // - // GraphQL type: String! - Actor string `json:"actor,omitempty"` - - // ActorType: Specifies the type of the actor, can be either USER or TEAM. - // - // GraphQL type: ActorType! - ActorType ActorType `json:"actorType,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// RevokeMigratorRolePayload (OBJECT): Autogenerated return type of RevokeMigratorRole. -type RevokeMigratorRolePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Success: Did the operation succeed?. - Success bool `json:"success,omitempty"` -} - -func (x *RevokeMigratorRolePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *RevokeMigratorRolePayload) GetSuccess() bool { return x.Success } - -// RoleInOrganization (ENUM): Possible roles a user may have in relation to an organization. -type RoleInOrganization string - -// RoleInOrganization_OWNER: A user with full administrative access to the organization. -const RoleInOrganization_OWNER RoleInOrganization = "OWNER" - -// RoleInOrganization_DIRECT_MEMBER: A user who is a direct member of the organization. -const RoleInOrganization_DIRECT_MEMBER RoleInOrganization = "DIRECT_MEMBER" - -// RoleInOrganization_UNAFFILIATED: A user who is unaffiliated with the organization. -const RoleInOrganization_UNAFFILIATED RoleInOrganization = "UNAFFILIATED" - -// SamlDigestAlgorithm (ENUM): The possible digest algorithms used to sign SAML requests for an identity provider. -type SamlDigestAlgorithm string - -// SamlDigestAlgorithm_SHA1: SHA1. -const SamlDigestAlgorithm_SHA1 SamlDigestAlgorithm = "SHA1" - -// SamlDigestAlgorithm_SHA256: SHA256. -const SamlDigestAlgorithm_SHA256 SamlDigestAlgorithm = "SHA256" - -// SamlDigestAlgorithm_SHA384: SHA384. -const SamlDigestAlgorithm_SHA384 SamlDigestAlgorithm = "SHA384" - -// SamlDigestAlgorithm_SHA512: SHA512. -const SamlDigestAlgorithm_SHA512 SamlDigestAlgorithm = "SHA512" - -// SamlSignatureAlgorithm (ENUM): The possible signature algorithms used to sign SAML requests for a Identity Provider. -type SamlSignatureAlgorithm string - -// SamlSignatureAlgorithm_RSA_SHA1: RSA-SHA1. -const SamlSignatureAlgorithm_RSA_SHA1 SamlSignatureAlgorithm = "RSA_SHA1" - -// SamlSignatureAlgorithm_RSA_SHA256: RSA-SHA256. -const SamlSignatureAlgorithm_RSA_SHA256 SamlSignatureAlgorithm = "RSA_SHA256" - -// SamlSignatureAlgorithm_RSA_SHA384: RSA-SHA384. -const SamlSignatureAlgorithm_RSA_SHA384 SamlSignatureAlgorithm = "RSA_SHA384" - -// SamlSignatureAlgorithm_RSA_SHA512: RSA-SHA512. -const SamlSignatureAlgorithm_RSA_SHA512 SamlSignatureAlgorithm = "RSA_SHA512" - -// SavedReply (OBJECT): A Saved Reply is text a user can use to reply quickly. -type SavedReply struct { - // Body: The body of the saved reply. - Body string `json:"body,omitempty"` - - // BodyHTML: The saved reply body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Title: The title of the saved reply. - Title string `json:"title,omitempty"` - - // User: The user that saved this reply. - User Actor `json:"user,omitempty"` -} - -func (x *SavedReply) GetBody() string { return x.Body } -func (x *SavedReply) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *SavedReply) GetDatabaseId() int { return x.DatabaseId } -func (x *SavedReply) GetId() ID { return x.Id } -func (x *SavedReply) GetTitle() string { return x.Title } -func (x *SavedReply) GetUser() Actor { return x.User } - -// SavedReplyConnection (OBJECT): The connection type for SavedReply. -type SavedReplyConnection struct { - // Edges: A list of edges. - Edges []*SavedReplyEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*SavedReply `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SavedReplyConnection) GetEdges() []*SavedReplyEdge { return x.Edges } -func (x *SavedReplyConnection) GetNodes() []*SavedReply { return x.Nodes } -func (x *SavedReplyConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SavedReplyConnection) GetTotalCount() int { return x.TotalCount } - -// SavedReplyEdge (OBJECT): An edge in a connection. -type SavedReplyEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *SavedReply `json:"node,omitempty"` -} - -func (x *SavedReplyEdge) GetCursor() string { return x.Cursor } -func (x *SavedReplyEdge) GetNode() *SavedReply { return x.Node } - -// SavedReplyOrder (INPUT_OBJECT): Ordering options for saved reply connections. -type SavedReplyOrder struct { - // Field: The field to order saved replies by. - // - // GraphQL type: SavedReplyOrderField! - Field SavedReplyOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SavedReplyOrderField (ENUM): Properties by which saved reply connections can be ordered. -type SavedReplyOrderField string - -// SavedReplyOrderField_UPDATED_AT: Order saved reply by when they were updated. -const SavedReplyOrderField_UPDATED_AT SavedReplyOrderField = "UPDATED_AT" - -// SearchResultItem (UNION): The results of a search. -// SearchResultItem_Interface: The results of a search. -// -// Possible types: -// -// - *App -// - *Discussion -// - *Issue -// - *MarketplaceListing -// - *Organization -// - *PullRequest -// - *Repository -// - *User -type SearchResultItem_Interface interface { - isSearchResultItem() -} - -func (*App) isSearchResultItem() {} -func (*Discussion) isSearchResultItem() {} -func (*Issue) isSearchResultItem() {} -func (*MarketplaceListing) isSearchResultItem() {} -func (*Organization) isSearchResultItem() {} -func (*PullRequest) isSearchResultItem() {} -func (*Repository) isSearchResultItem() {} -func (*User) isSearchResultItem() {} - -type SearchResultItem struct { - Interface SearchResultItem_Interface -} - -func (x *SearchResultItem) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *SearchResultItem) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for SearchResultItem", info.Typename) - case "App": - x.Interface = new(App) - case "Discussion": - x.Interface = new(Discussion) - case "Issue": - x.Interface = new(Issue) - case "MarketplaceListing": - x.Interface = new(MarketplaceListing) - case "Organization": - x.Interface = new(Organization) - case "PullRequest": - x.Interface = new(PullRequest) - case "Repository": - x.Interface = new(Repository) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// SearchResultItemConnection (OBJECT): A list of results that matched against a search query. -type SearchResultItemConnection struct { - // CodeCount: The number of pieces of code that matched the search query. - CodeCount int `json:"codeCount,omitempty"` - - // DiscussionCount: The number of discussions that matched the search query. - DiscussionCount int `json:"discussionCount,omitempty"` - - // Edges: A list of edges. - Edges []*SearchResultItemEdge `json:"edges,omitempty"` - - // IssueCount: The number of issues that matched the search query. - IssueCount int `json:"issueCount,omitempty"` - - // Nodes: A list of nodes. - Nodes []SearchResultItem `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // RepositoryCount: The number of repositories that matched the search query. - RepositoryCount int `json:"repositoryCount,omitempty"` - - // UserCount: The number of users that matched the search query. - UserCount int `json:"userCount,omitempty"` - - // WikiCount: The number of wiki pages that matched the search query. - WikiCount int `json:"wikiCount,omitempty"` -} - -func (x *SearchResultItemConnection) GetCodeCount() int { return x.CodeCount } -func (x *SearchResultItemConnection) GetDiscussionCount() int { return x.DiscussionCount } -func (x *SearchResultItemConnection) GetEdges() []*SearchResultItemEdge { return x.Edges } -func (x *SearchResultItemConnection) GetIssueCount() int { return x.IssueCount } -func (x *SearchResultItemConnection) GetNodes() []SearchResultItem { return x.Nodes } -func (x *SearchResultItemConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SearchResultItemConnection) GetRepositoryCount() int { return x.RepositoryCount } -func (x *SearchResultItemConnection) GetUserCount() int { return x.UserCount } -func (x *SearchResultItemConnection) GetWikiCount() int { return x.WikiCount } - -// SearchResultItemEdge (OBJECT): An edge in a connection. -type SearchResultItemEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node SearchResultItem `json:"node,omitempty"` - - // TextMatches: Text matches on the result found. - TextMatches []*TextMatch `json:"textMatches,omitempty"` -} - -func (x *SearchResultItemEdge) GetCursor() string { return x.Cursor } -func (x *SearchResultItemEdge) GetNode() SearchResultItem { return x.Node } -func (x *SearchResultItemEdge) GetTextMatches() []*TextMatch { return x.TextMatches } - -// SearchType (ENUM): Represents the individual results of a search. -type SearchType string - -// SearchType_ISSUE: Returns results matching issues in repositories. -const SearchType_ISSUE SearchType = "ISSUE" - -// SearchType_REPOSITORY: Returns results matching repositories. -const SearchType_REPOSITORY SearchType = "REPOSITORY" - -// SearchType_USER: Returns results matching users and organizations on GitHub. -const SearchType_USER SearchType = "USER" - -// SearchType_DISCUSSION: Returns matching discussions in repositories. -const SearchType_DISCUSSION SearchType = "DISCUSSION" - -// SecurityAdvisory (OBJECT): A GitHub Security Advisory. -type SecurityAdvisory struct { - // Classification: The classification of the advisory. - Classification SecurityAdvisoryClassification `json:"classification,omitempty"` - - // Cvss: The CVSS associated with this advisory. - Cvss *CVSS `json:"cvss,omitempty"` - - // Cwes: CWEs associated with this Advisory. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Cwes *CWEConnection `json:"cwes,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Description: This is a long plaintext description of the advisory. - Description string `json:"description,omitempty"` - - // GhsaId: The GitHub Security Advisory ID. - GhsaId string `json:"ghsaId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Identifiers: A list of identifiers for this advisory. - Identifiers []*SecurityAdvisoryIdentifier `json:"identifiers,omitempty"` - - // NotificationsPermalink: The permalink for the advisory's dependabot alerts page. - NotificationsPermalink URI `json:"notificationsPermalink,omitempty"` - - // Origin: The organization that originated the advisory. - Origin string `json:"origin,omitempty"` - - // Permalink: The permalink for the advisory. - Permalink URI `json:"permalink,omitempty"` - - // PublishedAt: When the advisory was published. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // References: A list of references for this advisory. - References []*SecurityAdvisoryReference `json:"references,omitempty"` - - // Severity: The severity of the advisory. - Severity SecurityAdvisorySeverity `json:"severity,omitempty"` - - // Summary: A short plaintext summary of the advisory. - Summary string `json:"summary,omitempty"` - - // UpdatedAt: When the advisory was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Vulnerabilities: Vulnerabilities associated with this Advisory. - // - // Query arguments: - // - orderBy SecurityVulnerabilityOrder - // - ecosystem SecurityAdvisoryEcosystem - // - package String - // - severities [SecurityAdvisorySeverity!] - // - classifications [SecurityAdvisoryClassification!] - // - after String - // - before String - // - first Int - // - last Int - Vulnerabilities *SecurityVulnerabilityConnection `json:"vulnerabilities,omitempty"` - - // WithdrawnAt: When the advisory was withdrawn, if it has been withdrawn. - WithdrawnAt DateTime `json:"withdrawnAt,omitempty"` -} - -func (x *SecurityAdvisory) GetClassification() SecurityAdvisoryClassification { - return x.Classification -} -func (x *SecurityAdvisory) GetCvss() *CVSS { return x.Cvss } -func (x *SecurityAdvisory) GetCwes() *CWEConnection { return x.Cwes } -func (x *SecurityAdvisory) GetDatabaseId() int { return x.DatabaseId } -func (x *SecurityAdvisory) GetDescription() string { return x.Description } -func (x *SecurityAdvisory) GetGhsaId() string { return x.GhsaId } -func (x *SecurityAdvisory) GetId() ID { return x.Id } -func (x *SecurityAdvisory) GetIdentifiers() []*SecurityAdvisoryIdentifier { return x.Identifiers } -func (x *SecurityAdvisory) GetNotificationsPermalink() URI { return x.NotificationsPermalink } -func (x *SecurityAdvisory) GetOrigin() string { return x.Origin } -func (x *SecurityAdvisory) GetPermalink() URI { return x.Permalink } -func (x *SecurityAdvisory) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *SecurityAdvisory) GetReferences() []*SecurityAdvisoryReference { return x.References } -func (x *SecurityAdvisory) GetSeverity() SecurityAdvisorySeverity { return x.Severity } -func (x *SecurityAdvisory) GetSummary() string { return x.Summary } -func (x *SecurityAdvisory) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *SecurityAdvisory) GetVulnerabilities() *SecurityVulnerabilityConnection { - return x.Vulnerabilities -} -func (x *SecurityAdvisory) GetWithdrawnAt() DateTime { return x.WithdrawnAt } - -// SecurityAdvisoryClassification (ENUM): Classification of the advisory. -type SecurityAdvisoryClassification string - -// SecurityAdvisoryClassification_GENERAL: Classification of general advisories. -const SecurityAdvisoryClassification_GENERAL SecurityAdvisoryClassification = "GENERAL" - -// SecurityAdvisoryClassification_MALWARE: Classification of malware advisories. -const SecurityAdvisoryClassification_MALWARE SecurityAdvisoryClassification = "MALWARE" - -// SecurityAdvisoryConnection (OBJECT): The connection type for SecurityAdvisory. -type SecurityAdvisoryConnection struct { - // Edges: A list of edges. - Edges []*SecurityAdvisoryEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*SecurityAdvisory `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SecurityAdvisoryConnection) GetEdges() []*SecurityAdvisoryEdge { return x.Edges } -func (x *SecurityAdvisoryConnection) GetNodes() []*SecurityAdvisory { return x.Nodes } -func (x *SecurityAdvisoryConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SecurityAdvisoryConnection) GetTotalCount() int { return x.TotalCount } - -// SecurityAdvisoryEcosystem (ENUM): The possible ecosystems of a security vulnerability's package. -type SecurityAdvisoryEcosystem string - -// SecurityAdvisoryEcosystem_COMPOSER: PHP packages hosted at packagist.org. -const SecurityAdvisoryEcosystem_COMPOSER SecurityAdvisoryEcosystem = "COMPOSER" - -// SecurityAdvisoryEcosystem_ERLANG: Erlang/Elixir packages hosted at hex.pm. -const SecurityAdvisoryEcosystem_ERLANG SecurityAdvisoryEcosystem = "ERLANG" - -// SecurityAdvisoryEcosystem_ACTIONS: GitHub Actions. -const SecurityAdvisoryEcosystem_ACTIONS SecurityAdvisoryEcosystem = "ACTIONS" - -// SecurityAdvisoryEcosystem_GO: Go modules. -const SecurityAdvisoryEcosystem_GO SecurityAdvisoryEcosystem = "GO" - -// SecurityAdvisoryEcosystem_MAVEN: Java artifacts hosted at the Maven central repository. -const SecurityAdvisoryEcosystem_MAVEN SecurityAdvisoryEcosystem = "MAVEN" - -// SecurityAdvisoryEcosystem_NPM: JavaScript packages hosted at npmjs.com. -const SecurityAdvisoryEcosystem_NPM SecurityAdvisoryEcosystem = "NPM" - -// SecurityAdvisoryEcosystem_NUGET: .NET packages hosted at the NuGet Gallery. -const SecurityAdvisoryEcosystem_NUGET SecurityAdvisoryEcosystem = "NUGET" - -// SecurityAdvisoryEcosystem_PIP: Python packages hosted at PyPI.org. -const SecurityAdvisoryEcosystem_PIP SecurityAdvisoryEcosystem = "PIP" - -// SecurityAdvisoryEcosystem_RUBYGEMS: Ruby gems hosted at RubyGems.org. -const SecurityAdvisoryEcosystem_RUBYGEMS SecurityAdvisoryEcosystem = "RUBYGEMS" - -// SecurityAdvisoryEcosystem_RUST: Rust crates. -const SecurityAdvisoryEcosystem_RUST SecurityAdvisoryEcosystem = "RUST" - -// SecurityAdvisoryEdge (OBJECT): An edge in a connection. -type SecurityAdvisoryEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *SecurityAdvisory `json:"node,omitempty"` -} - -func (x *SecurityAdvisoryEdge) GetCursor() string { return x.Cursor } -func (x *SecurityAdvisoryEdge) GetNode() *SecurityAdvisory { return x.Node } - -// SecurityAdvisoryIdentifier (OBJECT): A GitHub Security Advisory Identifier. -type SecurityAdvisoryIdentifier struct { - // Type: The identifier type, e.g. GHSA, CVE. - Type string `json:"type,omitempty"` - - // Value: The identifier. - Value string `json:"value,omitempty"` -} - -func (x *SecurityAdvisoryIdentifier) GetType() string { return x.Type } -func (x *SecurityAdvisoryIdentifier) GetValue() string { return x.Value } - -// SecurityAdvisoryIdentifierFilter (INPUT_OBJECT): An advisory identifier to filter results on. -type SecurityAdvisoryIdentifierFilter struct { - // Type: The identifier type. - // - // GraphQL type: SecurityAdvisoryIdentifierType! - Type SecurityAdvisoryIdentifierType `json:"type,omitempty"` - - // Value: The identifier string. Supports exact or partial matching. - // - // GraphQL type: String! - Value string `json:"value,omitempty"` -} - -// SecurityAdvisoryIdentifierType (ENUM): Identifier formats available for advisories. -type SecurityAdvisoryIdentifierType string - -// SecurityAdvisoryIdentifierType_CVE: Common Vulnerabilities and Exposures Identifier. -const SecurityAdvisoryIdentifierType_CVE SecurityAdvisoryIdentifierType = "CVE" - -// SecurityAdvisoryIdentifierType_GHSA: GitHub Security Advisory ID. -const SecurityAdvisoryIdentifierType_GHSA SecurityAdvisoryIdentifierType = "GHSA" - -// SecurityAdvisoryOrder (INPUT_OBJECT): Ordering options for security advisory connections. -type SecurityAdvisoryOrder struct { - // Field: The field to order security advisories by. - // - // GraphQL type: SecurityAdvisoryOrderField! - Field SecurityAdvisoryOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SecurityAdvisoryOrderField (ENUM): Properties by which security advisory connections can be ordered. -type SecurityAdvisoryOrderField string - -// SecurityAdvisoryOrderField_PUBLISHED_AT: Order advisories by publication time. -const SecurityAdvisoryOrderField_PUBLISHED_AT SecurityAdvisoryOrderField = "PUBLISHED_AT" - -// SecurityAdvisoryOrderField_UPDATED_AT: Order advisories by update time. -const SecurityAdvisoryOrderField_UPDATED_AT SecurityAdvisoryOrderField = "UPDATED_AT" - -// SecurityAdvisoryPackage (OBJECT): An individual package. -type SecurityAdvisoryPackage struct { - // Ecosystem: The ecosystem the package belongs to, e.g. RUBYGEMS, NPM. - Ecosystem SecurityAdvisoryEcosystem `json:"ecosystem,omitempty"` - - // Name: The package name. - Name string `json:"name,omitempty"` -} - -func (x *SecurityAdvisoryPackage) GetEcosystem() SecurityAdvisoryEcosystem { return x.Ecosystem } -func (x *SecurityAdvisoryPackage) GetName() string { return x.Name } - -// SecurityAdvisoryPackageVersion (OBJECT): An individual package version. -type SecurityAdvisoryPackageVersion struct { - // Identifier: The package name or version. - Identifier string `json:"identifier,omitempty"` -} - -func (x *SecurityAdvisoryPackageVersion) GetIdentifier() string { return x.Identifier } - -// SecurityAdvisoryReference (OBJECT): A GitHub Security Advisory Reference. -type SecurityAdvisoryReference struct { - // Url: A publicly accessible reference. - Url URI `json:"url,omitempty"` -} - -func (x *SecurityAdvisoryReference) GetUrl() URI { return x.Url } - -// SecurityAdvisorySeverity (ENUM): Severity of the vulnerability. -type SecurityAdvisorySeverity string - -// SecurityAdvisorySeverity_LOW: Low. -const SecurityAdvisorySeverity_LOW SecurityAdvisorySeverity = "LOW" - -// SecurityAdvisorySeverity_MODERATE: Moderate. -const SecurityAdvisorySeverity_MODERATE SecurityAdvisorySeverity = "MODERATE" - -// SecurityAdvisorySeverity_HIGH: High. -const SecurityAdvisorySeverity_HIGH SecurityAdvisorySeverity = "HIGH" - -// SecurityAdvisorySeverity_CRITICAL: Critical. -const SecurityAdvisorySeverity_CRITICAL SecurityAdvisorySeverity = "CRITICAL" - -// SecurityVulnerability (OBJECT): An individual vulnerability within an Advisory. -type SecurityVulnerability struct { - // Advisory: The Advisory associated with this Vulnerability. - Advisory *SecurityAdvisory `json:"advisory,omitempty"` - - // FirstPatchedVersion: The first version containing a fix for the vulnerability. - FirstPatchedVersion *SecurityAdvisoryPackageVersion `json:"firstPatchedVersion,omitempty"` - - // Package: A description of the vulnerable package. - Package *SecurityAdvisoryPackage `json:"package,omitempty"` - - // Severity: The severity of the vulnerability within this package. - Severity SecurityAdvisorySeverity `json:"severity,omitempty"` - - // UpdatedAt: When the vulnerability was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // VulnerableVersionRange: A string that describes the vulnerable package versions. - // This string follows a basic syntax with a few forms. - // + `= 0.2.0` denotes a single vulnerable version. - // + `<= 1.0.8` denotes a version range up to and including the specified version - // + `< 0.1.11` denotes a version range up to, but excluding, the specified version - // + `>= 4.3.0, < 4.3.5` denotes a version range with a known minimum and maximum version. - // + `>= 0.0.1` denotes a version range with a known minimum, but no known maximum - // . - VulnerableVersionRange string `json:"vulnerableVersionRange,omitempty"` -} - -func (x *SecurityVulnerability) GetAdvisory() *SecurityAdvisory { return x.Advisory } -func (x *SecurityVulnerability) GetFirstPatchedVersion() *SecurityAdvisoryPackageVersion { - return x.FirstPatchedVersion -} -func (x *SecurityVulnerability) GetPackage() *SecurityAdvisoryPackage { return x.Package } -func (x *SecurityVulnerability) GetSeverity() SecurityAdvisorySeverity { return x.Severity } -func (x *SecurityVulnerability) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *SecurityVulnerability) GetVulnerableVersionRange() string { return x.VulnerableVersionRange } - -// SecurityVulnerabilityConnection (OBJECT): The connection type for SecurityVulnerability. -type SecurityVulnerabilityConnection struct { - // Edges: A list of edges. - Edges []*SecurityVulnerabilityEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*SecurityVulnerability `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SecurityVulnerabilityConnection) GetEdges() []*SecurityVulnerabilityEdge { return x.Edges } -func (x *SecurityVulnerabilityConnection) GetNodes() []*SecurityVulnerability { return x.Nodes } -func (x *SecurityVulnerabilityConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SecurityVulnerabilityConnection) GetTotalCount() int { return x.TotalCount } - -// SecurityVulnerabilityEdge (OBJECT): An edge in a connection. -type SecurityVulnerabilityEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *SecurityVulnerability `json:"node,omitempty"` -} - -func (x *SecurityVulnerabilityEdge) GetCursor() string { return x.Cursor } -func (x *SecurityVulnerabilityEdge) GetNode() *SecurityVulnerability { return x.Node } - -// SecurityVulnerabilityOrder (INPUT_OBJECT): Ordering options for security vulnerability connections. -type SecurityVulnerabilityOrder struct { - // Field: The field to order security vulnerabilities by. - // - // GraphQL type: SecurityVulnerabilityOrderField! - Field SecurityVulnerabilityOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SecurityVulnerabilityOrderField (ENUM): Properties by which security vulnerability connections can be ordered. -type SecurityVulnerabilityOrderField string - -// SecurityVulnerabilityOrderField_UPDATED_AT: Order vulnerability by update time. -const SecurityVulnerabilityOrderField_UPDATED_AT SecurityVulnerabilityOrderField = "UPDATED_AT" - -// SetEnterpriseIdentityProviderInput (INPUT_OBJECT): Autogenerated input type of SetEnterpriseIdentityProvider. -type SetEnterpriseIdentityProviderInput struct { - // EnterpriseId: The ID of the enterprise on which to set an identity provider. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SsoUrl: The URL endpoint for the identity provider's SAML SSO. - // - // GraphQL type: URI! - SsoUrl URI `json:"ssoUrl,omitempty"` - - // Issuer: The Issuer Entity ID for the SAML identity provider. - // - // GraphQL type: String - Issuer string `json:"issuer,omitempty"` - - // IdpCertificate: The x509 certificate used by the identity provider to sign assertions and responses. - // - // GraphQL type: String! - IdpCertificate string `json:"idpCertificate,omitempty"` - - // SignatureMethod: The signature algorithm used to sign SAML requests for the identity provider. - // - // GraphQL type: SamlSignatureAlgorithm! - SignatureMethod SamlSignatureAlgorithm `json:"signatureMethod,omitempty"` - - // DigestMethod: The digest algorithm used to sign SAML requests for the identity provider. - // - // GraphQL type: SamlDigestAlgorithm! - DigestMethod SamlDigestAlgorithm `json:"digestMethod,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// SetEnterpriseIdentityProviderPayload (OBJECT): Autogenerated return type of SetEnterpriseIdentityProvider. -type SetEnterpriseIdentityProviderPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // IdentityProvider: The identity provider for the enterprise. - IdentityProvider *EnterpriseIdentityProvider `json:"identityProvider,omitempty"` -} - -func (x *SetEnterpriseIdentityProviderPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *SetEnterpriseIdentityProviderPayload) GetIdentityProvider() *EnterpriseIdentityProvider { - return x.IdentityProvider -} - -// SetOrganizationInteractionLimitInput (INPUT_OBJECT): Autogenerated input type of SetOrganizationInteractionLimit. -type SetOrganizationInteractionLimitInput struct { - // OrganizationId: The ID of the organization to set a limit for. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // Limit: The limit to set. - // - // GraphQL type: RepositoryInteractionLimit! - Limit RepositoryInteractionLimit `json:"limit,omitempty"` - - // Expiry: When this limit should expire. - // - // GraphQL type: RepositoryInteractionLimitExpiry - Expiry RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// SetOrganizationInteractionLimitPayload (OBJECT): Autogenerated return type of SetOrganizationInteractionLimit. -type SetOrganizationInteractionLimitPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Organization: The organization that the interaction limit was set for. - Organization *Organization `json:"organization,omitempty"` -} - -func (x *SetOrganizationInteractionLimitPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *SetOrganizationInteractionLimitPayload) GetOrganization() *Organization { - return x.Organization -} - -// SetRepositoryInteractionLimitInput (INPUT_OBJECT): Autogenerated input type of SetRepositoryInteractionLimit. -type SetRepositoryInteractionLimitInput struct { - // RepositoryId: The ID of the repository to set a limit for. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Limit: The limit to set. - // - // GraphQL type: RepositoryInteractionLimit! - Limit RepositoryInteractionLimit `json:"limit,omitempty"` - - // Expiry: When this limit should expire. - // - // GraphQL type: RepositoryInteractionLimitExpiry - Expiry RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// SetRepositoryInteractionLimitPayload (OBJECT): Autogenerated return type of SetRepositoryInteractionLimit. -type SetRepositoryInteractionLimitPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The repository that the interaction limit was set for. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *SetRepositoryInteractionLimitPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *SetRepositoryInteractionLimitPayload) GetRepository() *Repository { return x.Repository } - -// SetUserInteractionLimitInput (INPUT_OBJECT): Autogenerated input type of SetUserInteractionLimit. -type SetUserInteractionLimitInput struct { - // UserId: The ID of the user to set a limit for. - // - // GraphQL type: ID! - UserId ID `json:"userId,omitempty"` - - // Limit: The limit to set. - // - // GraphQL type: RepositoryInteractionLimit! - Limit RepositoryInteractionLimit `json:"limit,omitempty"` - - // Expiry: When this limit should expire. - // - // GraphQL type: RepositoryInteractionLimitExpiry - Expiry RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// SetUserInteractionLimitPayload (OBJECT): Autogenerated return type of SetUserInteractionLimit. -type SetUserInteractionLimitPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // User: The user that the interaction limit was set for. - User *User `json:"user,omitempty"` -} - -func (x *SetUserInteractionLimitPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *SetUserInteractionLimitPayload) GetUser() *User { return x.User } - -// SmimeSignature (OBJECT): Represents an S/MIME signature on a Commit or Tag. -type SmimeSignature struct { - // Email: Email used to sign this object. - Email string `json:"email,omitempty"` - - // IsValid: True if the signature is valid and verified by GitHub. - IsValid bool `json:"isValid,omitempty"` - - // Payload: Payload for GPG signing object. Raw ODB object without the signature header. - Payload string `json:"payload,omitempty"` - - // Signature: ASCII-armored signature header from object. - Signature string `json:"signature,omitempty"` - - // Signer: GitHub user corresponding to the email signing this commit. - Signer *User `json:"signer,omitempty"` - - // State: The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. - State GitSignatureState `json:"state,omitempty"` - - // WasSignedByGitHub: True if the signature was made with GitHub's signing key. - WasSignedByGitHub bool `json:"wasSignedByGitHub,omitempty"` -} - -func (x *SmimeSignature) GetEmail() string { return x.Email } -func (x *SmimeSignature) GetIsValid() bool { return x.IsValid } -func (x *SmimeSignature) GetPayload() string { return x.Payload } -func (x *SmimeSignature) GetSignature() string { return x.Signature } -func (x *SmimeSignature) GetSigner() *User { return x.Signer } -func (x *SmimeSignature) GetState() GitSignatureState { return x.State } -func (x *SmimeSignature) GetWasSignedByGitHub() bool { return x.WasSignedByGitHub } - -// SortBy (OBJECT): Represents a sort by field and direction. -type SortBy struct { - // Direction: The direction of the sorting. Possible values are ASC and DESC. - Direction OrderDirection `json:"direction,omitempty"` - - // Field: The id of the field by which the column is sorted. - Field int `json:"field,omitempty"` -} - -func (x *SortBy) GetDirection() OrderDirection { return x.Direction } -func (x *SortBy) GetField() int { return x.Field } - -// Sponsor (UNION): Entities that can sponsor others via GitHub Sponsors. -// Sponsor_Interface: Entities that can sponsor others via GitHub Sponsors. -// -// Possible types: -// -// - *Organization -// - *User -type Sponsor_Interface interface { - isSponsor() -} - -func (*Organization) isSponsor() {} -func (*User) isSponsor() {} - -type Sponsor struct { - Interface Sponsor_Interface -} - -func (x *Sponsor) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Sponsor) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Sponsor", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// SponsorConnection (OBJECT): The connection type for Sponsor. -type SponsorConnection struct { - // Edges: A list of edges. - Edges []*SponsorEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []Sponsor `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SponsorConnection) GetEdges() []*SponsorEdge { return x.Edges } -func (x *SponsorConnection) GetNodes() []Sponsor { return x.Nodes } -func (x *SponsorConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SponsorConnection) GetTotalCount() int { return x.TotalCount } - -// SponsorEdge (OBJECT): Represents a user or organization who is sponsoring someone in GitHub Sponsors. -type SponsorEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node Sponsor `json:"node,omitempty"` -} - -func (x *SponsorEdge) GetCursor() string { return x.Cursor } -func (x *SponsorEdge) GetNode() Sponsor { return x.Node } - -// SponsorOrder (INPUT_OBJECT): Ordering options for connections to get sponsor entities for GitHub Sponsors. -type SponsorOrder struct { - // Field: The field to order sponsor entities by. - // - // GraphQL type: SponsorOrderField! - Field SponsorOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SponsorOrderField (ENUM): Properties by which sponsor connections can be ordered. -type SponsorOrderField string - -// SponsorOrderField_LOGIN: Order sponsorable entities by login (username). -const SponsorOrderField_LOGIN SponsorOrderField = "LOGIN" - -// SponsorOrderField_RELEVANCE: Order sponsors by their relevance to the viewer. -const SponsorOrderField_RELEVANCE SponsorOrderField = "RELEVANCE" - -// Sponsorable (INTERFACE): Entities that can be sponsored through GitHub Sponsors. -// Sponsorable_Interface: Entities that can be sponsored through GitHub Sponsors. -// -// Possible types: -// -// - *Organization -// - *User -type Sponsorable_Interface interface { - isSponsorable() - GetEstimatedNextSponsorsPayoutInCents() int - GetHasSponsorsListing() bool - GetIsSponsoredBy() bool - GetIsSponsoringViewer() bool - GetMonthlyEstimatedSponsorsIncomeInCents() int - GetSponsoring() *SponsorConnection - GetSponsors() *SponsorConnection - GetSponsorsActivities() *SponsorsActivityConnection - GetSponsorsListing() *SponsorsListing - GetSponsorshipForViewerAsSponsor() *Sponsorship - GetSponsorshipForViewerAsSponsorable() *Sponsorship - GetSponsorshipNewsletters() *SponsorshipNewsletterConnection - GetSponsorshipsAsMaintainer() *SponsorshipConnection - GetSponsorshipsAsSponsor() *SponsorshipConnection - GetViewerCanSponsor() bool - GetViewerIsSponsoring() bool -} - -func (*Organization) isSponsorable() {} -func (*User) isSponsorable() {} - -type Sponsorable struct { - Interface Sponsorable_Interface -} - -func (x *Sponsorable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Sponsorable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Sponsorable", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// SponsorableItem (UNION): Entities that can be sponsored via GitHub Sponsors. -// SponsorableItem_Interface: Entities that can be sponsored via GitHub Sponsors. -// -// Possible types: -// -// - *Organization -// - *User -type SponsorableItem_Interface interface { - isSponsorableItem() -} - -func (*Organization) isSponsorableItem() {} -func (*User) isSponsorableItem() {} - -type SponsorableItem struct { - Interface SponsorableItem_Interface -} - -func (x *SponsorableItem) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *SponsorableItem) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for SponsorableItem", info.Typename) - case "Organization": - x.Interface = new(Organization) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// SponsorableItemConnection (OBJECT): The connection type for SponsorableItem. -type SponsorableItemConnection struct { - // Edges: A list of edges. - Edges []*SponsorableItemEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []SponsorableItem `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SponsorableItemConnection) GetEdges() []*SponsorableItemEdge { return x.Edges } -func (x *SponsorableItemConnection) GetNodes() []SponsorableItem { return x.Nodes } -func (x *SponsorableItemConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SponsorableItemConnection) GetTotalCount() int { return x.TotalCount } - -// SponsorableItemEdge (OBJECT): An edge in a connection. -type SponsorableItemEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node SponsorableItem `json:"node,omitempty"` -} - -func (x *SponsorableItemEdge) GetCursor() string { return x.Cursor } -func (x *SponsorableItemEdge) GetNode() SponsorableItem { return x.Node } - -// SponsorableOrder (INPUT_OBJECT): Ordering options for connections to get sponsorable entities for GitHub Sponsors. -type SponsorableOrder struct { - // Field: The field to order sponsorable entities by. - // - // GraphQL type: SponsorableOrderField! - Field SponsorableOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SponsorableOrderField (ENUM): Properties by which sponsorable connections can be ordered. -type SponsorableOrderField string - -// SponsorableOrderField_LOGIN: Order sponsorable entities by login (username). -const SponsorableOrderField_LOGIN SponsorableOrderField = "LOGIN" - -// SponsorsActivity (OBJECT): An event related to sponsorship activity. -type SponsorsActivity struct { - // Action: What action this activity indicates took place. - Action SponsorsActivityAction `json:"action,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PreviousSponsorsTier: The tier that the sponsorship used to use, for tier change events. - PreviousSponsorsTier *SponsorsTier `json:"previousSponsorsTier,omitempty"` - - // Sponsor: The user or organization who triggered this activity and was/is sponsoring the sponsorable. - Sponsor Sponsor `json:"sponsor,omitempty"` - - // Sponsorable: The user or organization that is being sponsored, the maintainer. - Sponsorable Sponsorable `json:"sponsorable,omitempty"` - - // SponsorsTier: The associated sponsorship tier. - SponsorsTier *SponsorsTier `json:"sponsorsTier,omitempty"` - - // Timestamp: The timestamp of this event. - Timestamp DateTime `json:"timestamp,omitempty"` -} - -func (x *SponsorsActivity) GetAction() SponsorsActivityAction { return x.Action } -func (x *SponsorsActivity) GetId() ID { return x.Id } -func (x *SponsorsActivity) GetPreviousSponsorsTier() *SponsorsTier { return x.PreviousSponsorsTier } -func (x *SponsorsActivity) GetSponsor() Sponsor { return x.Sponsor } -func (x *SponsorsActivity) GetSponsorable() Sponsorable { return x.Sponsorable } -func (x *SponsorsActivity) GetSponsorsTier() *SponsorsTier { return x.SponsorsTier } -func (x *SponsorsActivity) GetTimestamp() DateTime { return x.Timestamp } - -// SponsorsActivityAction (ENUM): The possible actions that GitHub Sponsors activities can represent. -type SponsorsActivityAction string - -// SponsorsActivityAction_NEW_SPONSORSHIP: The activity was starting a sponsorship. -const SponsorsActivityAction_NEW_SPONSORSHIP SponsorsActivityAction = "NEW_SPONSORSHIP" - -// SponsorsActivityAction_CANCELLED_SPONSORSHIP: The activity was cancelling a sponsorship. -const SponsorsActivityAction_CANCELLED_SPONSORSHIP SponsorsActivityAction = "CANCELLED_SPONSORSHIP" - -// SponsorsActivityAction_TIER_CHANGE: The activity was changing the sponsorship tier, either directly by the sponsor or by a scheduled/pending change. -const SponsorsActivityAction_TIER_CHANGE SponsorsActivityAction = "TIER_CHANGE" - -// SponsorsActivityAction_REFUND: The activity was funds being refunded to the sponsor or GitHub. -const SponsorsActivityAction_REFUND SponsorsActivityAction = "REFUND" - -// SponsorsActivityAction_PENDING_CHANGE: The activity was scheduling a downgrade or cancellation. -const SponsorsActivityAction_PENDING_CHANGE SponsorsActivityAction = "PENDING_CHANGE" - -// SponsorsActivityAction_SPONSOR_MATCH_DISABLED: The activity was disabling matching for a previously matched sponsorship. -const SponsorsActivityAction_SPONSOR_MATCH_DISABLED SponsorsActivityAction = "SPONSOR_MATCH_DISABLED" - -// SponsorsActivityConnection (OBJECT): The connection type for SponsorsActivity. -type SponsorsActivityConnection struct { - // Edges: A list of edges. - Edges []*SponsorsActivityEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*SponsorsActivity `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SponsorsActivityConnection) GetEdges() []*SponsorsActivityEdge { return x.Edges } -func (x *SponsorsActivityConnection) GetNodes() []*SponsorsActivity { return x.Nodes } -func (x *SponsorsActivityConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SponsorsActivityConnection) GetTotalCount() int { return x.TotalCount } - -// SponsorsActivityEdge (OBJECT): An edge in a connection. -type SponsorsActivityEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *SponsorsActivity `json:"node,omitempty"` -} - -func (x *SponsorsActivityEdge) GetCursor() string { return x.Cursor } -func (x *SponsorsActivityEdge) GetNode() *SponsorsActivity { return x.Node } - -// SponsorsActivityOrder (INPUT_OBJECT): Ordering options for GitHub Sponsors activity connections. -type SponsorsActivityOrder struct { - // Field: The field to order activity by. - // - // GraphQL type: SponsorsActivityOrderField! - Field SponsorsActivityOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SponsorsActivityOrderField (ENUM): Properties by which GitHub Sponsors activity connections can be ordered. -type SponsorsActivityOrderField string - -// SponsorsActivityOrderField_TIMESTAMP: Order activities by when they happened. -const SponsorsActivityOrderField_TIMESTAMP SponsorsActivityOrderField = "TIMESTAMP" - -// SponsorsActivityPeriod (ENUM): The possible time periods for which Sponsors activities can be requested. -type SponsorsActivityPeriod string - -// SponsorsActivityPeriod_DAY: The previous calendar day. -const SponsorsActivityPeriod_DAY SponsorsActivityPeriod = "DAY" - -// SponsorsActivityPeriod_WEEK: The previous seven days. -const SponsorsActivityPeriod_WEEK SponsorsActivityPeriod = "WEEK" - -// SponsorsActivityPeriod_MONTH: The previous thirty days. -const SponsorsActivityPeriod_MONTH SponsorsActivityPeriod = "MONTH" - -// SponsorsActivityPeriod_ALL: Don't restrict the activity to any date range, include all activity. -const SponsorsActivityPeriod_ALL SponsorsActivityPeriod = "ALL" - -// SponsorsGoal (OBJECT): A goal associated with a GitHub Sponsors listing, representing a target the sponsored maintainer would like to attain. -type SponsorsGoal struct { - // Description: A description of the goal from the maintainer. - Description string `json:"description,omitempty"` - - // Kind: What the objective of this goal is. - Kind SponsorsGoalKind `json:"kind,omitempty"` - - // PercentComplete: The percentage representing how complete this goal is, between 0-100. - PercentComplete int `json:"percentComplete,omitempty"` - - // TargetValue: What the goal amount is. Represents an amount in USD for monthly sponsorship amount goals. Represents a count of unique sponsors for total sponsors count goals. - TargetValue int `json:"targetValue,omitempty"` - - // Title: A brief summary of the kind and target value of this goal. - Title string `json:"title,omitempty"` -} - -func (x *SponsorsGoal) GetDescription() string { return x.Description } -func (x *SponsorsGoal) GetKind() SponsorsGoalKind { return x.Kind } -func (x *SponsorsGoal) GetPercentComplete() int { return x.PercentComplete } -func (x *SponsorsGoal) GetTargetValue() int { return x.TargetValue } -func (x *SponsorsGoal) GetTitle() string { return x.Title } - -// SponsorsGoalKind (ENUM): The different kinds of goals a GitHub Sponsors member can have. -type SponsorsGoalKind string - -// SponsorsGoalKind_TOTAL_SPONSORS_COUNT: The goal is about reaching a certain number of sponsors. -const SponsorsGoalKind_TOTAL_SPONSORS_COUNT SponsorsGoalKind = "TOTAL_SPONSORS_COUNT" - -// SponsorsGoalKind_MONTHLY_SPONSORSHIP_AMOUNT: The goal is about getting a certain amount in USD from sponsorships each month. -const SponsorsGoalKind_MONTHLY_SPONSORSHIP_AMOUNT SponsorsGoalKind = "MONTHLY_SPONSORSHIP_AMOUNT" - -// SponsorsListing (OBJECT): A GitHub Sponsors listing. -type SponsorsListing struct { - // ActiveGoal: The current goal the maintainer is trying to reach with GitHub Sponsors, if any. - ActiveGoal *SponsorsGoal `json:"activeGoal,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // FullDescription: The full description of the listing. - FullDescription string `json:"fullDescription,omitempty"` - - // FullDescriptionHTML: The full description of the listing rendered to HTML. - FullDescriptionHTML template.HTML `json:"fullDescriptionHTML,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsPublic: Whether this listing is publicly visible. - IsPublic bool `json:"isPublic,omitempty"` - - // Name: The listing's full name. - Name string `json:"name,omitempty"` - - // NextPayoutDate: A future date on which this listing is eligible to receive a payout. - NextPayoutDate Date `json:"nextPayoutDate,omitempty"` - - // ShortDescription: The short description of the listing. - ShortDescription string `json:"shortDescription,omitempty"` - - // Slug: The short name of the listing. - Slug string `json:"slug,omitempty"` - - // Sponsorable: The entity this listing represents who can be sponsored on GitHub Sponsors. - Sponsorable Sponsorable `json:"sponsorable,omitempty"` - - // Tiers: The published tiers for this GitHub Sponsors listing. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SponsorsTierOrder - Tiers *SponsorsTierConnection `json:"tiers,omitempty"` -} - -func (x *SponsorsListing) GetActiveGoal() *SponsorsGoal { return x.ActiveGoal } -func (x *SponsorsListing) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *SponsorsListing) GetFullDescription() string { return x.FullDescription } -func (x *SponsorsListing) GetFullDescriptionHTML() template.HTML { return x.FullDescriptionHTML } -func (x *SponsorsListing) GetId() ID { return x.Id } -func (x *SponsorsListing) GetIsPublic() bool { return x.IsPublic } -func (x *SponsorsListing) GetName() string { return x.Name } -func (x *SponsorsListing) GetNextPayoutDate() Date { return x.NextPayoutDate } -func (x *SponsorsListing) GetShortDescription() string { return x.ShortDescription } -func (x *SponsorsListing) GetSlug() string { return x.Slug } -func (x *SponsorsListing) GetSponsorable() Sponsorable { return x.Sponsorable } -func (x *SponsorsListing) GetTiers() *SponsorsTierConnection { return x.Tiers } - -// SponsorsTier (OBJECT): A GitHub Sponsors tier associated with a GitHub Sponsors listing. -type SponsorsTier struct { - // AdminInfo: SponsorsTier information only visible to users that can administer the associated Sponsors listing. - AdminInfo *SponsorsTierAdminInfo `json:"adminInfo,omitempty"` - - // ClosestLesserValueTier: Get a different tier for this tier's maintainer that is at the same frequency as this tier but with an equal or lesser cost. Returns the published tier with the monthly price closest to this tier's without going over. - ClosestLesserValueTier *SponsorsTier `json:"closestLesserValueTier,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Description: The description of the tier. - Description string `json:"description,omitempty"` - - // DescriptionHTML: The tier description rendered to HTML. - DescriptionHTML template.HTML `json:"descriptionHTML,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCustomAmount: Whether this tier was chosen at checkout time by the sponsor rather than defined ahead of time by the maintainer who manages the Sponsors listing. - IsCustomAmount bool `json:"isCustomAmount,omitempty"` - - // IsOneTime: Whether this tier is only for use with one-time sponsorships. - IsOneTime bool `json:"isOneTime,omitempty"` - - // MonthlyPriceInCents: How much this tier costs per month in cents. - MonthlyPriceInCents int `json:"monthlyPriceInCents,omitempty"` - - // MonthlyPriceInDollars: How much this tier costs per month in USD. - MonthlyPriceInDollars int `json:"monthlyPriceInDollars,omitempty"` - - // Name: The name of the tier. - Name string `json:"name,omitempty"` - - // SponsorsListing: The sponsors listing that this tier belongs to. - SponsorsListing *SponsorsListing `json:"sponsorsListing,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *SponsorsTier) GetAdminInfo() *SponsorsTierAdminInfo { return x.AdminInfo } -func (x *SponsorsTier) GetClosestLesserValueTier() *SponsorsTier { return x.ClosestLesserValueTier } -func (x *SponsorsTier) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *SponsorsTier) GetDescription() string { return x.Description } -func (x *SponsorsTier) GetDescriptionHTML() template.HTML { return x.DescriptionHTML } -func (x *SponsorsTier) GetId() ID { return x.Id } -func (x *SponsorsTier) GetIsCustomAmount() bool { return x.IsCustomAmount } -func (x *SponsorsTier) GetIsOneTime() bool { return x.IsOneTime } -func (x *SponsorsTier) GetMonthlyPriceInCents() int { return x.MonthlyPriceInCents } -func (x *SponsorsTier) GetMonthlyPriceInDollars() int { return x.MonthlyPriceInDollars } -func (x *SponsorsTier) GetName() string { return x.Name } -func (x *SponsorsTier) GetSponsorsListing() *SponsorsListing { return x.SponsorsListing } -func (x *SponsorsTier) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// SponsorsTierAdminInfo (OBJECT): SponsorsTier information only visible to users that can administer the associated Sponsors listing. -type SponsorsTierAdminInfo struct { - // Sponsorships: The sponsorships associated with this tier. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - includePrivate Boolean - // - orderBy SponsorshipOrder - Sponsorships *SponsorshipConnection `json:"sponsorships,omitempty"` -} - -func (x *SponsorsTierAdminInfo) GetSponsorships() *SponsorshipConnection { return x.Sponsorships } - -// SponsorsTierConnection (OBJECT): The connection type for SponsorsTier. -type SponsorsTierConnection struct { - // Edges: A list of edges. - Edges []*SponsorsTierEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*SponsorsTier `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SponsorsTierConnection) GetEdges() []*SponsorsTierEdge { return x.Edges } -func (x *SponsorsTierConnection) GetNodes() []*SponsorsTier { return x.Nodes } -func (x *SponsorsTierConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SponsorsTierConnection) GetTotalCount() int { return x.TotalCount } - -// SponsorsTierEdge (OBJECT): An edge in a connection. -type SponsorsTierEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *SponsorsTier `json:"node,omitempty"` -} - -func (x *SponsorsTierEdge) GetCursor() string { return x.Cursor } -func (x *SponsorsTierEdge) GetNode() *SponsorsTier { return x.Node } - -// SponsorsTierOrder (INPUT_OBJECT): Ordering options for Sponsors tiers connections. -type SponsorsTierOrder struct { - // Field: The field to order tiers by. - // - // GraphQL type: SponsorsTierOrderField! - Field SponsorsTierOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SponsorsTierOrderField (ENUM): Properties by which Sponsors tiers connections can be ordered. -type SponsorsTierOrderField string - -// SponsorsTierOrderField_CREATED_AT: Order tiers by creation time. -const SponsorsTierOrderField_CREATED_AT SponsorsTierOrderField = "CREATED_AT" - -// SponsorsTierOrderField_MONTHLY_PRICE_IN_CENTS: Order tiers by their monthly price in cents. -const SponsorsTierOrderField_MONTHLY_PRICE_IN_CENTS SponsorsTierOrderField = "MONTHLY_PRICE_IN_CENTS" - -// Sponsorship (OBJECT): A sponsorship relationship between a sponsor and a maintainer. -type Sponsorship struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsOneTimePayment: Whether this sponsorship represents a one-time payment versus a recurring sponsorship. - IsOneTimePayment bool `json:"isOneTimePayment,omitempty"` - - // IsSponsorOptedIntoEmail: Check if the sponsor has chosen to receive sponsorship update emails sent from the sponsorable. Only returns a non-null value when the viewer has permission to know this. - IsSponsorOptedIntoEmail bool `json:"isSponsorOptedIntoEmail,omitempty"` - - // Maintainer: The entity that is being sponsored. - // - // Deprecated: The entity that is being sponsored. - Maintainer *User `json:"maintainer,omitempty"` - - // PrivacyLevel: The privacy level for this sponsorship. - PrivacyLevel SponsorshipPrivacy `json:"privacyLevel,omitempty"` - - // Sponsor: The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user. - // - // Deprecated: The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user. - Sponsor *User `json:"sponsor,omitempty"` - - // SponsorEntity: The user or organization that is sponsoring, if you have permission to view them. - SponsorEntity Sponsor `json:"sponsorEntity,omitempty"` - - // Sponsorable: The entity that is being sponsored. - Sponsorable Sponsorable `json:"sponsorable,omitempty"` - - // Tier: The associated sponsorship tier. - Tier *SponsorsTier `json:"tier,omitempty"` - - // TierSelectedAt: Identifies the date and time when the current tier was chosen for this sponsorship. - TierSelectedAt DateTime `json:"tierSelectedAt,omitempty"` -} - -func (x *Sponsorship) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Sponsorship) GetId() ID { return x.Id } -func (x *Sponsorship) GetIsOneTimePayment() bool { return x.IsOneTimePayment } -func (x *Sponsorship) GetIsSponsorOptedIntoEmail() bool { return x.IsSponsorOptedIntoEmail } -func (x *Sponsorship) GetMaintainer() *User { return x.Maintainer } -func (x *Sponsorship) GetPrivacyLevel() SponsorshipPrivacy { return x.PrivacyLevel } -func (x *Sponsorship) GetSponsor() *User { return x.Sponsor } -func (x *Sponsorship) GetSponsorEntity() Sponsor { return x.SponsorEntity } -func (x *Sponsorship) GetSponsorable() Sponsorable { return x.Sponsorable } -func (x *Sponsorship) GetTier() *SponsorsTier { return x.Tier } -func (x *Sponsorship) GetTierSelectedAt() DateTime { return x.TierSelectedAt } - -// SponsorshipConnection (OBJECT): The connection type for Sponsorship. -type SponsorshipConnection struct { - // Edges: A list of edges. - Edges []*SponsorshipEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Sponsorship `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` - - // TotalRecurringMonthlyPriceInCents: The total amount in cents of all recurring sponsorships in the connection whose amount you can view. Does not include one-time sponsorships. - TotalRecurringMonthlyPriceInCents int `json:"totalRecurringMonthlyPriceInCents,omitempty"` - - // TotalRecurringMonthlyPriceInDollars: The total amount in USD of all recurring sponsorships in the connection whose amount you can view. Does not include one-time sponsorships. - TotalRecurringMonthlyPriceInDollars int `json:"totalRecurringMonthlyPriceInDollars,omitempty"` -} - -func (x *SponsorshipConnection) GetEdges() []*SponsorshipEdge { return x.Edges } -func (x *SponsorshipConnection) GetNodes() []*Sponsorship { return x.Nodes } -func (x *SponsorshipConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SponsorshipConnection) GetTotalCount() int { return x.TotalCount } -func (x *SponsorshipConnection) GetTotalRecurringMonthlyPriceInCents() int { - return x.TotalRecurringMonthlyPriceInCents -} -func (x *SponsorshipConnection) GetTotalRecurringMonthlyPriceInDollars() int { - return x.TotalRecurringMonthlyPriceInDollars -} - -// SponsorshipEdge (OBJECT): An edge in a connection. -type SponsorshipEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Sponsorship `json:"node,omitempty"` -} - -func (x *SponsorshipEdge) GetCursor() string { return x.Cursor } -func (x *SponsorshipEdge) GetNode() *Sponsorship { return x.Node } - -// SponsorshipNewsletter (OBJECT): An update sent to sponsors of a user or organization on GitHub Sponsors. -type SponsorshipNewsletter struct { - // Body: The contents of the newsletter, the message the sponsorable wanted to give. - Body string `json:"body,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsPublished: Indicates if the newsletter has been made available to sponsors. - IsPublished bool `json:"isPublished,omitempty"` - - // Sponsorable: The user or organization this newsletter is from. - Sponsorable Sponsorable `json:"sponsorable,omitempty"` - - // Subject: The subject of the newsletter, what it's about. - Subject string `json:"subject,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *SponsorshipNewsletter) GetBody() string { return x.Body } -func (x *SponsorshipNewsletter) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *SponsorshipNewsletter) GetId() ID { return x.Id } -func (x *SponsorshipNewsletter) GetIsPublished() bool { return x.IsPublished } -func (x *SponsorshipNewsletter) GetSponsorable() Sponsorable { return x.Sponsorable } -func (x *SponsorshipNewsletter) GetSubject() string { return x.Subject } -func (x *SponsorshipNewsletter) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// SponsorshipNewsletterConnection (OBJECT): The connection type for SponsorshipNewsletter. -type SponsorshipNewsletterConnection struct { - // Edges: A list of edges. - Edges []*SponsorshipNewsletterEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*SponsorshipNewsletter `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SponsorshipNewsletterConnection) GetEdges() []*SponsorshipNewsletterEdge { return x.Edges } -func (x *SponsorshipNewsletterConnection) GetNodes() []*SponsorshipNewsletter { return x.Nodes } -func (x *SponsorshipNewsletterConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SponsorshipNewsletterConnection) GetTotalCount() int { return x.TotalCount } - -// SponsorshipNewsletterEdge (OBJECT): An edge in a connection. -type SponsorshipNewsletterEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *SponsorshipNewsletter `json:"node,omitempty"` -} - -func (x *SponsorshipNewsletterEdge) GetCursor() string { return x.Cursor } -func (x *SponsorshipNewsletterEdge) GetNode() *SponsorshipNewsletter { return x.Node } - -// SponsorshipNewsletterOrder (INPUT_OBJECT): Ordering options for sponsorship newsletter connections. -type SponsorshipNewsletterOrder struct { - // Field: The field to order sponsorship newsletters by. - // - // GraphQL type: SponsorshipNewsletterOrderField! - Field SponsorshipNewsletterOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SponsorshipNewsletterOrderField (ENUM): Properties by which sponsorship update connections can be ordered. -type SponsorshipNewsletterOrderField string - -// SponsorshipNewsletterOrderField_CREATED_AT: Order sponsorship newsletters by when they were created. -const SponsorshipNewsletterOrderField_CREATED_AT SponsorshipNewsletterOrderField = "CREATED_AT" - -// SponsorshipOrder (INPUT_OBJECT): Ordering options for sponsorship connections. -type SponsorshipOrder struct { - // Field: The field to order sponsorship by. - // - // GraphQL type: SponsorshipOrderField! - Field SponsorshipOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// SponsorshipOrderField (ENUM): Properties by which sponsorship connections can be ordered. -type SponsorshipOrderField string - -// SponsorshipOrderField_CREATED_AT: Order sponsorship by creation time. -const SponsorshipOrderField_CREATED_AT SponsorshipOrderField = "CREATED_AT" - -// SponsorshipPrivacy (ENUM): The privacy of a sponsorship. -type SponsorshipPrivacy string - -// SponsorshipPrivacy_PUBLIC: Public. -const SponsorshipPrivacy_PUBLIC SponsorshipPrivacy = "PUBLIC" - -// SponsorshipPrivacy_PRIVATE: Private. -const SponsorshipPrivacy_PRIVATE SponsorshipPrivacy = "PRIVATE" - -// StarOrder (INPUT_OBJECT): Ways in which star connections can be ordered. -type StarOrder struct { - // Field: The field in which to order nodes by. - // - // GraphQL type: StarOrderField! - Field StarOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order nodes. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// StarOrderField (ENUM): Properties by which star connections can be ordered. -type StarOrderField string - -// StarOrderField_STARRED_AT: Allows ordering a list of stars by when they were created. -const StarOrderField_STARRED_AT StarOrderField = "STARRED_AT" - -// StargazerConnection (OBJECT): The connection type for User. -type StargazerConnection struct { - // Edges: A list of edges. - Edges []*StargazerEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *StargazerConnection) GetEdges() []*StargazerEdge { return x.Edges } -func (x *StargazerConnection) GetNodes() []*User { return x.Nodes } -func (x *StargazerConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *StargazerConnection) GetTotalCount() int { return x.TotalCount } - -// StargazerEdge (OBJECT): Represents a user that's starred a repository. -type StargazerEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: undocumented. - Node *User `json:"node,omitempty"` - - // StarredAt: Identifies when the item was starred. - StarredAt DateTime `json:"starredAt,omitempty"` -} - -func (x *StargazerEdge) GetCursor() string { return x.Cursor } -func (x *StargazerEdge) GetNode() *User { return x.Node } -func (x *StargazerEdge) GetStarredAt() DateTime { return x.StarredAt } - -// Starrable (INTERFACE): Things that can be starred. -// Starrable_Interface: Things that can be starred. -// -// Possible types: -// -// - *Gist -// - *Repository -// - *Topic -type Starrable_Interface interface { - isStarrable() - GetId() ID - GetStargazerCount() int - GetStargazers() *StargazerConnection - GetViewerHasStarred() bool -} - -func (*Gist) isStarrable() {} -func (*Repository) isStarrable() {} -func (*Topic) isStarrable() {} - -type Starrable struct { - Interface Starrable_Interface -} - -func (x *Starrable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Starrable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Starrable", info.Typename) - case "Gist": - x.Interface = new(Gist) - case "Repository": - x.Interface = new(Repository) - case "Topic": - x.Interface = new(Topic) - } - return json.Unmarshal(js, x.Interface) -} - -// StarredRepositoryConnection (OBJECT): The connection type for Repository. -type StarredRepositoryConnection struct { - // Edges: A list of edges. - Edges []*StarredRepositoryEdge `json:"edges,omitempty"` - - // IsOverLimit: Is the list of stars for this user truncated? This is true for users that have many stars. - IsOverLimit bool `json:"isOverLimit,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Repository `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *StarredRepositoryConnection) GetEdges() []*StarredRepositoryEdge { return x.Edges } -func (x *StarredRepositoryConnection) GetIsOverLimit() bool { return x.IsOverLimit } -func (x *StarredRepositoryConnection) GetNodes() []*Repository { return x.Nodes } -func (x *StarredRepositoryConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *StarredRepositoryConnection) GetTotalCount() int { return x.TotalCount } - -// StarredRepositoryEdge (OBJECT): Represents a starred repository. -type StarredRepositoryEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: undocumented. - Node *Repository `json:"node,omitempty"` - - // StarredAt: Identifies when the item was starred. - StarredAt DateTime `json:"starredAt,omitempty"` -} - -func (x *StarredRepositoryEdge) GetCursor() string { return x.Cursor } -func (x *StarredRepositoryEdge) GetNode() *Repository { return x.Node } -func (x *StarredRepositoryEdge) GetStarredAt() DateTime { return x.StarredAt } - -// StartRepositoryMigrationInput (INPUT_OBJECT): Autogenerated input type of StartRepositoryMigration. -type StartRepositoryMigrationInput struct { - // SourceId: The ID of the Octoshift migration source. - // - // GraphQL type: ID! - SourceId ID `json:"sourceId,omitempty"` - - // OwnerId: The ID of the organization that will own the imported repository. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // SourceRepositoryUrl: The Octoshift migration source repository URL. - // - // GraphQL type: URI! - SourceRepositoryUrl URI `json:"sourceRepositoryUrl,omitempty"` - - // RepositoryName: The name of the imported repository. - // - // GraphQL type: String! - RepositoryName string `json:"repositoryName,omitempty"` - - // ContinueOnError: Whether to continue the migration on error. - // - // GraphQL type: Boolean - ContinueOnError bool `json:"continueOnError,omitempty"` - - // GitArchiveUrl: The signed URL to access the user-uploaded git archive. - // - // GraphQL type: String - GitArchiveUrl string `json:"gitArchiveUrl,omitempty"` - - // MetadataArchiveUrl: The signed URL to access the user-uploaded metadata archive. - // - // GraphQL type: String - MetadataArchiveUrl string `json:"metadataArchiveUrl,omitempty"` - - // AccessToken: The Octoshift migration source access token. - // - // GraphQL type: String! - AccessToken string `json:"accessToken,omitempty"` - - // GithubPat: The GitHub personal access token of the user importing to the target repository. - // - // GraphQL type: String - GithubPat string `json:"githubPat,omitempty"` - - // SkipReleases: Whether to skip migrating releases for the repository. - // - // GraphQL type: Boolean - SkipReleases bool `json:"skipReleases,omitempty"` - - // TargetRepoVisibility: The visibility of the imported repository. - // - // GraphQL type: String - TargetRepoVisibility string `json:"targetRepoVisibility,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// StartRepositoryMigrationPayload (OBJECT): Autogenerated return type of StartRepositoryMigration. -type StartRepositoryMigrationPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // RepositoryMigration: The new Octoshift repository migration. - RepositoryMigration *RepositoryMigration `json:"repositoryMigration,omitempty"` -} - -func (x *StartRepositoryMigrationPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *StartRepositoryMigrationPayload) GetRepositoryMigration() *RepositoryMigration { - return x.RepositoryMigration -} - -// Status (OBJECT): Represents a commit status. -type Status struct { - // CombinedContexts: A list of status contexts and check runs for this commit. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - CombinedContexts *StatusCheckRollupContextConnection `json:"combinedContexts,omitempty"` - - // Commit: The commit this status is attached to. - Commit *Commit `json:"commit,omitempty"` - - // Context: Looks up an individual status context by context name. - // - // Query arguments: - // - name String! - Context *StatusContext `json:"context,omitempty"` - - // Contexts: The individual status contexts for this commit. - Contexts []*StatusContext `json:"contexts,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // State: The combined commit status. - State StatusState `json:"state,omitempty"` -} - -func (x *Status) GetCombinedContexts() *StatusCheckRollupContextConnection { return x.CombinedContexts } -func (x *Status) GetCommit() *Commit { return x.Commit } -func (x *Status) GetContext() *StatusContext { return x.Context } -func (x *Status) GetContexts() []*StatusContext { return x.Contexts } -func (x *Status) GetId() ID { return x.Id } -func (x *Status) GetState() StatusState { return x.State } - -// StatusCheckRollup (OBJECT): Represents the rollup for both the check runs and status for a commit. -type StatusCheckRollup struct { - // Commit: The commit the status and check runs are attached to. - Commit *Commit `json:"commit,omitempty"` - - // Contexts: A list of status contexts and check runs for this commit. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Contexts *StatusCheckRollupContextConnection `json:"contexts,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // State: The combined status for the commit. - State StatusState `json:"state,omitempty"` -} - -func (x *StatusCheckRollup) GetCommit() *Commit { return x.Commit } -func (x *StatusCheckRollup) GetContexts() *StatusCheckRollupContextConnection { return x.Contexts } -func (x *StatusCheckRollup) GetId() ID { return x.Id } -func (x *StatusCheckRollup) GetState() StatusState { return x.State } - -// StatusCheckRollupContext (UNION): Types that can be inside a StatusCheckRollup context. -// StatusCheckRollupContext_Interface: Types that can be inside a StatusCheckRollup context. -// -// Possible types: -// -// - *CheckRun -// - *StatusContext -type StatusCheckRollupContext_Interface interface { - isStatusCheckRollupContext() -} - -func (*CheckRun) isStatusCheckRollupContext() {} -func (*StatusContext) isStatusCheckRollupContext() {} - -type StatusCheckRollupContext struct { - Interface StatusCheckRollupContext_Interface -} - -func (x *StatusCheckRollupContext) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *StatusCheckRollupContext) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for StatusCheckRollupContext", info.Typename) - case "CheckRun": - x.Interface = new(CheckRun) - case "StatusContext": - x.Interface = new(StatusContext) - } - return json.Unmarshal(js, x.Interface) -} - -// StatusCheckRollupContextConnection (OBJECT): The connection type for StatusCheckRollupContext. -type StatusCheckRollupContextConnection struct { - // Edges: A list of edges. - Edges []*StatusCheckRollupContextEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []StatusCheckRollupContext `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *StatusCheckRollupContextConnection) GetEdges() []*StatusCheckRollupContextEdge { - return x.Edges -} -func (x *StatusCheckRollupContextConnection) GetNodes() []StatusCheckRollupContext { return x.Nodes } -func (x *StatusCheckRollupContextConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *StatusCheckRollupContextConnection) GetTotalCount() int { return x.TotalCount } - -// StatusCheckRollupContextEdge (OBJECT): An edge in a connection. -type StatusCheckRollupContextEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node StatusCheckRollupContext `json:"node,omitempty"` -} - -func (x *StatusCheckRollupContextEdge) GetCursor() string { return x.Cursor } -func (x *StatusCheckRollupContextEdge) GetNode() StatusCheckRollupContext { return x.Node } - -// StatusContext (OBJECT): Represents an individual commit status context. -type StatusContext struct { - // AvatarUrl: The avatar of the OAuth application or the user that created the status. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // Commit: This commit this status context is attached to. - Commit *Commit `json:"commit,omitempty"` - - // Context: The name of this status context. - Context string `json:"context,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Creator: The actor who created this status context. - Creator Actor `json:"creator,omitempty"` - - // Description: The description for this status context. - Description string `json:"description,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsRequired: Whether this is required to pass before merging for a specific pull request. - // - // Query arguments: - // - pullRequestId ID - // - pullRequestNumber Int - IsRequired bool `json:"isRequired,omitempty"` - - // State: The state of this status context. - State StatusState `json:"state,omitempty"` - - // TargetUrl: The URL for this status context. - TargetUrl URI `json:"targetUrl,omitempty"` -} - -func (x *StatusContext) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *StatusContext) GetCommit() *Commit { return x.Commit } -func (x *StatusContext) GetContext() string { return x.Context } -func (x *StatusContext) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *StatusContext) GetCreator() Actor { return x.Creator } -func (x *StatusContext) GetDescription() string { return x.Description } -func (x *StatusContext) GetId() ID { return x.Id } -func (x *StatusContext) GetIsRequired() bool { return x.IsRequired } -func (x *StatusContext) GetState() StatusState { return x.State } -func (x *StatusContext) GetTargetUrl() URI { return x.TargetUrl } - -// StatusState (ENUM): The possible commit status states. -type StatusState string - -// StatusState_EXPECTED: Status is expected. -const StatusState_EXPECTED StatusState = "EXPECTED" - -// StatusState_ERROR: Status is errored. -const StatusState_ERROR StatusState = "ERROR" - -// StatusState_FAILURE: Status is failing. -const StatusState_FAILURE StatusState = "FAILURE" - -// StatusState_PENDING: Status is pending. -const StatusState_PENDING StatusState = "PENDING" - -// StatusState_SUCCESS: Status is successful. -const StatusState_SUCCESS StatusState = "SUCCESS" - -// String (SCALAR): Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text. -type String string - -// SubmitPullRequestReviewInput (INPUT_OBJECT): Autogenerated input type of SubmitPullRequestReview. -type SubmitPullRequestReviewInput struct { - // PullRequestId: The Pull Request ID to submit any pending reviews. - // - // GraphQL type: ID - PullRequestId ID `json:"pullRequestId,omitempty"` - - // PullRequestReviewId: The Pull Request Review ID to submit. - // - // GraphQL type: ID - PullRequestReviewId ID `json:"pullRequestReviewId,omitempty"` - - // Event: The event to send to the Pull Request Review. - // - // GraphQL type: PullRequestReviewEvent! - Event PullRequestReviewEvent `json:"event,omitempty"` - - // Body: The text field to set on the Pull Request Review. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// SubmitPullRequestReviewPayload (OBJECT): Autogenerated return type of SubmitPullRequestReview. -type SubmitPullRequestReviewPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequestReview: The submitted pull request review. - PullRequestReview *PullRequestReview `json:"pullRequestReview,omitempty"` -} - -func (x *SubmitPullRequestReviewPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *SubmitPullRequestReviewPayload) GetPullRequestReview() *PullRequestReview { - return x.PullRequestReview -} - -// Submodule (OBJECT): A pointer to a repository at a specific revision embedded inside another repository. -type Submodule struct { - // Branch: The branch of the upstream submodule for tracking updates. - Branch string `json:"branch,omitempty"` - - // GitUrl: The git URL of the submodule repository. - GitUrl URI `json:"gitUrl,omitempty"` - - // Name: The name of the submodule in .gitmodules. - Name string `json:"name,omitempty"` - - // Path: The path in the superproject that this submodule is located in. - Path string `json:"path,omitempty"` - - // SubprojectCommitOid: The commit revision of the subproject repository being tracked by the submodule. - SubprojectCommitOid GitObjectID `json:"subprojectCommitOid,omitempty"` -} - -func (x *Submodule) GetBranch() string { return x.Branch } -func (x *Submodule) GetGitUrl() URI { return x.GitUrl } -func (x *Submodule) GetName() string { return x.Name } -func (x *Submodule) GetPath() string { return x.Path } -func (x *Submodule) GetSubprojectCommitOid() GitObjectID { return x.SubprojectCommitOid } - -// SubmoduleConnection (OBJECT): The connection type for Submodule. -type SubmoduleConnection struct { - // Edges: A list of edges. - Edges []*SubmoduleEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Submodule `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *SubmoduleConnection) GetEdges() []*SubmoduleEdge { return x.Edges } -func (x *SubmoduleConnection) GetNodes() []*Submodule { return x.Nodes } -func (x *SubmoduleConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *SubmoduleConnection) GetTotalCount() int { return x.TotalCount } - -// SubmoduleEdge (OBJECT): An edge in a connection. -type SubmoduleEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Submodule `json:"node,omitempty"` -} - -func (x *SubmoduleEdge) GetCursor() string { return x.Cursor } -func (x *SubmoduleEdge) GetNode() *Submodule { return x.Node } - -// Subscribable (INTERFACE): Entities that can be subscribed to for web and email notifications. -// Subscribable_Interface: Entities that can be subscribed to for web and email notifications. -// -// Possible types: -// -// - *Commit -// - *Discussion -// - *Issue -// - *PullRequest -// - *Repository -// - *Team -// - *TeamDiscussion -type Subscribable_Interface interface { - isSubscribable() - GetId() ID - GetViewerCanSubscribe() bool - GetViewerSubscription() SubscriptionState -} - -func (*Commit) isSubscribable() {} -func (*Discussion) isSubscribable() {} -func (*Issue) isSubscribable() {} -func (*PullRequest) isSubscribable() {} -func (*Repository) isSubscribable() {} -func (*Team) isSubscribable() {} -func (*TeamDiscussion) isSubscribable() {} - -type Subscribable struct { - Interface Subscribable_Interface -} - -func (x *Subscribable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Subscribable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Subscribable", info.Typename) - case "Commit": - x.Interface = new(Commit) - case "Discussion": - x.Interface = new(Discussion) - case "Issue": - x.Interface = new(Issue) - case "PullRequest": - x.Interface = new(PullRequest) - case "Repository": - x.Interface = new(Repository) - case "Team": - x.Interface = new(Team) - case "TeamDiscussion": - x.Interface = new(TeamDiscussion) - } - return json.Unmarshal(js, x.Interface) -} - -// SubscribedEvent (OBJECT): Represents a 'subscribed' event on a given `Subscribable`. -type SubscribedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Subscribable: Object referenced by event. - Subscribable Subscribable `json:"subscribable,omitempty"` -} - -func (x *SubscribedEvent) GetActor() Actor { return x.Actor } -func (x *SubscribedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *SubscribedEvent) GetId() ID { return x.Id } -func (x *SubscribedEvent) GetSubscribable() Subscribable { return x.Subscribable } - -// SubscriptionState (ENUM): The possible states of a subscription. -type SubscriptionState string - -// SubscriptionState_UNSUBSCRIBED: The User is only notified when participating or @mentioned. -const SubscriptionState_UNSUBSCRIBED SubscriptionState = "UNSUBSCRIBED" - -// SubscriptionState_SUBSCRIBED: The User is notified of all conversations. -const SubscriptionState_SUBSCRIBED SubscriptionState = "SUBSCRIBED" - -// SubscriptionState_IGNORED: The User is never notified. -const SubscriptionState_IGNORED SubscriptionState = "IGNORED" - -// SuggestedReviewer (OBJECT): A suggestion to review a pull request based on a user's commit history and review comments. -type SuggestedReviewer struct { - // IsAuthor: Is this suggestion based on past commits?. - IsAuthor bool `json:"isAuthor,omitempty"` - - // IsCommenter: Is this suggestion based on past review comments?. - IsCommenter bool `json:"isCommenter,omitempty"` - - // Reviewer: Identifies the user suggested to review the pull request. - Reviewer *User `json:"reviewer,omitempty"` -} - -func (x *SuggestedReviewer) GetIsAuthor() bool { return x.IsAuthor } -func (x *SuggestedReviewer) GetIsCommenter() bool { return x.IsCommenter } -func (x *SuggestedReviewer) GetReviewer() *User { return x.Reviewer } - -// Tag (OBJECT): Represents a Git tag. -type Tag struct { - // AbbreviatedOid: An abbreviated version of the Git object ID. - AbbreviatedOid string `json:"abbreviatedOid,omitempty"` - - // CommitResourcePath: The HTTP path for this Git object. - CommitResourcePath URI `json:"commitResourcePath,omitempty"` - - // CommitUrl: The HTTP URL for this Git object. - CommitUrl URI `json:"commitUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Message: The Git tag message. - Message string `json:"message,omitempty"` - - // Name: The Git tag name. - Name string `json:"name,omitempty"` - - // Oid: The Git object ID. - Oid GitObjectID `json:"oid,omitempty"` - - // Repository: The Repository the Git object belongs to. - Repository *Repository `json:"repository,omitempty"` - - // Tagger: Details about the tag author. - Tagger *GitActor `json:"tagger,omitempty"` - - // Target: The Git object the tag points to. - Target GitObject `json:"target,omitempty"` -} - -func (x *Tag) GetAbbreviatedOid() string { return x.AbbreviatedOid } -func (x *Tag) GetCommitResourcePath() URI { return x.CommitResourcePath } -func (x *Tag) GetCommitUrl() URI { return x.CommitUrl } -func (x *Tag) GetId() ID { return x.Id } -func (x *Tag) GetMessage() string { return x.Message } -func (x *Tag) GetName() string { return x.Name } -func (x *Tag) GetOid() GitObjectID { return x.Oid } -func (x *Tag) GetRepository() *Repository { return x.Repository } -func (x *Tag) GetTagger() *GitActor { return x.Tagger } -func (x *Tag) GetTarget() GitObject { return x.Target } - -// Team (OBJECT): A team of users in an organization. -type Team struct { - // Ancestors: A list of teams that are ancestors of this team. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Ancestors *TeamConnection `json:"ancestors,omitempty"` - - // AvatarUrl: A URL pointing to the team's avatar. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // ChildTeams: List of child teams belonging to this team. - // - // Query arguments: - // - orderBy TeamOrder - // - userLogins [String!] - // - immediateOnly Boolean - // - after String - // - before String - // - first Int - // - last Int - ChildTeams *TeamConnection `json:"childTeams,omitempty"` - - // CombinedSlug: The slug corresponding to the organization and team. - CombinedSlug string `json:"combinedSlug,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Description: The description of the team. - Description string `json:"description,omitempty"` - - // Discussion: Find a team discussion by its number. - // - // Query arguments: - // - number Int! - Discussion *TeamDiscussion `json:"discussion,omitempty"` - - // Discussions: A list of team discussions. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - isPinned Boolean - // - orderBy TeamDiscussionOrder - Discussions *TeamDiscussionConnection `json:"discussions,omitempty"` - - // DiscussionsResourcePath: The HTTP path for team discussions. - DiscussionsResourcePath URI `json:"discussionsResourcePath,omitempty"` - - // DiscussionsUrl: The HTTP URL for team discussions. - DiscussionsUrl URI `json:"discussionsUrl,omitempty"` - - // EditTeamResourcePath: The HTTP path for editing this team. - EditTeamResourcePath URI `json:"editTeamResourcePath,omitempty"` - - // EditTeamUrl: The HTTP URL for editing this team. - EditTeamUrl URI `json:"editTeamUrl,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Invitations: A list of pending invitations for users to this team. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Invitations *OrganizationInvitationConnection `json:"invitations,omitempty"` - - // MemberStatuses: Get the status messages members of this entity have set that are either public or visible only to the organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy UserStatusOrder - MemberStatuses *UserStatusConnection `json:"memberStatuses,omitempty"` - - // Members: A list of users who are members of this team. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - membership TeamMembershipType - // - role TeamMemberRole - // - orderBy TeamMemberOrder - Members *TeamMemberConnection `json:"members,omitempty"` - - // MembersResourcePath: The HTTP path for the team' members. - MembersResourcePath URI `json:"membersResourcePath,omitempty"` - - // MembersUrl: The HTTP URL for the team' members. - MembersUrl URI `json:"membersUrl,omitempty"` - - // Name: The name of the team. - Name string `json:"name,omitempty"` - - // NewTeamResourcePath: The HTTP path creating a new team. - NewTeamResourcePath URI `json:"newTeamResourcePath,omitempty"` - - // NewTeamUrl: The HTTP URL creating a new team. - NewTeamUrl URI `json:"newTeamUrl,omitempty"` - - // Organization: The organization that owns this team. - Organization *Organization `json:"organization,omitempty"` - - // ParentTeam: The parent team of the team. - ParentTeam *Team `json:"parentTeam,omitempty"` - - // Privacy: The level of privacy the team has. - Privacy TeamPrivacy `json:"privacy,omitempty"` - - // Repositories: A list of repositories this team has access to. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - orderBy TeamRepositoryOrder - Repositories *TeamRepositoryConnection `json:"repositories,omitempty"` - - // RepositoriesResourcePath: The HTTP path for this team's repositories. - RepositoriesResourcePath URI `json:"repositoriesResourcePath,omitempty"` - - // RepositoriesUrl: The HTTP URL for this team's repositories. - RepositoriesUrl URI `json:"repositoriesUrl,omitempty"` - - // ResourcePath: The HTTP path for this team. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Slug: The slug corresponding to the team. - Slug string `json:"slug,omitempty"` - - // TeamsResourcePath: The HTTP path for this team's teams. - TeamsResourcePath URI `json:"teamsResourcePath,omitempty"` - - // TeamsUrl: The HTTP URL for this team's teams. - TeamsUrl URI `json:"teamsUrl,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this team. - Url URI `json:"url,omitempty"` - - // ViewerCanAdminister: Team is adminable by the viewer. - ViewerCanAdminister bool `json:"viewerCanAdminister,omitempty"` - - // ViewerCanSubscribe: Check if the viewer is able to change their subscription status for the repository. - ViewerCanSubscribe bool `json:"viewerCanSubscribe,omitempty"` - - // ViewerSubscription: Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - ViewerSubscription SubscriptionState `json:"viewerSubscription,omitempty"` -} - -func (x *Team) GetAncestors() *TeamConnection { return x.Ancestors } -func (x *Team) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *Team) GetChildTeams() *TeamConnection { return x.ChildTeams } -func (x *Team) GetCombinedSlug() string { return x.CombinedSlug } -func (x *Team) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Team) GetDatabaseId() int { return x.DatabaseId } -func (x *Team) GetDescription() string { return x.Description } -func (x *Team) GetDiscussion() *TeamDiscussion { return x.Discussion } -func (x *Team) GetDiscussions() *TeamDiscussionConnection { return x.Discussions } -func (x *Team) GetDiscussionsResourcePath() URI { return x.DiscussionsResourcePath } -func (x *Team) GetDiscussionsUrl() URI { return x.DiscussionsUrl } -func (x *Team) GetEditTeamResourcePath() URI { return x.EditTeamResourcePath } -func (x *Team) GetEditTeamUrl() URI { return x.EditTeamUrl } -func (x *Team) GetId() ID { return x.Id } -func (x *Team) GetInvitations() *OrganizationInvitationConnection { return x.Invitations } -func (x *Team) GetMemberStatuses() *UserStatusConnection { return x.MemberStatuses } -func (x *Team) GetMembers() *TeamMemberConnection { return x.Members } -func (x *Team) GetMembersResourcePath() URI { return x.MembersResourcePath } -func (x *Team) GetMembersUrl() URI { return x.MembersUrl } -func (x *Team) GetName() string { return x.Name } -func (x *Team) GetNewTeamResourcePath() URI { return x.NewTeamResourcePath } -func (x *Team) GetNewTeamUrl() URI { return x.NewTeamUrl } -func (x *Team) GetOrganization() *Organization { return x.Organization } -func (x *Team) GetParentTeam() *Team { return x.ParentTeam } -func (x *Team) GetPrivacy() TeamPrivacy { return x.Privacy } -func (x *Team) GetRepositories() *TeamRepositoryConnection { return x.Repositories } -func (x *Team) GetRepositoriesResourcePath() URI { return x.RepositoriesResourcePath } -func (x *Team) GetRepositoriesUrl() URI { return x.RepositoriesUrl } -func (x *Team) GetResourcePath() URI { return x.ResourcePath } -func (x *Team) GetSlug() string { return x.Slug } -func (x *Team) GetTeamsResourcePath() URI { return x.TeamsResourcePath } -func (x *Team) GetTeamsUrl() URI { return x.TeamsUrl } -func (x *Team) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *Team) GetUrl() URI { return x.Url } -func (x *Team) GetViewerCanAdminister() bool { return x.ViewerCanAdminister } -func (x *Team) GetViewerCanSubscribe() bool { return x.ViewerCanSubscribe } -func (x *Team) GetViewerSubscription() SubscriptionState { return x.ViewerSubscription } - -// TeamAddMemberAuditEntry (OBJECT): Audit log entry for a team.add_member event. -type TeamAddMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsLdapMapped: Whether the team was mapped to an LDAP Group. - IsLdapMapped bool `json:"isLdapMapped,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Team: The team associated with the action. - Team *Team `json:"team,omitempty"` - - // TeamName: The name of the team. - TeamName string `json:"teamName,omitempty"` - - // TeamResourcePath: The HTTP path for this team. - TeamResourcePath URI `json:"teamResourcePath,omitempty"` - - // TeamUrl: The HTTP URL for this team. - TeamUrl URI `json:"teamUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *TeamAddMemberAuditEntry) GetAction() string { return x.Action } -func (x *TeamAddMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *TeamAddMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *TeamAddMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *TeamAddMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *TeamAddMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *TeamAddMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *TeamAddMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *TeamAddMemberAuditEntry) GetId() ID { return x.Id } -func (x *TeamAddMemberAuditEntry) GetIsLdapMapped() bool { return x.IsLdapMapped } -func (x *TeamAddMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *TeamAddMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *TeamAddMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *TeamAddMemberAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *TeamAddMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *TeamAddMemberAuditEntry) GetTeam() *Team { return x.Team } -func (x *TeamAddMemberAuditEntry) GetTeamName() string { return x.TeamName } -func (x *TeamAddMemberAuditEntry) GetTeamResourcePath() URI { return x.TeamResourcePath } -func (x *TeamAddMemberAuditEntry) GetTeamUrl() URI { return x.TeamUrl } -func (x *TeamAddMemberAuditEntry) GetUser() *User { return x.User } -func (x *TeamAddMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *TeamAddMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *TeamAddMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// TeamAddRepositoryAuditEntry (OBJECT): Audit log entry for a team.add_repository event. -type TeamAddRepositoryAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsLdapMapped: Whether the team was mapped to an LDAP Group. - IsLdapMapped bool `json:"isLdapMapped,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // Team: The team associated with the action. - Team *Team `json:"team,omitempty"` - - // TeamName: The name of the team. - TeamName string `json:"teamName,omitempty"` - - // TeamResourcePath: The HTTP path for this team. - TeamResourcePath URI `json:"teamResourcePath,omitempty"` - - // TeamUrl: The HTTP URL for this team. - TeamUrl URI `json:"teamUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *TeamAddRepositoryAuditEntry) GetAction() string { return x.Action } -func (x *TeamAddRepositoryAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *TeamAddRepositoryAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *TeamAddRepositoryAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *TeamAddRepositoryAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *TeamAddRepositoryAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *TeamAddRepositoryAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *TeamAddRepositoryAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *TeamAddRepositoryAuditEntry) GetId() ID { return x.Id } -func (x *TeamAddRepositoryAuditEntry) GetIsLdapMapped() bool { return x.IsLdapMapped } -func (x *TeamAddRepositoryAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *TeamAddRepositoryAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *TeamAddRepositoryAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *TeamAddRepositoryAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *TeamAddRepositoryAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *TeamAddRepositoryAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *TeamAddRepositoryAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *TeamAddRepositoryAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *TeamAddRepositoryAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *TeamAddRepositoryAuditEntry) GetTeam() *Team { return x.Team } -func (x *TeamAddRepositoryAuditEntry) GetTeamName() string { return x.TeamName } -func (x *TeamAddRepositoryAuditEntry) GetTeamResourcePath() URI { return x.TeamResourcePath } -func (x *TeamAddRepositoryAuditEntry) GetTeamUrl() URI { return x.TeamUrl } -func (x *TeamAddRepositoryAuditEntry) GetUser() *User { return x.User } -func (x *TeamAddRepositoryAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *TeamAddRepositoryAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *TeamAddRepositoryAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// TeamAuditEntryData (INTERFACE): Metadata for an audit entry with action team.*. -// TeamAuditEntryData_Interface: Metadata for an audit entry with action team.*. -// -// Possible types: -// -// - *OrgRestoreMemberMembershipTeamAuditEntryData -// - *TeamAddMemberAuditEntry -// - *TeamAddRepositoryAuditEntry -// - *TeamChangeParentTeamAuditEntry -// - *TeamRemoveMemberAuditEntry -// - *TeamRemoveRepositoryAuditEntry -type TeamAuditEntryData_Interface interface { - isTeamAuditEntryData() - GetTeam() *Team - GetTeamName() string - GetTeamResourcePath() URI - GetTeamUrl() URI -} - -func (*OrgRestoreMemberMembershipTeamAuditEntryData) isTeamAuditEntryData() {} -func (*TeamAddMemberAuditEntry) isTeamAuditEntryData() {} -func (*TeamAddRepositoryAuditEntry) isTeamAuditEntryData() {} -func (*TeamChangeParentTeamAuditEntry) isTeamAuditEntryData() {} -func (*TeamRemoveMemberAuditEntry) isTeamAuditEntryData() {} -func (*TeamRemoveRepositoryAuditEntry) isTeamAuditEntryData() {} - -type TeamAuditEntryData struct { - Interface TeamAuditEntryData_Interface -} - -func (x *TeamAuditEntryData) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *TeamAuditEntryData) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for TeamAuditEntryData", info.Typename) - case "OrgRestoreMemberMembershipTeamAuditEntryData": - x.Interface = new(OrgRestoreMemberMembershipTeamAuditEntryData) - case "TeamAddMemberAuditEntry": - x.Interface = new(TeamAddMemberAuditEntry) - case "TeamAddRepositoryAuditEntry": - x.Interface = new(TeamAddRepositoryAuditEntry) - case "TeamChangeParentTeamAuditEntry": - x.Interface = new(TeamChangeParentTeamAuditEntry) - case "TeamRemoveMemberAuditEntry": - x.Interface = new(TeamRemoveMemberAuditEntry) - case "TeamRemoveRepositoryAuditEntry": - x.Interface = new(TeamRemoveRepositoryAuditEntry) - } - return json.Unmarshal(js, x.Interface) -} - -// TeamChangeParentTeamAuditEntry (OBJECT): Audit log entry for a team.change_parent_team event. -type TeamChangeParentTeamAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsLdapMapped: Whether the team was mapped to an LDAP Group. - IsLdapMapped bool `json:"isLdapMapped,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // ParentTeam: The new parent team. - ParentTeam *Team `json:"parentTeam,omitempty"` - - // ParentTeamName: The name of the new parent team. - ParentTeamName string `json:"parentTeamName,omitempty"` - - // ParentTeamNameWas: The name of the former parent team. - ParentTeamNameWas string `json:"parentTeamNameWas,omitempty"` - - // ParentTeamResourcePath: The HTTP path for the parent team. - ParentTeamResourcePath URI `json:"parentTeamResourcePath,omitempty"` - - // ParentTeamUrl: The HTTP URL for the parent team. - ParentTeamUrl URI `json:"parentTeamUrl,omitempty"` - - // ParentTeamWas: The former parent team. - ParentTeamWas *Team `json:"parentTeamWas,omitempty"` - - // ParentTeamWasResourcePath: The HTTP path for the previous parent team. - ParentTeamWasResourcePath URI `json:"parentTeamWasResourcePath,omitempty"` - - // ParentTeamWasUrl: The HTTP URL for the previous parent team. - ParentTeamWasUrl URI `json:"parentTeamWasUrl,omitempty"` - - // Team: The team associated with the action. - Team *Team `json:"team,omitempty"` - - // TeamName: The name of the team. - TeamName string `json:"teamName,omitempty"` - - // TeamResourcePath: The HTTP path for this team. - TeamResourcePath URI `json:"teamResourcePath,omitempty"` - - // TeamUrl: The HTTP URL for this team. - TeamUrl URI `json:"teamUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *TeamChangeParentTeamAuditEntry) GetAction() string { return x.Action } -func (x *TeamChangeParentTeamAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *TeamChangeParentTeamAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *TeamChangeParentTeamAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *TeamChangeParentTeamAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *TeamChangeParentTeamAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *TeamChangeParentTeamAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *TeamChangeParentTeamAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *TeamChangeParentTeamAuditEntry) GetId() ID { return x.Id } -func (x *TeamChangeParentTeamAuditEntry) GetIsLdapMapped() bool { return x.IsLdapMapped } -func (x *TeamChangeParentTeamAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *TeamChangeParentTeamAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *TeamChangeParentTeamAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *TeamChangeParentTeamAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *TeamChangeParentTeamAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *TeamChangeParentTeamAuditEntry) GetParentTeam() *Team { return x.ParentTeam } -func (x *TeamChangeParentTeamAuditEntry) GetParentTeamName() string { return x.ParentTeamName } -func (x *TeamChangeParentTeamAuditEntry) GetParentTeamNameWas() string { return x.ParentTeamNameWas } -func (x *TeamChangeParentTeamAuditEntry) GetParentTeamResourcePath() URI { - return x.ParentTeamResourcePath -} -func (x *TeamChangeParentTeamAuditEntry) GetParentTeamUrl() URI { return x.ParentTeamUrl } -func (x *TeamChangeParentTeamAuditEntry) GetParentTeamWas() *Team { return x.ParentTeamWas } -func (x *TeamChangeParentTeamAuditEntry) GetParentTeamWasResourcePath() URI { - return x.ParentTeamWasResourcePath -} -func (x *TeamChangeParentTeamAuditEntry) GetParentTeamWasUrl() URI { return x.ParentTeamWasUrl } -func (x *TeamChangeParentTeamAuditEntry) GetTeam() *Team { return x.Team } -func (x *TeamChangeParentTeamAuditEntry) GetTeamName() string { return x.TeamName } -func (x *TeamChangeParentTeamAuditEntry) GetTeamResourcePath() URI { return x.TeamResourcePath } -func (x *TeamChangeParentTeamAuditEntry) GetTeamUrl() URI { return x.TeamUrl } -func (x *TeamChangeParentTeamAuditEntry) GetUser() *User { return x.User } -func (x *TeamChangeParentTeamAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *TeamChangeParentTeamAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *TeamChangeParentTeamAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// TeamConnection (OBJECT): The connection type for Team. -type TeamConnection struct { - // Edges: A list of edges. - Edges []*TeamEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Team `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *TeamConnection) GetEdges() []*TeamEdge { return x.Edges } -func (x *TeamConnection) GetNodes() []*Team { return x.Nodes } -func (x *TeamConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *TeamConnection) GetTotalCount() int { return x.TotalCount } - -// TeamDiscussion (OBJECT): A team discussion. -type TeamDiscussion struct { - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the discussion's team. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: The body as Markdown. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // BodyVersion: Identifies the discussion body hash. - BodyVersion string `json:"bodyVersion,omitempty"` - - // Comments: A list of comments on this discussion. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy TeamDiscussionCommentOrder - // - fromComment Int - Comments *TeamDiscussionCommentConnection `json:"comments,omitempty"` - - // CommentsResourcePath: The HTTP path for discussion comments. - CommentsResourcePath URI `json:"commentsResourcePath,omitempty"` - - // CommentsUrl: The HTTP URL for discussion comments. - CommentsUrl URI `json:"commentsUrl,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // IsPinned: Whether or not the discussion is pinned. - IsPinned bool `json:"isPinned,omitempty"` - - // IsPrivate: Whether or not the discussion is only visible to team members and org admins. - IsPrivate bool `json:"isPrivate,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // Number: Identifies the discussion within its team. - Number int `json:"number,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // ResourcePath: The HTTP path for this discussion. - ResourcePath URI `json:"resourcePath,omitempty"` - - // Team: The team that defines the context of this discussion. - Team *Team `json:"team,omitempty"` - - // Title: The title of the discussion. - Title string `json:"title,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this discussion. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanPin: Whether or not the current viewer can pin this discussion. - ViewerCanPin bool `json:"viewerCanPin,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanSubscribe: Check if the viewer is able to change their subscription status for the repository. - ViewerCanSubscribe bool `json:"viewerCanSubscribe,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` - - // ViewerSubscription: Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - ViewerSubscription SubscriptionState `json:"viewerSubscription,omitempty"` -} - -func (x *TeamDiscussion) GetAuthor() Actor { return x.Author } -func (x *TeamDiscussion) GetAuthorAssociation() CommentAuthorAssociation { return x.AuthorAssociation } -func (x *TeamDiscussion) GetBody() string { return x.Body } -func (x *TeamDiscussion) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *TeamDiscussion) GetBodyText() string { return x.BodyText } -func (x *TeamDiscussion) GetBodyVersion() string { return x.BodyVersion } -func (x *TeamDiscussion) GetComments() *TeamDiscussionCommentConnection { return x.Comments } -func (x *TeamDiscussion) GetCommentsResourcePath() URI { return x.CommentsResourcePath } -func (x *TeamDiscussion) GetCommentsUrl() URI { return x.CommentsUrl } -func (x *TeamDiscussion) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *TeamDiscussion) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *TeamDiscussion) GetDatabaseId() int { return x.DatabaseId } -func (x *TeamDiscussion) GetEditor() Actor { return x.Editor } -func (x *TeamDiscussion) GetId() ID { return x.Id } -func (x *TeamDiscussion) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *TeamDiscussion) GetIsPinned() bool { return x.IsPinned } -func (x *TeamDiscussion) GetIsPrivate() bool { return x.IsPrivate } -func (x *TeamDiscussion) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *TeamDiscussion) GetNumber() int { return x.Number } -func (x *TeamDiscussion) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *TeamDiscussion) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *TeamDiscussion) GetReactions() *ReactionConnection { return x.Reactions } -func (x *TeamDiscussion) GetResourcePath() URI { return x.ResourcePath } -func (x *TeamDiscussion) GetTeam() *Team { return x.Team } -func (x *TeamDiscussion) GetTitle() string { return x.Title } -func (x *TeamDiscussion) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *TeamDiscussion) GetUrl() URI { return x.Url } -func (x *TeamDiscussion) GetUserContentEdits() *UserContentEditConnection { return x.UserContentEdits } -func (x *TeamDiscussion) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *TeamDiscussion) GetViewerCanPin() bool { return x.ViewerCanPin } -func (x *TeamDiscussion) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *TeamDiscussion) GetViewerCanSubscribe() bool { return x.ViewerCanSubscribe } -func (x *TeamDiscussion) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *TeamDiscussion) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *TeamDiscussion) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } -func (x *TeamDiscussion) GetViewerSubscription() SubscriptionState { return x.ViewerSubscription } - -// TeamDiscussionComment (OBJECT): A comment on a team discussion. -type TeamDiscussionComment struct { - // Author: The actor who authored the comment. - Author Actor `json:"author,omitempty"` - - // AuthorAssociation: Author's association with the comment's team. - AuthorAssociation CommentAuthorAssociation `json:"authorAssociation,omitempty"` - - // Body: The body as Markdown. - Body string `json:"body,omitempty"` - - // BodyHTML: The body rendered to HTML. - BodyHTML template.HTML `json:"bodyHTML,omitempty"` - - // BodyText: The body rendered to text. - BodyText string `json:"bodyText,omitempty"` - - // BodyVersion: The current version of the body content. - BodyVersion string `json:"bodyVersion,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // CreatedViaEmail: Check if this comment was created via an email reply. - CreatedViaEmail bool `json:"createdViaEmail,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Discussion: The discussion this comment is about. - Discussion *TeamDiscussion `json:"discussion,omitempty"` - - // Editor: The actor who edited the comment. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IncludesCreatedEdit: Check if this comment was edited and includes an edit with the creation data. - IncludesCreatedEdit bool `json:"includesCreatedEdit,omitempty"` - - // LastEditedAt: The moment the editor made the last edit. - LastEditedAt DateTime `json:"lastEditedAt,omitempty"` - - // Number: Identifies the comment number. - Number int `json:"number,omitempty"` - - // PublishedAt: Identifies when the comment was published at. - PublishedAt DateTime `json:"publishedAt,omitempty"` - - // ReactionGroups: A list of reactions grouped by content left on the subject. - ReactionGroups []*ReactionGroup `json:"reactionGroups,omitempty"` - - // Reactions: A list of Reactions left on the Issue. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - content ReactionContent - // - orderBy ReactionOrder - Reactions *ReactionConnection `json:"reactions,omitempty"` - - // ResourcePath: The HTTP path for this comment. - ResourcePath URI `json:"resourcePath,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this comment. - Url URI `json:"url,omitempty"` - - // UserContentEdits: A list of edits to this content. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - UserContentEdits *UserContentEditConnection `json:"userContentEdits,omitempty"` - - // ViewerCanDelete: Check if the current viewer can delete this object. - ViewerCanDelete bool `json:"viewerCanDelete,omitempty"` - - // ViewerCanReact: Can user react to this subject. - ViewerCanReact bool `json:"viewerCanReact,omitempty"` - - // ViewerCanUpdate: Check if the current viewer can update this object. - ViewerCanUpdate bool `json:"viewerCanUpdate,omitempty"` - - // ViewerCannotUpdateReasons: Reasons why the current viewer can not update this comment. - ViewerCannotUpdateReasons []CommentCannotUpdateReason `json:"viewerCannotUpdateReasons,omitempty"` - - // ViewerDidAuthor: Did the viewer author this comment. - ViewerDidAuthor bool `json:"viewerDidAuthor,omitempty"` -} - -func (x *TeamDiscussionComment) GetAuthor() Actor { return x.Author } -func (x *TeamDiscussionComment) GetAuthorAssociation() CommentAuthorAssociation { - return x.AuthorAssociation -} -func (x *TeamDiscussionComment) GetBody() string { return x.Body } -func (x *TeamDiscussionComment) GetBodyHTML() template.HTML { return x.BodyHTML } -func (x *TeamDiscussionComment) GetBodyText() string { return x.BodyText } -func (x *TeamDiscussionComment) GetBodyVersion() string { return x.BodyVersion } -func (x *TeamDiscussionComment) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *TeamDiscussionComment) GetCreatedViaEmail() bool { return x.CreatedViaEmail } -func (x *TeamDiscussionComment) GetDatabaseId() int { return x.DatabaseId } -func (x *TeamDiscussionComment) GetDiscussion() *TeamDiscussion { return x.Discussion } -func (x *TeamDiscussionComment) GetEditor() Actor { return x.Editor } -func (x *TeamDiscussionComment) GetId() ID { return x.Id } -func (x *TeamDiscussionComment) GetIncludesCreatedEdit() bool { return x.IncludesCreatedEdit } -func (x *TeamDiscussionComment) GetLastEditedAt() DateTime { return x.LastEditedAt } -func (x *TeamDiscussionComment) GetNumber() int { return x.Number } -func (x *TeamDiscussionComment) GetPublishedAt() DateTime { return x.PublishedAt } -func (x *TeamDiscussionComment) GetReactionGroups() []*ReactionGroup { return x.ReactionGroups } -func (x *TeamDiscussionComment) GetReactions() *ReactionConnection { return x.Reactions } -func (x *TeamDiscussionComment) GetResourcePath() URI { return x.ResourcePath } -func (x *TeamDiscussionComment) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *TeamDiscussionComment) GetUrl() URI { return x.Url } -func (x *TeamDiscussionComment) GetUserContentEdits() *UserContentEditConnection { - return x.UserContentEdits -} -func (x *TeamDiscussionComment) GetViewerCanDelete() bool { return x.ViewerCanDelete } -func (x *TeamDiscussionComment) GetViewerCanReact() bool { return x.ViewerCanReact } -func (x *TeamDiscussionComment) GetViewerCanUpdate() bool { return x.ViewerCanUpdate } -func (x *TeamDiscussionComment) GetViewerCannotUpdateReasons() []CommentCannotUpdateReason { - return x.ViewerCannotUpdateReasons -} -func (x *TeamDiscussionComment) GetViewerDidAuthor() bool { return x.ViewerDidAuthor } - -// TeamDiscussionCommentConnection (OBJECT): The connection type for TeamDiscussionComment. -type TeamDiscussionCommentConnection struct { - // Edges: A list of edges. - Edges []*TeamDiscussionCommentEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*TeamDiscussionComment `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *TeamDiscussionCommentConnection) GetEdges() []*TeamDiscussionCommentEdge { return x.Edges } -func (x *TeamDiscussionCommentConnection) GetNodes() []*TeamDiscussionComment { return x.Nodes } -func (x *TeamDiscussionCommentConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *TeamDiscussionCommentConnection) GetTotalCount() int { return x.TotalCount } - -// TeamDiscussionCommentEdge (OBJECT): An edge in a connection. -type TeamDiscussionCommentEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *TeamDiscussionComment `json:"node,omitempty"` -} - -func (x *TeamDiscussionCommentEdge) GetCursor() string { return x.Cursor } -func (x *TeamDiscussionCommentEdge) GetNode() *TeamDiscussionComment { return x.Node } - -// TeamDiscussionCommentOrder (INPUT_OBJECT): Ways in which team discussion comment connections can be ordered. -type TeamDiscussionCommentOrder struct { - // Field: The field by which to order nodes. - // - // GraphQL type: TeamDiscussionCommentOrderField! - Field TeamDiscussionCommentOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order nodes. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// TeamDiscussionCommentOrderField (ENUM): Properties by which team discussion comment connections can be ordered. -type TeamDiscussionCommentOrderField string - -// TeamDiscussionCommentOrderField_NUMBER: Allows sequential ordering of team discussion comments (which is equivalent to chronological ordering). -const TeamDiscussionCommentOrderField_NUMBER TeamDiscussionCommentOrderField = "NUMBER" - -// TeamDiscussionConnection (OBJECT): The connection type for TeamDiscussion. -type TeamDiscussionConnection struct { - // Edges: A list of edges. - Edges []*TeamDiscussionEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*TeamDiscussion `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *TeamDiscussionConnection) GetEdges() []*TeamDiscussionEdge { return x.Edges } -func (x *TeamDiscussionConnection) GetNodes() []*TeamDiscussion { return x.Nodes } -func (x *TeamDiscussionConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *TeamDiscussionConnection) GetTotalCount() int { return x.TotalCount } - -// TeamDiscussionEdge (OBJECT): An edge in a connection. -type TeamDiscussionEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *TeamDiscussion `json:"node,omitempty"` -} - -func (x *TeamDiscussionEdge) GetCursor() string { return x.Cursor } -func (x *TeamDiscussionEdge) GetNode() *TeamDiscussion { return x.Node } - -// TeamDiscussionOrder (INPUT_OBJECT): Ways in which team discussion connections can be ordered. -type TeamDiscussionOrder struct { - // Field: The field by which to order nodes. - // - // GraphQL type: TeamDiscussionOrderField! - Field TeamDiscussionOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order nodes. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// TeamDiscussionOrderField (ENUM): Properties by which team discussion connections can be ordered. -type TeamDiscussionOrderField string - -// TeamDiscussionOrderField_CREATED_AT: Allows chronological ordering of team discussions. -const TeamDiscussionOrderField_CREATED_AT TeamDiscussionOrderField = "CREATED_AT" - -// TeamEdge (OBJECT): An edge in a connection. -type TeamEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *Team `json:"node,omitempty"` -} - -func (x *TeamEdge) GetCursor() string { return x.Cursor } -func (x *TeamEdge) GetNode() *Team { return x.Node } - -// TeamMemberConnection (OBJECT): The connection type for User. -type TeamMemberConnection struct { - // Edges: A list of edges. - Edges []*TeamMemberEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *TeamMemberConnection) GetEdges() []*TeamMemberEdge { return x.Edges } -func (x *TeamMemberConnection) GetNodes() []*User { return x.Nodes } -func (x *TeamMemberConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *TeamMemberConnection) GetTotalCount() int { return x.TotalCount } - -// TeamMemberEdge (OBJECT): Represents a user who is a member of a team. -type TeamMemberEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // MemberAccessResourcePath: The HTTP path to the organization's member access page. - MemberAccessResourcePath URI `json:"memberAccessResourcePath,omitempty"` - - // MemberAccessUrl: The HTTP URL to the organization's member access page. - MemberAccessUrl URI `json:"memberAccessUrl,omitempty"` - - // Node: undocumented. - Node *User `json:"node,omitempty"` - - // Role: The role the member has on the team. - Role TeamMemberRole `json:"role,omitempty"` -} - -func (x *TeamMemberEdge) GetCursor() string { return x.Cursor } -func (x *TeamMemberEdge) GetMemberAccessResourcePath() URI { return x.MemberAccessResourcePath } -func (x *TeamMemberEdge) GetMemberAccessUrl() URI { return x.MemberAccessUrl } -func (x *TeamMemberEdge) GetNode() *User { return x.Node } -func (x *TeamMemberEdge) GetRole() TeamMemberRole { return x.Role } - -// TeamMemberOrder (INPUT_OBJECT): Ordering options for team member connections. -type TeamMemberOrder struct { - // Field: The field to order team members by. - // - // GraphQL type: TeamMemberOrderField! - Field TeamMemberOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// TeamMemberOrderField (ENUM): Properties by which team member connections can be ordered. -type TeamMemberOrderField string - -// TeamMemberOrderField_LOGIN: Order team members by login. -const TeamMemberOrderField_LOGIN TeamMemberOrderField = "LOGIN" - -// TeamMemberOrderField_CREATED_AT: Order team members by creation time. -const TeamMemberOrderField_CREATED_AT TeamMemberOrderField = "CREATED_AT" - -// TeamMemberRole (ENUM): The possible team member roles; either 'maintainer' or 'member'. -type TeamMemberRole string - -// TeamMemberRole_MAINTAINER: A team maintainer has permission to add and remove team members. -const TeamMemberRole_MAINTAINER TeamMemberRole = "MAINTAINER" - -// TeamMemberRole_MEMBER: A team member has no administrative permissions on the team. -const TeamMemberRole_MEMBER TeamMemberRole = "MEMBER" - -// TeamMembershipType (ENUM): Defines which types of team members are included in the returned list. Can be one of IMMEDIATE, CHILD_TEAM or ALL. -type TeamMembershipType string - -// TeamMembershipType_IMMEDIATE: Includes only immediate members of the team. -const TeamMembershipType_IMMEDIATE TeamMembershipType = "IMMEDIATE" - -// TeamMembershipType_CHILD_TEAM: Includes only child team members for the team. -const TeamMembershipType_CHILD_TEAM TeamMembershipType = "CHILD_TEAM" - -// TeamMembershipType_ALL: Includes immediate and child team members for the team. -const TeamMembershipType_ALL TeamMembershipType = "ALL" - -// TeamOrder (INPUT_OBJECT): Ways in which team connections can be ordered. -type TeamOrder struct { - // Field: The field in which to order nodes by. - // - // GraphQL type: TeamOrderField! - Field TeamOrderField `json:"field,omitempty"` - - // Direction: The direction in which to order nodes. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// TeamOrderField (ENUM): Properties by which team connections can be ordered. -type TeamOrderField string - -// TeamOrderField_NAME: Allows ordering a list of teams by name. -const TeamOrderField_NAME TeamOrderField = "NAME" - -// TeamPrivacy (ENUM): The possible team privacy values. -type TeamPrivacy string - -// TeamPrivacy_SECRET: A secret team can only be seen by its members. -const TeamPrivacy_SECRET TeamPrivacy = "SECRET" - -// TeamPrivacy_VISIBLE: A visible team can be seen and @mentioned by every member of the organization. -const TeamPrivacy_VISIBLE TeamPrivacy = "VISIBLE" - -// TeamRemoveMemberAuditEntry (OBJECT): Audit log entry for a team.remove_member event. -type TeamRemoveMemberAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsLdapMapped: Whether the team was mapped to an LDAP Group. - IsLdapMapped bool `json:"isLdapMapped,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Team: The team associated with the action. - Team *Team `json:"team,omitempty"` - - // TeamName: The name of the team. - TeamName string `json:"teamName,omitempty"` - - // TeamResourcePath: The HTTP path for this team. - TeamResourcePath URI `json:"teamResourcePath,omitempty"` - - // TeamUrl: The HTTP URL for this team. - TeamUrl URI `json:"teamUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *TeamRemoveMemberAuditEntry) GetAction() string { return x.Action } -func (x *TeamRemoveMemberAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *TeamRemoveMemberAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *TeamRemoveMemberAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *TeamRemoveMemberAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *TeamRemoveMemberAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *TeamRemoveMemberAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *TeamRemoveMemberAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *TeamRemoveMemberAuditEntry) GetId() ID { return x.Id } -func (x *TeamRemoveMemberAuditEntry) GetIsLdapMapped() bool { return x.IsLdapMapped } -func (x *TeamRemoveMemberAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *TeamRemoveMemberAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *TeamRemoveMemberAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *TeamRemoveMemberAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *TeamRemoveMemberAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *TeamRemoveMemberAuditEntry) GetTeam() *Team { return x.Team } -func (x *TeamRemoveMemberAuditEntry) GetTeamName() string { return x.TeamName } -func (x *TeamRemoveMemberAuditEntry) GetTeamResourcePath() URI { return x.TeamResourcePath } -func (x *TeamRemoveMemberAuditEntry) GetTeamUrl() URI { return x.TeamUrl } -func (x *TeamRemoveMemberAuditEntry) GetUser() *User { return x.User } -func (x *TeamRemoveMemberAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *TeamRemoveMemberAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *TeamRemoveMemberAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// TeamRemoveRepositoryAuditEntry (OBJECT): Audit log entry for a team.remove_repository event. -type TeamRemoveRepositoryAuditEntry struct { - // Action: The action name. - Action string `json:"action,omitempty"` - - // Actor: The user who initiated the action. - Actor AuditEntryActor `json:"actor,omitempty"` - - // ActorIp: The IP address of the actor. - ActorIp string `json:"actorIp,omitempty"` - - // ActorLocation: A readable representation of the actor's location. - ActorLocation *ActorLocation `json:"actorLocation,omitempty"` - - // ActorLogin: The username of the user who initiated the action. - ActorLogin string `json:"actorLogin,omitempty"` - - // ActorResourcePath: The HTTP path for the actor. - ActorResourcePath URI `json:"actorResourcePath,omitempty"` - - // ActorUrl: The HTTP URL for the actor. - ActorUrl URI `json:"actorUrl,omitempty"` - - // CreatedAt: The time the action was initiated. - CreatedAt PreciseDateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsLdapMapped: Whether the team was mapped to an LDAP Group. - IsLdapMapped bool `json:"isLdapMapped,omitempty"` - - // OperationType: The corresponding operation type for the action. - OperationType OperationType `json:"operationType,omitempty"` - - // Organization: The Organization associated with the Audit Entry. - Organization *Organization `json:"organization,omitempty"` - - // OrganizationName: The name of the Organization. - OrganizationName string `json:"organizationName,omitempty"` - - // OrganizationResourcePath: The HTTP path for the organization. - OrganizationResourcePath URI `json:"organizationResourcePath,omitempty"` - - // OrganizationUrl: The HTTP URL for the organization. - OrganizationUrl URI `json:"organizationUrl,omitempty"` - - // Repository: The repository associated with the action. - Repository *Repository `json:"repository,omitempty"` - - // RepositoryName: The name of the repository. - RepositoryName string `json:"repositoryName,omitempty"` - - // RepositoryResourcePath: The HTTP path for the repository. - RepositoryResourcePath URI `json:"repositoryResourcePath,omitempty"` - - // RepositoryUrl: The HTTP URL for the repository. - RepositoryUrl URI `json:"repositoryUrl,omitempty"` - - // Team: The team associated with the action. - Team *Team `json:"team,omitempty"` - - // TeamName: The name of the team. - TeamName string `json:"teamName,omitempty"` - - // TeamResourcePath: The HTTP path for this team. - TeamResourcePath URI `json:"teamResourcePath,omitempty"` - - // TeamUrl: The HTTP URL for this team. - TeamUrl URI `json:"teamUrl,omitempty"` - - // User: The user affected by the action. - User *User `json:"user,omitempty"` - - // UserLogin: For actions involving two users, the actor is the initiator and the user is the affected user. - UserLogin string `json:"userLogin,omitempty"` - - // UserResourcePath: The HTTP path for the user. - UserResourcePath URI `json:"userResourcePath,omitempty"` - - // UserUrl: The HTTP URL for the user. - UserUrl URI `json:"userUrl,omitempty"` -} - -func (x *TeamRemoveRepositoryAuditEntry) GetAction() string { return x.Action } -func (x *TeamRemoveRepositoryAuditEntry) GetActor() AuditEntryActor { return x.Actor } -func (x *TeamRemoveRepositoryAuditEntry) GetActorIp() string { return x.ActorIp } -func (x *TeamRemoveRepositoryAuditEntry) GetActorLocation() *ActorLocation { return x.ActorLocation } -func (x *TeamRemoveRepositoryAuditEntry) GetActorLogin() string { return x.ActorLogin } -func (x *TeamRemoveRepositoryAuditEntry) GetActorResourcePath() URI { return x.ActorResourcePath } -func (x *TeamRemoveRepositoryAuditEntry) GetActorUrl() URI { return x.ActorUrl } -func (x *TeamRemoveRepositoryAuditEntry) GetCreatedAt() PreciseDateTime { return x.CreatedAt } -func (x *TeamRemoveRepositoryAuditEntry) GetId() ID { return x.Id } -func (x *TeamRemoveRepositoryAuditEntry) GetIsLdapMapped() bool { return x.IsLdapMapped } -func (x *TeamRemoveRepositoryAuditEntry) GetOperationType() OperationType { return x.OperationType } -func (x *TeamRemoveRepositoryAuditEntry) GetOrganization() *Organization { return x.Organization } -func (x *TeamRemoveRepositoryAuditEntry) GetOrganizationName() string { return x.OrganizationName } -func (x *TeamRemoveRepositoryAuditEntry) GetOrganizationResourcePath() URI { - return x.OrganizationResourcePath -} -func (x *TeamRemoveRepositoryAuditEntry) GetOrganizationUrl() URI { return x.OrganizationUrl } -func (x *TeamRemoveRepositoryAuditEntry) GetRepository() *Repository { return x.Repository } -func (x *TeamRemoveRepositoryAuditEntry) GetRepositoryName() string { return x.RepositoryName } -func (x *TeamRemoveRepositoryAuditEntry) GetRepositoryResourcePath() URI { - return x.RepositoryResourcePath -} -func (x *TeamRemoveRepositoryAuditEntry) GetRepositoryUrl() URI { return x.RepositoryUrl } -func (x *TeamRemoveRepositoryAuditEntry) GetTeam() *Team { return x.Team } -func (x *TeamRemoveRepositoryAuditEntry) GetTeamName() string { return x.TeamName } -func (x *TeamRemoveRepositoryAuditEntry) GetTeamResourcePath() URI { return x.TeamResourcePath } -func (x *TeamRemoveRepositoryAuditEntry) GetTeamUrl() URI { return x.TeamUrl } -func (x *TeamRemoveRepositoryAuditEntry) GetUser() *User { return x.User } -func (x *TeamRemoveRepositoryAuditEntry) GetUserLogin() string { return x.UserLogin } -func (x *TeamRemoveRepositoryAuditEntry) GetUserResourcePath() URI { return x.UserResourcePath } -func (x *TeamRemoveRepositoryAuditEntry) GetUserUrl() URI { return x.UserUrl } - -// TeamRepositoryConnection (OBJECT): The connection type for Repository. -type TeamRepositoryConnection struct { - // Edges: A list of edges. - Edges []*TeamRepositoryEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*Repository `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *TeamRepositoryConnection) GetEdges() []*TeamRepositoryEdge { return x.Edges } -func (x *TeamRepositoryConnection) GetNodes() []*Repository { return x.Nodes } -func (x *TeamRepositoryConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *TeamRepositoryConnection) GetTotalCount() int { return x.TotalCount } - -// TeamRepositoryEdge (OBJECT): Represents a team repository. -type TeamRepositoryEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: undocumented. - Node *Repository `json:"node,omitempty"` - - // Permission: The permission level the team has on the repository. - Permission RepositoryPermission `json:"permission,omitempty"` -} - -func (x *TeamRepositoryEdge) GetCursor() string { return x.Cursor } -func (x *TeamRepositoryEdge) GetNode() *Repository { return x.Node } -func (x *TeamRepositoryEdge) GetPermission() RepositoryPermission { return x.Permission } - -// TeamRepositoryOrder (INPUT_OBJECT): Ordering options for team repository connections. -type TeamRepositoryOrder struct { - // Field: The field to order repositories by. - // - // GraphQL type: TeamRepositoryOrderField! - Field TeamRepositoryOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// TeamRepositoryOrderField (ENUM): Properties by which team repository connections can be ordered. -type TeamRepositoryOrderField string - -// TeamRepositoryOrderField_CREATED_AT: Order repositories by creation time. -const TeamRepositoryOrderField_CREATED_AT TeamRepositoryOrderField = "CREATED_AT" - -// TeamRepositoryOrderField_UPDATED_AT: Order repositories by update time. -const TeamRepositoryOrderField_UPDATED_AT TeamRepositoryOrderField = "UPDATED_AT" - -// TeamRepositoryOrderField_PUSHED_AT: Order repositories by push time. -const TeamRepositoryOrderField_PUSHED_AT TeamRepositoryOrderField = "PUSHED_AT" - -// TeamRepositoryOrderField_NAME: Order repositories by name. -const TeamRepositoryOrderField_NAME TeamRepositoryOrderField = "NAME" - -// TeamRepositoryOrderField_PERMISSION: Order repositories by permission. -const TeamRepositoryOrderField_PERMISSION TeamRepositoryOrderField = "PERMISSION" - -// TeamRepositoryOrderField_STARGAZERS: Order repositories by number of stargazers. -const TeamRepositoryOrderField_STARGAZERS TeamRepositoryOrderField = "STARGAZERS" - -// TeamRole (ENUM): The role of a user on a team. -type TeamRole string - -// TeamRole_ADMIN: User has admin rights on the team. -const TeamRole_ADMIN TeamRole = "ADMIN" - -// TeamRole_MEMBER: User is a member of the team. -const TeamRole_MEMBER TeamRole = "MEMBER" - -// TextMatch (OBJECT): A text match within a search result. -type TextMatch struct { - // Fragment: The specific text fragment within the property matched on. - Fragment string `json:"fragment,omitempty"` - - // Highlights: Highlights within the matched fragment. - Highlights []*TextMatchHighlight `json:"highlights,omitempty"` - - // Property: The property matched on. - Property string `json:"property,omitempty"` -} - -func (x *TextMatch) GetFragment() string { return x.Fragment } -func (x *TextMatch) GetHighlights() []*TextMatchHighlight { return x.Highlights } -func (x *TextMatch) GetProperty() string { return x.Property } - -// TextMatchHighlight (OBJECT): Represents a single highlight in a search result match. -type TextMatchHighlight struct { - // BeginIndice: The indice in the fragment where the matched text begins. - BeginIndice int `json:"beginIndice,omitempty"` - - // EndIndice: The indice in the fragment where the matched text ends. - EndIndice int `json:"endIndice,omitempty"` - - // Text: The text matched. - Text string `json:"text,omitempty"` -} - -func (x *TextMatchHighlight) GetBeginIndice() int { return x.BeginIndice } -func (x *TextMatchHighlight) GetEndIndice() int { return x.EndIndice } -func (x *TextMatchHighlight) GetText() string { return x.Text } - -// Topic (OBJECT): A topic aggregates entities that are related to a subject. -type Topic struct { - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The topic's name. - Name string `json:"name,omitempty"` - - // RelatedTopics: A list of related topics, including aliases of this topic, sorted with the most relevant - // first. Returns up to 10 Topics. - // . - // - // Query arguments: - // - first Int - RelatedTopics []*Topic `json:"relatedTopics,omitempty"` - - // Repositories: A list of repositories. - // - // Query arguments: - // - privacy RepositoryPrivacy - // - orderBy RepositoryOrder - // - affiliations [RepositoryAffiliation] - // - ownerAffiliations [RepositoryAffiliation] - // - isLocked Boolean - // - after String - // - before String - // - first Int - // - last Int - // - sponsorableOnly Boolean - Repositories *RepositoryConnection `json:"repositories,omitempty"` - - // StargazerCount: Returns a count of how many stargazers there are on this object - // . - StargazerCount int `json:"stargazerCount,omitempty"` - - // Stargazers: A list of users who have starred this starrable. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy StarOrder - Stargazers *StargazerConnection `json:"stargazers,omitempty"` - - // ViewerHasStarred: Returns a boolean indicating whether the viewing user has starred this starrable. - ViewerHasStarred bool `json:"viewerHasStarred,omitempty"` -} - -func (x *Topic) GetId() ID { return x.Id } -func (x *Topic) GetName() string { return x.Name } -func (x *Topic) GetRelatedTopics() []*Topic { return x.RelatedTopics } -func (x *Topic) GetRepositories() *RepositoryConnection { return x.Repositories } -func (x *Topic) GetStargazerCount() int { return x.StargazerCount } -func (x *Topic) GetStargazers() *StargazerConnection { return x.Stargazers } -func (x *Topic) GetViewerHasStarred() bool { return x.ViewerHasStarred } - -// TopicAuditEntryData (INTERFACE): Metadata for an audit entry with a topic. -// TopicAuditEntryData_Interface: Metadata for an audit entry with a topic. -// -// Possible types: -// -// - *RepoAddTopicAuditEntry -// - *RepoRemoveTopicAuditEntry -type TopicAuditEntryData_Interface interface { - isTopicAuditEntryData() - GetTopic() *Topic - GetTopicName() string -} - -func (*RepoAddTopicAuditEntry) isTopicAuditEntryData() {} -func (*RepoRemoveTopicAuditEntry) isTopicAuditEntryData() {} - -type TopicAuditEntryData struct { - Interface TopicAuditEntryData_Interface -} - -func (x *TopicAuditEntryData) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *TopicAuditEntryData) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for TopicAuditEntryData", info.Typename) - case "RepoAddTopicAuditEntry": - x.Interface = new(RepoAddTopicAuditEntry) - case "RepoRemoveTopicAuditEntry": - x.Interface = new(RepoRemoveTopicAuditEntry) - } - return json.Unmarshal(js, x.Interface) -} - -// TopicSuggestionDeclineReason (ENUM): Reason that the suggested topic is declined. -type TopicSuggestionDeclineReason string - -// TopicSuggestionDeclineReason_NOT_RELEVANT: The suggested topic is not relevant to the repository. -const TopicSuggestionDeclineReason_NOT_RELEVANT TopicSuggestionDeclineReason = "NOT_RELEVANT" - -// TopicSuggestionDeclineReason_TOO_SPECIFIC: The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1). -const TopicSuggestionDeclineReason_TOO_SPECIFIC TopicSuggestionDeclineReason = "TOO_SPECIFIC" - -// TopicSuggestionDeclineReason_PERSONAL_PREFERENCE: The viewer does not like the suggested topic. -const TopicSuggestionDeclineReason_PERSONAL_PREFERENCE TopicSuggestionDeclineReason = "PERSONAL_PREFERENCE" - -// TopicSuggestionDeclineReason_TOO_GENERAL: The suggested topic is too general for the repository. -const TopicSuggestionDeclineReason_TOO_GENERAL TopicSuggestionDeclineReason = "TOO_GENERAL" - -// TrackedIssueStates (ENUM): The possible states of a tracked issue. -type TrackedIssueStates string - -// TrackedIssueStates_OPEN: The tracked issue is open. -const TrackedIssueStates_OPEN TrackedIssueStates = "OPEN" - -// TrackedIssueStates_CLOSED: The tracked issue is closed. -const TrackedIssueStates_CLOSED TrackedIssueStates = "CLOSED" - -// TransferIssueInput (INPUT_OBJECT): Autogenerated input type of TransferIssue. -type TransferIssueInput struct { - // IssueId: The Node ID of the issue to be transferred. - // - // GraphQL type: ID! - IssueId ID `json:"issueId,omitempty"` - - // RepositoryId: The Node ID of the repository the issue should be transferred to. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// TransferIssuePayload (OBJECT): Autogenerated return type of TransferIssue. -type TransferIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Issue: The issue that was transferred. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *TransferIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *TransferIssuePayload) GetIssue() *Issue { return x.Issue } - -// TransferredEvent (OBJECT): Represents a 'transferred' event on a given issue or pull request. -type TransferredEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // FromRepository: The repository this came from. - FromRepository *Repository `json:"fromRepository,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Issue: Identifies the issue associated with the event. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *TransferredEvent) GetActor() Actor { return x.Actor } -func (x *TransferredEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *TransferredEvent) GetFromRepository() *Repository { return x.FromRepository } -func (x *TransferredEvent) GetId() ID { return x.Id } -func (x *TransferredEvent) GetIssue() *Issue { return x.Issue } - -// Tree (OBJECT): Represents a Git tree. -type Tree struct { - // AbbreviatedOid: An abbreviated version of the Git object ID. - AbbreviatedOid string `json:"abbreviatedOid,omitempty"` - - // CommitResourcePath: The HTTP path for this Git object. - CommitResourcePath URI `json:"commitResourcePath,omitempty"` - - // CommitUrl: The HTTP URL for this Git object. - CommitUrl URI `json:"commitUrl,omitempty"` - - // Entries: A list of tree entries. - Entries []*TreeEntry `json:"entries,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Oid: The Git object ID. - Oid GitObjectID `json:"oid,omitempty"` - - // Repository: The Repository the Git object belongs to. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *Tree) GetAbbreviatedOid() string { return x.AbbreviatedOid } -func (x *Tree) GetCommitResourcePath() URI { return x.CommitResourcePath } -func (x *Tree) GetCommitUrl() URI { return x.CommitUrl } -func (x *Tree) GetEntries() []*TreeEntry { return x.Entries } -func (x *Tree) GetId() ID { return x.Id } -func (x *Tree) GetOid() GitObjectID { return x.Oid } -func (x *Tree) GetRepository() *Repository { return x.Repository } - -// TreeEntry (OBJECT): Represents a Git tree entry. -type TreeEntry struct { - // Extension: The extension of the file. - Extension string `json:"extension,omitempty"` - - // IsGenerated: Whether or not this tree entry is generated. - IsGenerated bool `json:"isGenerated,omitempty"` - - // LineCount: Number of lines in the file. - LineCount int `json:"lineCount,omitempty"` - - // Mode: Entry file mode. - Mode int `json:"mode,omitempty"` - - // Name: Entry file name. - Name string `json:"name,omitempty"` - - // Object: Entry file object. - Object GitObject `json:"object,omitempty"` - - // Oid: Entry file Git object ID. - Oid GitObjectID `json:"oid,omitempty"` - - // Path: The full path of the file. - Path string `json:"path,omitempty"` - - // Repository: The Repository the tree entry belongs to. - Repository *Repository `json:"repository,omitempty"` - - // Size: Entry byte size. - Size int `json:"size,omitempty"` - - // Submodule: If the TreeEntry is for a directory occupied by a submodule project, this returns the corresponding submodule. - Submodule *Submodule `json:"submodule,omitempty"` - - // Type: Entry file type. - Type string `json:"type,omitempty"` -} - -func (x *TreeEntry) GetExtension() string { return x.Extension } -func (x *TreeEntry) GetIsGenerated() bool { return x.IsGenerated } -func (x *TreeEntry) GetLineCount() int { return x.LineCount } -func (x *TreeEntry) GetMode() int { return x.Mode } -func (x *TreeEntry) GetName() string { return x.Name } -func (x *TreeEntry) GetObject() GitObject { return x.Object } -func (x *TreeEntry) GetOid() GitObjectID { return x.Oid } -func (x *TreeEntry) GetPath() string { return x.Path } -func (x *TreeEntry) GetRepository() *Repository { return x.Repository } -func (x *TreeEntry) GetSize() int { return x.Size } -func (x *TreeEntry) GetSubmodule() *Submodule { return x.Submodule } -func (x *TreeEntry) GetType() string { return x.Type } - -// URI (SCALAR): An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string. -type URI string - -// UnarchiveRepositoryInput (INPUT_OBJECT): Autogenerated input type of UnarchiveRepository. -type UnarchiveRepositoryInput struct { - // RepositoryId: The ID of the repository to unarchive. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnarchiveRepositoryPayload (OBJECT): Autogenerated return type of UnarchiveRepository. -type UnarchiveRepositoryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The repository that was unarchived. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *UnarchiveRepositoryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnarchiveRepositoryPayload) GetRepository() *Repository { return x.Repository } - -// UnassignedEvent (OBJECT): Represents an 'unassigned' event on any assignable object. -type UnassignedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // Assignable: Identifies the assignable associated with the event. - Assignable Assignable `json:"assignable,omitempty"` - - // Assignee: Identifies the user or mannequin that was unassigned. - Assignee Assignee `json:"assignee,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // User: Identifies the subject (user) who was unassigned. - // - // Deprecated: Identifies the subject (user) who was unassigned. - User *User `json:"user,omitempty"` -} - -func (x *UnassignedEvent) GetActor() Actor { return x.Actor } -func (x *UnassignedEvent) GetAssignable() Assignable { return x.Assignable } -func (x *UnassignedEvent) GetAssignee() Assignee { return x.Assignee } -func (x *UnassignedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UnassignedEvent) GetId() ID { return x.Id } -func (x *UnassignedEvent) GetUser() *User { return x.User } - -// UnfollowOrganizationInput (INPUT_OBJECT): Autogenerated input type of UnfollowOrganization. -type UnfollowOrganizationInput struct { - // OrganizationId: ID of the organization to unfollow. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnfollowOrganizationPayload (OBJECT): Autogenerated return type of UnfollowOrganization. -type UnfollowOrganizationPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Organization: The organization that was unfollowed. - Organization *Organization `json:"organization,omitempty"` -} - -func (x *UnfollowOrganizationPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnfollowOrganizationPayload) GetOrganization() *Organization { return x.Organization } - -// UnfollowUserInput (INPUT_OBJECT): Autogenerated input type of UnfollowUser. -type UnfollowUserInput struct { - // UserId: ID of the user to unfollow. - // - // GraphQL type: ID! - UserId ID `json:"userId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnfollowUserPayload (OBJECT): Autogenerated return type of UnfollowUser. -type UnfollowUserPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // User: The user that was unfollowed. - User *User `json:"user,omitempty"` -} - -func (x *UnfollowUserPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnfollowUserPayload) GetUser() *User { return x.User } - -// UniformResourceLocatable (INTERFACE): Represents a type that can be retrieved by a URL. -// UniformResourceLocatable_Interface: Represents a type that can be retrieved by a URL. -// -// Possible types: -// -// - *Bot -// - *CheckRun -// - *ClosedEvent -// - *Commit -// - *ConvertToDraftEvent -// - *CrossReferencedEvent -// - *Gist -// - *Issue -// - *Mannequin -// - *MergedEvent -// - *Milestone -// - *Organization -// - *PullRequest -// - *PullRequestCommit -// - *ReadyForReviewEvent -// - *Release -// - *Repository -// - *RepositoryTopic -// - *ReviewDismissedEvent -// - *TeamDiscussion -// - *TeamDiscussionComment -// - *User -type UniformResourceLocatable_Interface interface { - isUniformResourceLocatable() - GetResourcePath() URI - GetUrl() URI -} - -func (*Bot) isUniformResourceLocatable() {} -func (*CheckRun) isUniformResourceLocatable() {} -func (*ClosedEvent) isUniformResourceLocatable() {} -func (*Commit) isUniformResourceLocatable() {} -func (*ConvertToDraftEvent) isUniformResourceLocatable() {} -func (*CrossReferencedEvent) isUniformResourceLocatable() {} -func (*Gist) isUniformResourceLocatable() {} -func (*Issue) isUniformResourceLocatable() {} -func (*Mannequin) isUniformResourceLocatable() {} -func (*MergedEvent) isUniformResourceLocatable() {} -func (*Milestone) isUniformResourceLocatable() {} -func (*Organization) isUniformResourceLocatable() {} -func (*PullRequest) isUniformResourceLocatable() {} -func (*PullRequestCommit) isUniformResourceLocatable() {} -func (*ReadyForReviewEvent) isUniformResourceLocatable() {} -func (*Release) isUniformResourceLocatable() {} -func (*Repository) isUniformResourceLocatable() {} -func (*RepositoryTopic) isUniformResourceLocatable() {} -func (*ReviewDismissedEvent) isUniformResourceLocatable() {} -func (*TeamDiscussion) isUniformResourceLocatable() {} -func (*TeamDiscussionComment) isUniformResourceLocatable() {} -func (*User) isUniformResourceLocatable() {} - -type UniformResourceLocatable struct { - Interface UniformResourceLocatable_Interface -} - -func (x *UniformResourceLocatable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *UniformResourceLocatable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for UniformResourceLocatable", info.Typename) - case "Bot": - x.Interface = new(Bot) - case "CheckRun": - x.Interface = new(CheckRun) - case "ClosedEvent": - x.Interface = new(ClosedEvent) - case "Commit": - x.Interface = new(Commit) - case "ConvertToDraftEvent": - x.Interface = new(ConvertToDraftEvent) - case "CrossReferencedEvent": - x.Interface = new(CrossReferencedEvent) - case "Gist": - x.Interface = new(Gist) - case "Issue": - x.Interface = new(Issue) - case "Mannequin": - x.Interface = new(Mannequin) - case "MergedEvent": - x.Interface = new(MergedEvent) - case "Milestone": - x.Interface = new(Milestone) - case "Organization": - x.Interface = new(Organization) - case "PullRequest": - x.Interface = new(PullRequest) - case "PullRequestCommit": - x.Interface = new(PullRequestCommit) - case "ReadyForReviewEvent": - x.Interface = new(ReadyForReviewEvent) - case "Release": - x.Interface = new(Release) - case "Repository": - x.Interface = new(Repository) - case "RepositoryTopic": - x.Interface = new(RepositoryTopic) - case "ReviewDismissedEvent": - x.Interface = new(ReviewDismissedEvent) - case "TeamDiscussion": - x.Interface = new(TeamDiscussion) - case "TeamDiscussionComment": - x.Interface = new(TeamDiscussionComment) - case "User": - x.Interface = new(User) - } - return json.Unmarshal(js, x.Interface) -} - -// UnknownSignature (OBJECT): Represents an unknown signature on a Commit or Tag. -type UnknownSignature struct { - // Email: Email used to sign this object. - Email string `json:"email,omitempty"` - - // IsValid: True if the signature is valid and verified by GitHub. - IsValid bool `json:"isValid,omitempty"` - - // Payload: Payload for GPG signing object. Raw ODB object without the signature header. - Payload string `json:"payload,omitempty"` - - // Signature: ASCII-armored signature header from object. - Signature string `json:"signature,omitempty"` - - // Signer: GitHub user corresponding to the email signing this commit. - Signer *User `json:"signer,omitempty"` - - // State: The state of this signature. `VALID` if signature is valid and verified by GitHub, otherwise represents reason why signature is considered invalid. - State GitSignatureState `json:"state,omitempty"` - - // WasSignedByGitHub: True if the signature was made with GitHub's signing key. - WasSignedByGitHub bool `json:"wasSignedByGitHub,omitempty"` -} - -func (x *UnknownSignature) GetEmail() string { return x.Email } -func (x *UnknownSignature) GetIsValid() bool { return x.IsValid } -func (x *UnknownSignature) GetPayload() string { return x.Payload } -func (x *UnknownSignature) GetSignature() string { return x.Signature } -func (x *UnknownSignature) GetSigner() *User { return x.Signer } -func (x *UnknownSignature) GetState() GitSignatureState { return x.State } -func (x *UnknownSignature) GetWasSignedByGitHub() bool { return x.WasSignedByGitHub } - -// UnlabeledEvent (OBJECT): Represents an 'unlabeled' event on a given issue or pull request. -type UnlabeledEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Label: Identifies the label associated with the 'unlabeled' event. - Label *Label `json:"label,omitempty"` - - // Labelable: Identifies the `Labelable` associated with the event. - Labelable Labelable `json:"labelable,omitempty"` -} - -func (x *UnlabeledEvent) GetActor() Actor { return x.Actor } -func (x *UnlabeledEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UnlabeledEvent) GetId() ID { return x.Id } -func (x *UnlabeledEvent) GetLabel() *Label { return x.Label } -func (x *UnlabeledEvent) GetLabelable() Labelable { return x.Labelable } - -// UnlinkRepositoryFromProjectInput (INPUT_OBJECT): Autogenerated input type of UnlinkRepositoryFromProject. -type UnlinkRepositoryFromProjectInput struct { - // ProjectId: The ID of the Project linked to the Repository. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // RepositoryId: The ID of the Repository linked to the Project. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnlinkRepositoryFromProjectPayload (OBJECT): Autogenerated return type of UnlinkRepositoryFromProject. -type UnlinkRepositoryFromProjectPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Project: The linked Project. - Project *Project `json:"project,omitempty"` - - // Repository: The linked Repository. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *UnlinkRepositoryFromProjectPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnlinkRepositoryFromProjectPayload) GetProject() *Project { return x.Project } -func (x *UnlinkRepositoryFromProjectPayload) GetRepository() *Repository { return x.Repository } - -// UnlockLockableInput (INPUT_OBJECT): Autogenerated input type of UnlockLockable. -type UnlockLockableInput struct { - // LockableId: ID of the item to be unlocked. - // - // GraphQL type: ID! - LockableId ID `json:"lockableId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnlockLockablePayload (OBJECT): Autogenerated return type of UnlockLockable. -type UnlockLockablePayload struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // UnlockedRecord: The item that was unlocked. - UnlockedRecord Lockable `json:"unlockedRecord,omitempty"` -} - -func (x *UnlockLockablePayload) GetActor() Actor { return x.Actor } -func (x *UnlockLockablePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnlockLockablePayload) GetUnlockedRecord() Lockable { return x.UnlockedRecord } - -// UnlockedEvent (OBJECT): Represents an 'unlocked' event on a given issue or pull request. -type UnlockedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Lockable: Object that was unlocked. - Lockable Lockable `json:"lockable,omitempty"` -} - -func (x *UnlockedEvent) GetActor() Actor { return x.Actor } -func (x *UnlockedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UnlockedEvent) GetId() ID { return x.Id } -func (x *UnlockedEvent) GetLockable() Lockable { return x.Lockable } - -// UnmarkDiscussionCommentAsAnswerInput (INPUT_OBJECT): Autogenerated input type of UnmarkDiscussionCommentAsAnswer. -type UnmarkDiscussionCommentAsAnswerInput struct { - // Id: The Node ID of the discussion comment to unmark as an answer. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnmarkDiscussionCommentAsAnswerPayload (OBJECT): Autogenerated return type of UnmarkDiscussionCommentAsAnswer. -type UnmarkDiscussionCommentAsAnswerPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Discussion: The discussion that includes the comment. - Discussion *Discussion `json:"discussion,omitempty"` -} - -func (x *UnmarkDiscussionCommentAsAnswerPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UnmarkDiscussionCommentAsAnswerPayload) GetDiscussion() *Discussion { return x.Discussion } - -// UnmarkFileAsViewedInput (INPUT_OBJECT): Autogenerated input type of UnmarkFileAsViewed. -type UnmarkFileAsViewedInput struct { - // PullRequestId: The Node ID of the pull request. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // Path: The path of the file to mark as unviewed. - // - // GraphQL type: String! - Path string `json:"path,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnmarkFileAsViewedPayload (OBJECT): Autogenerated return type of UnmarkFileAsViewed. -type UnmarkFileAsViewedPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The updated pull request. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *UnmarkFileAsViewedPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnmarkFileAsViewedPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// UnmarkIssueAsDuplicateInput (INPUT_OBJECT): Autogenerated input type of UnmarkIssueAsDuplicate. -type UnmarkIssueAsDuplicateInput struct { - // DuplicateId: ID of the issue or pull request currently marked as a duplicate. - // - // GraphQL type: ID! - DuplicateId ID `json:"duplicateId,omitempty"` - - // CanonicalId: ID of the issue or pull request currently considered canonical/authoritative/original. - // - // GraphQL type: ID! - CanonicalId ID `json:"canonicalId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnmarkIssueAsDuplicatePayload (OBJECT): Autogenerated return type of UnmarkIssueAsDuplicate. -type UnmarkIssueAsDuplicatePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Duplicate: The issue or pull request that was marked as a duplicate. - Duplicate IssueOrPullRequest `json:"duplicate,omitempty"` -} - -func (x *UnmarkIssueAsDuplicatePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnmarkIssueAsDuplicatePayload) GetDuplicate() IssueOrPullRequest { return x.Duplicate } - -// UnmarkedAsDuplicateEvent (OBJECT): Represents an 'unmarked_as_duplicate' event on a given issue or pull request. -type UnmarkedAsDuplicateEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // Canonical: The authoritative issue or pull request which has been duplicated by another. - Canonical IssueOrPullRequest `json:"canonical,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Duplicate: The issue or pull request which has been marked as a duplicate of another. - Duplicate IssueOrPullRequest `json:"duplicate,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsCrossRepository: Canonical and duplicate belong to different repositories. - IsCrossRepository bool `json:"isCrossRepository,omitempty"` -} - -func (x *UnmarkedAsDuplicateEvent) GetActor() Actor { return x.Actor } -func (x *UnmarkedAsDuplicateEvent) GetCanonical() IssueOrPullRequest { return x.Canonical } -func (x *UnmarkedAsDuplicateEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UnmarkedAsDuplicateEvent) GetDuplicate() IssueOrPullRequest { return x.Duplicate } -func (x *UnmarkedAsDuplicateEvent) GetId() ID { return x.Id } -func (x *UnmarkedAsDuplicateEvent) GetIsCrossRepository() bool { return x.IsCrossRepository } - -// UnminimizeCommentInput (INPUT_OBJECT): Autogenerated input type of UnminimizeComment. -type UnminimizeCommentInput struct { - // SubjectId: The Node ID of the subject to modify. - // - // GraphQL type: ID! - SubjectId ID `json:"subjectId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnminimizeCommentPayload (OBJECT): Autogenerated return type of UnminimizeComment. -type UnminimizeCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // UnminimizedComment: The comment that was unminimized. - UnminimizedComment Minimizable `json:"unminimizedComment,omitempty"` -} - -func (x *UnminimizeCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnminimizeCommentPayload) GetUnminimizedComment() Minimizable { return x.UnminimizedComment } - -// UnpinIssueInput (INPUT_OBJECT): Autogenerated input type of UnpinIssue. -type UnpinIssueInput struct { - // IssueId: The ID of the issue to be unpinned. - // - // GraphQL type: ID! - IssueId ID `json:"issueId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnpinIssuePayload (OBJECT): Autogenerated return type of UnpinIssue. -type UnpinIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Issue: The issue that was unpinned. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *UnpinIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnpinIssuePayload) GetIssue() *Issue { return x.Issue } - -// UnpinnedEvent (OBJECT): Represents an 'unpinned' event on a given issue or pull request. -type UnpinnedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Issue: Identifies the issue associated with the event. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *UnpinnedEvent) GetActor() Actor { return x.Actor } -func (x *UnpinnedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UnpinnedEvent) GetId() ID { return x.Id } -func (x *UnpinnedEvent) GetIssue() *Issue { return x.Issue } - -// UnresolveReviewThreadInput (INPUT_OBJECT): Autogenerated input type of UnresolveReviewThread. -type UnresolveReviewThreadInput struct { - // ThreadId: The ID of the thread to unresolve. - // - // GraphQL type: ID! - ThreadId ID `json:"threadId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UnresolveReviewThreadPayload (OBJECT): Autogenerated return type of UnresolveReviewThread. -type UnresolveReviewThreadPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Thread: The thread to resolve. - Thread *PullRequestReviewThread `json:"thread,omitempty"` -} - -func (x *UnresolveReviewThreadPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UnresolveReviewThreadPayload) GetThread() *PullRequestReviewThread { return x.Thread } - -// UnsubscribedEvent (OBJECT): Represents an 'unsubscribed' event on a given `Subscribable`. -type UnsubscribedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Subscribable: Object referenced by event. - Subscribable Subscribable `json:"subscribable,omitempty"` -} - -func (x *UnsubscribedEvent) GetActor() Actor { return x.Actor } -func (x *UnsubscribedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UnsubscribedEvent) GetId() ID { return x.Id } -func (x *UnsubscribedEvent) GetSubscribable() Subscribable { return x.Subscribable } - -// Updatable (INTERFACE): Entities that can be updated. -// Updatable_Interface: Entities that can be updated. -// -// Possible types: -// -// - *CommitComment -// - *Discussion -// - *DiscussionComment -// - *GistComment -// - *Issue -// - *IssueComment -// - *Project -// - *ProjectNext -// - *ProjectV2 -// - *PullRequest -// - *PullRequestReview -// - *PullRequestReviewComment -// - *TeamDiscussion -// - *TeamDiscussionComment -type Updatable_Interface interface { - isUpdatable() - GetViewerCanUpdate() bool -} - -func (*CommitComment) isUpdatable() {} -func (*Discussion) isUpdatable() {} -func (*DiscussionComment) isUpdatable() {} -func (*GistComment) isUpdatable() {} -func (*Issue) isUpdatable() {} -func (*IssueComment) isUpdatable() {} -func (*Project) isUpdatable() {} -func (*ProjectNext) isUpdatable() {} -func (*ProjectV2) isUpdatable() {} -func (*PullRequest) isUpdatable() {} -func (*PullRequestReview) isUpdatable() {} -func (*PullRequestReviewComment) isUpdatable() {} -func (*TeamDiscussion) isUpdatable() {} -func (*TeamDiscussionComment) isUpdatable() {} - -type Updatable struct { - Interface Updatable_Interface -} - -func (x *Updatable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Updatable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Updatable", info.Typename) - case "CommitComment": - x.Interface = new(CommitComment) - case "Discussion": - x.Interface = new(Discussion) - case "DiscussionComment": - x.Interface = new(DiscussionComment) - case "GistComment": - x.Interface = new(GistComment) - case "Issue": - x.Interface = new(Issue) - case "IssueComment": - x.Interface = new(IssueComment) - case "Project": - x.Interface = new(Project) - case "ProjectNext": - x.Interface = new(ProjectNext) - case "ProjectV2": - x.Interface = new(ProjectV2) - case "PullRequest": - x.Interface = new(PullRequest) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - case "TeamDiscussion": - x.Interface = new(TeamDiscussion) - case "TeamDiscussionComment": - x.Interface = new(TeamDiscussionComment) - } - return json.Unmarshal(js, x.Interface) -} - -// UpdatableComment (INTERFACE): Comments that can be updated. -// UpdatableComment_Interface: Comments that can be updated. -// -// Possible types: -// -// - *CommitComment -// - *DiscussionComment -// - *GistComment -// - *Issue -// - *IssueComment -// - *PullRequest -// - *PullRequestReview -// - *PullRequestReviewComment -// - *TeamDiscussion -// - *TeamDiscussionComment -type UpdatableComment_Interface interface { - isUpdatableComment() - GetViewerCannotUpdateReasons() []CommentCannotUpdateReason -} - -func (*CommitComment) isUpdatableComment() {} -func (*DiscussionComment) isUpdatableComment() {} -func (*GistComment) isUpdatableComment() {} -func (*Issue) isUpdatableComment() {} -func (*IssueComment) isUpdatableComment() {} -func (*PullRequest) isUpdatableComment() {} -func (*PullRequestReview) isUpdatableComment() {} -func (*PullRequestReviewComment) isUpdatableComment() {} -func (*TeamDiscussion) isUpdatableComment() {} -func (*TeamDiscussionComment) isUpdatableComment() {} - -type UpdatableComment struct { - Interface UpdatableComment_Interface -} - -func (x *UpdatableComment) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *UpdatableComment) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for UpdatableComment", info.Typename) - case "CommitComment": - x.Interface = new(CommitComment) - case "DiscussionComment": - x.Interface = new(DiscussionComment) - case "GistComment": - x.Interface = new(GistComment) - case "Issue": - x.Interface = new(Issue) - case "IssueComment": - x.Interface = new(IssueComment) - case "PullRequest": - x.Interface = new(PullRequest) - case "PullRequestReview": - x.Interface = new(PullRequestReview) - case "PullRequestReviewComment": - x.Interface = new(PullRequestReviewComment) - case "TeamDiscussion": - x.Interface = new(TeamDiscussion) - case "TeamDiscussionComment": - x.Interface = new(TeamDiscussionComment) - } - return json.Unmarshal(js, x.Interface) -} - -// UpdateBranchProtectionRuleInput (INPUT_OBJECT): Autogenerated input type of UpdateBranchProtectionRule. -type UpdateBranchProtectionRuleInput struct { - // BranchProtectionRuleId: The global relay id of the branch protection rule to be updated. - // - // GraphQL type: ID! - BranchProtectionRuleId ID `json:"branchProtectionRuleId,omitempty"` - - // Pattern: The glob-like pattern used to determine matching branches. - // - // GraphQL type: String - Pattern string `json:"pattern,omitempty"` - - // RequiresApprovingReviews: Are approving reviews required to update matching branches. - // - // GraphQL type: Boolean - RequiresApprovingReviews bool `json:"requiresApprovingReviews,omitempty"` - - // RequiredApprovingReviewCount: Number of approving reviews required to update matching branches. - // - // GraphQL type: Int - RequiredApprovingReviewCount int `json:"requiredApprovingReviewCount,omitempty"` - - // RequiresCommitSignatures: Are commits required to be signed. - // - // GraphQL type: Boolean - RequiresCommitSignatures bool `json:"requiresCommitSignatures,omitempty"` - - // RequiresLinearHistory: Are merge commits prohibited from being pushed to this branch. - // - // GraphQL type: Boolean - RequiresLinearHistory bool `json:"requiresLinearHistory,omitempty"` - - // BlocksCreations: Is branch creation a protected operation. - // - // GraphQL type: Boolean - BlocksCreations bool `json:"blocksCreations,omitempty"` - - // AllowsForcePushes: Are force pushes allowed on this branch. - // - // GraphQL type: Boolean - AllowsForcePushes bool `json:"allowsForcePushes,omitempty"` - - // AllowsDeletions: Can this branch be deleted. - // - // GraphQL type: Boolean - AllowsDeletions bool `json:"allowsDeletions,omitempty"` - - // IsAdminEnforced: Can admins overwrite branch protection. - // - // GraphQL type: Boolean - IsAdminEnforced bool `json:"isAdminEnforced,omitempty"` - - // RequiresStatusChecks: Are status checks required to update matching branches. - // - // GraphQL type: Boolean - RequiresStatusChecks bool `json:"requiresStatusChecks,omitempty"` - - // RequiresStrictStatusChecks: Are branches required to be up to date before merging. - // - // GraphQL type: Boolean - RequiresStrictStatusChecks bool `json:"requiresStrictStatusChecks,omitempty"` - - // RequiresCodeOwnerReviews: Are reviews from code owners required to update matching branches. - // - // GraphQL type: Boolean - RequiresCodeOwnerReviews bool `json:"requiresCodeOwnerReviews,omitempty"` - - // DismissesStaleReviews: Will new commits pushed to matching branches dismiss pull request review approvals. - // - // GraphQL type: Boolean - DismissesStaleReviews bool `json:"dismissesStaleReviews,omitempty"` - - // RestrictsReviewDismissals: Is dismissal of pull request reviews restricted. - // - // GraphQL type: Boolean - RestrictsReviewDismissals bool `json:"restrictsReviewDismissals,omitempty"` - - // ReviewDismissalActorIds: A list of User, Team, or App IDs allowed to dismiss reviews on pull requests targeting matching branches. - // - // GraphQL type: [ID!] - ReviewDismissalActorIds []ID `json:"reviewDismissalActorIds,omitempty"` - - // BypassPullRequestActorIds: A list of User, Team, or App IDs allowed to bypass pull requests targeting matching branches. - // - // GraphQL type: [ID!] - BypassPullRequestActorIds []ID `json:"bypassPullRequestActorIds,omitempty"` - - // BypassForcePushActorIds: A list of User, Team, or App IDs allowed to bypass force push targeting matching branches. - // - // GraphQL type: [ID!] - BypassForcePushActorIds []ID `json:"bypassForcePushActorIds,omitempty"` - - // RestrictsPushes: Is pushing to matching branches restricted. - // - // GraphQL type: Boolean - RestrictsPushes bool `json:"restrictsPushes,omitempty"` - - // PushActorIds: A list of User, Team, or App IDs allowed to push to matching branches. - // - // GraphQL type: [ID!] - PushActorIds []ID `json:"pushActorIds,omitempty"` - - // RequiredStatusCheckContexts: List of required status check contexts that must pass for commits to be accepted to matching branches. - // - // GraphQL type: [String!] - RequiredStatusCheckContexts []string `json:"requiredStatusCheckContexts,omitempty"` - - // RequiredStatusChecks: The list of required status checks. - // - // GraphQL type: [RequiredStatusCheckInput!] - RequiredStatusChecks []*RequiredStatusCheckInput `json:"requiredStatusChecks,omitempty"` - - // RequiresConversationResolution: Are conversations required to be resolved before merging. - // - // GraphQL type: Boolean - RequiresConversationResolution bool `json:"requiresConversationResolution,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateBranchProtectionRulePayload (OBJECT): Autogenerated return type of UpdateBranchProtectionRule. -type UpdateBranchProtectionRulePayload struct { - // BranchProtectionRule: The newly created BranchProtectionRule. - BranchProtectionRule *BranchProtectionRule `json:"branchProtectionRule,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *UpdateBranchProtectionRulePayload) GetBranchProtectionRule() *BranchProtectionRule { - return x.BranchProtectionRule -} -func (x *UpdateBranchProtectionRulePayload) GetClientMutationId() string { return x.ClientMutationId } - -// UpdateCheckRunInput (INPUT_OBJECT): Autogenerated input type of UpdateCheckRun. -type UpdateCheckRunInput struct { - // RepositoryId: The node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // CheckRunId: The node of the check. - // - // GraphQL type: ID! - CheckRunId ID `json:"checkRunId,omitempty"` - - // Name: The name of the check. - // - // GraphQL type: String - Name string `json:"name,omitempty"` - - // DetailsUrl: The URL of the integrator's site that has the full details of the check. - // - // GraphQL type: URI - DetailsUrl URI `json:"detailsUrl,omitempty"` - - // ExternalId: A reference for the run on the integrator's system. - // - // GraphQL type: String - ExternalId string `json:"externalId,omitempty"` - - // Status: The current status. - // - // GraphQL type: RequestableCheckStatusState - Status RequestableCheckStatusState `json:"status,omitempty"` - - // StartedAt: The time that the check run began. - // - // GraphQL type: DateTime - StartedAt DateTime `json:"startedAt,omitempty"` - - // Conclusion: The final conclusion of the check. - // - // GraphQL type: CheckConclusionState - Conclusion CheckConclusionState `json:"conclusion,omitempty"` - - // CompletedAt: The time that the check run finished. - // - // GraphQL type: DateTime - CompletedAt DateTime `json:"completedAt,omitempty"` - - // Output: Descriptive details about the run. - // - // GraphQL type: CheckRunOutput - Output *CheckRunOutput `json:"output,omitempty"` - - // Actions: Possible further actions the integrator can perform, which a user may trigger. - // - // GraphQL type: [CheckRunAction!] - Actions []*CheckRunAction `json:"actions,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateCheckRunPayload (OBJECT): Autogenerated return type of UpdateCheckRun. -type UpdateCheckRunPayload struct { - // CheckRun: The updated check run. - CheckRun *CheckRun `json:"checkRun,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -func (x *UpdateCheckRunPayload) GetCheckRun() *CheckRun { return x.CheckRun } -func (x *UpdateCheckRunPayload) GetClientMutationId() string { return x.ClientMutationId } - -// UpdateCheckSuitePreferencesInput (INPUT_OBJECT): Autogenerated input type of UpdateCheckSuitePreferences. -type UpdateCheckSuitePreferencesInput struct { - // RepositoryId: The Node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // AutoTriggerPreferences: The check suite preferences to modify. - // - // GraphQL type: [CheckSuiteAutoTriggerPreference!]! - AutoTriggerPreferences []*CheckSuiteAutoTriggerPreference `json:"autoTriggerPreferences,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateCheckSuitePreferencesPayload (OBJECT): Autogenerated return type of UpdateCheckSuitePreferences. -type UpdateCheckSuitePreferencesPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The updated repository. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *UpdateCheckSuitePreferencesPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateCheckSuitePreferencesPayload) GetRepository() *Repository { return x.Repository } - -// UpdateDiscussionCommentInput (INPUT_OBJECT): Autogenerated input type of UpdateDiscussionComment. -type UpdateDiscussionCommentInput struct { - // CommentId: The Node ID of the discussion comment to update. - // - // GraphQL type: ID! - CommentId ID `json:"commentId,omitempty"` - - // Body: The new contents of the comment body. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateDiscussionCommentPayload (OBJECT): Autogenerated return type of UpdateDiscussionComment. -type UpdateDiscussionCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Comment: The modified discussion comment. - Comment *DiscussionComment `json:"comment,omitempty"` -} - -func (x *UpdateDiscussionCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateDiscussionCommentPayload) GetComment() *DiscussionComment { return x.Comment } - -// UpdateDiscussionInput (INPUT_OBJECT): Autogenerated input type of UpdateDiscussion. -type UpdateDiscussionInput struct { - // DiscussionId: The Node ID of the discussion to update. - // - // GraphQL type: ID! - DiscussionId ID `json:"discussionId,omitempty"` - - // Title: The new discussion title. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Body: The new contents of the discussion body. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // CategoryId: The Node ID of a discussion category within the same repository to change this discussion to. - // - // GraphQL type: ID - CategoryId ID `json:"categoryId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateDiscussionPayload (OBJECT): Autogenerated return type of UpdateDiscussion. -type UpdateDiscussionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Discussion: The modified discussion. - Discussion *Discussion `json:"discussion,omitempty"` -} - -func (x *UpdateDiscussionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateDiscussionPayload) GetDiscussion() *Discussion { return x.Discussion } - -// UpdateEnterpriseAdministratorRoleInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseAdministratorRole. -type UpdateEnterpriseAdministratorRoleInput struct { - // EnterpriseId: The ID of the Enterprise which the admin belongs to. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Login: The login of a administrator whose role is being changed. - // - // GraphQL type: String! - Login string `json:"login,omitempty"` - - // Role: The new role for the Enterprise administrator. - // - // GraphQL type: EnterpriseAdministratorRole! - Role EnterpriseAdministratorRole `json:"role,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseAdministratorRolePayload (OBJECT): Autogenerated return type of UpdateEnterpriseAdministratorRole. -type UpdateEnterpriseAdministratorRolePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Message: A message confirming the result of changing the administrator's role. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseAdministratorRolePayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseAdministratorRolePayload) GetMessage() string { return x.Message } - -// UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseAllowPrivateRepositoryForkingSetting. -type UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the allow private repository forking setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the allow private repository forking setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseAllowPrivateRepositoryForkingSetting. -type UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated allow private repository forking setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the allow private repository forking setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnterpriseDefaultRepositoryPermissionSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseDefaultRepositoryPermissionSetting. -type UpdateEnterpriseDefaultRepositoryPermissionSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the base repository permission setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the base repository permission setting on the enterprise. - // - // GraphQL type: EnterpriseDefaultRepositoryPermissionSettingValue! - SettingValue EnterpriseDefaultRepositoryPermissionSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseDefaultRepositoryPermissionSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseDefaultRepositoryPermissionSetting. -type UpdateEnterpriseDefaultRepositoryPermissionSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated base repository permission setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the base repository permission setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseDefaultRepositoryPermissionSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseDefaultRepositoryPermissionSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseDefaultRepositoryPermissionSettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting. -type UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the members can change repository visibility setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the members can change repository visibility setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting. -type UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated members can change repository visibility setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the members can change repository visibility setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnterpriseMembersCanCreateRepositoriesSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseMembersCanCreateRepositoriesSetting. -type UpdateEnterpriseMembersCanCreateRepositoriesSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the members can create repositories setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: Value for the members can create repositories setting on the enterprise. This or the granular public/private/internal allowed fields (but not both) must be provided. - // - // GraphQL type: EnterpriseMembersCanCreateRepositoriesSettingValue - SettingValue EnterpriseMembersCanCreateRepositoriesSettingValue `json:"settingValue,omitempty"` - - // MembersCanCreateRepositoriesPolicyEnabled: When false, allow member organizations to set their own repository creation member privileges. - // - // GraphQL type: Boolean - MembersCanCreateRepositoriesPolicyEnabled bool `json:"membersCanCreateRepositoriesPolicyEnabled,omitempty"` - - // MembersCanCreatePublicRepositories: Allow members to create public repositories. Defaults to current value. - // - // GraphQL type: Boolean - MembersCanCreatePublicRepositories bool `json:"membersCanCreatePublicRepositories,omitempty"` - - // MembersCanCreatePrivateRepositories: Allow members to create private repositories. Defaults to current value. - // - // GraphQL type: Boolean - MembersCanCreatePrivateRepositories bool `json:"membersCanCreatePrivateRepositories,omitempty"` - - // MembersCanCreateInternalRepositories: Allow members to create internal repositories. Defaults to current value. - // - // GraphQL type: Boolean - MembersCanCreateInternalRepositories bool `json:"membersCanCreateInternalRepositories,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseMembersCanCreateRepositoriesSetting. -type UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated members can create repositories setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the members can create repositories setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnterpriseMembersCanDeleteIssuesSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseMembersCanDeleteIssuesSetting. -type UpdateEnterpriseMembersCanDeleteIssuesSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the members can delete issues setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the members can delete issues setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseMembersCanDeleteIssuesSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseMembersCanDeleteIssuesSetting. -type UpdateEnterpriseMembersCanDeleteIssuesSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated members can delete issues setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the members can delete issues setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseMembersCanDeleteIssuesSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseMembersCanDeleteIssuesSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseMembersCanDeleteIssuesSettingPayload) GetMessage() string { return x.Message } - -// UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseMembersCanDeleteRepositoriesSetting. -type UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the members can delete repositories setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the members can delete repositories setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseMembersCanDeleteRepositoriesSetting. -type UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated members can delete repositories setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the members can delete repositories setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseMembersCanInviteCollaboratorsSetting. -type UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the members can invite collaborators setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the members can invite collaborators setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseMembersCanInviteCollaboratorsSetting. -type UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated members can invite collaborators setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the members can invite collaborators setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnterpriseMembersCanMakePurchasesSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseMembersCanMakePurchasesSetting. -type UpdateEnterpriseMembersCanMakePurchasesSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the members can make purchases setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the members can make purchases setting on the enterprise. - // - // GraphQL type: EnterpriseMembersCanMakePurchasesSettingValue! - SettingValue EnterpriseMembersCanMakePurchasesSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseMembersCanMakePurchasesSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseMembersCanMakePurchasesSetting. -type UpdateEnterpriseMembersCanMakePurchasesSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated members can make purchases setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the members can make purchases setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseMembersCanMakePurchasesSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseMembersCanMakePurchasesSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseMembersCanMakePurchasesSettingPayload) GetMessage() string { return x.Message } - -// UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting. -type UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the members can update protected branches setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the members can update protected branches setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting. -type UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated members can update protected branches setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the members can update protected branches setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseMembersCanViewDependencyInsightsSetting. -type UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the members can view dependency insights setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the members can view dependency insights setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseMembersCanViewDependencyInsightsSetting. -type UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated members can view dependency insights setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the members can view dependency insights setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnterpriseOrganizationProjectsSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseOrganizationProjectsSetting. -type UpdateEnterpriseOrganizationProjectsSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the organization projects setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the organization projects setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseOrganizationProjectsSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseOrganizationProjectsSetting. -type UpdateEnterpriseOrganizationProjectsSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated organization projects setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the organization projects setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseOrganizationProjectsSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseOrganizationProjectsSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseOrganizationProjectsSettingPayload) GetMessage() string { return x.Message } - -// UpdateEnterpriseOwnerOrganizationRoleInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseOwnerOrganizationRole. -type UpdateEnterpriseOwnerOrganizationRoleInput struct { - // EnterpriseId: The ID of the Enterprise which the owner belongs to. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // OrganizationId: The ID of the organization for membership change. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // OrganizationRole: The role to assume in the organization. - // - // GraphQL type: RoleInOrganization! - OrganizationRole RoleInOrganization `json:"organizationRole,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseOwnerOrganizationRolePayload (OBJECT): Autogenerated return type of UpdateEnterpriseOwnerOrganizationRole. -type UpdateEnterpriseOwnerOrganizationRolePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Message: A message confirming the result of changing the owner's organization role. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseOwnerOrganizationRolePayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseOwnerOrganizationRolePayload) GetMessage() string { return x.Message } - -// UpdateEnterpriseProfileInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseProfile. -type UpdateEnterpriseProfileInput struct { - // EnterpriseId: The Enterprise ID to update. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // Name: The name of the enterprise. - // - // GraphQL type: String - Name string `json:"name,omitempty"` - - // Description: The description of the enterprise. - // - // GraphQL type: String - Description string `json:"description,omitempty"` - - // WebsiteUrl: The URL of the enterprise's website. - // - // GraphQL type: String - WebsiteUrl string `json:"websiteUrl,omitempty"` - - // Location: The location of the enterprise. - // - // GraphQL type: String - Location string `json:"location,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseProfilePayload (OBJECT): Autogenerated return type of UpdateEnterpriseProfile. -type UpdateEnterpriseProfilePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The updated enterprise. - Enterprise *Enterprise `json:"enterprise,omitempty"` -} - -func (x *UpdateEnterpriseProfilePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateEnterpriseProfilePayload) GetEnterprise() *Enterprise { return x.Enterprise } - -// UpdateEnterpriseRepositoryProjectsSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseRepositoryProjectsSetting. -type UpdateEnterpriseRepositoryProjectsSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the repository projects setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the repository projects setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseRepositoryProjectsSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseRepositoryProjectsSetting. -type UpdateEnterpriseRepositoryProjectsSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated repository projects setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the repository projects setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseRepositoryProjectsSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseRepositoryProjectsSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseRepositoryProjectsSettingPayload) GetMessage() string { return x.Message } - -// UpdateEnterpriseTeamDiscussionsSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseTeamDiscussionsSetting. -type UpdateEnterpriseTeamDiscussionsSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the team discussions setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the team discussions setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledDisabledSettingValue! - SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseTeamDiscussionsSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseTeamDiscussionsSetting. -type UpdateEnterpriseTeamDiscussionsSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated team discussions setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the team discussions setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseTeamDiscussionsSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseTeamDiscussionsSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseTeamDiscussionsSettingPayload) GetMessage() string { return x.Message } - -// UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting. -type UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput struct { - // EnterpriseId: The ID of the enterprise on which to set the two factor authentication required setting. - // - // GraphQL type: ID! - EnterpriseId ID `json:"enterpriseId,omitempty"` - - // SettingValue: The value for the two factor authentication required setting on the enterprise. - // - // GraphQL type: EnterpriseEnabledSettingValue! - SettingValue EnterpriseEnabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload (OBJECT): Autogenerated return type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting. -type UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Enterprise: The enterprise with the updated two factor authentication required setting. - Enterprise *Enterprise `json:"enterprise,omitempty"` - - // Message: A message confirming the result of updating the two factor authentication required setting. - Message string `json:"message,omitempty"` -} - -func (x *UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload) GetEnterprise() *Enterprise { - return x.Enterprise -} -func (x *UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload) GetMessage() string { - return x.Message -} - -// UpdateEnvironmentInput (INPUT_OBJECT): Autogenerated input type of UpdateEnvironment. -type UpdateEnvironmentInput struct { - // EnvironmentId: The node ID of the environment. - // - // GraphQL type: ID! - EnvironmentId ID `json:"environmentId,omitempty"` - - // WaitTimer: The wait timer in minutes. - // - // GraphQL type: Int - WaitTimer int `json:"waitTimer,omitempty"` - - // Reviewers: The ids of users or teams that can approve deployments to this environment. - // - // GraphQL type: [ID!] - Reviewers []ID `json:"reviewers,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateEnvironmentPayload (OBJECT): Autogenerated return type of UpdateEnvironment. -type UpdateEnvironmentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Environment: The updated environment. - Environment *Environment `json:"environment,omitempty"` -} - -func (x *UpdateEnvironmentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateEnvironmentPayload) GetEnvironment() *Environment { return x.Environment } - -// UpdateIpAllowListEnabledSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateIpAllowListEnabledSetting. -type UpdateIpAllowListEnabledSettingInput struct { - // OwnerId: The ID of the owner on which to set the IP allow list enabled setting. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // SettingValue: The value for the IP allow list enabled setting. - // - // GraphQL type: IpAllowListEnabledSettingValue! - SettingValue IpAllowListEnabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateIpAllowListEnabledSettingPayload (OBJECT): Autogenerated return type of UpdateIpAllowListEnabledSetting. -type UpdateIpAllowListEnabledSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Owner: The IP allow list owner on which the setting was updated. - Owner IpAllowListOwner `json:"owner,omitempty"` -} - -func (x *UpdateIpAllowListEnabledSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateIpAllowListEnabledSettingPayload) GetOwner() IpAllowListOwner { return x.Owner } - -// UpdateIpAllowListEntryInput (INPUT_OBJECT): Autogenerated input type of UpdateIpAllowListEntry. -type UpdateIpAllowListEntryInput struct { - // IpAllowListEntryId: The ID of the IP allow list entry to update. - // - // GraphQL type: ID! - IpAllowListEntryId ID `json:"ipAllowListEntryId,omitempty"` - - // AllowListValue: An IP address or range of addresses in CIDR notation. - // - // GraphQL type: String! - AllowListValue string `json:"allowListValue,omitempty"` - - // Name: An optional name for the IP allow list entry. - // - // GraphQL type: String - Name string `json:"name,omitempty"` - - // IsActive: Whether the IP allow list entry is active when an IP allow list is enabled. - // - // GraphQL type: Boolean! - IsActive bool `json:"isActive,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateIpAllowListEntryPayload (OBJECT): Autogenerated return type of UpdateIpAllowListEntry. -type UpdateIpAllowListEntryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // IpAllowListEntry: The IP allow list entry that was updated. - IpAllowListEntry *IpAllowListEntry `json:"ipAllowListEntry,omitempty"` -} - -func (x *UpdateIpAllowListEntryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateIpAllowListEntryPayload) GetIpAllowListEntry() *IpAllowListEntry { - return x.IpAllowListEntry -} - -// UpdateIpAllowListForInstalledAppsEnabledSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateIpAllowListForInstalledAppsEnabledSetting. -type UpdateIpAllowListForInstalledAppsEnabledSettingInput struct { - // OwnerId: The ID of the owner. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // SettingValue: The value for the IP allow list configuration for installed GitHub Apps setting. - // - // GraphQL type: IpAllowListForInstalledAppsEnabledSettingValue! - SettingValue IpAllowListForInstalledAppsEnabledSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateIpAllowListForInstalledAppsEnabledSettingPayload (OBJECT): Autogenerated return type of UpdateIpAllowListForInstalledAppsEnabledSetting. -type UpdateIpAllowListForInstalledAppsEnabledSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Owner: The IP allow list owner on which the setting was updated. - Owner IpAllowListOwner `json:"owner,omitempty"` -} - -func (x *UpdateIpAllowListForInstalledAppsEnabledSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateIpAllowListForInstalledAppsEnabledSettingPayload) GetOwner() IpAllowListOwner { - return x.Owner -} - -// UpdateIssueCommentInput (INPUT_OBJECT): Autogenerated input type of UpdateIssueComment. -type UpdateIssueCommentInput struct { - // Id: The ID of the IssueComment to modify. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // Body: The updated text of the comment. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateIssueCommentPayload (OBJECT): Autogenerated return type of UpdateIssueComment. -type UpdateIssueCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // IssueComment: The updated comment. - IssueComment *IssueComment `json:"issueComment,omitempty"` -} - -func (x *UpdateIssueCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateIssueCommentPayload) GetIssueComment() *IssueComment { return x.IssueComment } - -// UpdateIssueInput (INPUT_OBJECT): Autogenerated input type of UpdateIssue. -type UpdateIssueInput struct { - // Id: The ID of the Issue to modify. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // Title: The title for the issue. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Body: The body for the issue description. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // AssigneeIds: An array of Node IDs of users for this issue. - // - // GraphQL type: [ID!] - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // MilestoneId: The Node ID of the milestone for this issue. - // - // GraphQL type: ID - MilestoneId ID `json:"milestoneId,omitempty"` - - // LabelIds: An array of Node IDs of labels for this issue. - // - // GraphQL type: [ID!] - LabelIds []ID `json:"labelIds,omitempty"` - - // State: The desired issue state. - // - // GraphQL type: IssueState - State IssueState `json:"state,omitempty"` - - // ProjectIds: An array of Node IDs for projects associated with this issue. - // - // GraphQL type: [ID!] - ProjectIds []ID `json:"projectIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateIssuePayload (OBJECT): Autogenerated return type of UpdateIssue. -type UpdateIssuePayload struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Issue: The issue. - Issue *Issue `json:"issue,omitempty"` -} - -func (x *UpdateIssuePayload) GetActor() Actor { return x.Actor } -func (x *UpdateIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateIssuePayload) GetIssue() *Issue { return x.Issue } - -// UpdateNotificationRestrictionSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateNotificationRestrictionSetting. -type UpdateNotificationRestrictionSettingInput struct { - // OwnerId: The ID of the owner on which to set the restrict notifications setting. - // - // GraphQL type: ID! - OwnerId ID `json:"ownerId,omitempty"` - - // SettingValue: The value for the restrict notifications setting. - // - // GraphQL type: NotificationRestrictionSettingValue! - SettingValue NotificationRestrictionSettingValue `json:"settingValue,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateNotificationRestrictionSettingPayload (OBJECT): Autogenerated return type of UpdateNotificationRestrictionSetting. -type UpdateNotificationRestrictionSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Owner: The owner on which the setting was updated. - Owner VerifiableDomainOwner `json:"owner,omitempty"` -} - -func (x *UpdateNotificationRestrictionSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateNotificationRestrictionSettingPayload) GetOwner() VerifiableDomainOwner { - return x.Owner -} - -// UpdateOrganizationAllowPrivateRepositoryForkingSettingInput (INPUT_OBJECT): Autogenerated input type of UpdateOrganizationAllowPrivateRepositoryForkingSetting. -type UpdateOrganizationAllowPrivateRepositoryForkingSettingInput struct { - // OrganizationId: The ID of the organization on which to set the allow private repository forking setting. - // - // GraphQL type: ID! - OrganizationId ID `json:"organizationId,omitempty"` - - // ForkingEnabled: Enable forking of private repositories in the organization?. - // - // GraphQL type: Boolean! - ForkingEnabled bool `json:"forkingEnabled,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload (OBJECT): Autogenerated return type of UpdateOrganizationAllowPrivateRepositoryForkingSetting. -type UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Message: A message confirming the result of updating the allow private repository forking setting. - Message string `json:"message,omitempty"` - - // Organization: The organization with the updated allow private repository forking setting. - Organization *Organization `json:"organization,omitempty"` -} - -func (x *UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload) GetMessage() string { - return x.Message -} -func (x *UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload) GetOrganization() *Organization { - return x.Organization -} - -// UpdateProjectCardInput (INPUT_OBJECT): Autogenerated input type of UpdateProjectCard. -type UpdateProjectCardInput struct { - // ProjectCardId: The ProjectCard ID to update. - // - // GraphQL type: ID! - ProjectCardId ID `json:"projectCardId,omitempty"` - - // IsArchived: Whether or not the ProjectCard should be archived. - // - // GraphQL type: Boolean - IsArchived bool `json:"isArchived,omitempty"` - - // Note: The note of ProjectCard. - // - // GraphQL type: String - Note string `json:"note,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectCardPayload (OBJECT): Autogenerated return type of UpdateProjectCard. -type UpdateProjectCardPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectCard: The updated ProjectCard. - ProjectCard *ProjectCard `json:"projectCard,omitempty"` -} - -func (x *UpdateProjectCardPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectCardPayload) GetProjectCard() *ProjectCard { return x.ProjectCard } - -// UpdateProjectColumnInput (INPUT_OBJECT): Autogenerated input type of UpdateProjectColumn. -type UpdateProjectColumnInput struct { - // ProjectColumnId: The ProjectColumn ID to update. - // - // GraphQL type: ID! - ProjectColumnId ID `json:"projectColumnId,omitempty"` - - // Name: The name of project column. - // - // GraphQL type: String! - Name string `json:"name,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectColumnPayload (OBJECT): Autogenerated return type of UpdateProjectColumn. -type UpdateProjectColumnPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectColumn: The updated project column. - ProjectColumn *ProjectColumn `json:"projectColumn,omitempty"` -} - -func (x *UpdateProjectColumnPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectColumnPayload) GetProjectColumn() *ProjectColumn { return x.ProjectColumn } - -// UpdateProjectDraftIssueInput (INPUT_OBJECT): Autogenerated input type of UpdateProjectDraftIssue. -type UpdateProjectDraftIssueInput struct { - // DraftIssueId: The ID of the draft issue to update. - // - // GraphQL type: ID! - DraftIssueId ID `json:"draftIssueId,omitempty"` - - // Title: The title of the draft issue. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Body: The body of the draft issue. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // AssigneeIds: The IDs of the assignees of the draft issue. - // - // GraphQL type: [ID!] - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectDraftIssuePayload (OBJECT): Autogenerated return type of UpdateProjectDraftIssue. -type UpdateProjectDraftIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // DraftIssue: The draft issue updated in the project. - DraftIssue *DraftIssue `json:"draftIssue,omitempty"` -} - -func (x *UpdateProjectDraftIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectDraftIssuePayload) GetDraftIssue() *DraftIssue { return x.DraftIssue } - -// UpdateProjectInput (INPUT_OBJECT): Autogenerated input type of UpdateProject. -type UpdateProjectInput struct { - // ProjectId: The Project ID to update. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // Name: The name of project. - // - // GraphQL type: String - Name string `json:"name,omitempty"` - - // Body: The description of project. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // State: Whether the project is open or closed. - // - // GraphQL type: ProjectState - State ProjectState `json:"state,omitempty"` - - // Public: Whether the project is public or not. - // - // GraphQL type: Boolean - Public bool `json:"public,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectNextInput (INPUT_OBJECT): Autogenerated input type of UpdateProjectNext. -type UpdateProjectNextInput struct { - // ProjectId: The ID of the Project to update. This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: ID - ProjectId ID `json:"projectId,omitempty"` - - // Title: Set the title of the project. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `title` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Description: Set the readme description of the project. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `description` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: String - Description string `json:"description,omitempty"` - - // ShortDescription: Set the short description of the project. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `shortDescription` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: String - ShortDescription string `json:"shortDescription,omitempty"` - - // Closed: Set the project to closed or open. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `closed` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: Boolean - Closed bool `json:"closed,omitempty"` - - // Public: Set the project to public or private. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `public` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: Boolean - Public bool `json:"public,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectNextItemFieldInput (INPUT_OBJECT): Autogenerated input type of UpdateProjectNextItemField. -type UpdateProjectNextItemFieldInput struct { - // ProjectId: The ID of the Project. This field is required. - // - // GraphQL type: ID - ProjectId ID `json:"projectId,omitempty"` - - // ItemId: The id of the item to be updated. This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `itemId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: ID - ItemId ID `json:"itemId,omitempty"` - - // FieldId: The id of the field to be updated. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `fieldId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: ID - FieldId ID `json:"fieldId,omitempty"` - - // Value: The value which will be set on the field. This field is required. - // - // **Upcoming Change on 2022-10-01 UTC** - // **Description:** `value` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. - // **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. - // . - // - // GraphQL type: String - Value string `json:"value,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectNextItemFieldPayload (OBJECT): Autogenerated return type of UpdateProjectNextItemField. -type UpdateProjectNextItemFieldPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectNextItem: The updated item. - // - // Deprecated: The updated item. - ProjectNextItem *ProjectNextItem `json:"projectNextItem,omitempty"` -} - -func (x *UpdateProjectNextItemFieldPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectNextItemFieldPayload) GetProjectNextItem() *ProjectNextItem { - return x.ProjectNextItem -} - -// UpdateProjectNextPayload (OBJECT): Autogenerated return type of UpdateProjectNext. -type UpdateProjectNextPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectNext: The updated Project. - // - // Deprecated: The updated Project. - ProjectNext *ProjectNext `json:"projectNext,omitempty"` -} - -func (x *UpdateProjectNextPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectNextPayload) GetProjectNext() *ProjectNext { return x.ProjectNext } - -// UpdateProjectPayload (OBJECT): Autogenerated return type of UpdateProject. -type UpdateProjectPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Project: The updated project. - Project *Project `json:"project,omitempty"` -} - -func (x *UpdateProjectPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectPayload) GetProject() *Project { return x.Project } - -// UpdateProjectV2DraftIssueInput (INPUT_OBJECT): Autogenerated input type of UpdateProjectV2DraftIssue. -type UpdateProjectV2DraftIssueInput struct { - // DraftIssueId: The ID of the draft issue to update. - // - // GraphQL type: ID! - DraftIssueId ID `json:"draftIssueId,omitempty"` - - // Title: The title of the draft issue. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Body: The body of the draft issue. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // AssigneeIds: The IDs of the assignees of the draft issue. - // - // GraphQL type: [ID!] - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectV2DraftIssuePayload (OBJECT): Autogenerated return type of UpdateProjectV2DraftIssue. -type UpdateProjectV2DraftIssuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // DraftIssue: The draft issue updated in the project. - DraftIssue *DraftIssue `json:"draftIssue,omitempty"` -} - -func (x *UpdateProjectV2DraftIssuePayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectV2DraftIssuePayload) GetDraftIssue() *DraftIssue { return x.DraftIssue } - -// UpdateProjectV2Input (INPUT_OBJECT): Autogenerated input type of UpdateProjectV2. -type UpdateProjectV2Input struct { - // ProjectId: The ID of the Project to update. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // Title: Set the title of the project. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // ShortDescription: Set the short description of the project. - // - // GraphQL type: String - ShortDescription string `json:"shortDescription,omitempty"` - - // Readme: Set the readme description of the project. - // - // GraphQL type: String - Readme string `json:"readme,omitempty"` - - // Closed: Set the project to closed or open. - // - // GraphQL type: Boolean - Closed bool `json:"closed,omitempty"` - - // Public: Set the project to public or private. - // - // GraphQL type: Boolean - Public bool `json:"public,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectV2ItemFieldValueInput (INPUT_OBJECT): Autogenerated input type of UpdateProjectV2ItemFieldValue. -type UpdateProjectV2ItemFieldValueInput struct { - // ProjectId: The ID of the Project. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // ItemId: The ID of the item to be updated. - // - // GraphQL type: ID! - ItemId ID `json:"itemId,omitempty"` - - // FieldId: The ID of the field to be updated. - // - // GraphQL type: ID! - FieldId ID `json:"fieldId,omitempty"` - - // Value: The value which will be set on the field. - // - // GraphQL type: ProjectV2FieldValue! - Value *ProjectV2FieldValue `json:"value,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectV2ItemFieldValuePayload (OBJECT): Autogenerated return type of UpdateProjectV2ItemFieldValue. -type UpdateProjectV2ItemFieldValuePayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectV2Item: The updated item. - ProjectV2Item *ProjectV2Item `json:"projectV2Item,omitempty"` -} - -func (x *UpdateProjectV2ItemFieldValuePayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdateProjectV2ItemFieldValuePayload) GetProjectV2Item() *ProjectV2Item { - return x.ProjectV2Item -} - -// UpdateProjectV2ItemPositionInput (INPUT_OBJECT): Autogenerated input type of UpdateProjectV2ItemPosition. -type UpdateProjectV2ItemPositionInput struct { - // ProjectId: The ID of the Project. - // - // GraphQL type: ID! - ProjectId ID `json:"projectId,omitempty"` - - // ItemId: The ID of the item to be moved. - // - // GraphQL type: ID! - ItemId ID `json:"itemId,omitempty"` - - // AfterId: The ID of the item to position this item after. If omitted or set to null the item will be moved to top. - // - // GraphQL type: ID - AfterId ID `json:"afterId,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateProjectV2ItemPositionPayload (OBJECT): Autogenerated return type of UpdateProjectV2ItemPosition. -type UpdateProjectV2ItemPositionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Items: The items in the new order. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Items *ProjectV2ItemConnection `json:"items,omitempty"` -} - -func (x *UpdateProjectV2ItemPositionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectV2ItemPositionPayload) GetItems() *ProjectV2ItemConnection { return x.Items } - -// UpdateProjectV2Payload (OBJECT): Autogenerated return type of UpdateProjectV2. -type UpdateProjectV2Payload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // ProjectV2: The updated Project. - ProjectV2 *ProjectV2 `json:"projectV2,omitempty"` -} - -func (x *UpdateProjectV2Payload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateProjectV2Payload) GetProjectV2() *ProjectV2 { return x.ProjectV2 } - -// UpdatePullRequestBranchInput (INPUT_OBJECT): Autogenerated input type of UpdatePullRequestBranch. -type UpdatePullRequestBranchInput struct { - // PullRequestId: The Node ID of the pull request. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // ExpectedHeadOid: The head ref oid for the upstream branch. - // - // GraphQL type: GitObjectID - ExpectedHeadOid GitObjectID `json:"expectedHeadOid,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdatePullRequestBranchPayload (OBJECT): Autogenerated return type of UpdatePullRequestBranch. -type UpdatePullRequestBranchPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The updated pull request. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *UpdatePullRequestBranchPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdatePullRequestBranchPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// UpdatePullRequestInput (INPUT_OBJECT): Autogenerated input type of UpdatePullRequest. -type UpdatePullRequestInput struct { - // PullRequestId: The Node ID of the pull request. - // - // GraphQL type: ID! - PullRequestId ID `json:"pullRequestId,omitempty"` - - // BaseRefName: The name of the branch you want your changes pulled into. This should be an existing branch - // on the current repository. - // . - // - // GraphQL type: String - BaseRefName string `json:"baseRefName,omitempty"` - - // Title: The title of the pull request. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Body: The contents of the pull request. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // State: The target state of the pull request. - // - // GraphQL type: PullRequestUpdateState - State PullRequestUpdateState `json:"state,omitempty"` - - // MaintainerCanModify: Indicates whether maintainers can modify the pull request. - // - // GraphQL type: Boolean - MaintainerCanModify bool `json:"maintainerCanModify,omitempty"` - - // AssigneeIds: An array of Node IDs of users for this pull request. - // - // GraphQL type: [ID!] - AssigneeIds []ID `json:"assigneeIds,omitempty"` - - // MilestoneId: The Node ID of the milestone for this pull request. - // - // GraphQL type: ID - MilestoneId ID `json:"milestoneId,omitempty"` - - // LabelIds: An array of Node IDs of labels for this pull request. - // - // GraphQL type: [ID!] - LabelIds []ID `json:"labelIds,omitempty"` - - // ProjectIds: An array of Node IDs for projects associated with this pull request. - // - // GraphQL type: [ID!] - ProjectIds []ID `json:"projectIds,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdatePullRequestPayload (OBJECT): Autogenerated return type of UpdatePullRequest. -type UpdatePullRequestPayload struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequest: The updated pull request. - PullRequest *PullRequest `json:"pullRequest,omitempty"` -} - -func (x *UpdatePullRequestPayload) GetActor() Actor { return x.Actor } -func (x *UpdatePullRequestPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdatePullRequestPayload) GetPullRequest() *PullRequest { return x.PullRequest } - -// UpdatePullRequestReviewCommentInput (INPUT_OBJECT): Autogenerated input type of UpdatePullRequestReviewComment. -type UpdatePullRequestReviewCommentInput struct { - // PullRequestReviewCommentId: The Node ID of the comment to modify. - // - // GraphQL type: ID! - PullRequestReviewCommentId ID `json:"pullRequestReviewCommentId,omitempty"` - - // Body: The text of the comment. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdatePullRequestReviewCommentPayload (OBJECT): Autogenerated return type of UpdatePullRequestReviewComment. -type UpdatePullRequestReviewCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequestReviewComment: The updated comment. - PullRequestReviewComment *PullRequestReviewComment `json:"pullRequestReviewComment,omitempty"` -} - -func (x *UpdatePullRequestReviewCommentPayload) GetClientMutationId() string { - return x.ClientMutationId -} -func (x *UpdatePullRequestReviewCommentPayload) GetPullRequestReviewComment() *PullRequestReviewComment { - return x.PullRequestReviewComment -} - -// UpdatePullRequestReviewInput (INPUT_OBJECT): Autogenerated input type of UpdatePullRequestReview. -type UpdatePullRequestReviewInput struct { - // PullRequestReviewId: The Node ID of the pull request review to modify. - // - // GraphQL type: ID! - PullRequestReviewId ID `json:"pullRequestReviewId,omitempty"` - - // Body: The contents of the pull request review body. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdatePullRequestReviewPayload (OBJECT): Autogenerated return type of UpdatePullRequestReview. -type UpdatePullRequestReviewPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // PullRequestReview: The updated pull request review. - PullRequestReview *PullRequestReview `json:"pullRequestReview,omitempty"` -} - -func (x *UpdatePullRequestReviewPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdatePullRequestReviewPayload) GetPullRequestReview() *PullRequestReview { - return x.PullRequestReview -} - -// UpdateRefInput (INPUT_OBJECT): Autogenerated input type of UpdateRef. -type UpdateRefInput struct { - // RefId: The Node ID of the Ref to be updated. - // - // GraphQL type: ID! - RefId ID `json:"refId,omitempty"` - - // Oid: The GitObjectID that the Ref shall be updated to target. - // - // GraphQL type: GitObjectID! - Oid GitObjectID `json:"oid,omitempty"` - - // Force: Permit updates of branch Refs that are not fast-forwards?. - // - // GraphQL type: Boolean - Force bool `json:"force,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateRefPayload (OBJECT): Autogenerated return type of UpdateRef. -type UpdateRefPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Ref: The updated Ref. - Ref *Ref `json:"ref,omitempty"` -} - -func (x *UpdateRefPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateRefPayload) GetRef() *Ref { return x.Ref } - -// UpdateRepositoryInput (INPUT_OBJECT): Autogenerated input type of UpdateRepository. -type UpdateRepositoryInput struct { - // RepositoryId: The ID of the repository to update. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // Name: The new name of the repository. - // - // GraphQL type: String - Name string `json:"name,omitempty"` - - // Description: A new description for the repository. Pass an empty string to erase the existing description. - // - // GraphQL type: String - Description string `json:"description,omitempty"` - - // Template: Whether this repository should be marked as a template such that anyone who can access it can create new repositories with the same files and directory structure. - // - // GraphQL type: Boolean - Template bool `json:"template,omitempty"` - - // HomepageUrl: The URL for a web page about this repository. Pass an empty string to erase the existing URL. - // - // GraphQL type: URI - HomepageUrl URI `json:"homepageUrl,omitempty"` - - // HasWikiEnabled: Indicates if the repository should have the wiki feature enabled. - // - // GraphQL type: Boolean - HasWikiEnabled bool `json:"hasWikiEnabled,omitempty"` - - // HasIssuesEnabled: Indicates if the repository should have the issues feature enabled. - // - // GraphQL type: Boolean - HasIssuesEnabled bool `json:"hasIssuesEnabled,omitempty"` - - // HasProjectsEnabled: Indicates if the repository should have the project boards feature enabled. - // - // GraphQL type: Boolean - HasProjectsEnabled bool `json:"hasProjectsEnabled,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateRepositoryPayload (OBJECT): Autogenerated return type of UpdateRepository. -type UpdateRepositoryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The updated repository. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *UpdateRepositoryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateRepositoryPayload) GetRepository() *Repository { return x.Repository } - -// UpdateSponsorshipPreferencesInput (INPUT_OBJECT): Autogenerated input type of UpdateSponsorshipPreferences. -type UpdateSponsorshipPreferencesInput struct { - // SponsorId: The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. - // - // GraphQL type: ID - SponsorId ID `json:"sponsorId,omitempty"` - - // SponsorLogin: The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. - // - // GraphQL type: String - SponsorLogin string `json:"sponsorLogin,omitempty"` - - // SponsorableId: The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. - // - // GraphQL type: ID - SponsorableId ID `json:"sponsorableId,omitempty"` - - // SponsorableLogin: The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. - // - // GraphQL type: String - SponsorableLogin string `json:"sponsorableLogin,omitempty"` - - // ReceiveEmails: Whether the sponsor should receive email updates from the sponsorable. - // - // GraphQL type: Boolean - ReceiveEmails bool `json:"receiveEmails,omitempty"` - - // PrivacyLevel: Specify whether others should be able to see that the sponsor is sponsoring the sponsorable. Public visibility still does not reveal which tier is used. - // - // GraphQL type: SponsorshipPrivacy - PrivacyLevel SponsorshipPrivacy `json:"privacyLevel,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateSponsorshipPreferencesPayload (OBJECT): Autogenerated return type of UpdateSponsorshipPreferences. -type UpdateSponsorshipPreferencesPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Sponsorship: The sponsorship that was updated. - Sponsorship *Sponsorship `json:"sponsorship,omitempty"` -} - -func (x *UpdateSponsorshipPreferencesPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateSponsorshipPreferencesPayload) GetSponsorship() *Sponsorship { return x.Sponsorship } - -// UpdateSubscriptionInput (INPUT_OBJECT): Autogenerated input type of UpdateSubscription. -type UpdateSubscriptionInput struct { - // SubscribableId: The Node ID of the subscribable object to modify. - // - // GraphQL type: ID! - SubscribableId ID `json:"subscribableId,omitempty"` - - // State: The new state of the subscription. - // - // GraphQL type: SubscriptionState! - State SubscriptionState `json:"state,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateSubscriptionPayload (OBJECT): Autogenerated return type of UpdateSubscription. -type UpdateSubscriptionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Subscribable: The input subscribable entity. - Subscribable Subscribable `json:"subscribable,omitempty"` -} - -func (x *UpdateSubscriptionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateSubscriptionPayload) GetSubscribable() Subscribable { return x.Subscribable } - -// UpdateTeamDiscussionCommentInput (INPUT_OBJECT): Autogenerated input type of UpdateTeamDiscussionComment. -type UpdateTeamDiscussionCommentInput struct { - // Id: The ID of the comment to modify. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // Body: The updated text of the comment. - // - // GraphQL type: String! - Body string `json:"body,omitempty"` - - // BodyVersion: The current version of the body content. - // - // GraphQL type: String - BodyVersion string `json:"bodyVersion,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateTeamDiscussionCommentPayload (OBJECT): Autogenerated return type of UpdateTeamDiscussionComment. -type UpdateTeamDiscussionCommentPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // TeamDiscussionComment: The updated comment. - TeamDiscussionComment *TeamDiscussionComment `json:"teamDiscussionComment,omitempty"` -} - -func (x *UpdateTeamDiscussionCommentPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateTeamDiscussionCommentPayload) GetTeamDiscussionComment() *TeamDiscussionComment { - return x.TeamDiscussionComment -} - -// UpdateTeamDiscussionInput (INPUT_OBJECT): Autogenerated input type of UpdateTeamDiscussion. -type UpdateTeamDiscussionInput struct { - // Id: The Node ID of the discussion to modify. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // Title: The updated title of the discussion. - // - // GraphQL type: String - Title string `json:"title,omitempty"` - - // Body: The updated text of the discussion. - // - // GraphQL type: String - Body string `json:"body,omitempty"` - - // BodyVersion: The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. - // - // GraphQL type: String - BodyVersion string `json:"bodyVersion,omitempty"` - - // Pinned: If provided, sets the pinned state of the updated discussion. - // - // GraphQL type: Boolean - Pinned bool `json:"pinned,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateTeamDiscussionPayload (OBJECT): Autogenerated return type of UpdateTeamDiscussion. -type UpdateTeamDiscussionPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // TeamDiscussion: The updated discussion. - TeamDiscussion *TeamDiscussion `json:"teamDiscussion,omitempty"` -} - -func (x *UpdateTeamDiscussionPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateTeamDiscussionPayload) GetTeamDiscussion() *TeamDiscussion { return x.TeamDiscussion } - -// UpdateTeamsRepositoryInput (INPUT_OBJECT): Autogenerated input type of UpdateTeamsRepository. -type UpdateTeamsRepositoryInput struct { - // RepositoryId: Repository ID being granted access to. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // TeamIds: A list of teams being granted access. Limit: 10. - // - // GraphQL type: [ID!]! - TeamIds []ID `json:"teamIds,omitempty"` - - // Permission: Permission that should be granted to the teams. - // - // GraphQL type: RepositoryPermission! - Permission RepositoryPermission `json:"permission,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateTeamsRepositoryPayload (OBJECT): Autogenerated return type of UpdateTeamsRepository. -type UpdateTeamsRepositoryPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Repository: The repository that was updated. - Repository *Repository `json:"repository,omitempty"` - - // Teams: The teams granted permission on the repository. - Teams []*Team `json:"teams,omitempty"` -} - -func (x *UpdateTeamsRepositoryPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateTeamsRepositoryPayload) GetRepository() *Repository { return x.Repository } -func (x *UpdateTeamsRepositoryPayload) GetTeams() []*Team { return x.Teams } - -// UpdateTopicsInput (INPUT_OBJECT): Autogenerated input type of UpdateTopics. -type UpdateTopicsInput struct { - // RepositoryId: The Node ID of the repository. - // - // GraphQL type: ID! - RepositoryId ID `json:"repositoryId,omitempty"` - - // TopicNames: An array of topic names. - // - // GraphQL type: [String!]! - TopicNames []string `json:"topicNames,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// UpdateTopicsPayload (OBJECT): Autogenerated return type of UpdateTopics. -type UpdateTopicsPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // InvalidTopicNames: Names of the provided topics that are not valid. - InvalidTopicNames []string `json:"invalidTopicNames,omitempty"` - - // Repository: The updated repository. - Repository *Repository `json:"repository,omitempty"` -} - -func (x *UpdateTopicsPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *UpdateTopicsPayload) GetInvalidTopicNames() []string { return x.InvalidTopicNames } -func (x *UpdateTopicsPayload) GetRepository() *Repository { return x.Repository } - -// User (OBJECT): A user is an individual's account on GitHub that owns repositories and can make new content. -type User struct { - // AnyPinnableItems: Determine if this repository owner has any items that can be pinned to their profile. - // - // Query arguments: - // - type PinnableItemType - AnyPinnableItems bool `json:"anyPinnableItems,omitempty"` - - // AvatarUrl: A URL pointing to the user's public avatar. - // - // Query arguments: - // - size Int - AvatarUrl URI `json:"avatarUrl,omitempty"` - - // Bio: The user's public profile bio. - Bio string `json:"bio,omitempty"` - - // BioHTML: The user's public profile bio as HTML. - BioHTML template.HTML `json:"bioHTML,omitempty"` - - // CanReceiveOrganizationEmailsWhenNotificationsRestricted: Could this user receive email notifications, if the organization had notification restrictions enabled?. - // - // Query arguments: - // - login String! - CanReceiveOrganizationEmailsWhenNotificationsRestricted bool `json:"canReceiveOrganizationEmailsWhenNotificationsRestricted,omitempty"` - - // CommitComments: A list of commit comments made by this user. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - CommitComments *CommitCommentConnection `json:"commitComments,omitempty"` - - // Company: The user's public profile company. - Company string `json:"company,omitempty"` - - // CompanyHTML: The user's public profile company as HTML. - CompanyHTML template.HTML `json:"companyHTML,omitempty"` - - // ContributionsCollection: The collection of contributions this user has made to different repositories. - // - // Query arguments: - // - organizationID ID - // - from DateTime - // - to DateTime - ContributionsCollection *ContributionsCollection `json:"contributionsCollection,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Email: The user's publicly visible profile email. - Email string `json:"email,omitempty"` - - // EstimatedNextSponsorsPayoutInCents: The estimated next GitHub Sponsors payout for this user/organization in cents (USD). - EstimatedNextSponsorsPayoutInCents int `json:"estimatedNextSponsorsPayoutInCents,omitempty"` - - // Followers: A list of users the given user is followed by. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Followers *FollowerConnection `json:"followers,omitempty"` - - // Following: A list of users the given user is following. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Following *FollowingConnection `json:"following,omitempty"` - - // Gist: Find gist by repo name. - // - // Query arguments: - // - name String! - Gist *Gist `json:"gist,omitempty"` - - // GistComments: A list of gist comments made by this user. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - GistComments *GistCommentConnection `json:"gistComments,omitempty"` - - // Gists: A list of the Gists the user has created. - // - // Query arguments: - // - privacy GistPrivacy - // - orderBy GistOrder - // - after String - // - before String - // - first Int - // - last Int - Gists *GistConnection `json:"gists,omitempty"` - - // HasSponsorsListing: True if this user/organization has a GitHub Sponsors listing. - HasSponsorsListing bool `json:"hasSponsorsListing,omitempty"` - - // Hovercard: The hovercard information for this user in a given context. - // - // Query arguments: - // - primarySubjectId ID - Hovercard *Hovercard `json:"hovercard,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // InteractionAbility: The interaction ability settings for this user. - InteractionAbility *RepositoryInteractionAbility `json:"interactionAbility,omitempty"` - - // IsBountyHunter: Whether or not this user is a participant in the GitHub Security Bug Bounty. - IsBountyHunter bool `json:"isBountyHunter,omitempty"` - - // IsCampusExpert: Whether or not this user is a participant in the GitHub Campus Experts Program. - IsCampusExpert bool `json:"isCampusExpert,omitempty"` - - // IsDeveloperProgramMember: Whether or not this user is a GitHub Developer Program member. - IsDeveloperProgramMember bool `json:"isDeveloperProgramMember,omitempty"` - - // IsEmployee: Whether or not this user is a GitHub employee. - IsEmployee bool `json:"isEmployee,omitempty"` - - // IsFollowingViewer: Whether or not this user is following the viewer. Inverse of viewer_is_following. - IsFollowingViewer bool `json:"isFollowingViewer,omitempty"` - - // IsGitHubStar: Whether or not this user is a member of the GitHub Stars Program. - IsGitHubStar bool `json:"isGitHubStar,omitempty"` - - // IsHireable: Whether or not the user has marked themselves as for hire. - IsHireable bool `json:"isHireable,omitempty"` - - // IsSiteAdmin: Whether or not this user is a site administrator. - IsSiteAdmin bool `json:"isSiteAdmin,omitempty"` - - // IsSponsoredBy: Check if the given account is sponsoring this user/organization. - // - // Query arguments: - // - accountLogin String! - IsSponsoredBy bool `json:"isSponsoredBy,omitempty"` - - // IsSponsoringViewer: True if the viewer is sponsored by this user/organization. - IsSponsoringViewer bool `json:"isSponsoringViewer,omitempty"` - - // IsViewer: Whether or not this user is the viewing user. - IsViewer bool `json:"isViewer,omitempty"` - - // IssueComments: A list of issue comments made by this user. - // - // Query arguments: - // - orderBy IssueCommentOrder - // - after String - // - before String - // - first Int - // - last Int - IssueComments *IssueCommentConnection `json:"issueComments,omitempty"` - - // Issues: A list of issues associated with this user. - // - // Query arguments: - // - orderBy IssueOrder - // - labels [String!] - // - states [IssueState!] - // - filterBy IssueFilters - // - after String - // - before String - // - first Int - // - last Int - Issues *IssueConnection `json:"issues,omitempty"` - - // ItemShowcase: Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity. - ItemShowcase *ProfileItemShowcase `json:"itemShowcase,omitempty"` - - // Location: The user's public profile location. - Location string `json:"location,omitempty"` - - // Login: The username used to login. - Login string `json:"login,omitempty"` - - // MonthlyEstimatedSponsorsIncomeInCents: The estimated monthly GitHub Sponsors income for this user/organization in cents (USD). - MonthlyEstimatedSponsorsIncomeInCents int `json:"monthlyEstimatedSponsorsIncomeInCents,omitempty"` - - // Name: The user's public profile name. - Name string `json:"name,omitempty"` - - // Organization: Find an organization by its login that the user belongs to. - // - // Query arguments: - // - login String! - Organization *Organization `json:"organization,omitempty"` - - // OrganizationVerifiedDomainEmails: Verified email addresses that match verified domains for a specified organization the user is a member of. - // - // Query arguments: - // - login String! - OrganizationVerifiedDomainEmails []string `json:"organizationVerifiedDomainEmails,omitempty"` - - // Organizations: A list of organizations the user belongs to. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - Organizations *OrganizationConnection `json:"organizations,omitempty"` - - // Packages: A list of packages under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - names [String] - // - repositoryId ID - // - packageType PackageType - // - orderBy PackageOrder - Packages *PackageConnection `json:"packages,omitempty"` - - // PinnableItems: A list of repositories and gists this profile owner can pin to their profile. - // - // Query arguments: - // - types [PinnableItemType!] - // - after String - // - before String - // - first Int - // - last Int - PinnableItems *PinnableItemConnection `json:"pinnableItems,omitempty"` - - // PinnedItems: A list of repositories and gists this profile owner has pinned to their profile. - // - // Query arguments: - // - types [PinnableItemType!] - // - after String - // - before String - // - first Int - // - last Int - PinnedItems *PinnableItemConnection `json:"pinnedItems,omitempty"` - - // PinnedItemsRemaining: Returns how many more items this profile owner can pin to their profile. - PinnedItemsRemaining int `json:"pinnedItemsRemaining,omitempty"` - - // Project: Find project by number. - // - // Query arguments: - // - number Int! - Project *Project `json:"project,omitempty"` - - // ProjectNext: Find a project by project (beta) number. - // - // Deprecated: Find a project by project (beta) number. - // - // Query arguments: - // - number Int! - ProjectNext *ProjectNext `json:"projectNext,omitempty"` - - // ProjectV2: Find a project by number. - // - // Query arguments: - // - number Int! - ProjectV2 *ProjectV2 `json:"projectV2,omitempty"` - - // Projects: A list of projects under the owner. - // - // Query arguments: - // - orderBy ProjectOrder - // - search String - // - states [ProjectState!] - // - after String - // - before String - // - first Int - // - last Int - Projects *ProjectConnection `json:"projects,omitempty"` - - // ProjectsNext: A list of projects (beta) under the owner. - // - // Deprecated: A list of projects (beta) under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - sortBy ProjectNextOrderField - ProjectsNext *ProjectNextConnection `json:"projectsNext,omitempty"` - - // ProjectsResourcePath: The HTTP path listing user's projects. - ProjectsResourcePath URI `json:"projectsResourcePath,omitempty"` - - // ProjectsUrl: The HTTP URL listing user's projects. - ProjectsUrl URI `json:"projectsUrl,omitempty"` - - // ProjectsV2: A list of projects under the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - query String - // - orderBy ProjectV2Order - ProjectsV2 *ProjectV2Connection `json:"projectsV2,omitempty"` - - // PublicKeys: A list of public keys associated with this user. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - PublicKeys *PublicKeyConnection `json:"publicKeys,omitempty"` - - // PullRequests: A list of pull requests associated with this user. - // - // Query arguments: - // - states [PullRequestState!] - // - labels [String!] - // - headRefName String - // - baseRefName String - // - orderBy IssueOrder - // - after String - // - before String - // - first Int - // - last Int - PullRequests *PullRequestConnection `json:"pullRequests,omitempty"` - - // RecentProjects: Recent projects that this user has modified in the context of the owner. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - RecentProjects *ProjectV2Connection `json:"recentProjects,omitempty"` - - // Repositories: A list of repositories that the user owns. - // - // Query arguments: - // - privacy RepositoryPrivacy - // - orderBy RepositoryOrder - // - affiliations [RepositoryAffiliation] - // - ownerAffiliations [RepositoryAffiliation] - // - isLocked Boolean - // - after String - // - before String - // - first Int - // - last Int - // - isFork Boolean - Repositories *RepositoryConnection `json:"repositories,omitempty"` - - // RepositoriesContributedTo: A list of repositories that the user recently contributed to. - // - // Query arguments: - // - privacy RepositoryPrivacy - // - orderBy RepositoryOrder - // - isLocked Boolean - // - includeUserRepositories Boolean - // - contributionTypes [RepositoryContributionType] - // - after String - // - before String - // - first Int - // - last Int - RepositoriesContributedTo *RepositoryConnection `json:"repositoriesContributedTo,omitempty"` - - // Repository: Find Repository. - // - // Query arguments: - // - name String! - // - followRenames Boolean - Repository *Repository `json:"repository,omitempty"` - - // RepositoryDiscussionComments: Discussion comments this user has authored. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - repositoryId ID - // - onlyAnswers Boolean - RepositoryDiscussionComments *DiscussionCommentConnection `json:"repositoryDiscussionComments,omitempty"` - - // RepositoryDiscussions: Discussions this user has started. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy DiscussionOrder - // - repositoryId ID - // - answered Boolean - RepositoryDiscussions *DiscussionConnection `json:"repositoryDiscussions,omitempty"` - - // ResourcePath: The HTTP path for this user. - ResourcePath URI `json:"resourcePath,omitempty"` - - // SavedReplies: Replies this user has saved. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SavedReplyOrder - SavedReplies *SavedReplyConnection `json:"savedReplies,omitempty"` - - // Sponsoring: List of users and organizations this entity is sponsoring. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SponsorOrder - Sponsoring *SponsorConnection `json:"sponsoring,omitempty"` - - // Sponsors: List of sponsors for this user or organization. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - tierId ID - // - orderBy SponsorOrder - Sponsors *SponsorConnection `json:"sponsors,omitempty"` - - // SponsorsActivities: Events involving this sponsorable, such as new sponsorships. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - period SponsorsActivityPeriod - // - orderBy SponsorsActivityOrder - // - actions [SponsorsActivityAction!] - SponsorsActivities *SponsorsActivityConnection `json:"sponsorsActivities,omitempty"` - - // SponsorsListing: The GitHub Sponsors listing for this user or organization. - SponsorsListing *SponsorsListing `json:"sponsorsListing,omitempty"` - - // SponsorshipForViewerAsSponsor: The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor. Only returns a sponsorship if it is active. - SponsorshipForViewerAsSponsor *Sponsorship `json:"sponsorshipForViewerAsSponsor,omitempty"` - - // SponsorshipForViewerAsSponsorable: The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. Only returns a sponsorship if it is active. - SponsorshipForViewerAsSponsorable *Sponsorship `json:"sponsorshipForViewerAsSponsorable,omitempty"` - - // SponsorshipNewsletters: List of sponsorship updates sent from this sponsorable to sponsors. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SponsorshipNewsletterOrder - SponsorshipNewsletters *SponsorshipNewsletterConnection `json:"sponsorshipNewsletters,omitempty"` - - // SponsorshipsAsMaintainer: This object's sponsorships as the maintainer. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - includePrivate Boolean - // - orderBy SponsorshipOrder - SponsorshipsAsMaintainer *SponsorshipConnection `json:"sponsorshipsAsMaintainer,omitempty"` - - // SponsorshipsAsSponsor: This object's sponsorships as the sponsor. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy SponsorshipOrder - SponsorshipsAsSponsor *SponsorshipConnection `json:"sponsorshipsAsSponsor,omitempty"` - - // StarredRepositories: Repositories the user has starred. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - ownedByViewer Boolean - // - orderBy StarOrder - StarredRepositories *StarredRepositoryConnection `json:"starredRepositories,omitempty"` - - // Status: The user's description of what they're currently doing. - Status *UserStatus `json:"status,omitempty"` - - // TopRepositories: Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created - // . - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - // - orderBy RepositoryOrder! - // - since DateTime - TopRepositories *RepositoryConnection `json:"topRepositories,omitempty"` - - // TwitterUsername: The user's Twitter username. - TwitterUsername string `json:"twitterUsername,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this user. - Url URI `json:"url,omitempty"` - - // ViewerCanChangePinnedItems: Can the viewer pin repositories and gists to the profile?. - ViewerCanChangePinnedItems bool `json:"viewerCanChangePinnedItems,omitempty"` - - // ViewerCanCreateProjects: Can the current viewer create new projects on this owner. - ViewerCanCreateProjects bool `json:"viewerCanCreateProjects,omitempty"` - - // ViewerCanFollow: Whether or not the viewer is able to follow the user. - ViewerCanFollow bool `json:"viewerCanFollow,omitempty"` - - // ViewerCanSponsor: Whether or not the viewer is able to sponsor this user/organization. - ViewerCanSponsor bool `json:"viewerCanSponsor,omitempty"` - - // ViewerIsFollowing: Whether or not this user is followed by the viewer. Inverse of is_following_viewer. - ViewerIsFollowing bool `json:"viewerIsFollowing,omitempty"` - - // ViewerIsSponsoring: True if the viewer is sponsoring this user/organization. - ViewerIsSponsoring bool `json:"viewerIsSponsoring,omitempty"` - - // Watching: A list of repositories the given user is watching. - // - // Query arguments: - // - privacy RepositoryPrivacy - // - orderBy RepositoryOrder - // - affiliations [RepositoryAffiliation] - // - ownerAffiliations [RepositoryAffiliation] - // - isLocked Boolean - // - after String - // - before String - // - first Int - // - last Int - Watching *RepositoryConnection `json:"watching,omitempty"` - - // WebsiteUrl: A URL pointing to the user's public website/blog. - WebsiteUrl URI `json:"websiteUrl,omitempty"` -} - -func (x *User) GetAnyPinnableItems() bool { return x.AnyPinnableItems } -func (x *User) GetAvatarUrl() URI { return x.AvatarUrl } -func (x *User) GetBio() string { return x.Bio } -func (x *User) GetBioHTML() template.HTML { return x.BioHTML } -func (x *User) GetCanReceiveOrganizationEmailsWhenNotificationsRestricted() bool { - return x.CanReceiveOrganizationEmailsWhenNotificationsRestricted -} -func (x *User) GetCommitComments() *CommitCommentConnection { return x.CommitComments } -func (x *User) GetCompany() string { return x.Company } -func (x *User) GetCompanyHTML() template.HTML { return x.CompanyHTML } -func (x *User) GetContributionsCollection() *ContributionsCollection { - return x.ContributionsCollection -} -func (x *User) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *User) GetDatabaseId() int { return x.DatabaseId } -func (x *User) GetEmail() string { return x.Email } -func (x *User) GetEstimatedNextSponsorsPayoutInCents() int { - return x.EstimatedNextSponsorsPayoutInCents -} -func (x *User) GetFollowers() *FollowerConnection { return x.Followers } -func (x *User) GetFollowing() *FollowingConnection { return x.Following } -func (x *User) GetGist() *Gist { return x.Gist } -func (x *User) GetGistComments() *GistCommentConnection { return x.GistComments } -func (x *User) GetGists() *GistConnection { return x.Gists } -func (x *User) GetHasSponsorsListing() bool { return x.HasSponsorsListing } -func (x *User) GetHovercard() *Hovercard { return x.Hovercard } -func (x *User) GetId() ID { return x.Id } -func (x *User) GetInteractionAbility() *RepositoryInteractionAbility { return x.InteractionAbility } -func (x *User) GetIsBountyHunter() bool { return x.IsBountyHunter } -func (x *User) GetIsCampusExpert() bool { return x.IsCampusExpert } -func (x *User) GetIsDeveloperProgramMember() bool { return x.IsDeveloperProgramMember } -func (x *User) GetIsEmployee() bool { return x.IsEmployee } -func (x *User) GetIsFollowingViewer() bool { return x.IsFollowingViewer } -func (x *User) GetIsGitHubStar() bool { return x.IsGitHubStar } -func (x *User) GetIsHireable() bool { return x.IsHireable } -func (x *User) GetIsSiteAdmin() bool { return x.IsSiteAdmin } -func (x *User) GetIsSponsoredBy() bool { return x.IsSponsoredBy } -func (x *User) GetIsSponsoringViewer() bool { return x.IsSponsoringViewer } -func (x *User) GetIsViewer() bool { return x.IsViewer } -func (x *User) GetIssueComments() *IssueCommentConnection { return x.IssueComments } -func (x *User) GetIssues() *IssueConnection { return x.Issues } -func (x *User) GetItemShowcase() *ProfileItemShowcase { return x.ItemShowcase } -func (x *User) GetLocation() string { return x.Location } -func (x *User) GetLogin() string { return x.Login } -func (x *User) GetMonthlyEstimatedSponsorsIncomeInCents() int { - return x.MonthlyEstimatedSponsorsIncomeInCents -} -func (x *User) GetName() string { return x.Name } -func (x *User) GetOrganization() *Organization { return x.Organization } -func (x *User) GetOrganizationVerifiedDomainEmails() []string { - return x.OrganizationVerifiedDomainEmails -} -func (x *User) GetOrganizations() *OrganizationConnection { return x.Organizations } -func (x *User) GetPackages() *PackageConnection { return x.Packages } -func (x *User) GetPinnableItems() *PinnableItemConnection { return x.PinnableItems } -func (x *User) GetPinnedItems() *PinnableItemConnection { return x.PinnedItems } -func (x *User) GetPinnedItemsRemaining() int { return x.PinnedItemsRemaining } -func (x *User) GetProject() *Project { return x.Project } -func (x *User) GetProjectNext() *ProjectNext { return x.ProjectNext } -func (x *User) GetProjectV2() *ProjectV2 { return x.ProjectV2 } -func (x *User) GetProjects() *ProjectConnection { return x.Projects } -func (x *User) GetProjectsNext() *ProjectNextConnection { return x.ProjectsNext } -func (x *User) GetProjectsResourcePath() URI { return x.ProjectsResourcePath } -func (x *User) GetProjectsUrl() URI { return x.ProjectsUrl } -func (x *User) GetProjectsV2() *ProjectV2Connection { return x.ProjectsV2 } -func (x *User) GetPublicKeys() *PublicKeyConnection { return x.PublicKeys } -func (x *User) GetPullRequests() *PullRequestConnection { return x.PullRequests } -func (x *User) GetRecentProjects() *ProjectV2Connection { return x.RecentProjects } -func (x *User) GetRepositories() *RepositoryConnection { return x.Repositories } -func (x *User) GetRepositoriesContributedTo() *RepositoryConnection { - return x.RepositoriesContributedTo -} -func (x *User) GetRepository() *Repository { return x.Repository } -func (x *User) GetRepositoryDiscussionComments() *DiscussionCommentConnection { - return x.RepositoryDiscussionComments -} -func (x *User) GetRepositoryDiscussions() *DiscussionConnection { return x.RepositoryDiscussions } -func (x *User) GetResourcePath() URI { return x.ResourcePath } -func (x *User) GetSavedReplies() *SavedReplyConnection { return x.SavedReplies } -func (x *User) GetSponsoring() *SponsorConnection { return x.Sponsoring } -func (x *User) GetSponsors() *SponsorConnection { return x.Sponsors } -func (x *User) GetSponsorsActivities() *SponsorsActivityConnection { return x.SponsorsActivities } -func (x *User) GetSponsorsListing() *SponsorsListing { return x.SponsorsListing } -func (x *User) GetSponsorshipForViewerAsSponsor() *Sponsorship { - return x.SponsorshipForViewerAsSponsor -} -func (x *User) GetSponsorshipForViewerAsSponsorable() *Sponsorship { - return x.SponsorshipForViewerAsSponsorable -} -func (x *User) GetSponsorshipNewsletters() *SponsorshipNewsletterConnection { - return x.SponsorshipNewsletters -} -func (x *User) GetSponsorshipsAsMaintainer() *SponsorshipConnection { - return x.SponsorshipsAsMaintainer -} -func (x *User) GetSponsorshipsAsSponsor() *SponsorshipConnection { return x.SponsorshipsAsSponsor } -func (x *User) GetStarredRepositories() *StarredRepositoryConnection { return x.StarredRepositories } -func (x *User) GetStatus() *UserStatus { return x.Status } -func (x *User) GetTopRepositories() *RepositoryConnection { return x.TopRepositories } -func (x *User) GetTwitterUsername() string { return x.TwitterUsername } -func (x *User) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *User) GetUrl() URI { return x.Url } -func (x *User) GetViewerCanChangePinnedItems() bool { return x.ViewerCanChangePinnedItems } -func (x *User) GetViewerCanCreateProjects() bool { return x.ViewerCanCreateProjects } -func (x *User) GetViewerCanFollow() bool { return x.ViewerCanFollow } -func (x *User) GetViewerCanSponsor() bool { return x.ViewerCanSponsor } -func (x *User) GetViewerIsFollowing() bool { return x.ViewerIsFollowing } -func (x *User) GetViewerIsSponsoring() bool { return x.ViewerIsSponsoring } -func (x *User) GetWatching() *RepositoryConnection { return x.Watching } -func (x *User) GetWebsiteUrl() URI { return x.WebsiteUrl } - -// UserBlockDuration (ENUM): The possible durations that a user can be blocked for. -type UserBlockDuration string - -// UserBlockDuration_ONE_DAY: The user was blocked for 1 day. -const UserBlockDuration_ONE_DAY UserBlockDuration = "ONE_DAY" - -// UserBlockDuration_THREE_DAYS: The user was blocked for 3 days. -const UserBlockDuration_THREE_DAYS UserBlockDuration = "THREE_DAYS" - -// UserBlockDuration_ONE_WEEK: The user was blocked for 7 days. -const UserBlockDuration_ONE_WEEK UserBlockDuration = "ONE_WEEK" - -// UserBlockDuration_ONE_MONTH: The user was blocked for 30 days. -const UserBlockDuration_ONE_MONTH UserBlockDuration = "ONE_MONTH" - -// UserBlockDuration_PERMANENT: The user was blocked permanently. -const UserBlockDuration_PERMANENT UserBlockDuration = "PERMANENT" - -// UserBlockedEvent (OBJECT): Represents a 'user_blocked' event on a given user. -type UserBlockedEvent struct { - // Actor: Identifies the actor who performed the event. - Actor Actor `json:"actor,omitempty"` - - // BlockDuration: Number of days that the user was blocked for. - BlockDuration UserBlockDuration `json:"blockDuration,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Subject: The user who was blocked. - Subject *User `json:"subject,omitempty"` -} - -func (x *UserBlockedEvent) GetActor() Actor { return x.Actor } -func (x *UserBlockedEvent) GetBlockDuration() UserBlockDuration { return x.BlockDuration } -func (x *UserBlockedEvent) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UserBlockedEvent) GetId() ID { return x.Id } -func (x *UserBlockedEvent) GetSubject() *User { return x.Subject } - -// UserConnection (OBJECT): The connection type for User. -type UserConnection struct { - // Edges: A list of edges. - Edges []*UserEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*User `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *UserConnection) GetEdges() []*UserEdge { return x.Edges } -func (x *UserConnection) GetNodes() []*User { return x.Nodes } -func (x *UserConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *UserConnection) GetTotalCount() int { return x.TotalCount } - -// UserContentEdit (OBJECT): An edit on user content. -type UserContentEdit struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DeletedAt: Identifies the date and time when the object was deleted. - DeletedAt DateTime `json:"deletedAt,omitempty"` - - // DeletedBy: The actor who deleted this content. - DeletedBy Actor `json:"deletedBy,omitempty"` - - // Diff: A summary of the changes for this edit. - Diff string `json:"diff,omitempty"` - - // EditedAt: When this content was edited. - EditedAt DateTime `json:"editedAt,omitempty"` - - // Editor: The actor who edited this content. - Editor Actor `json:"editor,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *UserContentEdit) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UserContentEdit) GetDeletedAt() DateTime { return x.DeletedAt } -func (x *UserContentEdit) GetDeletedBy() Actor { return x.DeletedBy } -func (x *UserContentEdit) GetDiff() string { return x.Diff } -func (x *UserContentEdit) GetEditedAt() DateTime { return x.EditedAt } -func (x *UserContentEdit) GetEditor() Actor { return x.Editor } -func (x *UserContentEdit) GetId() ID { return x.Id } -func (x *UserContentEdit) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// UserContentEditConnection (OBJECT): A list of edits to content. -type UserContentEditConnection struct { - // Edges: A list of edges. - Edges []*UserContentEditEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*UserContentEdit `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *UserContentEditConnection) GetEdges() []*UserContentEditEdge { return x.Edges } -func (x *UserContentEditConnection) GetNodes() []*UserContentEdit { return x.Nodes } -func (x *UserContentEditConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *UserContentEditConnection) GetTotalCount() int { return x.TotalCount } - -// UserContentEditEdge (OBJECT): An edge in a connection. -type UserContentEditEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *UserContentEdit `json:"node,omitempty"` -} - -func (x *UserContentEditEdge) GetCursor() string { return x.Cursor } -func (x *UserContentEditEdge) GetNode() *UserContentEdit { return x.Node } - -// UserEdge (OBJECT): Represents a user. -type UserEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *User `json:"node,omitempty"` -} - -func (x *UserEdge) GetCursor() string { return x.Cursor } -func (x *UserEdge) GetNode() *User { return x.Node } - -// UserEmailMetadata (OBJECT): Email attributes from External Identity. -type UserEmailMetadata struct { - // Primary: Boolean to identify primary emails. - Primary bool `json:"primary,omitempty"` - - // Type: Type of email. - Type string `json:"type,omitempty"` - - // Value: Email id. - Value string `json:"value,omitempty"` -} - -func (x *UserEmailMetadata) GetPrimary() bool { return x.Primary } -func (x *UserEmailMetadata) GetType() string { return x.Type } -func (x *UserEmailMetadata) GetValue() string { return x.Value } - -// UserStatus (OBJECT): The user's description of what they're currently doing. -type UserStatus struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // Emoji: An emoji summarizing the user's status. - Emoji string `json:"emoji,omitempty"` - - // EmojiHTML: The status emoji as HTML. - EmojiHTML template.HTML `json:"emojiHTML,omitempty"` - - // ExpiresAt: If set, the status will not be shown after this date. - ExpiresAt DateTime `json:"expiresAt,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IndicatesLimitedAvailability: Whether this status indicates the user is not fully available on GitHub. - IndicatesLimitedAvailability bool `json:"indicatesLimitedAvailability,omitempty"` - - // Message: A brief message describing what the user is doing. - Message string `json:"message,omitempty"` - - // Organization: The organization whose members can see this status. If null, this status is publicly visible. - Organization *Organization `json:"organization,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // User: The user who has this status. - User *User `json:"user,omitempty"` -} - -func (x *UserStatus) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *UserStatus) GetEmoji() string { return x.Emoji } -func (x *UserStatus) GetEmojiHTML() template.HTML { return x.EmojiHTML } -func (x *UserStatus) GetExpiresAt() DateTime { return x.ExpiresAt } -func (x *UserStatus) GetId() ID { return x.Id } -func (x *UserStatus) GetIndicatesLimitedAvailability() bool { return x.IndicatesLimitedAvailability } -func (x *UserStatus) GetMessage() string { return x.Message } -func (x *UserStatus) GetOrganization() *Organization { return x.Organization } -func (x *UserStatus) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *UserStatus) GetUser() *User { return x.User } - -// UserStatusConnection (OBJECT): The connection type for UserStatus. -type UserStatusConnection struct { - // Edges: A list of edges. - Edges []*UserStatusEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*UserStatus `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *UserStatusConnection) GetEdges() []*UserStatusEdge { return x.Edges } -func (x *UserStatusConnection) GetNodes() []*UserStatus { return x.Nodes } -func (x *UserStatusConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *UserStatusConnection) GetTotalCount() int { return x.TotalCount } - -// UserStatusEdge (OBJECT): An edge in a connection. -type UserStatusEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *UserStatus `json:"node,omitempty"` -} - -func (x *UserStatusEdge) GetCursor() string { return x.Cursor } -func (x *UserStatusEdge) GetNode() *UserStatus { return x.Node } - -// UserStatusOrder (INPUT_OBJECT): Ordering options for user status connections. -type UserStatusOrder struct { - // Field: The field to order user statuses by. - // - // GraphQL type: UserStatusOrderField! - Field UserStatusOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// UserStatusOrderField (ENUM): Properties by which user status connections can be ordered. -type UserStatusOrderField string - -// UserStatusOrderField_UPDATED_AT: Order user statuses by when they were updated. -const UserStatusOrderField_UPDATED_AT UserStatusOrderField = "UPDATED_AT" - -// VerifiableDomain (OBJECT): A domain that can be verified or approved for an organization or an enterprise. -type VerifiableDomain struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // DnsHostName: The DNS host name that should be used for verification. - DnsHostName URI `json:"dnsHostName,omitempty"` - - // Domain: The unicode encoded domain. - Domain URI `json:"domain,omitempty"` - - // HasFoundHostName: Whether a TXT record for verification with the expected host name was found. - HasFoundHostName bool `json:"hasFoundHostName,omitempty"` - - // HasFoundVerificationToken: Whether a TXT record for verification with the expected verification token was found. - HasFoundVerificationToken bool `json:"hasFoundVerificationToken,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // IsApproved: Whether or not the domain is approved. - IsApproved bool `json:"isApproved,omitempty"` - - // IsRequiredForPolicyEnforcement: Whether this domain is required to exist for an organization or enterprise policy to be enforced. - IsRequiredForPolicyEnforcement bool `json:"isRequiredForPolicyEnforcement,omitempty"` - - // IsVerified: Whether or not the domain is verified. - IsVerified bool `json:"isVerified,omitempty"` - - // Owner: The owner of the domain. - Owner VerifiableDomainOwner `json:"owner,omitempty"` - - // PunycodeEncodedDomain: The punycode encoded domain. - PunycodeEncodedDomain URI `json:"punycodeEncodedDomain,omitempty"` - - // TokenExpirationTime: The time that the current verification token will expire. - TokenExpirationTime DateTime `json:"tokenExpirationTime,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // VerificationToken: The current verification token for the domain. - VerificationToken string `json:"verificationToken,omitempty"` -} - -func (x *VerifiableDomain) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *VerifiableDomain) GetDatabaseId() int { return x.DatabaseId } -func (x *VerifiableDomain) GetDnsHostName() URI { return x.DnsHostName } -func (x *VerifiableDomain) GetDomain() URI { return x.Domain } -func (x *VerifiableDomain) GetHasFoundHostName() bool { return x.HasFoundHostName } -func (x *VerifiableDomain) GetHasFoundVerificationToken() bool { return x.HasFoundVerificationToken } -func (x *VerifiableDomain) GetId() ID { return x.Id } -func (x *VerifiableDomain) GetIsApproved() bool { return x.IsApproved } -func (x *VerifiableDomain) GetIsRequiredForPolicyEnforcement() bool { - return x.IsRequiredForPolicyEnforcement -} -func (x *VerifiableDomain) GetIsVerified() bool { return x.IsVerified } -func (x *VerifiableDomain) GetOwner() VerifiableDomainOwner { return x.Owner } -func (x *VerifiableDomain) GetPunycodeEncodedDomain() URI { return x.PunycodeEncodedDomain } -func (x *VerifiableDomain) GetTokenExpirationTime() DateTime { return x.TokenExpirationTime } -func (x *VerifiableDomain) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *VerifiableDomain) GetVerificationToken() string { return x.VerificationToken } - -// VerifiableDomainConnection (OBJECT): The connection type for VerifiableDomain. -type VerifiableDomainConnection struct { - // Edges: A list of edges. - Edges []*VerifiableDomainEdge `json:"edges,omitempty"` - - // Nodes: A list of nodes. - Nodes []*VerifiableDomain `json:"nodes,omitempty"` - - // PageInfo: Information to aid in pagination. - PageInfo *PageInfo `json:"pageInfo,omitempty"` - - // TotalCount: Identifies the total count of items in the connection. - TotalCount int `json:"totalCount,omitempty"` -} - -func (x *VerifiableDomainConnection) GetEdges() []*VerifiableDomainEdge { return x.Edges } -func (x *VerifiableDomainConnection) GetNodes() []*VerifiableDomain { return x.Nodes } -func (x *VerifiableDomainConnection) GetPageInfo() *PageInfo { return x.PageInfo } -func (x *VerifiableDomainConnection) GetTotalCount() int { return x.TotalCount } - -// VerifiableDomainEdge (OBJECT): An edge in a connection. -type VerifiableDomainEdge struct { - // Cursor: A cursor for use in pagination. - Cursor string `json:"cursor,omitempty"` - - // Node: The item at the end of the edge. - Node *VerifiableDomain `json:"node,omitempty"` -} - -func (x *VerifiableDomainEdge) GetCursor() string { return x.Cursor } -func (x *VerifiableDomainEdge) GetNode() *VerifiableDomain { return x.Node } - -// VerifiableDomainOrder (INPUT_OBJECT): Ordering options for verifiable domain connections. -type VerifiableDomainOrder struct { - // Field: The field to order verifiable domains by. - // - // GraphQL type: VerifiableDomainOrderField! - Field VerifiableDomainOrderField `json:"field,omitempty"` - - // Direction: The ordering direction. - // - // GraphQL type: OrderDirection! - Direction OrderDirection `json:"direction,omitempty"` -} - -// VerifiableDomainOrderField (ENUM): Properties by which verifiable domain connections can be ordered. -type VerifiableDomainOrderField string - -// VerifiableDomainOrderField_DOMAIN: Order verifiable domains by the domain name. -const VerifiableDomainOrderField_DOMAIN VerifiableDomainOrderField = "DOMAIN" - -// VerifiableDomainOrderField_CREATED_AT: Order verifiable domains by their creation date. -const VerifiableDomainOrderField_CREATED_AT VerifiableDomainOrderField = "CREATED_AT" - -// VerifiableDomainOwner (UNION): Types that can own a verifiable domain. -// VerifiableDomainOwner_Interface: Types that can own a verifiable domain. -// -// Possible types: -// -// - *Enterprise -// - *Organization -type VerifiableDomainOwner_Interface interface { - isVerifiableDomainOwner() -} - -func (*Enterprise) isVerifiableDomainOwner() {} -func (*Organization) isVerifiableDomainOwner() {} - -type VerifiableDomainOwner struct { - Interface VerifiableDomainOwner_Interface -} - -func (x *VerifiableDomainOwner) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *VerifiableDomainOwner) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for VerifiableDomainOwner", info.Typename) - case "Enterprise": - x.Interface = new(Enterprise) - case "Organization": - x.Interface = new(Organization) - } - return json.Unmarshal(js, x.Interface) -} - -// VerifyVerifiableDomainInput (INPUT_OBJECT): Autogenerated input type of VerifyVerifiableDomain. -type VerifyVerifiableDomainInput struct { - // Id: The ID of the verifiable domain to verify. - // - // GraphQL type: ID! - Id ID `json:"id,omitempty"` - - // ClientMutationId: A unique identifier for the client performing the mutation. - // - // GraphQL type: String - ClientMutationId string `json:"clientMutationId,omitempty"` -} - -// VerifyVerifiableDomainPayload (OBJECT): Autogenerated return type of VerifyVerifiableDomain. -type VerifyVerifiableDomainPayload struct { - // ClientMutationId: A unique identifier for the client performing the mutation. - ClientMutationId string `json:"clientMutationId,omitempty"` - - // Domain: The verifiable domain that was verified. - Domain *VerifiableDomain `json:"domain,omitempty"` -} - -func (x *VerifyVerifiableDomainPayload) GetClientMutationId() string { return x.ClientMutationId } -func (x *VerifyVerifiableDomainPayload) GetDomain() *VerifiableDomain { return x.Domain } - -// ViewerHovercardContext (OBJECT): A hovercard context with a message describing how the viewer is related. -type ViewerHovercardContext struct { - // Message: A string describing this context. - Message string `json:"message,omitempty"` - - // Octicon: An octicon to accompany this context. - Octicon string `json:"octicon,omitempty"` - - // Viewer: Identifies the user who is related to this context. - Viewer *User `json:"viewer,omitempty"` -} - -func (x *ViewerHovercardContext) GetMessage() string { return x.Message } -func (x *ViewerHovercardContext) GetOcticon() string { return x.Octicon } -func (x *ViewerHovercardContext) GetViewer() *User { return x.Viewer } - -// Votable (INTERFACE): A subject that may be upvoted. -// Votable_Interface: A subject that may be upvoted. -// -// Possible types: -// -// - *Discussion -// - *DiscussionComment -type Votable_Interface interface { - isVotable() - GetUpvoteCount() int - GetViewerCanUpvote() bool - GetViewerHasUpvoted() bool -} - -func (*Discussion) isVotable() {} -func (*DiscussionComment) isVotable() {} - -type Votable struct { - Interface Votable_Interface -} - -func (x *Votable) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *Votable) UnmarshalJSON(js []byte) error { - var info struct { - Typename string `json:"__Typename"` - } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for Votable", info.Typename) - case "Discussion": - x.Interface = new(Discussion) - case "DiscussionComment": - x.Interface = new(DiscussionComment) - } - return json.Unmarshal(js, x.Interface) -} - -// Workflow (OBJECT): A workflow contains meta information about an Actions workflow file. -type Workflow struct { - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // Name: The name of the workflow. - Name string `json:"name,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` -} - -func (x *Workflow) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *Workflow) GetDatabaseId() int { return x.DatabaseId } -func (x *Workflow) GetId() ID { return x.Id } -func (x *Workflow) GetName() string { return x.Name } -func (x *Workflow) GetUpdatedAt() DateTime { return x.UpdatedAt } - -// WorkflowRun (OBJECT): A workflow run. -type WorkflowRun struct { - // CheckSuite: The check suite this workflow run belongs to. - CheckSuite *CheckSuite `json:"checkSuite,omitempty"` - - // CreatedAt: Identifies the date and time when the object was created. - CreatedAt DateTime `json:"createdAt,omitempty"` - - // DatabaseId: Identifies the primary key from the database. - DatabaseId int `json:"databaseId,omitempty"` - - // DeploymentReviews: The log of deployment reviews. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - DeploymentReviews *DeploymentReviewConnection `json:"deploymentReviews,omitempty"` - - // Id: undocumented. - Id ID `json:"id,omitempty"` - - // PendingDeploymentRequests: The pending deployment requests of all check runs in this workflow run. - // - // Query arguments: - // - after String - // - before String - // - first Int - // - last Int - PendingDeploymentRequests *DeploymentRequestConnection `json:"pendingDeploymentRequests,omitempty"` - - // ResourcePath: The HTTP path for this workflow run. - ResourcePath URI `json:"resourcePath,omitempty"` - - // RunNumber: A number that uniquely identifies this workflow run in its parent workflow. - RunNumber int `json:"runNumber,omitempty"` - - // UpdatedAt: Identifies the date and time when the object was last updated. - UpdatedAt DateTime `json:"updatedAt,omitempty"` - - // Url: The HTTP URL for this workflow run. - Url URI `json:"url,omitempty"` - - // Workflow: The workflow executed in this workflow run. - Workflow *Workflow `json:"workflow,omitempty"` -} - -func (x *WorkflowRun) GetCheckSuite() *CheckSuite { return x.CheckSuite } -func (x *WorkflowRun) GetCreatedAt() DateTime { return x.CreatedAt } -func (x *WorkflowRun) GetDatabaseId() int { return x.DatabaseId } -func (x *WorkflowRun) GetDeploymentReviews() *DeploymentReviewConnection { return x.DeploymentReviews } -func (x *WorkflowRun) GetId() ID { return x.Id } -func (x *WorkflowRun) GetPendingDeploymentRequests() *DeploymentRequestConnection { - return x.PendingDeploymentRequests -} -func (x *WorkflowRun) GetResourcePath() URI { return x.ResourcePath } -func (x *WorkflowRun) GetRunNumber() int { return x.RunNumber } -func (x *WorkflowRun) GetUpdatedAt() DateTime { return x.UpdatedAt } -func (x *WorkflowRun) GetUrl() URI { return x.Url } -func (x *WorkflowRun) GetWorkflow() *Workflow { return x.Workflow } - -// X509Certificate (SCALAR): A valid x509 certificate string. -type X509Certificate string - -// __Directive (OBJECT): A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -// -// In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. -type __Directive struct { - // Args: undocumented. - // - // Query arguments: - // - includeDeprecated Boolean - Args []*__InputValue `json:"args,omitempty"` - - // Description: undocumented. - Description string `json:"description,omitempty"` - - // Locations: undocumented. - Locations []__DirectiveLocation `json:"locations,omitempty"` - - // Name: undocumented. - Name string `json:"name,omitempty"` - - // OnField: undocumented. - // - // Deprecated: undocumented. - OnField bool `json:"onField,omitempty"` - - // OnFragment: undocumented. - // - // Deprecated: undocumented. - OnFragment bool `json:"onFragment,omitempty"` - - // OnOperation: undocumented. - // - // Deprecated: undocumented. - OnOperation bool `json:"onOperation,omitempty"` -} - -func (x *__Directive) GetArgs() []*__InputValue { return x.Args } -func (x *__Directive) GetDescription() string { return x.Description } -func (x *__Directive) GetLocations() []__DirectiveLocation { return x.Locations } -func (x *__Directive) GetName() string { return x.Name } -func (x *__Directive) GetOnField() bool { return x.OnField } -func (x *__Directive) GetOnFragment() bool { return x.OnFragment } -func (x *__Directive) GetOnOperation() bool { return x.OnOperation } - -// __DirectiveLocation (ENUM): A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies. -type __DirectiveLocation string - -// __DirectiveLocation_QUERY: Location adjacent to a query operation. -const __DirectiveLocation_QUERY __DirectiveLocation = "QUERY" - -// __DirectiveLocation_MUTATION: Location adjacent to a mutation operation. -const __DirectiveLocation_MUTATION __DirectiveLocation = "MUTATION" - -// __DirectiveLocation_SUBSCRIPTION: Location adjacent to a subscription operation. -const __DirectiveLocation_SUBSCRIPTION __DirectiveLocation = "SUBSCRIPTION" - -// __DirectiveLocation_FIELD: Location adjacent to a field. -const __DirectiveLocation_FIELD __DirectiveLocation = "FIELD" - -// __DirectiveLocation_FRAGMENT_DEFINITION: Location adjacent to a fragment definition. -const __DirectiveLocation_FRAGMENT_DEFINITION __DirectiveLocation = "FRAGMENT_DEFINITION" - -// __DirectiveLocation_FRAGMENT_SPREAD: Location adjacent to a fragment spread. -const __DirectiveLocation_FRAGMENT_SPREAD __DirectiveLocation = "FRAGMENT_SPREAD" - -// __DirectiveLocation_INLINE_FRAGMENT: Location adjacent to an inline fragment. -const __DirectiveLocation_INLINE_FRAGMENT __DirectiveLocation = "INLINE_FRAGMENT" - -// __DirectiveLocation_SCHEMA: Location adjacent to a schema definition. -const __DirectiveLocation_SCHEMA __DirectiveLocation = "SCHEMA" - -// __DirectiveLocation_SCALAR: Location adjacent to a scalar definition. -const __DirectiveLocation_SCALAR __DirectiveLocation = "SCALAR" - -// __DirectiveLocation_OBJECT: Location adjacent to an object type definition. -const __DirectiveLocation_OBJECT __DirectiveLocation = "OBJECT" - -// __DirectiveLocation_FIELD_DEFINITION: Location adjacent to a field definition. -const __DirectiveLocation_FIELD_DEFINITION __DirectiveLocation = "FIELD_DEFINITION" - -// __DirectiveLocation_ARGUMENT_DEFINITION: Location adjacent to an argument definition. -const __DirectiveLocation_ARGUMENT_DEFINITION __DirectiveLocation = "ARGUMENT_DEFINITION" - -// __DirectiveLocation_INTERFACE: Location adjacent to an interface definition. -const __DirectiveLocation_INTERFACE __DirectiveLocation = "INTERFACE" - -// __DirectiveLocation_UNION: Location adjacent to a union definition. -const __DirectiveLocation_UNION __DirectiveLocation = "UNION" - -// __DirectiveLocation_ENUM: Location adjacent to an enum definition. -const __DirectiveLocation_ENUM __DirectiveLocation = "ENUM" - -// __DirectiveLocation_ENUM_VALUE: Location adjacent to an enum value definition. -const __DirectiveLocation_ENUM_VALUE __DirectiveLocation = "ENUM_VALUE" - -// __DirectiveLocation_INPUT_OBJECT: Location adjacent to an input object type definition. -const __DirectiveLocation_INPUT_OBJECT __DirectiveLocation = "INPUT_OBJECT" - -// __DirectiveLocation_INPUT_FIELD_DEFINITION: Location adjacent to an input object field definition. -const __DirectiveLocation_INPUT_FIELD_DEFINITION __DirectiveLocation = "INPUT_FIELD_DEFINITION" - -// __EnumValue (OBJECT): One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. -type __EnumValue struct { - // DeprecationReason: undocumented. - DeprecationReason string `json:"deprecationReason,omitempty"` - - // Description: undocumented. - Description string `json:"description,omitempty"` - - // IsDeprecated: undocumented. - IsDeprecated bool `json:"isDeprecated,omitempty"` - - // Name: undocumented. - Name string `json:"name,omitempty"` -} - -func (x *__EnumValue) GetDeprecationReason() string { return x.DeprecationReason } -func (x *__EnumValue) GetDescription() string { return x.Description } -func (x *__EnumValue) GetIsDeprecated() bool { return x.IsDeprecated } -func (x *__EnumValue) GetName() string { return x.Name } - -// __Field (OBJECT): Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. -type __Field struct { - // Args: undocumented. - // - // Query arguments: - // - includeDeprecated Boolean - Args []*__InputValue `json:"args,omitempty"` - - // DeprecationReason: undocumented. - DeprecationReason string `json:"deprecationReason,omitempty"` - - // Description: undocumented. - Description string `json:"description,omitempty"` - - // IsDeprecated: undocumented. - IsDeprecated bool `json:"isDeprecated,omitempty"` - - // Name: undocumented. - Name string `json:"name,omitempty"` - - // Type: undocumented. - Type *__Type `json:"type,omitempty"` -} - -func (x *__Field) GetArgs() []*__InputValue { return x.Args } -func (x *__Field) GetDeprecationReason() string { return x.DeprecationReason } -func (x *__Field) GetDescription() string { return x.Description } -func (x *__Field) GetIsDeprecated() bool { return x.IsDeprecated } -func (x *__Field) GetName() string { return x.Name } -func (x *__Field) GetType() *__Type { return x.Type } - -// __InputValue (OBJECT): Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. -type __InputValue struct { - // DefaultValue: A GraphQL-formatted string representing the default value for this input value. - DefaultValue string `json:"defaultValue,omitempty"` - - // DeprecationReason: undocumented. - DeprecationReason string `json:"deprecationReason,omitempty"` - - // Description: undocumented. - Description string `json:"description,omitempty"` - - // IsDeprecated: undocumented. - IsDeprecated bool `json:"isDeprecated,omitempty"` - - // Name: undocumented. - Name string `json:"name,omitempty"` - - // Type: undocumented. - Type *__Type `json:"type,omitempty"` -} - -func (x *__InputValue) GetDefaultValue() string { return x.DefaultValue } -func (x *__InputValue) GetDeprecationReason() string { return x.DeprecationReason } -func (x *__InputValue) GetDescription() string { return x.Description } -func (x *__InputValue) GetIsDeprecated() bool { return x.IsDeprecated } -func (x *__InputValue) GetName() string { return x.Name } -func (x *__InputValue) GetType() *__Type { return x.Type } - -// __Schema (OBJECT): A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. -type __Schema struct { - // Directives: A list of all directives supported by this server. - Directives []*__Directive `json:"directives,omitempty"` - - // MutationType: If this server supports mutation, the type that mutation operations will be rooted at. - MutationType *__Type `json:"mutationType,omitempty"` - - // QueryType: The type that query operations will be rooted at. - QueryType *__Type `json:"queryType,omitempty"` - - // SubscriptionType: If this server support subscription, the type that subscription operations will be rooted at. - SubscriptionType *__Type `json:"subscriptionType,omitempty"` - - // Types: A list of all types supported by this server. - Types []*__Type `json:"types,omitempty"` -} - -func (x *__Schema) GetDirectives() []*__Directive { return x.Directives } -func (x *__Schema) GetMutationType() *__Type { return x.MutationType } -func (x *__Schema) GetQueryType() *__Type { return x.QueryType } -func (x *__Schema) GetSubscriptionType() *__Type { return x.SubscriptionType } -func (x *__Schema) GetTypes() []*__Type { return x.Types } - -// __Type (OBJECT): The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. -// -// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. -type __Type struct { - // Description: undocumented. - Description string `json:"description,omitempty"` - - // EnumValues: undocumented. - // - // Query arguments: - // - includeDeprecated Boolean - EnumValues []*__EnumValue `json:"enumValues,omitempty"` - - // Fields: undocumented. - // - // Query arguments: - // - includeDeprecated Boolean - Fields []*__Field `json:"fields,omitempty"` - - // InputFields: undocumented. - // - // Query arguments: - // - includeDeprecated Boolean - InputFields []*__InputValue `json:"inputFields,omitempty"` - - // Interfaces: undocumented. - Interfaces []*__Type `json:"interfaces,omitempty"` - - // Kind: undocumented. - Kind __TypeKind `json:"kind,omitempty"` - - // Name: undocumented. - Name string `json:"name,omitempty"` - - // OfType: undocumented. - OfType *__Type `json:"ofType,omitempty"` - - // PossibleTypes: undocumented. - PossibleTypes []*__Type `json:"possibleTypes,omitempty"` -} - -func (x *__Type) GetDescription() string { return x.Description } -func (x *__Type) GetEnumValues() []*__EnumValue { return x.EnumValues } -func (x *__Type) GetFields() []*__Field { return x.Fields } -func (x *__Type) GetInputFields() []*__InputValue { return x.InputFields } -func (x *__Type) GetInterfaces() []*__Type { return x.Interfaces } -func (x *__Type) GetKind() __TypeKind { return x.Kind } -func (x *__Type) GetName() string { return x.Name } -func (x *__Type) GetOfType() *__Type { return x.OfType } -func (x *__Type) GetPossibleTypes() []*__Type { return x.PossibleTypes } - -// __TypeKind (ENUM): An enum describing what kind of type a given `__Type` is. -type __TypeKind string - -// __TypeKind_SCALAR: Indicates this type is a scalar. -const __TypeKind_SCALAR __TypeKind = "SCALAR" - -// __TypeKind_OBJECT: Indicates this type is an object. `fields` and `interfaces` are valid fields. -const __TypeKind_OBJECT __TypeKind = "OBJECT" - -// __TypeKind_INTERFACE: Indicates this type is an interface. `fields` and `possibleTypes` are valid fields. -const __TypeKind_INTERFACE __TypeKind = "INTERFACE" - -// __TypeKind_UNION: Indicates this type is a union. `possibleTypes` is a valid field. -const __TypeKind_UNION __TypeKind = "UNION" - -// __TypeKind_ENUM: Indicates this type is an enum. `enumValues` is a valid field. -const __TypeKind_ENUM __TypeKind = "ENUM" - -// __TypeKind_INPUT_OBJECT: Indicates this type is an input object. `inputFields` is a valid field. -const __TypeKind_INPUT_OBJECT __TypeKind = "INPUT_OBJECT" - -// __TypeKind_LIST: Indicates this type is a list. `ofType` is a valid field. -const __TypeKind_LIST __TypeKind = "LIST" - -// __TypeKind_NON_NULL: Indicates this type is a non-null. `ofType` is a valid field. -const __TypeKind_NON_NULL __TypeKind = "NON_NULL" blob - 3c96fc46411ba5cc55e032df67387f6d2a173203 (mode 644) blob + /dev/null --- schema/schema.tmpl +++ /dev/null @@ -1,182 +0,0 @@ -{{define "main"}} -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package schema - -import ( - "encoding/json" - "html/template" - "fmt" -) - -var ( - _ = template.Must - _ = fmt.Sprint - _ = json.Marshal -) - -{{range .Types}} -{{registerType .Name}} -{{end}} - -{{range .Types}} -{{decltype .}} -{{end}} - -{{end}} - -{{define "decltype"}} -{{doc . -}} -{{if eq .Kind "INPUT_OBJECT" -}} -{{declinputobject .}} -{{else if eq .Kind "OBJECT" -}} -{{declobject .}} -{{else if eq .Kind "ENUM" -}} -{{declenum .}} -{{else if eq .Kind "INTERFACE" "UNION" -}} -{{declinterface .}} -{{else if eq .Kind "SCALAR" -}} -{{declscalar .}} -{{end}} -{{end}} - -{{define "comment" -}} -{{- if .}} -{{- strings.TrimSuffix (strings.ReplaceAll . "\n" "\n// ") "."}}. -{{- else}}undocumented. -{{- end}} -{{- end}} - -{{define "doc"}} -// {{.Name}} ({{.Kind}}): {{comment .Description}} -{{end}} - -{{define "declobject" -}} -type {{.Name}} struct { -{{range .Fields -}} -// {{upper .Name}}: {{comment .Description}} -{{if .IsDeprecated -}} -// -// Deprecated: {{comment .Description}} -{{end -}} -{{if .Args -}} -// -// Query arguments: -{{range .Args -}} -// - {{.Name}} {{schematype .Type}} -{{end -}} -{{end -}} -{{upper .Name}} {{gotype .Type}} {{gojson .}} - -{{end}} -} - -{{range .Fields -}} -func (x *{{$.Name}}) Get{{upper .Name}}() {{gotype .Type}} { return x.{{upper .Name}} } -{{end}} -{{end}} - -{{define "declinputobject" -}} -type {{.Name}} struct { -{{range .InputFields -}} -// {{upper .Name}}: {{comment .Description}} -{{if .IsDeprecated -}} -// -// Deprecated: {{comment .Description}} -{{end -}} -// -// GraphQL type: {{schematype .Type}} -{{upper .Name}} {{gotype .Type}} {{gojson .}} - -{{end}} -} -{{end}} - -{{/* TODO: interfaces have common fields*/}} -{{define "declinterface" -}} -// {{.Name}}_Interface: {{comment .Description}} -// -// Possible types: -// -{{range .PossibleTypes -}} -// - {{gotype .}} -{{end -}} -type {{.Name}}_Interface interface { - is{{.Name}}() -{{range .Fields -}} - Get{{upper .Name}}() {{gotype .Type}} -{{end -}} -} -{{range .PossibleTypes -}} -func ({{gotype .}}) is{{$.Name}}() {} -{{end}} - -type {{.Name}} struct { - Interface {{.Name}}_Interface -} - -func (x *{{.Name}}) MarshalJSON() ([]byte, error) { - return json.Marshal(x.Interface) -} - -func (x *{{.Name}}) UnmarshalJSON(js []byte) error { - var info struct { Typename string `json:"__Typename"` } - if err := json.Unmarshal(js, &info); err != nil { - return err - } - switch info.Typename { - default: - return fmt.Errorf("unexpected type %q for {{.Name}}", info.Typename) - {{range .PossibleTypes -}} - case "{{.Name}}": - x.Interface = new({{.Name}}) - {{end -}} - } - return json.Unmarshal(js, x.Interface) -} -{{end}} - -{{define "gojson"}} `json:"{{.Name}},omitempty"`{{end}} - -{{define "declscalar" -}} -type {{.Name}} -{{- if eq .Name "Boolean"}} bool -{{- else if eq .Name "Int"}} int -{{- else if eq .Name "Float"}} float64 -{{- else}} string -{{- end}} -{{- end}} - -{{define "gotype"}} -{{- if eq .Kind "OBJECT" "INPUT_OBJECT"}}*{{.Name}} -{{- else if eq .Kind "ENUM" "INTERFACE" "UNION"}}{{.Name}} -{{- else if eq .Kind "LIST"}}[]{{gotype .OfType}} -{{- else if eq .Kind "NON_NULL"}}{{gotype .OfType}} -{{- else if eq .Name "String"}}string -{{- else if eq .Name "Boolean"}}bool -{{- else if eq .Name "Int"}}int -{{- else if eq .Name "Float"}}float64 -{{- else if eq .Name "HTML"}}template.HTML -{{- else if and (eq .Kind "SCALAR") .Name}}{{.Name}} -{{- else}}?? {{.Kind}} {{.Name}} -{{- end}} -{{- end}} - -{{define "schematype"}} -{{- if .Name}}{{.Name}} -{{- else if eq .Kind "LIST"}}[{{schematype .OfType}}] -{{- else if eq .Kind "NON_NULL"}}{{schematype .OfType}}! -{{- else}}?? {{.Kind}} {{.Name}} -{{- end}} -{{- end}} - -{{define "declenum" -}} -type {{.Name}} string - -{{range .EnumValues}} -// {{$.Name}}_{{.Name}}: {{comment .Description}} -const {{$.Name}}_{{.Name}} {{$.Name}} = "{{.Name}}" -{{end}} -{{end}}